From ee7b118a3cab6f48856dc99960b6ac71502ea6d4 Mon Sep 17 00:00:00 2001 From: caiyuchao Date: Wed, 4 Dec 2024 17:05:40 +0800 Subject: [PATCH] fix: add all omada apis --- pom.xml | 8 + wfc-api/wfc-api-omada/pom.xml | 7 + .../wfc/omada/api/account/OmadaSsoApi.java | 201 ++ .../api/account/OmadaUserAndRoleApi.java | 221 +++ .../account/model/ControllerRoleDetailVo.java | 203 +++ .../api/account/model/ControllerRoleVo.java | 953 ++++++++++ .../api/account/model/CreateRoleResultVo.java | 76 + .../api/account/model/CreateUserResultVo.java | 76 + .../omada/api/account/model/CreateUserVo.java | 294 +++ .../omada/api/account/model/DeleteUserVo.java | 76 + .../model/ExternalUserDetailOpenApiVo.java | 228 +++ .../ExternalUserGroupDetailOpenApiVo.java | 239 +++ .../model/ExternalUserGroupOpenApiVo.java | 168 ++ .../GridVoExternalUserDetailOpenApiVo.java | 164 ++ ...ridVoExternalUserGroupDetailOpenApiVo.java | 164 ++ .../GridVoIdpMetadataDetailOpenApiVo.java | 164 ++ .../api/account/model/GridVoUserDetailVo.java | 164 ++ .../model/IdpMetadataDetailOpenApiVo.java | 251 +++ .../account/model/IdpMetadataOpenApiVo.java | 182 ++ .../account/model/ModifyControllerRoleVo.java | 106 ++ .../omada/api/account/model/ModifyUserVo.java | 293 +++ ...erationResponseControllerRoleDetailVo.java | 128 ++ .../OperationResponseCreateRoleResultVo.java | 128 ++ .../OperationResponseCreateUserResultVo.java | 128 ++ ...onseGridVoExternalUserDetailOpenApiVo.java | 128 ++ ...ridVoExternalUserGroupDetailOpenApiVo.java | 128 ++ ...ponseGridVoIdpMetadataDetailOpenApiVo.java | 128 ++ .../OperationResponseGridVoUserDetailVo.java | 128 ++ ...ionResponseListControllerRoleDetailVo.java | 139 ++ .../model/OperationResponseObject.java | 128 ++ .../model/OperationResponseResponseIdVo.java | 128 ++ .../model/OperationResponseUserDetailVo.java | 128 ++ .../model/OperationResponseWithoutResult.java | 101 ++ .../api/account/model/PrivilegeOpenApiVo.java | 115 ++ .../omada/api/account/model/ResponseIdVo.java | 76 + .../api/account/model/SiteInfoOpenApiVo.java | 104 ++ .../omada/api/account/model/UserDetailVo.java | 447 +++++ .../omada/api/batch/OmadaBatchOpenApiApi.java | 45 + .../api/batch/model/BatchRequestEntity.java | 114 ++ .../api/batch/model/BatchResponseEntity.java | 89 + .../api/batch/model/OperationResponse.java | 130 ++ .../OperationResponseBatchResponseEntity.java | 128 ++ .../api/batch/model/RequestActionEntity.java | 156 ++ .../wfc/omada/api/client/OmadaClientApi.java | 193 ++ .../api/client/OmadaClientInsightApi.java | 51 + .../omada/api/client/model/ApBriefInfoVo.java | 103 ++ .../omada/api/client/model/ClientDetail.java | 1585 ++++++++++++++++ .../client/model/ClientGridVoClientInfo.java | 190 ++ .../api/client/model/ClientHistoryInfo.java | 438 +++++ .../omada/api/client/model/ClientInfo.java | 1610 +++++++++++++++++ .../api/client/model/ClientIpSetting.java | 131 ++ .../client/model/ClientLockToApSetting.java | 116 ++ .../client/model/ClientLockToApSetting1.java | 115 ++ .../model/ClientMultifrequencyInfo.java | 453 +++++ .../api/client/model/ClientNameSetting.java | 79 + .../client/model/ClientRateLimitSetting.java | 130 ++ .../omada/api/client/model/ClientStatVo.java | 551 ++++++ .../client/model/CustomRateLimitEntity.java | 203 +++ .../client/model/GridVoClientHistoryInfo.java | 164 ++ .../model/OperationResponseClientDetail.java | 128 ++ ...erationResponseClientGridVoClientInfo.java | 128 ++ ...rationResponseGridVoClientHistoryInfo.java | 128 ++ .../model/OperationResponseWithoutResult.java | 101 ++ .../org/wfc/omada/api/config/FeignConfig.java | 1 + .../org/wfc/omada/api/device/OmadaApApi.java | 562 ++++++ .../wfc/omada/api/device/OmadaDeviceApi.java | 811 +++++++++ .../omada/api/device/OmadaFirmwareApi.java | 505 ++++++ .../wfc/omada/api/device/OmadaGatewayApi.java | 188 ++ .../wfc/omada/api/device/OmadaSwitchApi.java | 357 ++++ .../model/ActiveDeviceMultiSiteOpenApiVo.java | 114 ++ .../device/model/ActiveDeviceOpenApiVo.java | 114 ++ .../api/device/model/ActiveDeviceRespVo.java | 101 ++ .../device/model/ActiveDeviceSnOpenApiVo.java | 114 ++ .../device/model/ActiveDeviceSnRespVo.java | 101 ++ .../model/ActivePairMultiSiteOpenApiDto.java | 154 ++ .../device/model/ActivePairOpenApiDto.java | 129 ++ .../device/model/ActivePairSnOpenApiDto.java | 129 ++ .../device/model/AddDeviceBySnOpenApiVo.java | 154 ++ .../omada/api/device/model/AddDeviceVo.java | 178 ++ .../model/AddDeviceWithSiteBySnOpenApiVo.java | 179 ++ .../api/device/model/AdoptDeviceRequest.java | 101 ++ .../omada/api/device/model/AdoptResult.java | 126 ++ .../model/ApAvailableChannelOpenApiVo.java | 114 ++ .../api/device/model/ApBridgeConfig.java | 104 ++ .../model/ApChannelDetailOpenApiVo.java | 140 ++ .../api/device/model/ApDownLinkStatusVo.java | 703 +++++++ .../api/device/model/ApGeneralConfig.java | 165 ++ .../omada/api/device/model/ApIpSetting.java | 132 ++ .../omada/api/device/model/ApLanTraffic.java | 78 + .../device/model/ApOfdmaConfigOpenApiVo.java | 251 +++ .../api/device/model/ApOverviewInfo.java | 364 ++++ .../model/ApPowerSavingConfigOpenApiVo.java | 288 +++ .../api/device/model/ApRadioChannel.java | 328 ++++ .../api/device/model/ApRadioSetting.java | 290 +++ .../device/model/ApRadioTrafficEntity.java | 303 ++++ .../api/device/model/ApRadiosConfig.java | 182 ++ .../api/device/model/ApRadiosDetail.java | 260 +++ .../omada/api/device/model/ApRfScanInfo.java | 444 +++++ .../api/device/model/ApRfScanResult.java | 619 +++++++ .../model/ApSsidOverrideOpenApiV2Vo.java | 88 + .../device/model/ApSsidOverrideOpenApiVo.java | 88 + .../device/model/ApSsidWlansOpenApiV2Vo.java | 88 + .../device/model/ApSsidWlansOpenApiVo.java | 88 + .../api/device/model/ApWiredDownlink.java | 89 + .../omada/api/device/model/ApWiredUplink.java | 78 + .../api/device/model/ApWiredUplinkInfo.java | 553 ++++++ .../api/device/model/ApWirelessUplink.java | 403 +++++ .../model/AutoCheckUpgradeCreateInfo.java | 173 ++ .../device/model/AutoCheckUpgradeInfo.java | 249 +++ .../device/model/BatchProfileOverride.java | 114 ++ .../device/model/BatchTagRespOpenApiVo.java | 89 + .../api/device/model/CheckFirmwareRes.java | 181 ++ .../device/model/CreateAutoCheckResInfo.java | 76 + .../model/CreateUpgradePlanResinfo.java | 88 + .../api/device/model/CriticalModelNum.java | 76 + .../api/device/model/DeleteTagOpenApiVo.java | 78 + .../device/model/DeviceAddProcessRespVo.java | 114 ++ .../device/model/DeviceAddRespOpenApiVo.java | 76 + .../DeviceCopyConfigurationOpenApiVo.java | 104 ++ .../api/device/model/DeviceFirmwareInfo.java | 126 ++ .../omada/api/device/model/DeviceInfo.java | 663 +++++++ .../model/DeviceListAddBySnOpenApiVo.java | 88 + .../DeviceListAddMultiSiteBySnOpenApiVo.java | 88 + .../device/model/DeviceListAddOpenApiVo.java | 88 + .../device/model/DeviceLocationDetailVo.java | 128 ++ .../device/model/DeviceMoveSiteOpenApiVo.java | 78 + .../api/device/model/DhcpIpSettingEntity.java | 229 +++ .../omada/api/device/model/DslSettings.java | 153 ++ .../device/model/EasyManageOverviewInfo.java | 264 +++ .../model/EasyManagedSwitchGeneralConfig.java | 215 +++ .../omada/api/device/model/FirmwareInfo.java | 178 ++ .../device/model/GatewayGeneralConfig.java | 165 ++ .../omada/api/device/model/GatewayInfo.java | 408 +++++ .../api/device/model/GatewayPortConfig.java | 318 ++++ .../model/GatewayPortSettingConfig.java | 314 ++++ .../model/GatewayPortsConfigEntity.java | 89 + .../device/model/GatewayWanStatusEntity.java | 354 ++++ .../model/GlobalKnownDeviceOpenApiVo.java | 513 ++++++ .../model/GlobalUnknownDeviceOpenApiVo.java | 301 +++ .../model/GridVoAutoCheckUpgradeInfo.java | 164 ++ .../api/device/model/GridVoDeviceInfo.java | 164 ++ .../api/device/model/GridVoFirmwareInfo.java | 164 ++ .../GridVoGlobalKnownDeviceOpenApiVo.java | 164 ++ .../GridVoGlobalUnknownDeviceOpenApiVo.java | 164 ++ .../device/model/GridVoPlanUpgradeInfo.java | 164 ++ .../model/GridVoPlanUpgradeModelList.java | 164 ++ .../model/GridVoUpgradeFailedDeviceInfo.java | 164 ++ .../model/GridVoUpgradeLogOpenApiInfo.java | 164 ++ .../omada/api/device/model/InlineObject.java | 79 + .../omada/api/device/model/InlineObject1.java | 79 + .../omada/api/device/model/Interference.java | 130 ++ .../device/model/InterferenceDataEntity.java | 124 ++ .../wfc/omada/api/device/model/LanStatus.java | 228 +++ .../omada/api/device/model/LanTraffic.java | 253 +++ .../api/device/model/LocateDeviceRequest.java | 76 + .../omada/api/device/model/ModelBaseInfo.java | 118 ++ ...FirmwarePoolGridInfoModelLatestFwInfo.java | 200 ++ .../model/ModelFwOemReleaseNoteInfo.java | 89 + .../model/ModelFwReleaseNoteReqInfo.java | 76 + .../model/ModelFwVersionReleaseNoteInfo.java | 153 ++ .../api/device/model/ModelLatestFwInfo.java | 153 ++ .../device/model/ModelTypeInfoOpenApiVo.java | 106 ++ .../api/device/model/ModelUpgradeInfo.java | 113 ++ .../device/model/ModelUpgradeSiteInfo.java | 198 ++ .../device/model/ModelUpgradeSiteReqInfo.java | 140 ++ .../api/device/model/ModifyTagOpenApiVo.java | 105 ++ .../model/NetworkPortsAssociationVo.java | 233 +++ .../api/device/model/OnlineUpgradeRes.java | 101 ++ .../model/OperationResponseAdoptResult.java | 128 ++ ...onResponseApAvailableChannelOpenApiVo.java | 128 ++ .../OperationResponseApBridgeConfig.java | 128 ++ .../OperationResponseApGeneralConfig.java | 128 ++ .../model/OperationResponseApIpSetting.java | 128 ++ .../model/OperationResponseApLanTraffic.java | 128 ++ ...erationResponseApOfdmaConfigOpenApiVo.java | 128 ++ .../OperationResponseApOverviewInfo.java | 128 ++ ...nResponseApPowerSavingConfigOpenApiVo.java | 128 ++ .../OperationResponseApRadiosConfig.java | 128 ++ .../OperationResponseApRadiosDetail.java | 128 ++ .../model/OperationResponseApRfScanInfo.java | 128 ++ .../OperationResponseApRfScanResult.java | 128 ++ ...erationResponseApSsidWlansOpenApiV2Vo.java | 128 ++ ...OperationResponseApSsidWlansOpenApiVo.java | 128 ++ .../OperationResponseApWiredDownlink.java | 128 ++ .../model/OperationResponseApWiredUplink.java | 128 ++ .../OperationResponseCheckFirmwareRes.java | 128 ++ ...erationResponseCreateAutoCheckResInfo.java | 128 ++ ...ationResponseCreateUpgradePlanResinfo.java | 128 ++ .../OperationResponseCriticalModelNum.java | 128 ++ ...erationResponseDeviceAddProcessRespVo.java | 128 ++ ...erationResponseDeviceAddRespOpenApiVo.java | 128 ++ .../OperationResponseDeviceFirmwareInfo.java | 128 ++ ...erationResponseEasyManageOverviewInfo.java | 128 ++ ...esponseEasyManagedSwitchGeneralConfig.java | 128 ++ .../device/model/OperationResponseFile.java | 128 ++ ...OperationResponseGatewayGeneralConfig.java | 128 ++ .../model/OperationResponseGatewayInfo.java | 128 ++ ...ationResponseGatewayPortSettingConfig.java | 128 ++ ...ationResponseGatewayPortsConfigEntity.java | 128 ++ ...ionResponseGridVoAutoCheckUpgradeInfo.java | 128 ++ .../OperationResponseGridVoDeviceInfo.java | 128 ++ .../OperationResponseGridVoFirmwareInfo.java | 128 ++ ...ponseGridVoGlobalKnownDeviceOpenApiVo.java | 128 ++ ...nseGridVoGlobalUnknownDeviceOpenApiVo.java | 128 ++ ...perationResponseGridVoPlanUpgradeInfo.java | 128 ++ ...ionResponseGridVoPlanUpgradeModelList.java | 128 ++ ...ResponseGridVoUpgradeFailedDeviceInfo.java | 128 ++ ...onResponseGridVoUpgradeLogOpenApiInfo.java | 128 ++ ...ionResponseListGatewayWanStatusEntity.java | 139 ++ .../model/OperationResponseListLanStatus.java | 139 ++ ...ResponseListNetworkPortsAssociationVo.java | 139 ++ ...FirmwarePoolGridInfoModelLatestFwInfo.java | 128 ++ ...tionResponseModelFwOemReleaseNoteInfo.java | 128 ++ ...OperationResponseModelUpgradeSiteInfo.java | 128 ++ .../OperationResponseOnlineUpgradeRes.java | 128 ++ ...esponseOperationResponseWithoutResult.java | 128 ++ ...OperationResponsePlanUpgradeModelInfo.java | 128 ++ ...onResponseRetryAddDeviceRespOpenApiVo.java | 128 ++ .../OperationResponseRollingUpgradeRes.java | 128 ++ .../OperationResponseSwitchGeneralConfig.java | 128 ++ .../OperationResponseSwitchOverviewInfo.java | 128 ++ .../model/OperationResponseUpgradeRes.java | 128 ++ ...perationResponseUpgradeSettingTryBeta.java | 128 ++ ...OperationResponseUpgradeSiteModelInfo.java | 128 ++ .../model/OperationResponseUpgradeTask.java | 128 ++ ...perationResponseUploadFirmwareResInfo.java | 128 ++ .../model/OperationResponseWithoutResult.java | 101 ++ .../device/model/OsgLanPortIpv6ConfigVo.java | 153 ++ .../device/model/OsgWanPortIpv4ConfigVo.java | 278 +++ .../device/model/OsgWanPortIpv6ConfigVo.java | 253 +++ .../model/PlanFirmwareUpgradeCreateInfo.java | 238 +++ .../device/model/PlanUpgradeCreateInfo.java | 271 +++ .../api/device/model/PlanUpgradeEditInfo.java | 238 +++ .../api/device/model/PlanUpgradeInfo.java | 298 +++ .../device/model/PlanUpgradeModelInfo.java | 89 + .../device/model/PlanUpgradeModelList.java | 164 ++ .../model/PlanUpgradeSelectedModel.java | 142 ++ .../wfc/omada/api/device/model/PortInfo.java | 263 +++ .../omada/api/device/model/PortNameList.java | 89 + .../api/device/model/ProfileOverride.java | 78 + .../device/model/RetryAddDeviceOpenApiVo.java | 101 ++ .../model/RetryAddDeviceRespOpenApiVo.java | 76 + .../omada/api/device/model/RfScanCommand.java | 88 + .../omada/api/device/model/RfScanRadio.java | 166 ++ .../omada/api/device/model/RfScanRadio2g.java | 166 ++ .../omada/api/device/model/RfScanRadio5g.java | 166 ++ .../api/device/model/RfScanRadio5g2.java | 166 ++ .../omada/api/device/model/RfScanRadio6g.java | 166 ++ .../api/device/model/RollbackCreateInfo.java | 229 +++ .../device/model/RollingUpgradeRequest.java | 88 + .../api/device/model/RollingUpgradeRes.java | 101 ++ .../api/device/model/SetTagOpenApiVo.java | 121 ++ .../device/model/SetTagResultOpenApiVo.java | 103 ++ .../omada/api/device/model/SiteBasicInfo.java | 103 ++ .../omada/api/device/model/SnAddResultVo.java | 203 +++ .../model/SsidOverrideConfigOpenApiV2Vo.java | 293 +++ .../model/SsidOverrideConfigOpenApiVo.java | 266 +++ .../device/model/SsidOverrideOpenApiV2Vo.java | 232 +++ .../device/model/SsidOverrideOpenApiVo.java | 230 +++ .../device/model/StaticIpSettingEntity.java | 179 ++ .../api/device/model/SwitchGeneralConfig.java | 217 +++ .../api/device/model/SwitchMultiPortName.java | 107 ++ .../api/device/model/SwitchOverviewInfo.java | 348 ++++ .../api/device/model/SwitchPortName.java | 79 + .../omada/api/device/model/SwitchPortPoe.java | 78 + .../api/device/model/SwitchPortStatus.java | 78 + .../api/device/model/SwitchPortsPoe.java | 114 ++ .../api/device/model/SwitchPortsStatus.java | 114 ++ .../api/device/model/SwitchProfileId.java | 78 + .../omada/api/device/model/TagOpenApiVo.java | 79 + .../api/device/model/TagRespOpenApiVo.java | 101 ++ .../model/UnbindActiveDeviceSnOpenApiVo.java | 105 ++ .../device/model/UnbindDeviceOpenApiVo.java | 87 + .../api/device/model/UnbindDeviceRespVo.java | 176 ++ .../device/model/UnbindDeviceSnOpenApiVo.java | 87 + .../device/model/UnbindDeviceSnRespVo.java | 176 ++ .../model/UpdateApChannelConfigOpenApiVo.java | 154 ++ .../model/UpdateApOfdmaConfigOpenApiVo.java | 151 ++ .../UpdateApPowerSavingConfigOpenApiVo.java | 267 +++ .../UpgradeBaseScheduleTimeOpenApiVo.java | 207 +++ .../device/model/UpgradeFailedDeviceInfo.java | 203 +++ .../device/model/UpgradeLogOpenApiInfo.java | 298 +++ .../api/device/model/UpgradeRequest.java | 113 ++ .../omada/api/device/model/UpgradeRes.java | 101 ++ .../device/model/UpgradeSettingTryBeta.java | 78 + .../device/model/UpgradeSiteModelInfo.java | 89 + .../device/model/UpgradeSiteModelReqInfo.java | 88 + .../omada/api/device/model/UpgradeTask.java | 76 + .../device/model/UploadFirmwareResInfo.java | 76 + .../OmadaDeviceManagementSettingApi.java | 62 + .../api/globalsetting/OmadaLicenseApi.java | 154 ++ .../globalsetting/OmadaWebhookSettingApi.java | 143 ++ .../model/DeviceAccessManagementSetting.java | 132 ++ .../GridVoOpenApiWebhookDispatchLogVo.java | 164 ++ .../model/LicenseAutoActiveOpenApiVo.java | 78 + .../model/LicenseAutoRenewOpenApiVo.java | 78 + .../LicenseBindAvailableNumOpenApiVo.java | 251 +++ .../model/OpenApiDispatchLogDetailVo.java | 128 ++ .../model/OpenApiWebhookAttemptMessageVo.java | 128 ++ .../model/OpenApiWebhookDispatchLogVo.java | 141 ++ .../model/OpenApiWebhookLogMessageVo.java | 130 ++ .../model/OpenApiWebhookMessageVo.java | 103 ++ .../model/OpenApiWebhookSettingAddVo.java | 189 ++ .../model/OpenApiWebhookSettingEditVo.java | 163 ++ .../model/OpenApiWebhookSettingTestVo.java | 163 ++ ...ResponseDeviceAccessManagementSetting.java | 128 ++ ...onseGridVoOpenApiWebhookDispatchLogVo.java | 128 ++ ...ionResponseLicenseAutoActiveOpenApiVo.java | 128 ++ ...tionResponseLicenseAutoRenewOpenApiVo.java | 128 ++ .../OperationResponseListWebhookSetting.java | 139 ++ .../model/OperationResponseWithoutResult.java | 101 ++ .../globalsetting/model/WebhookSetting.java | 263 +++ .../api/hotspot/OmadaAuthorizedClientApi.java | 117 ++ .../api/hotspot/OmadaFormAuthDataApi.java | 148 ++ .../omada/api/hotspot/OmadaLocalUserApi.java | 108 ++ .../omada/api/hotspot/OmadaVoucherApi.java | 366 ++++ .../model/AllTimeVoucherSummaryOpenApiVo.java | 130 ++ .../hotspot/model/AuthClientOpenApiVo.java | 551 ++++++ .../api/hotspot/model/AuthTimeOpenApiVo.java | 130 ++ .../model/CreateFormAuthOpenApiVo.java | 219 +++ .../model/CreateLocalUserOpenApiVo.java | 422 +++++ .../model/CreateVoucherGroupOpenApiVo.java | 632 +++++++ .../hotspot/model/CreatedResIdOpenApiVo.java | 76 + .../model/CurrencyCandidatesOpenApiVo.java | 113 ++ .../model/CustomRateLimitOpenApiVo.java | 156 ++ .../api/hotspot/model/ExtendOpenApiVo.java | 78 + .../model/FormAuthCardAnswerOpenApiVo.java | 190 ++ .../hotspot/model/FormAuthCardOpenApiVo.java | 224 +++ .../api/hotspot/model/FormAuthOpenApiVo.java | 324 ++++ .../model/FormAuthResultOpenApiVo.java | 214 +++ .../model/GridVoAuthClientOpenApiVo.java | 164 ++ .../model/GridVoFormAuthResultOpenApiVo.java | 164 ++ .../model/GridVoLocalUserOpenApiVo.java | 164 ++ ...oVoucherDurationDistributionOpenApiVo.java | 164 ++ .../model/GridVoVoucherGroupOpenApiVo.java | 164 ++ ...VoucherUnitPriceDistributionOpenApiVo.java | 164 ++ .../model/HotspotSiteSettingOpenApiVo.java | 76 + .../api/hotspot/model/LocalUserOpenApiVo.java | 540 ++++++ ...esponseAllTimeVoucherSummaryOpenApiVo.java | 128 ++ ...perationResponseCreatedResIdOpenApiVo.java | 128 ++ ...onResponseCurrencyCandidatesOpenApiVo.java | 128 ++ .../OperationResponseFormAuthOpenApiVo.java | 128 ++ ...rationResponseFormAuthResultOpenApiVo.java | 128 ++ ...tionResponseGridVoAuthClientOpenApiVo.java | 128 ++ ...ResponseGridVoFormAuthResultOpenApiVo.java | 128 ++ ...ationResponseGridVoLocalUserOpenApiVo.java | 128 ++ ...oVoucherDurationDistributionOpenApiVo.java | 128 ++ ...onResponseGridVoVoucherGroupOpenApiVo.java | 128 ++ ...VoucherUnitPriceDistributionOpenApiVo.java | 128 ++ ...perationResponseListFormAuthOpenApiVo.java | 139 ++ ...tionResponseListVoucherBriefOpenApiVo.java | 139 ++ .../OperationResponseLocalUserOpenApiVo.java | 128 ++ ...tionResponseVoucherGroupGridOpenApiVo.java | 128 ++ .../OperationResponseVoucherOpenApiVo.java | 128 ++ ...onseVoucherStatisticsHistoryOpenApiVo.java | 128 ++ .../model/OperationResponseWithoutResult.java | 101 ++ .../api/hotspot/model/RateLimitOpenApiVo.java | 132 ++ .../api/hotspot/model/SelectIdsOpenApiVo.java | 191 ++ .../model/SelectVoucherGroupOpenApiVo.java | 165 ++ .../hotspot/model/SimpleVoucherOpenApiVo.java | 303 ++++ .../model/StatisticsCountOpenApiVo.java | 153 ++ .../hotspot/model/VoucherBriefOpenApiVo.java | 276 +++ .../VoucherDurationDistributionOpenApiVo.java | 151 ++ .../model/VoucherGroupGridOpenApiVo.java | 950 ++++++++++ .../hotspot/model/VoucherGroupOpenApiVo.java | 764 ++++++++ .../api/hotspot/model/VoucherOpenApiVo.java | 714 ++++++++ .../VoucherStatisticsHistoryOpenApiVo.java | 115 ++ .../model/VoucherSummaryOpenApiVo.java | 153 ++ ...VoucherUnitPriceDistributionOpenApiVo.java | 151 ++ .../hotspot/model/VoucherUsageOpenApiVo.java | 178 ++ .../api/insight/OmadaThreatManagementApi.java | 114 ++ .../api/insight/model/DeleteIpsThreat.java | 89 + .../api/insight/model/GetGridIpsThreat.java | 226 +++ .../api/insight/model/GetIpsThreatDetail.java | 326 ++++ .../insight/model/GridVoGetGridIpsThreat.java | 164 ++ .../api/insight/model/IpsOperateThreat.java | 167 ++ .../model/IpsOperateThreatIdAndTime.java | 106 ++ .../OperationResponseGetIpsThreatDetail.java | 128 ++ ...erationResponseGridVoGetGridIpsThreat.java | 128 ++ .../model/OperationResponseObject.java | 128 ++ .../insight/model/SignatureSuppression.java | 181 ++ .../org/wfc/omada/api/log/OmadaLogApi.java | 383 ++++ .../omada/api/log/OmadaLogTemplateApi.java | 64 + .../AuditLogNotificationEditOpenApiVo.java | 106 ++ .../model/AuditLogNotificationOpenApiVo.java | 128 ++ ...itLogNotificationSettingEditOpenApiVo.java | 115 ++ .../AuditLogNotificationSettingOpenApiVo.java | 115 ++ .../api/log/model/AuditLogOpenApiVo.java | 329 ++++ .../log/model/GridVoAuditLogOpenApiVo.java | 164 ++ .../api/log/model/LogAlertEmailOpenApiVo.java | 128 ++ .../model/LogNotificationEditOpenApiV2Vo.java | 157 ++ .../model/LogNotificationEditOpenApiVo.java | 183 ++ .../log/model/LogNotificationOpenApiVo.java | 203 +++ ...LogNotificationSettingEditOpenApiV2Vo.java | 202 +++ .../LogNotificationSettingEditOpenApiVo.java | 140 ++ .../LogNotificationSettingOpenApiVo.java | 141 ++ ...eAuditLogNotificationSettingOpenApiVo.java | 128 ++ ...rationResponseGridVoAuditLogOpenApiVo.java | 128 ++ ...sponseLogNotificationSettingOpenApiVo.java | 128 ++ .../model/OperationResponseWithoutResult.java | 101 ++ .../log/model/WebhookConfigEditOpenApiVo.java | 105 ++ .../api/log/model/WebhookConfigOpenApiVo.java | 103 ++ .../maintenance/OmadaBackupAndRestoreApi.java | 263 +++ .../OmadaHistoryDataRetentionApi.java | 62 + .../maintenance/model/BackupFileListVo.java | 89 + .../maintenance/model/BackupFileResultVo.java | 128 ++ .../model/BackupResultOpenApiVo.java | 76 + .../maintenance/model/BatchSiteBackupVo.java | 87 + .../model/BatchSiteFileServerRestoreVo.java | 115 ++ .../model/BatchSiteSelfRestoreVo.java | 88 + .../model/FileServerGlobalBackupVo.java | 131 ++ .../model/FileServerGlobalRestoreVo.java | 132 ++ .../model/FileServerOpenApiVo.java | 182 ++ .../model/FileServerSiteBackupVo.java | 140 ++ .../model/FileServerSiteRestoreVo.java | 106 ++ .../model/HistoryRetentionOpenApiVo.java | 351 ++++ .../ModifyHistoryRetentionOpenApiVo.java | 303 ++++ ...tionResponseHistoryRetentionOpenApiVo.java | 128 ++ .../model/OperationResponseWithoutResult.java | 101 ++ .../maintenance/model/RestoreResultVo.java | 76 + .../maintenance/model/SelfGlobalBackupVo.java | 78 + .../model/SelfGlobalRestoreVo.java | 78 + .../maintenance/model/SelfSiteRestoreVo.java | 106 ++ .../omada/api/monitor/OmadaDashboardApi.java | 468 +++++ .../omada/api/monitor/model/ActiveDevice.java | 201 ++ .../api/monitor/model/ApChannelStat.java | 153 ++ .../api/monitor/model/ApChannelStats.java | 159 ++ .../api/monitor/model/ApInterference.java | 178 ++ .../api/monitor/model/ApInterferences.java | 194 ++ .../api/monitor/model/BatchEditTabs.java | 89 + .../api/monitor/model/BatchUpdateTab.java | 115 ++ .../wfc/omada/api/monitor/model/CpuUsage.java | 201 ++ .../api/monitor/model/CreateTabOpenApiVo.java | 77 + .../api/monitor/model/DashboardVpnStats.java | 201 ++ .../monitor/model/DeviceTrafficActivity.java | 128 ++ .../model/DeviceTrafficDistribution.java | 153 ++ .../org/wfc/omada/api/monitor/model/Drop.java | 128 ++ .../wfc/omada/api/monitor/model/DropEap.java | 241 +++ .../monitor/model/GetDashboardOverview.java | 526 ++++++ .../api/monitor/model/IpsecVpnStats.java | 276 +++ .../wfc/omada/api/monitor/model/IspLoad.java | 139 ++ .../omada/api/monitor/model/IspLoadStat.java | 128 ++ .../wfc/omada/api/monitor/model/ListTabs.java | 163 ++ .../wfc/omada/api/monitor/model/MemUsage.java | 201 ++ .../OperationResponseApChannelStats.java | 128 ++ .../OperationResponseApInterferences.java | 128 ++ ...OperationResponseGetDashboardOverview.java | 128 ++ .../OperationResponseListActiveDevice.java | 139 ++ .../model/OperationResponseListCpuUsage.java | 139 ++ ...perationResponseListDashboardVpnStats.java | 139 ++ .../OperationResponseListIpsecVpnStats.java | 139 ++ .../model/OperationResponseListIspLoad.java | 139 ++ .../model/OperationResponseListListTabs.java | 139 ++ .../model/OperationResponseListMemUsage.java | 139 ++ .../model/OperationResponseListPoeUsage.java | 139 ++ .../model/OperationResponseRetryDropRate.java | 128 ++ .../model/OperationResponseSwitchSummary.java | 128 ++ .../OperationResponseTrafficActivities.java | 128 ++ .../OperationResponseTrafficDistribution.java | 128 ++ .../model/OperationResponseWifiSummary.java | 128 ++ .../model/OperationResponseWithoutResult.java | 101 ++ .../wfc/omada/api/monitor/model/PoeUsage.java | 239 +++ .../wfc/omada/api/monitor/model/PortPoe.java | 178 ++ .../wfc/omada/api/monitor/model/Retry.java | 128 ++ .../api/monitor/model/RetryDropRate.java | 124 ++ .../wfc/omada/api/monitor/model/RetryEap.java | 241 +++ .../api/monitor/model/SwitchSummary.java | 151 ++ .../api/monitor/model/TrafficActivities.java | 124 ++ .../monitor/model/TrafficDistribution.java | 124 ++ .../api/monitor/model/UpdateTabOpenApiVo.java | 101 ++ .../omada/api/monitor/model/WifiSummary.java | 151 ++ .../wfc/omada/api/msp/OmadaCustomerApi.java | 140 ++ .../api/msp/OmadaMspBatchOpenApiApi.java | 45 + .../wfc/omada/api/msp/OmadaMspDeviceApi.java | 91 + .../msp/OmadaMspHistoryDataRetentionApi.java | 62 + .../wfc/omada/api/msp/OmadaMspLicenseApi.java | 159 ++ .../org/wfc/omada/api/msp/OmadaMspLogApi.java | 178 ++ .../wfc/omada/api/msp/OmadaMspSettingApi.java | 98 + .../wfc/omada/api/msp/OmadaMspSiteApi.java | 67 + .../org/wfc/omada/api/msp/OmadaMspSsoApi.java | 201 ++ .../omada/api/msp/OmadaMspUserAndRoleApi.java | 239 +++ .../api/msp/OmadaMspWebhookSettingApi.java | 143 ++ .../AuditLogNotificationEditOpenApiVo.java | 106 ++ .../model/AuditLogNotificationOpenApiVo.java | 128 ++ ...itLogNotificationSettingEditOpenApiVo.java | 115 ++ .../AuditLogNotificationSettingOpenApiVo.java | 115 ++ .../api/msp/model/AuditLogOpenApiVo.java | 329 ++++ .../api/msp/model/BatchRequestEntity.java | 114 ++ .../api/msp/model/BatchResponseEntity.java | 89 + .../api/msp/model/ControllerRoleDetailVo.java | 203 +++ .../omada/api/msp/model/ControllerRoleVo.java | 953 ++++++++++ .../api/msp/model/CreateCustomerOmadacVo.java | 76 + .../omada/api/msp/model/CreateMspUserVo.java | 295 +++ .../api/msp/model/CreateRoleResultVo.java | 76 + .../api/msp/model/CreateUserResultVo.java | 76 + .../api/msp/model/CustomerInfoOpenApiVo.java | 126 ++ .../api/msp/model/CustomerOpenApiVo.java | 102 ++ .../wfc/omada/api/msp/model/DeleteUserVo.java | 76 + .../org/wfc/omada/api/msp/model/DstDto.java | 356 ++++ .../wfc/omada/api/msp/model/DstTimeDto.java | 184 ++ .../api/msp/model/DstTimeOpenApiDto.java | 184 ++ .../msp/model/GridVoAuditLogOpenApiVo.java | 164 ++ .../model/GridVoCustomerInfoOpenApiVo.java | 164 ++ .../GridVoIdpMetadataDetailOpenApiVo.java | 164 ++ .../GridVoMspExternalUserDetailOpenApiVo.java | 164 ++ ...VoMspExternalUserGroupDetailOpenApiVo.java | 164 ++ .../model/GridVoMspKnownDeviceOpenApiVo.java | 164 ++ .../GridVoMspUnknownDeviceOpenApiVo.java | 164 ++ .../api/msp/model/GridVoMspUserDetailVo.java | 164 ++ .../GridVoOpenApiWebhookDispatchLogVo.java | 164 ++ .../api/msp/model/GridVoSiteSummaryInfo.java | 164 ++ .../GridVoUsedLicenseDetailOpenApiVo.java | 164 ++ .../msp/model/HistoryRetentionOpenApiVo.java | 351 ++++ .../msp/model/IdpMetadataDetailOpenApiVo.java | 251 +++ .../api/msp/model/IdpMetadataOpenApiVo.java | 182 ++ .../msp/model/LicenseAssignmentOpenApiVo.java | 141 ++ .../msp/model/LicenseAutoActiveOpenApiVo.java | 78 + .../LicenseAvailableAssignOpenApiVo.java | 89 + .../LicenseAvailableRecycleOpenApiVo.java | 89 + .../LicenseCategoryOtherIdsOpenApiVo.java | 142 ++ .../api/msp/model/LicenseNumOpenApiVo.java | 211 +++ .../msp/model/LicenseOthersIdsOpenApiVo.java | 184 ++ .../msp/model/LicenseRecycleOpenApiVo.java | 141 ++ .../api/msp/model/LogAlertEmailOpenApiVo.java | 128 ++ .../model/LogNotificationEditOpenApiV2Vo.java | 157 ++ .../model/LogNotificationEditOpenApiVo.java | 183 ++ .../msp/model/LogNotificationOpenApiVo.java | 203 +++ ...LogNotificationSettingEditOpenApiV2Vo.java | 202 +++ .../LogNotificationSettingEditOpenApiVo.java | 140 ++ .../LogNotificationSettingOpenApiVo.java | 141 ++ .../wfc/omada/api/msp/model/ModifyDstDto.java | 156 ++ .../ModifyHistoryRetentionOpenApiVo.java | 303 ++++ .../ModifyMspGeneralSettingOpenApiVo.java | 129 ++ .../omada/api/msp/model/ModifyMspRoleVo.java | 107 ++ .../omada/api/msp/model/ModifyMspUserVo.java | 294 +++ .../wfc/omada/api/msp/model/ModifyRoleVo.java | 106 ++ .../model/MspExternalUserDetailOpenApiVo.java | 278 +++ .../MspExternalUserGroupDetailOpenApiVo.java | 314 ++++ .../model/MspExternalUserGroupOpenApiVo.java | 194 ++ .../msp/model/MspGeneralSettingOpenApiVo.java | 129 ++ .../msp/model/MspKnownDeviceOpenApiVo.java | 538 ++++++ .../api/msp/model/MspPrivilegeOpenApiVo.java | 115 ++ .../omada/api/msp/model/MspRoleDetailVo.java | 153 ++ .../wfc/omada/api/msp/model/MspRoleVo.java | 478 +++++ .../msp/model/MspUiInterfaceOpenApiVo.java | 382 ++++ .../msp/model/MspUnknownDeviceOpenApiVo.java | 301 +++ .../omada/api/msp/model/MspUserDetailVo.java | 363 ++++ .../api/msp/model/OmadacInfoOpenApiVo.java | 104 ++ .../msp/model/OpenApiDispatchLogDetailVo.java | 128 ++ .../model/OpenApiWebhookAttemptMessageVo.java | 128 ++ .../model/OpenApiWebhookDispatchLogVo.java | 141 ++ .../msp/model/OpenApiWebhookLogMessageVo.java | 130 ++ .../msp/model/OpenApiWebhookMessageVo.java | 103 ++ .../msp/model/OpenApiWebhookSettingAddVo.java | 189 ++ .../model/OpenApiWebhookSettingEditVo.java | 163 ++ .../model/OpenApiWebhookSettingTestVo.java | 163 ++ .../api/msp/model/OperationResponse.java | 130 ++ ...eAuditLogNotificationSettingOpenApiVo.java | 128 ++ .../OperationResponseBatchResponseEntity.java | 128 ++ ...erationResponseCreateCustomerOmadacVo.java | 128 ++ .../OperationResponseCreateRoleResultVo.java | 128 ++ .../OperationResponseCreateUserResultVo.java | 128 ++ ...perationResponseCustomerInfoOpenApiVo.java | 128 ++ ...rationResponseGridVoAuditLogOpenApiVo.java | 128 ++ ...onResponseGridVoCustomerInfoOpenApiVo.java | 128 ++ ...ponseGridVoIdpMetadataDetailOpenApiVo.java | 128 ++ ...eGridVoMspExternalUserDetailOpenApiVo.java | 128 ++ ...VoMspExternalUserGroupDetailOpenApiVo.java | 128 ++ ...ResponseGridVoMspKnownDeviceOpenApiVo.java | 128 ++ ...sponseGridVoMspUnknownDeviceOpenApiVo.java | 128 ++ ...perationResponseGridVoMspUserDetailVo.java | 128 ++ ...onseGridVoOpenApiWebhookDispatchLogVo.java | 128 ++ ...perationResponseGridVoSiteSummaryInfo.java | 128 ++ ...tionResponseHistoryRetentionOpenApiVo.java | 128 ++ ...ionResponseLicenseAutoActiveOpenApiVo.java | 128 ++ ...ionResponseListControllerRoleDetailVo.java | 139 ++ ...tionResponseListCustomerInfoOpenApiVo.java | 139 ++ .../OperationResponseListMspRoleDetailVo.java | 139 ++ ...OperationResponseListTagRespOpenApiVo.java | 139 ++ .../OperationResponseListWebhookSetting.java | 139 ++ ...sponseLogNotificationSettingOpenApiVo.java | 128 ++ ...ionResponseMspGeneralSettingOpenApiVo.java | 128 ++ .../OperationResponseMspRoleDetailVo.java | 128 ++ ...rationResponseMspUiInterfaceOpenApiVo.java | 128 ++ .../OperationResponseMspUserDetailVo.java | 128 ++ .../msp/model/OperationResponseObject.java | 128 ++ .../model/OperationResponseResponseIdVo.java | 128 ++ .../model/OperationResponseWithoutResult.java | 101 ++ .../api/msp/model/RequestActionEntity.java | 156 ++ .../wfc/omada/api/msp/model/ResponseIdVo.java | 76 + .../org/wfc/omada/api/msp/model/RoleVo.java | 1378 ++++++++++++++ .../omada/api/msp/model/SiteSummaryInfo.java | 563 ++++++ .../org/wfc/omada/api/msp/model/SiteTag.java | 102 ++ .../omada/api/msp/model/TagRespOpenApiVo.java | 101 ++ .../msp/model/UsedLicenseDetailOpenApiVo.java | 101 ++ .../msp/model/WebhookConfigEditOpenApiVo.java | 105 ++ .../api/msp/model/WebhookConfigOpenApiVo.java | 103 ++ .../omada/api/msp/model/WebhookSetting.java | 263 +++ .../omada/api/organization/OmadaSiteApi.java | 350 ++++ .../organization/OmadaSiteTemplateApi.java | 387 ++++ .../model/BatchBindDeviceOpenApiVo.java | 90 + .../model/BatchBindDeviceResultOpenApiVo.java | 124 ++ .../model/BatchCopySiteTemplateOpenApiVo.java | 115 ++ .../organization/model/BatchSiteCopyVo.java | 130 ++ .../organization/model/BatchSiteImportVo.java | 115 ++ .../model/BatchSyncSitesOpenApiVo.java | 87 + .../organization/model/BatchUnbindSites.java | 87 + .../model/BindSiteBriefOpenApiVo.java | 163 ++ .../organization/model/BindSiteOpenApiVo.java | 116 ++ .../organization/model/CopySiteResultVo.java | 76 + .../CopySiteTemplateOpenApiResultVo.java | 139 ++ .../model/CopySiteTemplateOpenApiVo.java | 79 + .../model/CreateSiteByTemplate.java | 346 ++++ .../organization/model/CreateSiteEntity.java | 371 ++++ .../model/CreateSiteTagOpenApiVo.java | 77 + .../model/CreateSiteTemplateEntity.java | 116 ++ .../model/DeleteSiteTagOpenApiVo.java | 78 + .../model/DeviceAccountSettingOpenApiVo.java | 105 ++ .../model/DeviceBindBriefOpenApiVo.java | 104 ++ .../model/DeviceBindOpenApiVo.java | 103 ++ .../model/DeviceBindResultOpenApiVo.java | 153 ++ .../model/DeviceTemplateBriefOpenApiVo.java | 151 ++ .../omada/api/organization/model/DstDto.java | 356 ++++ .../api/organization/model/DstTimeDto.java | 184 ++ .../organization/model/DstTimeOpenApiDto.java | 184 ++ .../model/FileServerOpenApiVo.java | 182 ++ .../model/GridVoDeviceBindOpenApiVo.java | 164 ++ .../GridVoDeviceTemplateBriefOpenApiVo.java | 164 ++ .../model/GridVoSiteSummaryInfo.java | 164 ++ .../model/GridVoSiteTemplateSummaryVo.java | 164 ++ .../api/organization/model/ModifyDstDto.java | 156 ++ .../api/organization/model/NtpServer.java | 79 + ...esponseBatchBindDeviceResultOpenApiVo.java | 128 ++ ...erationResponseBindSiteBriefOpenApiVo.java | 128 ++ ...sponseCopySiteTemplateOpenApiResultVo.java | 128 ++ ...ResponseDeviceAccountSettingOpenApiVo.java | 128 ++ ...tionResponseGridVoDeviceBindOpenApiVo.java | 128 ++ ...nseGridVoDeviceTemplateBriefOpenApiVo.java | 128 ++ ...perationResponseGridVoSiteSummaryInfo.java | 128 ++ ...onResponseGridVoSiteTemplateSummaryVo.java | 128 ++ .../model/OperationResponseListString.java | 138 ++ .../model/OperationResponseObject.java | 128 ++ .../model/OperationResponseSiteEntity.java | 128 ++ .../model/OperationResponseSiteResultVo.java | 128 ++ ...ionResponseSiteTemplateBriefOpenApiVo.java | 128 ++ ...nResponseSiteTemplateModulesOpenApiVo.java | 128 ++ .../model/OperationResponseWithoutResult.java | 101 ++ .../api/organization/model/Scenario.java | 79 + .../organization/model/SiteCopyResultVo.java | 128 ++ .../api/organization/model/SiteEntity.java | 449 +++++ .../model/SiteImportOpenApiVo.java | 131 ++ .../api/organization/model/SiteResultVo.java | 88 + .../organization/model/SiteSummaryInfo.java | 365 ++++ .../omada/api/organization/model/SiteTag.java | 102 ++ .../model/SiteTemplateBriefOpenApiVo.java | 189 ++ .../model/SiteTemplateModulesOpenApiVo.java | 88 + .../model/SiteTemplateSummaryVo.java | 238 +++ .../model/UpdateSiteByTemplate.java | 79 + .../organization/model/UpdateSiteEntity.java | 405 +++++ .../omada/api/sitesetting/OmadaAclApi.java | 360 ++++ .../OmadaApplicationControlApi.java | 367 ++++ .../sitesetting/OmadaAttackDefenseApi.java | 81 + .../sitesetting/OmadaAuthenticationApi.java | 352 ++++ .../sitesetting/OmadaBandwidthControlApi.java | 164 ++ .../api/sitesetting/OmadaFirewallApi.java | 81 + .../api/sitesetting/OmadaGatewayQoSApi.java | 280 +++ .../omada/api/sitesetting/OmadaIdsIpsApi.java | 242 +++ .../api/sitesetting/OmadaIpMacBindingApi.java | 164 ++ .../api/sitesetting/OmadaMacFilteringApi.java | 163 ++ .../omada/api/sitesetting/OmadaNatApi.java | 222 +++ .../api/sitesetting/OmadaOuiBasedVlanApi.java | 206 +++ .../api/sitesetting/OmadaProfilesApi.java | 994 ++++++++++ .../api/sitesetting/OmadaRoutingApi.java | 222 +++ .../api/sitesetting/OmadaScheduleApi.java | 372 ++++ .../api/sitesetting/OmadaServiceApi.java | 521 ++++++ .../api/sitesetting/OmadaSessionLimitApi.java | 164 ++ .../omada/api/sitesetting/OmadaSimApi.java | 84 + .../OmadaSiteConfigurationApi.java | 368 ++++ .../omada/api/sitesetting/OmadaSslVpnApi.java | 461 +++++ .../api/sitesetting/OmadaUrlFilteringApi.java | 202 +++ .../omada/api/sitesetting/OmadaVoIpApi.java | 933 ++++++++++ .../omada/api/sitesetting/OmadaVpnApi.java | 549 ++++++ .../api/sitesetting/OmadaWiredNetworkApi.java | 752 ++++++++ .../api/sitesetting/OmadaWireguardVpnApi.java | 221 +++ .../sitesetting/OmadaWirelessIdsIpsApi.java | 102 ++ .../sitesetting/OmadaWirelessNetworkApi.java | 341 ++++ .../model/AddCallForwardingRuleResp.java | 76 + .../sitesetting/model/AddFilterEntity.java | 140 ++ .../api/sitesetting/model/AddRuleEntity.java | 217 +++ .../model/AdvertisementSetting.java | 192 ++ .../AdvertisementSettingResOpenApiVo.java | 191 ++ .../model/AirtimeFairnessSettingVo.java | 132 ++ .../api/sitesetting/model/AlgSetting.java | 182 ++ .../model/ApMdnsRuleOpenApiVo.java | 107 ++ .../api/sitesetting/model/ApnProfile.java | 282 +++ .../sitesetting/model/ApnProfileConfig.java | 232 +++ .../sitesetting/model/ApplicationEntity.java | 153 ++ .../model/AttackDefenseSetting.java | 618 +++++++ .../sitesetting/model/AuthTimeOpenApiVo.java | 130 ++ .../sitesetting/model/AuthTimeoutSetting.java | 103 ++ .../model/AutoConfigOpenApiVo.java | 106 ++ .../api/sitesetting/model/BandCtrlEntity.java | 206 +++ .../model/BandSteeringMultiBandVo.java | 80 + .../sitesetting/model/BandwidthControl.java | 166 ++ .../model/BandwidthControlRule.java | 377 ++++ .../model/BandwidthPortSetting.java | 155 ++ .../model/BaseScheduleTimeOpenApiVo.java | 207 +++ ...chModifyVoipDeviceConfigurationEntity.java | 253 +++ .../BatchModifyVoipDeviceSettingEntity.java | 165 ++ .../model/BatchSelectIpMacBindingId.java | 88 + .../sitesetting/model/BeaconControlVo.java | 435 +++++ .../api/sitesetting/model/BindNumberList.java | 88 + .../model/BonjourServiceDetailOpenApiVo.java | 163 ++ .../model/BonjourServiceOpenApiVo.java | 115 ++ .../api/sitesetting/model/BookOpenApiVo.java | 103 ++ .../model/CallBlockingProfileEntity.java | 254 +++ .../sitesetting/model/CallForwardingRule.java | 370 ++++ .../model/CallForwardingRulesGrid.java | 268 +++ .../model/CallLogDeviceOpenApiVo.java | 178 ++ .../model/CallLogGridVoVoipCallLog.java | 190 ++ .../sitesetting/model/CallLogStatisticVo.java | 201 ++ .../model/ChannelLimitSettingVo.java | 80 + .../model/CheckWanLanStatusOpenApiVo.java | 258 +++ .../model/ClassRuleDetailOpenApiVo.java | 251 +++ .../sitesetting/model/ClassRuleOpenApiVo.java | 234 +++ .../model/ClearDpiDataRequest.java | 104 ++ .../model/ClientToSiteVpnClient.java | 646 +++++++ .../model/ClientToSiteVpnServer.java | 688 +++++++ .../model/ConfirmBindedDevicesEntity.java | 113 ++ .../sitesetting/model/CorrectSimQuota.java | 101 ++ .../CreateCallBlockingProfileEntity.java | 182 ++ .../model/CreateDdnsOpenApiVo.java | 260 +++ .../model/CreateDhcpReservationOpenApiVo.java | 207 +++ .../model/CreateDigitMapProfileEntity.java | 105 ++ .../model/CreateGroupOpenApiVo.java | 401 ++++ .../model/CreateLdapProfileOpenApiVo.java | 361 ++++ .../model/CreateMacAddressOpenApiVo.java | 106 ++ .../model/CreateMdnsRuleOpenApiVo.java | 216 +++ .../model/CreateProviderProfileEntity.java | 107 ++ .../model/CreateRadiusProfileOpenApiVo.java | 302 ++++ .../model/CreateRadiusUserOpenApiVo.java | 280 +++ .../CreateRateLimitProfileOpenApiVo.java | 181 ++ .../model/CreateSsidOpenApiVo.java | 467 +++++ .../CreateTimeRangeProfileOpenApiVo.java | 167 ++ .../api/sitesetting/model/CreateVlaNs.java | 259 +++ .../model/CreateWlanGroupOpenApiVo.java | 130 ++ .../model/CustomDayModeOpenApiVo.java | 236 +++ .../sitesetting/model/CustomDhcpOptions.java | 128 ++ .../CustomRateLimitSettingOpenApiVo.java | 206 +++ .../model/DdnsIntervalOpenApiVo.java | 103 ++ .../api/sitesetting/model/DdnsOpenApiVo.java | 301 +++ .../DeleteCallBlockingProfileEntity.java | 104 ++ .../model/DeleteCallForwardingRules.java | 88 + .../model/DeleteDigitMapProfileEntity.java | 104 ++ .../model/DeleteTelephoneNumber.java | 78 + .../sitesetting/model/DeviceOpenApiVo.java | 78 + .../model/DeviceOuiModeOpenApiVo.java | 151 ++ .../model/DeviceOuiModeQueryOpenApiVo.java | 211 +++ .../api/sitesetting/model/DevicePoePorts.java | 115 ++ .../api/sitesetting/model/DevicePorts.java | 115 ++ .../model/DeviceTelephoneNumber.java | 139 ++ .../sitesetting/model/DhcpL2RelayEntity.java | 103 ++ .../sitesetting/model/DhcpRangeOpenApiVo.java | 104 ++ .../model/DhcpReservationOpenApiVo.java | 277 +++ .../sitesetting/model/DhcpServersSetting.java | 131 ++ .../sitesetting/model/DhcpSettingConfig.java | 277 +++ .../sitesetting/model/DhcpSettingInfo.java | 327 ++++ .../api/sitesetting/model/DhcpSettings.java | 442 +++++ .../model/Dhcpv6ServersSetting.java | 131 ++ .../api/sitesetting/model/Dhcpv6Setting.java | 253 +++ .../model/DialupSettingOpenApiVo.java | 181 ++ .../model/DigitMapProfileInfo.java | 201 ++ .../sitesetting/model/DndSettingEntity.java | 203 +++ .../sitesetting/model/DnsConfigOpenApiVo.java | 105 ++ .../model/DnsProxySettingOpenApiVo.java | 182 ++ .../model/DnsSecSettingOpenApiVo.java | 115 ++ .../model/DohCustomizedServerOpenApiVo.java | 133 ++ .../model/DohSettingOpenApiVo.java | 125 ++ .../sitesetting/model/DomainOpenApiVo.java | 131 ++ .../model/Dot1xEapInfoOpenApiVo.java | 239 +++ .../sitesetting/model/Dot1xEapOpenApiVo.java | 166 ++ .../model/Dot1xEapPortInfoOpenApiVo.java | 128 ++ .../model/Dot1xEapSettingOpenApiVo.java | 152 ++ .../model/Dot1xPortInfoOpenApiVo.java | 153 ++ .../model/Dot1xSwitchInfoOpenApiVo.java | 264 +++ .../model/Dot1xSwitchOpenApiVo.java | 266 +++ .../model/Dot1xSwitchSettingOpenApiVo.java | 152 ++ .../model/DotCustomizedServerOpenApiVo.java | 141 ++ .../model/DotSettingOpenApiVo.java | 125 ++ .../api/sitesetting/model/DpiSettings.java | 104 ++ .../model/DragSortIndexOpenapiVo.java | 115 ++ .../api/sitesetting/model/EapAclConfig.java | 284 +++ .../api/sitesetting/model/EapAclInfo.java | 334 ++++ .../sitesetting/model/EditFilterEntity.java | 139 ++ .../api/sitesetting/model/EditRuleEntity.java | 191 ++ .../model/ExportDhcpReservationOpenApiVo.java | 78 + .../model/ExternalRadiusSetting.java | 259 +++ .../ExternalRadiusSettingResOpenApiVo.java | 278 +++ .../model/ExternalServerPortalSetting.java | 181 ++ .../api/sitesetting/model/FamilyEntity.java | 126 ++ .../api/sitesetting/model/FilterEntity.java | 164 ++ .../sitesetting/model/FirewallSetting.java | 468 +++++ .../sitesetting/model/GatewayAclConfig.java | 414 +++++ .../model/GatewayAclConfigModeEntity.java | 78 + .../api/sitesetting/model/GatewayAclInfo.java | 463 +++++ .../model/GatewayAclStatesEntity.java | 153 ++ .../model/GatewayCustomAclAddEntity.java | 354 ++++ .../model/GatewayCustomAclInfoEntity.java | 403 +++++ .../model/GatewayCustomAclModifyEntity.java | 380 ++++ .../model/GatewayCustomAclUpdateEntity.java | 158 ++ .../model/GatewayDirectionEntity.java | 174 ++ .../GatewayQosServiceDetailOpenApiVo.java | 351 ++++ .../model/GatewayQosServiceOpenApiVo.java | 305 ++++ .../GatewayQosServiceSummaryOpenApiVo.java | 101 ++ .../model/GridVoApplicationEntity.java | 164 ++ .../model/GridVoBandwidthControlRule.java | 164 ++ .../model/GridVoClassRuleDetailOpenApiVo.java | 164 ++ .../model/GridVoDdnsOpenApiVo.java | 164 ++ .../model/GridVoDeviceTelephoneNumber.java | 164 ++ .../model/GridVoDhcpReservationOpenApiVo.java | 164 ++ .../sitesetting/model/GridVoEapAclInfo.java | 164 ++ .../sitesetting/model/GridVoFilterEntity.java | 164 ++ .../model/GridVoGatewayAclInfo.java | 164 ++ .../GridVoGatewayCustomAclInfoEntity.java | 164 ++ ...ridVoGatewayQosServiceDetailOpenApiVo.java | 164 ++ .../model/GridVoIpsBlockListEntry.java | 164 ++ .../model/GridVoIpsSignatureInfo.java | 164 ++ .../model/GridVoLanNetworkVlansOpenApiVo.java | 164 ++ .../model/GridVoLanProfileOpenApiVo.java | 164 ++ .../sitesetting/model/GridVoMacFiltering.java | 164 ++ .../model/GridVoMdnsRuleOpenApiVo.java | 164 ++ .../model/GridVoOswProfileOpenApiVo.java | 164 ++ .../model/GridVoOtoNatInfoOpenApiVo.java | 164 ++ .../GridVoOuiBasedVlanApQueryOpenApiVo.java | 164 ++ ...GridVoOuiBasedVlanSwitchInfoOpenApiVo.java | 164 ++ ...ridVoOuiBasedVlanSwitchQueryOpenApiVo.java | 164 ++ .../GridVoPoeScheduleQueryOpenApiVo.java | 164 ++ .../model/GridVoPolicyRoutingInfo.java | 164 ++ .../model/GridVoPortForwardingInfo.java | 164 ++ .../GridVoPortScheduleQueryOpenApiVo.java | 164 ++ .../model/GridVoProviderProfileEntity.java | 164 ++ .../model/GridVoQosBwcDetailOpenApiVo.java | 164 ++ .../GridVoQuerySessionLimitRuleOpenApiVo.java | 164 ++ .../model/GridVoRadiusUserOpenApiVo.java | 164 ++ .../model/GridVoRestrictionEntity.java | 164 ++ .../sitesetting/model/GridVoRuleEntity.java | 164 ++ .../model/GridVoSsidOpenApiVo.java | 164 ++ .../model/GridVoSslVpnResourceEntity.java | 164 ++ .../model/GridVoSslVpnResourceGroup.java | 164 ++ .../model/GridVoSslVpnUserGroupEntity.java | 164 ++ .../model/GridVoStaticRoutingInfo.java | 164 ++ .../model/GridVoSwitchAclInfo.java | 164 ++ .../model/GridVoUseProfileOswOpenApiVo.java | 164 ++ .../sitesetting/model/GridVoVoiceMail.java | 164 ++ .../sitesetting/model/GridVoVoipDevice.java | 164 ++ .../model/GridVoVoipTelephoneBookSetting.java | 164 ++ .../model/GridVoVpnUserResponse.java | 164 ++ .../model/GridVoWireguardDetailOpenApiVo.java | 164 ++ .../GridVoWireguardPeerDetailOpenApiVo.java | 164 ++ .../model/GridVoiPsecFailover.java | 164 ++ .../sitesetting/model/GridVoipMacBinding.java | 164 ++ .../model/GridVosslVpnLockEntity.java | 164 ++ .../api/sitesetting/model/GroupOpenApiVo.java | 506 ++++++ .../model/HotspotRadiusSetting.java | 211 +++ .../HotspotRadiusSettingResOpenApiVo.java | 230 +++ .../api/sitesetting/model/HotspotSetting.java | 89 + .../api/sitesetting/model/IPsecFailover.java | 215 +++ .../model/IPv6SubnetsOpenApiVo.java | 132 ++ .../api/sitesetting/model/IgmpOpenApiVo.java | 154 ++ .../model/ImportedPortalPageOpenApiVo.java | 80 + .../model/ImportedPortalPageResOpenApiVo.java | 101 ++ .../model/IncomingCallsBlockingVo.java | 124 ++ .../api/sitesetting/model/InlineObject.java | 79 + .../api/sitesetting/model/InlineObject1.java | 79 + .../model/InternetBaseConfigOpenApiVo.java | 138 ++ .../model/InternetBaseInfoOpenApiVo.java | 166 ++ .../sitesetting/model/InternetBasicInfo.java | 153 ++ .../api/sitesetting/model/IpMacBinding.java | 233 +++ .../model/IpMacBindingGeneralSetting.java | 224 +++ .../sitesetting/model/IpSubnetsOpenApiVo.java | 132 ++ .../api/sitesetting/model/IpSubnetsVo.java | 129 ++ .../sitesetting/model/IpsBlockListEntry.java | 176 ++ .../omada/api/sitesetting/model/IpsInfo.java | 217 +++ .../sitesetting/model/IpsSignatureConfig.java | 181 ++ .../sitesetting/model/IpsSignatureInfo.java | 311 ++++ .../model/IptvConfigOpenApiVo.java | 218 +++ .../model/IptvCustomOpenApiVo.java | 158 ++ .../sitesetting/model/IptvDslOpenApiVo.java | 180 ++ .../api/sitesetting/model/IptvOpenApiVo.java | 218 +++ .../model/IptvPortConfigOpenApiVo.java | 106 ++ .../sitesetting/model/IptvPortOpenApiVo.java | 129 ++ .../model/Ipv4Connection2OpenApiVo.java | 229 +++ .../sitesetting/model/Ipv4DhcpOpenApiVo.java | 219 +++ .../sitesetting/model/Ipv4IpoaOpenApiVo.java | 246 +++ .../sitesetting/model/Ipv4L2tpOpenApiVo.java | 388 ++++ .../sitesetting/model/Ipv4PppoaOpenApiVo.java | 412 +++++ .../sitesetting/model/Ipv4PppoeOpenApiVo.java | 440 +++++ .../sitesetting/model/Ipv4PptpOpenApiVo.java | 388 ++++ .../model/Ipv4StaticOpenApiVo.java | 246 +++ .../model/Ipv6DynamicOpenApiVo.java | 207 +++ .../sitesetting/model/Ipv6PppoeOpenApiVo.java | 310 ++++ .../model/Ipv6StaticOpenApiVo.java | 184 ++ .../model/Ipv6TunnelOpenApiVo.java | 106 ++ .../api/sitesetting/model/IspOpenApiVo.java | 106 ++ .../sitesetting/model/LagInfoOpenApiVo.java | 140 ++ .../model/LanNetworkIpv6Config.java | 237 +++ ...OpenApiGridVoLanNetworkQueryOpenApiVo.java | 239 +++ ...ApiV2GridVoLanNetworkQueryOpenApiV2Vo.java | 264 +++ .../model/LanNetworkOpenApiV2Vo.java | 499 +++++ .../model/LanNetworkOpenApiVo.java | 499 +++++ .../model/LanNetworkProtoPassThroughMode.java | 78 + ...laacStatelessDhcpModeOrSlaacRdnssMode.java | 228 +++ .../model/LanNetworkQueryOpenApiV2Vo.java | 674 +++++++ .../model/LanNetworkQueryOpenApiVo.java | 674 +++++++ .../model/LanNetworkVlansOpenApiVo.java | 101 ++ .../model/LanProfileConfigOpenApiVo.java | 537 ++++++ .../model/LanProfileOpenApiVo.java | 660 +++++++ .../model/LdapProfileOpenApiVo.java | 376 ++++ .../api/sitesetting/model/LdapSetting.java | 157 ++ .../model/LdapSettingOpenApiVo.java | 106 ++ .../model/LocationAndIspInfoOpenApiVo.java | 89 + .../sitesetting/model/LocationOpenApiVo.java | 144 ++ .../model/LockSettingOpenApiVo.java | 130 ++ .../LteWanPortSettingConfigOpenApiVo.java | 270 +++ .../model/LteWanPortSettingOpenApiVo.java | 356 ++++ .../model/LteWanSettingOpenApiVo.java | 89 + .../model/MacAddressOpenApiVo.java | 128 ++ .../sitesetting/model/MacAuthOpenApiVo.java | 239 +++ .../api/sitesetting/model/MacFiltering.java | 223 +++ .../model/MacFilteringGeneralSetting.java | 130 ++ .../model/ManuallyConfigOpenApiVo.java | 155 ++ .../model/McastRateLimitSettingVo.java | 476 +++++ .../sitesetting/model/MdnsRuleOpenApiVo.java | 240 +++ .../api/sitesetting/model/MeshSettingVo.java | 181 ++ .../ModifyCallBlockingProfileEntity.java | 180 ++ .../model/ModifyConfirmResultOpenApiVo.java | 76 + .../model/ModifyDigitMapProfileEntity.java | 102 ++ .../model/ModifyIpsAllowListEntry.java | 204 +++ .../model/ModifyProviderProfileEntity.java | 104 ++ .../model/ModifyProviderSettingOpenApiVo.java | 180 ++ .../ModifyVoipDeviceApSettingEntity.java | 131 ++ .../ModifyVoipDeviceOsgSettingEntity.java | 131 ++ .../model/NewIpsAllowListEntry.java | 177 ++ .../api/sitesetting/model/NoAuthSetting.java | 80 + .../sitesetting/model/NumberOpenApiVo.java | 103 ++ .../model/NumberRegistrationResult.java | 89 + ...tionResponseAddCallForwardingRuleResp.java | 128 ++ .../model/OperationResponseAlgSetting.java | 128 ++ ...OperationResponseAttackDefenseSetting.java | 128 ++ .../OperationResponseBandwidthControl.java | 128 ++ ...rationResponseCallForwardingRulesGrid.java | 128 ++ ...ationResponseCallLogGridVoVoipCallLog.java | 128 ++ ...perationResponseClientToSiteVpnClient.java | 128 ++ ...perationResponseClientToSiteVpnServer.java | 128 ++ .../OperationResponseDndSettingEntity.java | 128 ++ ...ationResponseDnsProxySettingOpenApiVo.java | 128 ++ .../OperationResponseDot1xEapOpenApiVo.java | 128 ++ ...OperationResponseDot1xSwitchOpenApiVo.java | 128 ++ .../model/OperationResponseDpiSettings.java | 128 ++ .../model/OperationResponseFilterEntity.java | 128 ++ .../OperationResponseFirewallSetting.java | 128 ++ ...ionResponseGatewayAclConfigModeEntity.java | 128 ++ ...rationResponseGridVoApplicationEntity.java | 128 ++ ...ionResponseGridVoBandwidthControlRule.java | 128 ++ ...esponseGridVoClassRuleDetailOpenApiVo.java | 128 ++ .../OperationResponseGridVoDdnsOpenApiVo.java | 128 ++ ...onResponseGridVoDeviceTelephoneNumber.java | 128 ++ ...esponseGridVoDhcpReservationOpenApiVo.java | 128 ++ .../OperationResponseGridVoEapAclInfo.java | 128 ++ .../OperationResponseGridVoFilterEntity.java | 128 ++ ...OperationResponseGridVoGatewayAclInfo.java | 128 ++ ...ponseGridVoGatewayCustomAclInfoEntity.java | 128 ++ ...ridVoGatewayQosServiceDetailOpenApiVo.java | 128 ++ ...rationResponseGridVoIpsBlockListEntry.java | 128 ++ ...erationResponseGridVoIpsSignatureInfo.java | 128 ++ ...tionResponseGridVoLanProfileOpenApiVo.java | 128 ++ .../OperationResponseGridVoMacFiltering.java | 128 ++ ...rationResponseGridVoMdnsRuleOpenApiVo.java | 128 ++ ...tionResponseGridVoOtoNatInfoOpenApiVo.java | 128 ++ ...nseGridVoOuiBasedVlanApQueryOpenApiVo.java | 128 ++ ...GridVoOuiBasedVlanSwitchInfoOpenApiVo.java | 128 ++ ...ridVoOuiBasedVlanSwitchQueryOpenApiVo.java | 128 ++ ...sponseGridVoPoeScheduleQueryOpenApiVo.java | 128 ++ ...rationResponseGridVoPolicyRoutingInfo.java | 128 ++ ...ationResponseGridVoPortForwardingInfo.java | 128 ++ ...ponseGridVoPortScheduleQueryOpenApiVo.java | 128 ++ ...onResponseGridVoProviderProfileEntity.java | 128 ++ ...onResponseGridVoQosBwcDetailOpenApiVo.java | 128 ++ ...eGridVoQuerySessionLimitRuleOpenApiVo.java | 128 ++ ...tionResponseGridVoRadiusUserOpenApiVo.java | 128 ++ ...rationResponseGridVoRestrictionEntity.java | 128 ++ .../OperationResponseGridVoRuleEntity.java | 128 ++ .../OperationResponseGridVoSsidOpenApiVo.java | 128 ++ ...ionResponseGridVoSslVpnResourceEntity.java | 128 ++ ...tionResponseGridVoSslVpnResourceGroup.java | 128 ++ ...onResponseGridVoSslVpnUserGroupEntity.java | 128 ++ ...rationResponseGridVoStaticRoutingInfo.java | 128 ++ .../OperationResponseGridVoSwitchAclInfo.java | 128 ++ ...nResponseGridVoUseProfileOswOpenApiVo.java | 128 ++ .../OperationResponseGridVoVoiceMail.java | 128 ++ .../OperationResponseGridVoVoipDevice.java | 128 ++ ...esponseGridVoVoipTelephoneBookSetting.java | 128 ++ ...perationResponseGridVoVpnUserResponse.java | 128 ++ ...esponseGridVoWireguardDetailOpenApiVo.java | 128 ++ ...nseGridVoWireguardPeerDetailOpenApiVo.java | 128 ++ .../OperationResponseGridVoiPsecFailover.java | 128 ++ .../OperationResponseGridVoipMacBinding.java | 128 ++ ...erationResponseGridVosslVpnLockEntity.java | 128 ++ .../model/OperationResponseIgmpOpenApiVo.java | 128 ++ ...esponseImportedPortalPageResOpenApiVo.java | 128 ++ ...tionResponseInternetBaseInfoOpenApiVo.java | 128 ++ ...ionResponseIpMacBindingGeneralSetting.java | 128 ++ .../model/OperationResponseIpsInfo.java | 128 ++ .../model/OperationResponseIptvOpenApiVo.java | 128 ++ ...OpenApiGridVoLanNetworkQueryOpenApiVo.java | 128 ++ ...ApiV2GridVoLanNetworkQueryOpenApiV2Vo.java | 128 ++ .../OperationResponseListApnProfile.java | 139 ++ ...ResponseListCallBlockingProfileEntity.java | 139 ++ ...tionResponseListClientToSiteVpnClient.java | 139 ++ ...tionResponseListClientToSiteVpnServer.java | 139 ++ ...rationResponseListDigitMapProfileInfo.java | 139 ++ ...tionResponseListDot1xEapInfoOpenApiVo.java | 139 ++ ...nResponseListDot1xSwitchInfoOpenApiVo.java | 139 ++ .../OperationResponseListFamilyEntity.java | 139 ++ .../OperationResponseListGroupOpenApiVo.java | 139 ++ ...ationResponseListLdapProfileOpenApiVo.java | 139 ++ ...esponseListOuiProfileSummaryOpenApiVo.java | 139 ++ .../OperationResponseListPoeDeviceDetail.java | 139 ++ ...OperationResponseListPortDeviceDetail.java | 139 ++ ...erationResponseListPortalResOpenApiVo.java | 139 ++ ...ationResponseListPpskProfileBriefInfo.java | 139 ++ ...nResponseListProfilesBindedDeviceInfo.java | 139 ++ ...ionResponseListRadiusProfileOpenApiVo.java | 139 ++ ...ResponseListRateLimitProfileOpenApiVo.java | 139 ++ ...ponseListRebootScheduleQueryOpenApiVo.java | 139 ++ ...onseListSimplifiedCallBlockingProfile.java | 139 ++ ...ResponseListSimplifiedDigitMapProfile.java | 139 ++ .../OperationResponseListSiteToSiteVpn.java | 139 ++ ...ResponseListTimeRangeProfileOpenApiVo.java | 139 ++ ...onseListUpgradeScheduleQueryOpenApiVo.java | 139 ++ .../OperationResponseListVpnUserResponse.java | 139 ++ ...erationResponseListWlanGroupOpenApiVo.java | 139 ++ ...rationResponseListWlanSimpleOpenApiVo.java | 139 ++ ...onResponseLocationAndIspInfoOpenApiVo.java | 128 ++ ...erationResponseLteWanSettingOpenApiVo.java | 128 ++ .../OperationResponseMacAuthOpenApiVo.java | 128 ++ ...ionResponseMacFilteringGeneralSetting.java | 128 ++ ...nResponseModifyConfirmResultOpenApiVo.java | 128 ++ ...ationResponseNumberRegistrationResult.java | 128 ++ .../model/OperationResponseObject.java | 128 ++ ...onseOuiGridVoOuiProfileQueryOpenApiVo.java | 128 ++ ...sePortalCustomizationPageResOpenApiVo.java | 128 ++ ...ationResponsePortalDetailResOpenApiVo.java | 128 ++ .../OperationResponsePortalPictureInfo.java | 128 ++ .../model/OperationResponsePpskProfileVo.java | 128 ++ .../OperationResponseResIdOpenApiVo.java | 128 ++ ...seDataVoBonjourServiceDetailOpenApiVo.java | 128 ++ ...taVoGatewayQosServiceSummaryOpenApiVo.java | 128 ++ ...ponseDataVoLanNetworkQueryOpenApiV2Vo.java | 128 ++ ...esponseDataVoLanNetworkQueryOpenApiVo.java | 128 ++ ...eResponseDataVoQosBwcWanInfoOpenApiVo.java | 128 ++ ...sponseDataVoWireguardSummaryOpenApiVo.java | 128 ++ .../model/OperationResponseResponseIdVo.java | 128 ++ .../OperationResponseRestrictionEntity.java | 128 ++ .../model/OperationResponseRuleEntity.java | 128 ++ .../OperationResponseSessionLimitEntity.java | 128 ++ .../OperationResponseSimQuotaSetting.java | 128 ++ ...rationResponseSiteBandSteeringSetting.java | 128 ++ ...ationResponseSiteBeaconControlSetting.java | 128 ++ ...rationResponseSiteChannelLimitSetting.java | 128 ++ .../OperationResponseSiteLedSetting.java | 128 ++ .../OperationResponseSiteLldpSetting.java | 128 ++ .../OperationResponseSiteMeshSetting.java | 128 ++ ...ResponseSiteMulticastRateLimitSetting.java | 128 ++ ...ationResponseSiteRemoteLoggingSetting.java | 128 ++ .../OperationResponseSiteRoamingSetting.java | 128 ++ .../model/OperationResponseSiteToSiteVpn.java | 128 ++ ...OperationResponseSnmpSettingOpenApiVo.java | 128 ++ .../model/OperationResponseSshSetting.java | 128 ++ .../OperationResponseSsidDetailOpenApiVo.java | 128 ++ .../OperationResponseSslVpnServerSetting.java | 128 ++ ...lVpnUserOpenApiGridVoSslVpnUserEntity.java | 128 ++ ...nResponseStaticRoutingInterfaceResult.java | 128 ++ ...onResponseSupportOsgModelOpenApiAppVo.java | 128 ++ ...perationResponseTagOutConfigOpenApiVo.java | 128 ++ ...OperationResponseUpnpSettingOpenApiVo.java | 128 ++ ...OperationResponseUrlCategoryOpenApiVo.java | 128 ++ ...ationResponseUrlFilterGlobalOpenApiVo.java | 128 ++ ...enApiGridVoQueryUrlFilteringOpenApiVo.java | 128 ++ .../OperationResponseUsbInfoListResponse.java | 128 ++ ...ResponseVirtualWanAvailablesOpenApiVo.java | 128 ++ ...nGridOpenApiVoVirtualWanInfoOpenApiVo.java | 128 ++ ...ationResponseVoiceMailSettingResponse.java | 128 ++ .../model/OperationResponseVoid.java | 128 ++ ...ationResponseVoipCallLogEnableSetting.java | 128 ++ ...ionResponseVoipEmergencyNumberSetting.java | 128 ++ .../model/OperationResponseVoipOpenApiVo.java | 128 ++ ...rationResponseWanLoadBalanceOpenApiVo.java | 128 ++ .../OperationResponseWanSettingOpenApiVo.java | 128 ++ .../OperationResponseWidsConfigOpenApiVo.java | 128 ++ .../OperationResponseWipsConfigOpenApiVo.java | 128 ++ ...perationResponseWireguardKeyOpenApiVo.java | 128 ++ .../model/OperationResponseWithoutResult.java | 101 ++ .../model/OsgMacFilterAddressOpenApiVo.java | 103 ++ .../model/OsgMdnsRuleOpenApiVo.java | 121 ++ .../model/OsgModelOpenApiInfoVo.java | 106 ++ .../sitesetting/model/OsgModelOpenApiVo.java | 78 + .../model/OswProfileOpenApiVo.java | 138 ++ .../model/OtoNatInfoOpenApiVo.java | 268 +++ .../sitesetting/model/OtoNatOpenApiVo.java | 243 +++ .../sitesetting/model/OuiAndDescription.java | 105 ++ .../model/OuiBasedVlanApOpenApiVo.java | 173 ++ .../model/OuiBasedVlanApQueryOpenApiVo.java | 200 ++ .../OuiBasedVlanSwitchInfoOpenApiVo.java | 214 +++ .../model/OuiBasedVlanSwitchOpenApiVo.java | 202 +++ .../OuiBasedVlanSwitchQueryOpenApiVo.java | 225 +++ .../OuiGridVoOuiProfileQueryOpenApiVo.java | 189 ++ .../model/OuiProfileOpenApiVo.java | 119 ++ .../model/OuiProfileQueryOpenApiVo.java | 169 ++ .../model/OuiProfileSummaryOpenApiVo.java | 104 ++ .../model/OutgoingCallsBlockingVo.java | 124 ++ .../sitesetting/model/PoeDeviceDetail.java | 353 ++++ .../model/PoeScheduleOpenApiVo.java | 195 ++ .../model/PoeScheduleQueryOpenApiVo.java | 268 +++ .../model/PolicyRoutingConfig.java | 434 +++++ .../PolicyRoutingDragSortIndexOpenApiVo.java | 87 + .../sitesetting/model/PolicyRoutingInfo.java | 484 +++++ .../sitesetting/model/PortDeviceDetail.java | 303 ++++ .../model/PortForwardingConfig.java | 362 ++++ .../sitesetting/model/PortForwardingInfo.java | 412 +++++ .../sitesetting/model/PortIpOpenApiVo.java | 104 ++ .../sitesetting/model/PortMaskOpenApiVo.java | 107 ++ .../model/PortScheduleOpenApiVo.java | 168 ++ .../model/PortScheduleQueryOpenApiVo.java | 268 +++ .../api/sitesetting/model/PortSettingVo.java | 204 +++ .../PortalCustomizationPageResOpenApiVo.java | 129 ++ .../model/PortalCustomizeOpenApiVo.java | 824 +++++++++ .../model/PortalCustomizeResOpenApiVo.java | 1094 +++++++++++ .../model/PortalDetailResOpenApiVo.java | 581 ++++++ .../sitesetting/model/PortalPictureInfo.java | 126 ++ .../sitesetting/model/PortalResOpenApiVo.java | 256 +++ .../api/sitesetting/model/PortalSetting.java | 643 +++++++ .../model/PpskAutoCreateSetting.java | 158 ++ .../api/sitesetting/model/PpskProfile.java | 143 ++ .../model/PpskProfileBriefInfo.java | 143 ++ .../api/sitesetting/model/PpskProfileV2.java | 245 +++ .../api/sitesetting/model/PpskProfileVo.java | 224 +++ .../api/sitesetting/model/PpskSetting.java | 157 ++ .../api/sitesetting/model/PpskSettingV2.java | 157 ++ .../model/ProfilesBindedDeviceInfo.java | 238 +++ .../model/ProviderProfileEntity.java | 178 ++ .../sitesetting/model/ProviderSettingVo.java | 182 ++ .../wfc/omada/api/sitesetting/model/Psk.java | 136 ++ .../omada/api/sitesetting/model/Pskvo.java | 161 ++ .../model/QosBwcDetailOpenApiVo.java | 313 ++++ .../model/QosBwcEditOpenApiVo.java | 268 +++ .../sitesetting/model/QosBwcOpenApiVo.java | 294 +++ .../model/QosBwcWanInfoOpenApiVo.java | 126 ++ .../model/QuerySessionLimitRuleOpenApiVo.java | 269 +++ .../model/QueryUrlFilteringOpenApiVo.java | 474 +++++ .../QueryUseNativeNetworkOswOpenApiVo.java | 168 ++ .../QueryUseNativeNetworkOswV2OpenApiVo.java | 169 ++ .../model/QuotaDataSettingOpenApiVo.java | 333 ++++ .../model/QuotaSmsSettingOpenApiVo.java | 308 ++++ .../api/sitesetting/model/RaSetting.java | 155 ++ .../model/RadiusAcctServerOpenApiVo.java | 133 ++ .../model/RadiusAuthServerOpenApiVo.java | 133 ++ .../model/RadiusProfileOpenApiVo.java | 499 +++++ .../model/RadiusSettingOpenApiVo.java | 210 +++ .../model/RadiusUserInfoOpenApiVo.java | 107 ++ .../model/RadiusUserOpenApiVo.java | 301 +++ .../model/RateLimitProfileOpenApiVo.java | 226 +++ .../model/RateLimitSettingOpenApiVo.java | 105 ++ .../model/RebootScheduleOpenApiVo.java | 167 ++ .../model/RebootScheduleQueryOpenApiVo.java | 217 +++ .../model/RebootScheduleTimeOpenApiVo.java | 182 ++ .../sitesetting/model/RemoteLogSettingVo.java | 156 ++ .../api/sitesetting/model/ResIdOpenApiVo.java | 76 + ...seDataVoBonjourServiceDetailOpenApiVo.java | 89 + ...taVoGatewayQosServiceSummaryOpenApiVo.java | 89 + ...ponseDataVoLanNetworkQueryOpenApiV2Vo.java | 89 + ...esponseDataVoLanNetworkQueryOpenApiVo.java | 89 + .../ResponseDataVoQosBwcWanInfoOpenApiVo.java | 89 + ...sponseDataVoWireguardSummaryOpenApiVo.java | 89 + .../api/sitesetting/model/ResponseIdVo.java | 76 + .../sitesetting/model/RestrictionEntity.java | 129 ++ .../sitesetting/model/RoamingOpenApiVo.java | 181 ++ .../api/sitesetting/model/RuleEntity.java | 214 +++ .../model/ScheduleTimeOpenApiVo.java | 184 ++ .../sitesetting/model/SessionLimitEntity.java | 78 + .../model/SessionLimitRuleOpenApiVo.java | 219 +++ .../sitesetting/model/SimQuotaSetting.java | 104 ++ .../model/SimplePasswordSetting.java | 81 + .../model/SimplifiedCallBlockingProfile.java | 101 ++ .../model/SimplifiedDigitMapProfile.java | 101 ++ .../model/SiteApLldpSettingVo.java | 80 + .../model/SiteBandSteeringSetting.java | 80 + .../model/SiteBeaconControlSetting.java | 106 ++ .../model/SiteChannelLimitSetting.java | 80 + .../api/sitesetting/model/SiteLedSetting.java | 80 + .../sitesetting/model/SiteLldpSetting.java | 80 + .../sitesetting/model/SiteMeshSetting.java | 80 + .../model/SiteMulticastRateLimitSetting.java | 80 + .../model/SiteRemoteLoggingSetting.java | 80 + .../sitesetting/model/SiteRoamingSetting.java | 82 + .../api/sitesetting/model/SiteToSiteVpn.java | 423 +++++ .../api/sitesetting/model/SmsSetting.java | 237 +++ .../model/SmsSettingResOpenApiVo.java | 230 +++ .../model/SnmpSettingOpenApiVo.java | 180 ++ .../model/SpecifiedOptionOpenApiVo.java | 178 ++ .../api/sitesetting/model/SshSetting.java | 130 ++ .../model/SsidDetailOpenApiVo.java | 612 +++++++ .../model/SsidDhcpOptionOpenApiVo.java | 199 ++ .../model/SsidEnterpriseSettingOpenApiVo.java | 258 +++ .../model/SsidMacFilterOpenApiVo.java | 165 ++ .../model/SsidMultiCastOpenApiVo.java | 228 +++ .../api/sitesetting/model/SsidOpenApiVo.java | 251 +++ .../model/SsidOuiModeOpenApiVo.java | 103 ++ .../model/SsidPpskSettingOpenApiVo.java | 179 ++ .../model/SsidPskSettingOpenApiVo.java | 208 +++ .../model/SsidRateControlOpenApiVo.java | 456 +++++ .../model/SsidSimpleOpenApiVo.java | 103 ++ .../model/SsidWlanScheduleOpenApiVo.java | 128 ++ .../model/SslVpnLockConfigOpenApiVo.java | 155 ++ .../sitesetting/model/SslVpnLockEntity.java | 204 +++ .../model/SslVpnLockModifyOpenApiVo.java | 155 ++ .../model/SslVpnResourceBriefInfo.java | 103 ++ .../model/SslVpnResourceConfigOpenApiVo.java | 380 ++++ .../model/SslVpnResourceEntity.java | 443 +++++ .../model/SslVpnResourceGroup.java | 141 ++ .../model/SslVpnResourceGroupBriefInfo.java | 103 ++ .../SslVpnResourceGroupConfigOpenApiVo.java | 116 ++ .../SslVpnResourceGroupModifyOpenApiVo.java | 88 + .../model/SslVpnResourceModifyOpenApiVo.java | 354 ++++ .../model/SslVpnServerConfigOpenApiVo.java | 434 +++++ .../model/SslVpnServerSetting.java | 534 ++++++ .../model/SslVpnUserConfigOpenApiVo.java | 208 +++ .../sitesetting/model/SslVpnUserEntity.java | 283 +++ .../model/SslVpnUserGroupConfigOpenApiVo.java | 166 ++ .../model/SslVpnUserGroupEntity.java | 250 +++ .../model/SslVpnUserGroupModifyOpenApiVo.java | 138 ++ .../model/SslVpnUserModifyOpenApiVo.java | 182 ++ ...lVpnUserOpenApiGridVoSslVpnUserEntity.java | 239 +++ .../model/StaticRoutingConfig.java | 267 +++ .../sitesetting/model/StaticRoutingInfo.java | 292 +++ .../model/StaticRoutingInterfaceInfo.java | 153 ++ .../model/StaticRoutingInterfaceResult.java | 114 ++ .../sitesetting/model/StormCtrlEntity.java | 258 +++ .../model/SupportOsgModelOpenApiAppVo.java | 88 + .../sitesetting/model/SwitchAclConfig.java | 472 +++++ .../model/SwitchAclEtherTypeEntity.java | 106 ++ .../api/sitesetting/model/SwitchAclInfo.java | 497 +++++ .../model/SwitchAclPortEntity.java | 147 ++ .../model/TagOutConfigOpenApiVo.java | 88 + .../model/TagOutItemOpenApiVo.java | 132 ++ ...phoneNumberAdvancedSettingApOpenApiVo.java | 253 +++ ...honeNumberAdvancedSettingOsgOpenApiVo.java | 205 +++ .../TelephoneNumberWithStatusOpenApiVo.java | 203 +++ .../model/TelephoneNumberWithStatusVo.java | 228 +++ ...TelephoneNumberWithoutStatusOpenApiVo.java | 131 ++ .../model/TermsOfServiceUrlVo.java | 107 ++ .../model/TimeRangeProfileOpenApiVo.java | 190 ++ .../TransmissionDragSortIndexOpenapiVo.java | 87 + .../model/UpdateMacAuthOpenApiVo.java | 239 +++ .../UpdateRateLimitProfileOpenApiVo.java | 181 ++ .../model/UpdateSsidBasicConfigOpenApiVo.java | 442 +++++ .../model/UpdateSsidDhcpOptionOpenApiVo.java | 200 ++ .../model/UpdateSsidMacFilterOpenApiVo.java | 165 ++ .../model/UpdateSsidMultiCastOpenApiVo.java | 232 +++ .../model/UpdateSsidRateControlOpenApiVo.java | 457 +++++ .../model/UpdateSsidRateLimitOpenApiVo.java | 104 ++ .../UpdateSsidWlanScheduleOpenApiVo.java | 128 ++ .../UpdateTimeRangeProfileOpenApiVo.java | 167 ++ .../model/UpdateWidsConfigOpenApiVo.java | 141 ++ .../model/UpdateWipsConfigOpenApiVo.java | 155 ++ .../model/UpdateWlanGroupOpenApiVo.java | 79 + .../model/UpgradeScheduleOpenApiVo.java | 217 +++ .../model/UpgradeScheduleQueryOpenApiVo.java | 242 +++ .../model/UpnpSettingOpenApiVo.java | 149 ++ .../model/UrlCategoryOpenApiVo.java | 115 ++ .../model/UrlDragSortIndexOpenapiVo.java | 114 ++ .../model/UrlFilterGlobalOpenApiVo.java | 129 ++ ...enApiGridVoQueryUrlFilteringOpenApiVo.java | 214 +++ .../model/UrlFilteringOpenApiVo.java | 425 +++++ .../omada/api/sitesetting/model/UsbInfo.java | 203 +++ .../model/UsbInfoListResponse.java | 89 + .../model/UsbLteSettingConfigOpenApiVo.java | 339 ++++ .../model/UsbLteSettingOpenApiVo.java | 389 ++++ .../model/UseProfileOswOpenApiVo.java | 178 ++ .../model/VirtualWanAvailableOpenApiVo.java | 178 ++ .../model/VirtualWanAvailablesOpenApiVo.java | 91 + .../model/VirtualWanConfigOpenApiVo.java | 187 ++ .../model/VirtualWanDslOpenApiVo.java | 283 +++ ...nGridOpenApiVoVirtualWanInfoOpenApiVo.java | 239 +++ .../model/VirtualWanInfoOpenApiVo.java | 256 +++ .../VirtualWanIpv4Connection2OpenApiVo.java | 254 +++ .../model/VirtualWanIpv4DhcpOpenApiVo.java | 217 +++ .../model/VirtualWanIpv4IpoaOpenApiVo.java | 242 +++ .../model/VirtualWanIpv4PppoaOpenApiVo.java | 504 ++++++ .../model/VirtualWanIpv4PppoeOpenApiVo.java | 506 ++++++ .../VirtualWanIpv4SettingConfigOpenApiVo.java | 312 ++++ .../VirtualWanIpv4SettingInfoOpenApiVo.java | 332 ++++ .../model/VirtualWanIpv4StaticOpenApiVo.java | 204 +++ .../model/VirtualWanMacSettingOpenApiVo.java | 106 ++ .../model/VirtualWanMultipleIpVo.java | 102 ++ .../model/VirtualWanStatusOpenApiVo.java | 80 + .../model/VlanOuiModeOpenApiVo.java | 132 ++ .../model/VlanOuiModeQueryOpenApiVo.java | 157 ++ .../api/sitesetting/model/VoiceMail.java | 201 ++ .../model/VoiceMailBatchDelete.java | 87 + .../model/VoiceMailSettingRequest.java | 354 ++++ .../model/VoiceMailSettingResponse.java | 339 ++++ .../api/sitesetting/model/VoipCallLog.java | 253 +++ .../model/VoipCallLogEnableSetting.java | 78 + .../model/VoipContactPersonSettings.java | 252 +++ .../api/sitesetting/model/VoipDevice.java | 408 +++++ .../VoipDeviceApConfigurationOpenApiVo.java | 315 ++++ .../VoipDeviceOsgConfigurationOpenApiVo.java | 191 ++ .../model/VoipDevicePortSettingOpenApiVo.java | 240 +++ .../model/VoipEmergencyNumberSetting.java | 140 ++ .../api/sitesetting/model/VoipOpenApiVo.java | 103 ++ .../model/VoipTelephoneBookBatchSetting.java | 140 ++ .../model/VoipTelephoneBookSetting.java | 277 +++ .../model/VpnAdvancedSettingOpenApiVo.java | 528 ++++++ .../model/VpnCertificateOpenApiVo.java | 103 ++ .../omada/api/sitesetting/model/VpnUser.java | 323 ++++ .../api/sitesetting/model/VpnUserRequest.java | 274 +++ .../sitesetting/model/VpnUserResponse.java | 323 ++++ .../model/WanLoadBalanceOpenApiVo.java | 248 +++ .../model/WanMultipleIpOpenApiVo.java | 105 ++ .../model/WanPortDslSettingOpenApiVo.java | 359 ++++ .../model/WanPortIpv4SettingOpenApiVo.java | 339 ++++ .../model/WanPortIpv6SettingOpenApiVo.java | 210 +++ .../model/WanPortMacSettingOpenApiVo.java | 105 ++ .../model/WanPortSettingOpenApiVo.java | 238 +++ .../model/WanSettingConfigOpenApiVo.java | 124 ++ .../model/WanSettingOpenApiVo.java | 124 ++ .../model/WidsConfigOpenApiVo.java | 138 ++ .../model/WipsConfigOpenApiVo.java | 151 ++ .../model/WireguardDetailOpenApiVo.java | 251 +++ .../model/WireguardKeyOpenApiVo.java | 101 ++ .../sitesetting/model/WireguardOpenApiVo.java | 209 +++ .../model/WireguardPeerDetailOpenApiVo.java | 363 ++++ .../model/WireguardPeerOpenApiVo.java | 318 ++++ .../model/WireguardSummaryOpenApiVo.java | 101 ++ .../sitesetting/model/WlanGroupOpenApiVo.java | 126 ++ .../model/WlanSimpleOpenApiVo.java | 139 ++ 1347 files changed, 249893 insertions(+) create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/OmadaSsoApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/OmadaUserAndRoleApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ControllerRoleDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ControllerRoleVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateRoleResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateUserResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateUserVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/DeleteUserVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserGroupDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoExternalUserDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoExternalUserGroupDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoIdpMetadataDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoUserDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/IdpMetadataDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/IdpMetadataOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ModifyControllerRoleVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ModifyUserVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseControllerRoleDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseCreateRoleResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseCreateUserResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoExternalUserDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoExternalUserGroupDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoIdpMetadataDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoUserDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseListControllerRoleDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseObject.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseResponseIdVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseUserDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/PrivilegeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ResponseIdVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/SiteInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/UserDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/OmadaBatchOpenApiApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/BatchRequestEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/BatchResponseEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/OperationResponse.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/OperationResponseBatchResponseEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/RequestActionEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/OmadaClientApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/OmadaClientInsightApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ApBriefInfoVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientDetail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientGridVoClientInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientHistoryInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientIpSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientLockToApSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientLockToApSetting1.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientMultifrequencyInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientNameSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientRateLimitSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientStatVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/CustomRateLimitEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/GridVoClientHistoryInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseClientDetail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseClientGridVoClientInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseGridVoClientHistoryInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaApApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaDeviceApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaFirmwareApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaGatewayApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaSwitchApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceMultiSiteOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceRespVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceSnOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceSnRespVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairMultiSiteOpenApiDto.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairOpenApiDto.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairSnOpenApiDto.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceBySnOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceWithSiteBySnOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AdoptDeviceRequest.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AdoptResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApAvailableChannelOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApBridgeConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApChannelDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApDownLinkStatusVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApGeneralConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApIpSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApLanTraffic.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApOfdmaConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApOverviewInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApPowerSavingConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioChannel.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioTrafficEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadiosConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadiosDetail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRfScanInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRfScanResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidOverrideOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidOverrideOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidWlansOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidWlansOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredDownlink.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredUplink.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredUplinkInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWirelessUplink.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AutoCheckUpgradeCreateInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AutoCheckUpgradeInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/BatchProfileOverride.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/BatchTagRespOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CheckFirmwareRes.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CreateAutoCheckResInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CreateUpgradePlanResinfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CriticalModelNum.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeleteTagOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceAddProcessRespVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceAddRespOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceCopyConfigurationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceFirmwareInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddBySnOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddMultiSiteBySnOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceLocationDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceMoveSiteOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DhcpIpSettingEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DslSettings.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/EasyManageOverviewInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/EasyManagedSwitchGeneralConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/FirmwareInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayGeneralConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortSettingConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortsConfigEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayWanStatusEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GlobalKnownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GlobalUnknownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoAutoCheckUpgradeInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoDeviceInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoFirmwareInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoGlobalKnownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoGlobalUnknownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoPlanUpgradeInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoPlanUpgradeModelList.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoUpgradeFailedDeviceInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoUpgradeLogOpenApiInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InlineObject.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InlineObject1.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/Interference.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InterferenceDataEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LanStatus.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LanTraffic.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LocateDeviceRequest.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelBaseInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFirmwarePoolGridInfoModelLatestFwInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwOemReleaseNoteInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwReleaseNoteReqInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwVersionReleaseNoteInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelLatestFwInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelTypeInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeSiteInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeSiteReqInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModifyTagOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/NetworkPortsAssociationVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OnlineUpgradeRes.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseAdoptResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApAvailableChannelOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApBridgeConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApGeneralConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApIpSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApLanTraffic.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApOfdmaConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApOverviewInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApPowerSavingConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRadiosConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRadiosDetail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRfScanInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRfScanResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApSsidWlansOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApSsidWlansOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApWiredDownlink.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApWiredUplink.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCheckFirmwareRes.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCreateAutoCheckResInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCreateUpgradePlanResinfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCriticalModelNum.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceAddProcessRespVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceAddRespOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceFirmwareInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseEasyManageOverviewInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseEasyManagedSwitchGeneralConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseFile.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayGeneralConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayPortSettingConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayPortsConfigEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoAutoCheckUpgradeInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoDeviceInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoFirmwareInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoGlobalKnownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoGlobalUnknownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoPlanUpgradeInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoPlanUpgradeModelList.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoUpgradeFailedDeviceInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoUpgradeLogOpenApiInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListGatewayWanStatusEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListLanStatus.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListNetworkPortsAssociationVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelFwOemReleaseNoteInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelUpgradeSiteInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseOnlineUpgradeRes.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseOperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponsePlanUpgradeModelInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseRetryAddDeviceRespOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseRollingUpgradeRes.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseSwitchGeneralConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseSwitchOverviewInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeRes.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeSettingTryBeta.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeSiteModelInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeTask.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUploadFirmwareResInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgLanPortIpv6ConfigVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgWanPortIpv4ConfigVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgWanPortIpv6ConfigVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanFirmwareUpgradeCreateInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeCreateInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeEditInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeModelInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeModelList.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeSelectedModel.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PortInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PortNameList.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ProfileOverride.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RetryAddDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RetryAddDeviceRespOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanCommand.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio2g.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio5g.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio5g2.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio6g.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollbackCreateInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollingUpgradeRequest.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollingUpgradeRes.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SetTagOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SetTagResultOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SiteBasicInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SnAddResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideConfigOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/StaticIpSettingEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchGeneralConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchMultiPortName.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchOverviewInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortName.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortPoe.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortStatus.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortsPoe.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortsStatus.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchProfileId.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/TagOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/TagRespOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindActiveDeviceSnOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceRespVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceSnOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceSnRespVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApChannelConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApOfdmaConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApPowerSavingConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeBaseScheduleTimeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeFailedDeviceInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeLogOpenApiInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeRequest.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeRes.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSettingTryBeta.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSiteModelInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSiteModelReqInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeTask.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UploadFirmwareResInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaDeviceManagementSettingApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaLicenseApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaWebhookSettingApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/DeviceAccessManagementSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/GridVoOpenApiWebhookDispatchLogVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseAutoActiveOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseAutoRenewOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseBindAvailableNumOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiDispatchLogDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookAttemptMessageVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookDispatchLogVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookLogMessageVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookMessageVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingAddVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingEditVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingTestVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseDeviceAccessManagementSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseGridVoOpenApiWebhookDispatchLogVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseLicenseAutoActiveOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseLicenseAutoRenewOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseListWebhookSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/WebhookSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaAuthorizedClientApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaFormAuthDataApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaLocalUserApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaVoucherApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AllTimeVoucherSummaryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AuthClientOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AuthTimeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateFormAuthOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateLocalUserOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateVoucherGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreatedResIdOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CurrencyCandidatesOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CustomRateLimitOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/ExtendOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthCardAnswerOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthCardOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthResultOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoAuthClientOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoFormAuthResultOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoLocalUserOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherDurationDistributionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherUnitPriceDistributionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/HotspotSiteSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/LocalUserOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseAllTimeVoucherSummaryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseCreatedResIdOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseCurrencyCandidatesOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseFormAuthOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseFormAuthResultOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoAuthClientOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoFormAuthResultOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoLocalUserOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherDurationDistributionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseListFormAuthOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseListVoucherBriefOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseLocalUserOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherGroupGridOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherStatisticsHistoryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/RateLimitOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SelectIdsOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SelectVoucherGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SimpleVoucherOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/StatisticsCountOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherBriefOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherDurationDistributionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherGroupGridOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherStatisticsHistoryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherSummaryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherUnitPriceDistributionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherUsageOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/OmadaThreatManagementApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/DeleteIpsThreat.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GetGridIpsThreat.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GetIpsThreatDetail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GridVoGetGridIpsThreat.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/IpsOperateThreat.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/IpsOperateThreatIdAndTime.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseGetIpsThreatDetail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseGridVoGetGridIpsThreat.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseObject.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/SignatureSuppression.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/OmadaLogApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/OmadaLogTemplateApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationEditOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationSettingEditOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/GridVoAuditLogOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogAlertEmailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationEditOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationEditOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingEditOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingEditOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseAuditLogNotificationSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseGridVoAuditLogOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseLogNotificationSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/WebhookConfigEditOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/WebhookConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/OmadaBackupAndRestoreApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/OmadaHistoryDataRetentionApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupFileListVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupFileResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupResultOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteBackupVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteFileServerRestoreVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteSelfRestoreVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerGlobalBackupVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerGlobalRestoreVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerSiteBackupVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerSiteRestoreVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/HistoryRetentionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/ModifyHistoryRetentionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/OperationResponseHistoryRetentionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/OperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/RestoreResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfGlobalBackupVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfGlobalRestoreVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfSiteRestoreVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/OmadaDashboardApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ActiveDevice.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApChannelStat.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApChannelStats.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApInterference.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApInterferences.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/BatchEditTabs.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/BatchUpdateTab.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/CpuUsage.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/CreateTabOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DashboardVpnStats.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DeviceTrafficActivity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DeviceTrafficDistribution.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/Drop.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DropEap.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/GetDashboardOverview.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IpsecVpnStats.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IspLoad.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IspLoadStat.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ListTabs.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/MemUsage.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseApChannelStats.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseApInterferences.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseGetDashboardOverview.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListActiveDevice.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListCpuUsage.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListDashboardVpnStats.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListIpsecVpnStats.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListIspLoad.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListListTabs.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListMemUsage.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListPoeUsage.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseRetryDropRate.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseSwitchSummary.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseTrafficActivities.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseTrafficDistribution.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseWifiSummary.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/PoeUsage.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/PortPoe.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/Retry.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/RetryDropRate.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/RetryEap.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/SwitchSummary.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/TrafficActivities.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/TrafficDistribution.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/UpdateTabOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/WifiSummary.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaCustomerApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspBatchOpenApiApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspDeviceApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspHistoryDataRetentionApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspLicenseApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspLogApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSettingApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSiteApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSsoApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspUserAndRoleApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspWebhookSettingApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationEditOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationSettingEditOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/BatchRequestEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/BatchResponseEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ControllerRoleDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ControllerRoleVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateCustomerOmadacVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateMspUserVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateRoleResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateUserResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CustomerInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CustomerOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DeleteUserVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstDto.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstTimeDto.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstTimeOpenApiDto.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoAuditLogOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoCustomerInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoIdpMetadataDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspExternalUserDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspExternalUserGroupDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspKnownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspUnknownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspUserDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoOpenApiWebhookDispatchLogVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoSiteSummaryInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoUsedLicenseDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/HistoryRetentionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/IdpMetadataDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/IdpMetadataOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAssignmentOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAutoActiveOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAvailableAssignOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAvailableRecycleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseCategoryOtherIdsOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseNumOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseOthersIdsOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseRecycleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogAlertEmailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationEditOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationEditOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingEditOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingEditOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyDstDto.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyHistoryRetentionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspGeneralSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspRoleVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspUserVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyRoleVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserGroupDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspGeneralSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspKnownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspPrivilegeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspRoleDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspRoleVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUiInterfaceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUnknownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUserDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OmadacInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiDispatchLogDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookAttemptMessageVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookDispatchLogVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookLogMessageVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookMessageVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingAddVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingEditVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingTestVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponse.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseAuditLogNotificationSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseBatchResponseEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateCustomerOmadacVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateRoleResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateUserResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCustomerInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoAuditLogOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoCustomerInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoIdpMetadataDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspExternalUserDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspKnownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspUnknownDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspUserDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoOpenApiWebhookDispatchLogVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoSiteSummaryInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseHistoryRetentionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseLicenseAutoActiveOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListControllerRoleDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListCustomerInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListMspRoleDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListTagRespOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListWebhookSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseLogNotificationSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspGeneralSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspRoleDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspUiInterfaceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspUserDetailVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseObject.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseResponseIdVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/RequestActionEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ResponseIdVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/RoleVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/SiteSummaryInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/SiteTag.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/TagRespOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/UsedLicenseDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookConfigEditOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/OmadaSiteApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/OmadaSiteTemplateApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchBindDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchBindDeviceResultOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchCopySiteTemplateOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSiteCopyVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSiteImportVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSyncSitesOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchUnbindSites.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BindSiteBriefOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BindSiteOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteTemplateOpenApiResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteTemplateOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteByTemplate.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteTagOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteTemplateEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeleteSiteTagOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceAccountSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindBriefOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindResultOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceTemplateBriefOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstDto.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstTimeDto.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstTimeOpenApiDto.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/FileServerOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoDeviceBindOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoDeviceTemplateBriefOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoSiteSummaryInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoSiteTemplateSummaryVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/ModifyDstDto.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/NtpServer.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseBatchBindDeviceResultOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseBindSiteBriefOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseCopySiteTemplateOpenApiResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseDeviceAccountSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoDeviceBindOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoDeviceTemplateBriefOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoSiteSummaryInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoSiteTemplateSummaryVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseListString.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseObject.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteTemplateBriefOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteTemplateModulesOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/Scenario.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteCopyResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteImportOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteResultVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteSummaryInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTag.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateBriefOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateModulesOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateSummaryVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/UpdateSiteByTemplate.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/UpdateSiteEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAclApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaApplicationControlApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAttackDefenseApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAuthenticationApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaBandwidthControlApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaFirewallApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaGatewayQoSApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaIdsIpsApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaIpMacBindingApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaMacFilteringApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaNatApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaOuiBasedVlanApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaProfilesApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaRoutingApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaScheduleApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaServiceApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSessionLimitApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSimApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSiteConfigurationApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSslVpnApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaUrlFilteringApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaVoIpApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaVpnApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWiredNetworkApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWireguardVpnApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWirelessIdsIpsApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWirelessNetworkApi.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddCallForwardingRuleResp.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddFilterEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddRuleEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AdvertisementSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AdvertisementSettingResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AirtimeFairnessSettingVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AlgSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApMdnsRuleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApnProfile.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApnProfileConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApplicationEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AttackDefenseSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AuthTimeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AuthTimeoutSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AutoConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandCtrlEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandSteeringMultiBandVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthControl.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthControlRule.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthPortSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BaseScheduleTimeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchModifyVoipDeviceConfigurationEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchModifyVoipDeviceSettingEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchSelectIpMacBindingId.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BeaconControlVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BindNumberList.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BonjourServiceDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BonjourServiceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BookOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallBlockingProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallForwardingRule.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallForwardingRulesGrid.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogDeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogGridVoVoipCallLog.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogStatisticVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ChannelLimitSettingVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CheckWanLanStatusOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClassRuleDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClassRuleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClearDpiDataRequest.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClientToSiteVpnClient.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClientToSiteVpnServer.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ConfirmBindedDevicesEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CorrectSimQuota.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateCallBlockingProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDdnsOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDhcpReservationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDigitMapProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateLdapProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateMacAddressOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateMdnsRuleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateProviderProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRadiusProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRadiusUserOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRateLimitProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateSsidOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateTimeRangeProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateVlaNs.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateWlanGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomDayModeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomDhcpOptions.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomRateLimitSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DdnsIntervalOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DdnsOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteCallBlockingProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteCallForwardingRules.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteDigitMapProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteTelephoneNumber.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOuiModeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOuiModeQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DevicePoePorts.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DevicePorts.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceTelephoneNumber.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpL2RelayEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpRangeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpReservationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpServersSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettingConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettingInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettings.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dhcpv6ServersSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dhcpv6Setting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DialupSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DigitMapProfileInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DndSettingEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsProxySettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsSecSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DohCustomizedServerOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DohSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DomainOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapPortInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xPortInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DotCustomizedServerOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DotSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DpiSettings.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DragSortIndexOpenapiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EapAclConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EapAclInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EditFilterEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EditRuleEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExportDhcpReservationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalRadiusSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalRadiusSettingResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalServerPortalSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FamilyEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FilterEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FirewallSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclConfigModeEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclStatesEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclAddEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclInfoEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclModifyEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclUpdateEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayDirectionEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceSummaryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoApplicationEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoBandwidthControlRule.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoClassRuleDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDdnsOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDeviceTelephoneNumber.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDhcpReservationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoEapAclInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoFilterEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayAclInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayCustomAclInfoEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayQosServiceDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoIpsBlockListEntry.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoIpsSignatureInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoLanNetworkVlansOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoLanProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoMacFiltering.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoMdnsRuleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOswProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOtoNatInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanApQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanSwitchInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanSwitchQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPoeScheduleQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPolicyRoutingInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPortForwardingInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPortScheduleQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoProviderProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoQosBwcDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoQuerySessionLimitRuleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRadiusUserOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRestrictionEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRuleEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSsidOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnResourceEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnResourceGroup.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnUserGroupEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoStaticRoutingInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSwitchAclInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoUseProfileOswOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoiceMail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoipDevice.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoipTelephoneBookSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVpnUserResponse.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoWireguardDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoWireguardPeerDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoiPsecFailover.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoipMacBinding.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVosslVpnLockEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotRadiusSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotRadiusSettingResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IPsecFailover.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IPv6SubnetsOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IgmpOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ImportedPortalPageOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ImportedPortalPageResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IncomingCallsBlockingVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InlineObject.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InlineObject1.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBaseConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBaseInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBasicInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpMacBinding.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpMacBindingGeneralSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpSubnetsOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpSubnetsVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsBlockListEntry.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsSignatureConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsSignatureInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvCustomOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvDslOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvPortConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvPortOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4Connection2OpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4DhcpOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4IpoaOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4L2tpOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PppoaOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PppoeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PptpOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4StaticOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6DynamicOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6PppoeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6StaticOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6TunnelOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IspOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LagInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkIpv6Config.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkProtoPassThroughMode.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkQueryOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkVlansOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanProfileConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LocationAndIspInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LocationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LockSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanPortSettingConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanPortSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacAddressOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacAuthOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacFiltering.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacFilteringGeneralSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ManuallyConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/McastRateLimitSettingVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MdnsRuleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MeshSettingVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyCallBlockingProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyConfirmResultOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyDigitMapProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyIpsAllowListEntry.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyProviderProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyProviderSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyVoipDeviceApSettingEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyVoipDeviceOsgSettingEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NewIpsAllowListEntry.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NoAuthSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NumberOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NumberRegistrationResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAddCallForwardingRuleResp.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAlgSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAttackDefenseSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseBandwidthControl.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseCallForwardingRulesGrid.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseCallLogGridVoVoipCallLog.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseClientToSiteVpnClient.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseClientToSiteVpnServer.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDndSettingEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDnsProxySettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDot1xEapOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDot1xSwitchOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDpiSettings.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseFilterEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseFirewallSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGatewayAclConfigModeEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoApplicationEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoBandwidthControlRule.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoClassRuleDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDdnsOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDeviceTelephoneNumber.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDhcpReservationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoEapAclInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoFilterEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayAclInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayCustomAclInfoEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayQosServiceDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoIpsBlockListEntry.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoIpsSignatureInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoLanProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoMacFiltering.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoMdnsRuleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOtoNatInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPoeScheduleQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPolicyRoutingInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPortForwardingInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPortScheduleQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoProviderProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoQosBwcDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoQuerySessionLimitRuleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRadiusUserOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRestrictionEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRuleEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSsidOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnResourceEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnResourceGroup.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnUserGroupEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoStaticRoutingInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSwitchAclInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoUseProfileOswOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoiceMail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoipDevice.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoipTelephoneBookSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVpnUserResponse.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoWireguardDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoWireguardPeerDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoiPsecFailover.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoipMacBinding.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVosslVpnLockEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIgmpOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseImportedPortalPageResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseInternetBaseInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIpMacBindingGeneralSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIpsInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIptvOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListApnProfile.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListCallBlockingProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListClientToSiteVpnClient.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListClientToSiteVpnServer.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDigitMapProfileInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDot1xEapInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDot1xSwitchInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListFamilyEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListLdapProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListOuiProfileSummaryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPoeDeviceDetail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPortDeviceDetail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPortalResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPpskProfileBriefInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListProfilesBindedDeviceInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRadiusProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRateLimitProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRebootScheduleQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSimplifiedCallBlockingProfile.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSimplifiedDigitMapProfile.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSiteToSiteVpn.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListTimeRangeProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListUpgradeScheduleQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListVpnUserResponse.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListWlanGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListWlanSimpleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLocationAndIspInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLteWanSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseMacAuthOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseMacFilteringGeneralSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseModifyConfirmResultOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseNumberRegistrationResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseObject.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseOuiGridVoOuiProfileQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalCustomizationPageResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalDetailResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalPictureInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePpskProfileVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResIdOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoLanNetworkQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoWireguardSummaryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseIdVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseRestrictionEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseRuleEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSessionLimitEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSimQuotaSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteBandSteeringSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteBeaconControlSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteChannelLimitSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteLedSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteLldpSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteMeshSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteMulticastRateLimitSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteRemoteLoggingSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteRoamingSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteToSiteVpn.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSnmpSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSshSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSsidDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSslVpnServerSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseStaticRoutingInterfaceResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSupportOsgModelOpenApiAppVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseTagOutConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUpnpSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlCategoryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlFilterGlobalOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUsbInfoListResponse.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVirtualWanAvailablesOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoiceMailSettingResponse.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoid.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipCallLogEnableSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipEmergencyNumberSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWanLoadBalanceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWanSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWidsConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWipsConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWireguardKeyOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWithoutResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgMacFilterAddressOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgMdnsRuleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgModelOpenApiInfoVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgModelOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OswProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OtoNatInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OtoNatOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiAndDescription.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanApOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanApQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiGridVoOuiProfileQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileSummaryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OutgoingCallsBlockingVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeDeviceDetail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeScheduleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeScheduleQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingDragSortIndexOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortDeviceDetail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortForwardingConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortForwardingInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortIpOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortMaskOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortScheduleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortScheduleQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortSettingVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizationPageResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizeResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalDetailResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalPictureInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskAutoCreateSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfile.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileBriefInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileV2.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskSettingV2.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProfilesBindedDeviceInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProviderProfileEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProviderSettingVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Psk.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Pskvo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcEditOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcWanInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuerySessionLimitRuleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUrlFilteringOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUseNativeNetworkOswOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUseNativeNetworkOswV2OpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuotaDataSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuotaSmsSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RaSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusAcctServerOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusAuthServerOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusUserInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusUserOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RateLimitProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RateLimitSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleTimeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RemoteLogSettingVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResIdOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoBonjourServiceDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoGatewayQosServiceSummaryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoLanNetworkQueryOpenApiV2Vo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoLanNetworkQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoQosBwcWanInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoWireguardSummaryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseIdVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RestrictionEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RoamingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RuleEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ScheduleTimeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SessionLimitEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SessionLimitRuleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimQuotaSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplePasswordSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplifiedCallBlockingProfile.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplifiedDigitMapProfile.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteApLldpSettingVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteBandSteeringSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteBeaconControlSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteChannelLimitSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteLedSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteLldpSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteMeshSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteMulticastRateLimitSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteRemoteLoggingSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteRoamingSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteToSiteVpn.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SmsSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SmsSettingResOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SnmpSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SpecifiedOptionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SshSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidDhcpOptionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidEnterpriseSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidMacFilterOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidMultiCastOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidOuiModeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidPpskSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidPskSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidRateControlOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidSimpleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidWlanScheduleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockModifyOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceBriefInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroup.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupBriefInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupModifyOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceModifyOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnServerConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnServerSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupModifyOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserModifyOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserOpenApiGridVoSslVpnUserEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInterfaceInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInterfaceResult.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StormCtrlEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SupportOsgModelOpenApiAppVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclConfig.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclEtherTypeEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclPortEntity.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TagOutConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TagOutItemOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberAdvancedSettingApOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberAdvancedSettingOsgOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithStatusOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithStatusVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithoutStatusOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TermsOfServiceUrlVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TimeRangeProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TransmissionDragSortIndexOpenapiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateMacAuthOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateRateLimitProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidBasicConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidDhcpOptionOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidMacFilterOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidMultiCastOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidRateControlOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidRateLimitOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidWlanScheduleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateTimeRangeProfileOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWidsConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWipsConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWlanGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpgradeScheduleOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpgradeScheduleQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpnpSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlCategoryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlDragSortIndexOpenapiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilterGlobalOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilteringOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbInfo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbInfoListResponse.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbLteSettingConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbLteSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UseProfileOswOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanAvailableOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanAvailablesOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanDslOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4Connection2OpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4DhcpOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4IpoaOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4PppoaOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4PppoeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4SettingConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4SettingInfoOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4StaticOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanMacSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanMultipleIpVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanStatusOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VlanOuiModeOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VlanOuiModeQueryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMail.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailBatchDelete.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailSettingRequest.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailSettingResponse.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipCallLog.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipCallLogEnableSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipContactPersonSettings.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDevice.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDeviceApConfigurationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDeviceOsgConfigurationOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDevicePortSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipEmergencyNumberSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipTelephoneBookBatchSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipTelephoneBookSetting.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnAdvancedSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnCertificateOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUser.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUserRequest.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUserResponse.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanLoadBalanceOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanMultipleIpOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortDslSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortIpv4SettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortIpv6SettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortMacSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanSettingConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanSettingOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WidsConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WipsConfigOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardKeyOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardPeerDetailOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardPeerOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardSummaryOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WlanGroupOpenApiVo.java create mode 100644 wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WlanSimpleOpenApiVo.java diff --git a/pom.xml b/pom.xml index 4c91398..125f1db 100644 --- a/pom.xml +++ b/pom.xml @@ -35,6 +35,7 @@ 2.14.4 5.8.33 1.18.36 + 1.6.2 1.6.2 @@ -248,6 +249,13 @@ ${wfc.version} + + + io.swagger + swagger-annotations + ${swagger.core.version} + + org.wfc diff --git a/wfc-api/wfc-api-omada/pom.xml b/wfc-api/wfc-api-omada/pom.xml index 661b0d3..4e585c2 100644 --- a/wfc-api/wfc-api-omada/pom.xml +++ b/wfc-api/wfc-api-omada/pom.xml @@ -26,5 +26,12 @@ wfc-common-redis + + + io.swagger + swagger-annotations + + + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/OmadaSsoApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/OmadaSsoApi.java new file mode 100644 index 0000000..0b54a43 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/OmadaSsoApi.java @@ -0,0 +1,201 @@ +package org.wfc.omada.api.account; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.account.model.ExternalUserGroupOpenApiVo; +import org.wfc.omada.api.account.model.IdpMetadataOpenApiVo; +import org.wfc.omada.api.account.model.OperationResponseGridVoExternalUserDetailOpenApiVo; +import org.wfc.omada.api.account.model.OperationResponseGridVoExternalUserGroupDetailOpenApiVo; +import org.wfc.omada.api.account.model.OperationResponseGridVoIdpMetadataDetailOpenApiVo; +import org.wfc.omada.api.account.model.OperationResponseResponseIdVo; +import org.wfc.omada.api.account.model.OperationResponseWithoutResult; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:45:24.733+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaSso", description = "the OmadaSso API") +@FeignClient(name="OmadaSsoApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaSsoApi { + + /** + * POST /openapi/v1/{omadacId}/sso/external-user-groups : Create new external user group + * Create new external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30172 - The SAML role name already exists.<br/>-30179 - The SAML roles number has reached the upper limit.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param externalUserGroupOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new external user group", nickname = "createExternalUserGroup", notes = "Create new external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Saml Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30102 - This role does not exist.
-30172 - The SAML role name already exists.
-30179 - The SAML roles number has reached the upper limit.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseResponseIdVo.class, tags={ "Omada/SSO","SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/external-user-groups", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createExternalUserGroup(@ApiParam(value = "" ) @Valid @RequestBody(required = false) ExternalUserGroupOpenApiVo externalUserGroupOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sso/saml-idps : Create new idp + * Create new idp.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30170 - The SAML sso metadata entityId already exists.<br/>-30171 - The SAML sso metadata name already exist.<br/>-30178 - The SAML sso number has reached the upper limit.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param idpMetadataOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new idp", nickname = "createIdpMetadata", notes = "Create new idp.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Saml SSO Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30170 - The SAML sso metadata entityId already exists.
-30171 - The SAML sso metadata name already exist.
-30178 - The SAML sso number has reached the upper limit.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseResponseIdVo.class, tags={ "Omada/SSO","SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/saml-idps", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createIdpMetadata(@ApiParam(value = "" ) @Valid @RequestBody(required = false) IdpMetadataOpenApiVo idpMetadataOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sso/external-user-groups/{externalUserGroupId} : Delete an existing external user group + * Delete an existing external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param externalUserGroupId External user group ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing external user group", nickname = "deleteExternalUserGroup", notes = "Delete an existing external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Saml Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSO","SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/external-user-groups/{externalUserGroupId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteExternalUserGroup(@ApiParam(value = "External user group ID",required=true) @PathVariable("externalUserGroupId") String externalUserGroupId); + + + /** + * DELETE /openapi/v1/{omadacId}/sso/saml-idps/{idpId} : Delete an existing idp + * Delete an existing idp.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param idpId IdP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing idp", nickname = "deleteIdpMetadata", notes = "Delete an existing idp.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Saml SSO Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSO","SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/saml-idps/{idpId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteIdpMetadata(@ApiParam(value = "IdP ID",required=true) @PathVariable("idpId") String idpId); + + + /** + * GET /openapi/v1/{omadacId}/sso/external-user-groups : Get external user group list + * Get external user group list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field name (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get external user group list", nickname = "getExternalUserGroupList", notes = "Get external user group list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Saml Roles Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoExternalUserGroupDetailOpenApiVo.class, tags={ "Omada/SSO","SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoExternalUserGroupDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/external-user-groups", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getExternalUserGroupList(@ApiParam(value = "",required=true) @PathVariable("omadacId") String omadacId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/sso/external-users : Get external user list + * Get external user list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Users Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsUserName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field userName (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get external user list", nickname = "getExternalUserList", notes = "Get external user list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Saml Users Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoExternalUserDetailOpenApiVo.class, tags={ "Omada/SSO","SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoExternalUserDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/external-users", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getExternalUserList(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.userName", required = false) String sortsUserName,@ApiParam(value = "Fuzzy query parameters, support field userName") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/sso/saml-idps : Get idp list + * Get idp list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsIdpName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get idp list", nickname = "getIdpMetadataList", notes = "Get idp list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Saml SSO Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoIdpMetadataDetailOpenApiVo.class, tags={ "Omada/SSO","SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoIdpMetadataDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/saml-idps", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getIdpMetadataList(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.idpName", required = false) String sortsIdpName); + + + /** + * PUT /openapi/v1/{omadacId}/sso/external-user-groups/{externalUserGroupId} : Modify an existing external user group + * Modify an existing external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30172 - The SAML role name already exists.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param externalUserGroupId External user group ID (required) + * @param externalUserGroupOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing external user group", nickname = "modifyExternalUserGroup", notes = "Modify an existing external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Saml Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30102 - This role does not exist.
-30172 - The SAML role name already exists.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSO","SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/external-user-groups/{externalUserGroupId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyExternalUserGroup(@ApiParam(value = "External user group ID",required=true) @PathVariable("externalUserGroupId") String externalUserGroupId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ExternalUserGroupOpenApiVo externalUserGroupOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sso/saml-idps/{idpId} : Modify an existing idp + * Modify an existing idp. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30170 - The SAML sso metadata entityId already exists.<br/>-30171 - The SAML sso metadata name already exist.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param idpId IdP id (required) + * @param idpMetadataOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing idp", nickname = "modifyIdpMetadata", notes = "Modify an existing idp. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Saml SSO Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30170 - The SAML sso metadata entityId already exists.
-30171 - The SAML sso metadata name already exist.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSO","SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sso/saml-idps/{idpId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyIdpMetadata(@ApiParam(value = "IdP id",required=true) @PathVariable("idpId") String idpId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IdpMetadataOpenApiVo idpMetadataOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/OmadaUserAndRoleApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/OmadaUserAndRoleApi.java new file mode 100644 index 0000000..b101bf3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/OmadaUserAndRoleApi.java @@ -0,0 +1,221 @@ +package org.wfc.omada.api.account; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.account.model.CreateUserVo; +import org.wfc.omada.api.account.model.DeleteUserVo; +import org.wfc.omada.api.account.model.ModifyControllerRoleVo; +import org.wfc.omada.api.account.model.ModifyUserVo; +import org.wfc.omada.api.account.model.OperationResponseControllerRoleDetailVo; +import org.wfc.omada.api.account.model.OperationResponseCreateRoleResultVo; +import org.wfc.omada.api.account.model.OperationResponseCreateUserResultVo; +import org.wfc.omada.api.account.model.OperationResponseGridVoUserDetailVo; +import org.wfc.omada.api.account.model.OperationResponseListControllerRoleDetailVo; +import org.wfc.omada.api.account.model.OperationResponseObject; +import org.wfc.omada.api.account.model.OperationResponseUserDetailVo; +import org.wfc.omada.api.account.model.OperationResponseWithoutResult; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:45:24.733+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaUserAndRole", description = "the OmadaUserAndRole API") +@FeignClient(name="OmadaUserAndRoleApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaUserAndRoleApi { + + /** + * POST /openapi/v1/{omadacId}/roles : Create new role + * Create new role. Only user with all permissions modify can use this interface.<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30156 - This role already exists.<br/>-30158 - An error occurred while creating the role.<br/>-30161 - The number of roles has reached the limit. + * + * @param omadacId Omada ID (required) + * @param modifyControllerRoleVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new role", nickname = "createNewRole", notes = "Create new role. Only user with all permissions modify can use this interface.

The interface requires one of the permissions:
Global Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30156 - This role already exists.
-30158 - An error occurred while creating the role.
-30161 - The number of roles has reached the limit.", response = OperationResponseCreateRoleResultVo.class, tags={ "Omada/User and Role","User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCreateRoleResultVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/roles", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createNewRole(@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyControllerRoleVo modifyControllerRoleVo); + + + /** + * POST /openapi/v1/{omadacId}/users : Create new user + * Create new user.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30103 - Invalid email address.<br/>-30104 - Invalid username.<br/>-30105 - Invalid password.<br/>-30106 - This username is already registered.<br/>-30124 - The number of users has reached the limit.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode. + * + * @param omadacId Omada ID (required) + * @param createUserVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new user", nickname = "createNewUser", notes = "Create new user.

The interface requires one of the permissions:
Global Users Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30103 - Invalid email address.
-30104 - Invalid username.
-30105 - Invalid password.
-30106 - This username is already registered.
-30124 - The number of users has reached the limit.
-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseCreateUserResultVo.class, tags={ "Omada/User and Role","User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCreateUserResultVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/users", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createNewUser(@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateUserVo createUserVo); + + + /** + * DELETE /openapi/v1/{omadacId}/roles/{roleId} : Delete an existing role + * Delete an existing role. Only user with all permissions modify can use this interface<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30153 - The default role cannot be deleted.<br/>-30154 - An error occurred while deleting the role.<br/>-30155 - The role cannot be deleted since someone has bound to it.<br/>-30173 - The SSO bound role cannot be deleted! + * + * @param omadacId Omada ID (required) + * @param roleId Role ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing role", nickname = "deleteRole", notes = "Delete an existing role. Only user with all permissions modify can use this interface

The interface requires one of the permissions:
Global Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30102 - This role does not exist.
-30153 - The default role cannot be deleted.
-30154 - An error occurred while deleting the role.
-30155 - The role cannot be deleted since someone has bound to it.
-30173 - The SSO bound role cannot be deleted!", response = OperationResponseWithoutResult.class, tags={ "Omada/User and Role","User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/roles/{roleId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteRole(@ApiParam(value = "Role ID",required=true) @PathVariable("roleId") String roleId); + + + /** + * DELETE /openapi/v1/{omadacId}/users/{userID} : Delete an existing user + * Delete an existing user. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30112 - This user does not exist.<br/>-30114 - An error occurred while deleting the user.<br/>-30132 - Are you sure you want to delete Administrator %Username%? When it is deleted, the viewer accounts it has created will be moved to your account.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode. + * + * @param omadacId Omada ID (required) + * @param userID (required) + * @param deleteUserVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing user", nickname = "deleteUser", notes = "Delete an existing user. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.

The interface requires one of the permissions:
Global Users Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30112 - This user does not exist.
-30114 - An error occurred while deleting the user.
-30132 - Are you sure you want to delete Administrator %Username%? When it is deleted, the viewer accounts it has created will be moved to your account.
-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseWithoutResult.class, tags={ "Omada/User and Role","User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/users/{userID}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.DELETE) + ResponseEntity deleteUser(@ApiParam(value = "",required=true) @PathVariable("userID") String userID,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteUserVo deleteUserVo); + + + /** + * GET /openapi/v1/{omadacId}/roles : Get role list + * Get role list<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager View Only + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get role list", nickname = "getAllRoles", notes = "Get role list

The interface requires one of the permissions:
Global Roles Manager View Only", response = OperationResponseListControllerRoleDetailVo.class, tags={ "Omada/User and Role","User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListControllerRoleDetailVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/roles", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAllRoles(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/users : Get user list + * Get user list. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode. + * + * @param omadacId (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsRoleId Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsEmail Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field userName (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get user list", nickname = "getGridUsers", notes = "Get user list. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.

The interface requires one of the permissions:
Global Users Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseGridVoUserDetailVo.class, tags={ "Omada/User and Role","User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoUserDetailVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/users", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridUsers(@ApiParam(value = "",required=true) @PathVariable("omadacId") String omadacId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.roleId", required = false) String sortsRoleId,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.email", required = false) String sortsEmail,@ApiParam(value = "Fuzzy query parameters, support field userName") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/roles/{roleId} : Get role info + * Get role info<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager View Only + * + * @param omadacId Omada ID (required) + * @param roleId Role ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get role info", nickname = "getRole", notes = "Get role info

The interface requires one of the permissions:
Global Roles Manager View Only", response = OperationResponseControllerRoleDetailVo.class, tags={ "Omada/User and Role","User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseControllerRoleDetailVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/roles/{roleId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRole(@ApiParam(value = "Role ID",required=true) @PathVariable("roleId") String roleId); + + + /** + * GET /openapi/v1/{omadacId}/users/{userID} : Get user info + * Get user info. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode. + * + * @param omadacId Omada ID (required) + * @param userID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get user info", nickname = "getUser", notes = "Get user info. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.

The interface requires one of the permissions:
Global Users Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseUserDetailVo.class, tags={ "Omada/User and Role","User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUserDetailVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/users/{userID}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getUser(@ApiParam(value = "",required=true) @PathVariable("userID") String userID); + + + /** + * PUT /openapi/v1/{omadacId}/roles/{roleId} : Modify an existing role + * Modify an existing role. Only user with all permissions modify can use this interface.<br/><br/>The interface requires one of the permissions: <br/>Global Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30156 - This role already exists.<br/>-30157 - An error occurred while modifying the role.<br/>-30159 - The default role cannot be modified.<br/>-30162 - Cannot change the target account. Its role permission scope cannot be greater than its manager. + * + * @param omadacId Omada ID (required) + * @param roleId Role ID (required) + * @param modifyControllerRoleVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing role", nickname = "modifyRole", notes = "Modify an existing role. Only user with all permissions modify can use this interface.

The interface requires one of the permissions:
Global Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30102 - This role does not exist.
-30156 - This role already exists.
-30157 - An error occurred while modifying the role.
-30159 - The default role cannot be modified.
-30162 - Cannot change the target account. Its role permission scope cannot be greater than its manager.", response = OperationResponseObject.class, tags={ "Omada/User and Role","User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/roles/{roleId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyRole(@ApiParam(value = "Role ID",required=true) @PathVariable("roleId") String roleId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyControllerRoleVo modifyControllerRoleVo); + + + /** + * PUT /openapi/v1/{omadacId}/users/{userID} : Modify an existing user + * Modify an existing user.<br/><br/>The interface requires one of the permissions: <br/>Global Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30103 - Invalid email address.<br/>-30104 - Invalid username.<br/>-30105 - Invalid password.<br/>-30106 - This username is already registered.<br/>-30108 - This username does not exist.<br/>-30133 - Failed to remove Site %Site name%. The administrator account should not have privileges to fewer sites than that of the viewer accounts it has created.<br/>-30134 - Failed to add Site %Site name%. The viewer account should not have privileges to more sites thatn that of its immediate superior account.<br/>-30135 - Are you sure you want to change the role of %Username% from Administrator to Viewer?If its role is changed, the viewer accounts it has created will be moved to your account.<br/>-30136 - Failed to save. If the editing is saved, the viewer account will have privileges to more sites than that of its immediate superior account.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode. + * + * @param omadacId Omada ID (required) + * @param userID (required) + * @param modifyUserVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing user", nickname = "modifyUser", notes = "Modify an existing user.

The interface requires one of the permissions:
Global Users Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30103 - Invalid email address.
-30104 - Invalid username.
-30105 - Invalid password.
-30106 - This username is already registered.
-30108 - This username does not exist.
-30133 - Failed to remove Site %Site name%. The administrator account should not have privileges to fewer sites than that of the viewer accounts it has created.
-30134 - Failed to add Site %Site name%. The viewer account should not have privileges to more sites thatn that of its immediate superior account.
-30135 - Are you sure you want to change the role of %Username% from Administrator to Viewer?If its role is changed, the viewer accounts it has created will be moved to your account.
-30136 - Failed to save. If the editing is saved, the viewer account will have privileges to more sites than that of its immediate superior account.
-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseObject.class, tags={ "Omada/User and Role","User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/users/{userID}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyUser(@ApiParam(value = "",required=true) @PathVariable("userID") String userID,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyUserVo modifyUserVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ControllerRoleDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ControllerRoleDetailVo.java new file mode 100644 index 0000000..b2a5acd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ControllerRoleDetailVo.java @@ -0,0 +1,203 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * ControllerRoleDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class ControllerRoleDetailVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("defaultRole") + private Boolean defaultRole; + + @JsonProperty("source") + private Integer source; + + @JsonProperty("privilege") + private ControllerRoleVo privilege; + + public ControllerRoleDetailVo id(String id) { + this.id = id; + return this; + } + + /** + * Role ID + * @return id + */ + @ApiModelProperty(value = "Role ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ControllerRoleDetailVo name(String name) { + this.name = name; + return this; + } + + /** + * Role Name + * @return name + */ + @ApiModelProperty(value = "Role Name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ControllerRoleDetailVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Role Type should be a value as follows: 0: standard; 1: customer; 2: msp. + * @return type + */ + @ApiModelProperty(value = "Role Type should be a value as follows: 0: standard; 1: customer; 2: msp.") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public ControllerRoleDetailVo defaultRole(Boolean defaultRole) { + this.defaultRole = defaultRole; + return this; + } + + /** + * Whether role is default role + * @return defaultRole + */ + @ApiModelProperty(value = "Whether role is default role") + + + public Boolean getDefaultRole() { + return defaultRole; + } + + public void setDefaultRole(Boolean defaultRole) { + this.defaultRole = defaultRole; + } + + public ControllerRoleDetailVo source(Integer source) { + this.source = source; + return this; + } + + /** + * Role created resource. It should be a value as follows: 0: default; 1:create by standard controller or customer controller; 2: create by MSP + * @return source + */ + @ApiModelProperty(value = "Role created resource. It should be a value as follows: 0: default; 1:create by standard controller or customer controller; 2: create by MSP") + + + public Integer getSource() { + return source; + } + + public void setSource(Integer source) { + this.source = source; + } + + public ControllerRoleDetailVo privilege(ControllerRoleVo privilege) { + this.privilege = privilege; + return this; + } + + /** + * Get privilege + * @return privilege + */ + @ApiModelProperty(value = "") + + @Valid + + public ControllerRoleVo getPrivilege() { + return privilege; + } + + public void setPrivilege(ControllerRoleVo privilege) { + this.privilege = privilege; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ControllerRoleDetailVo controllerRoleDetailVo = (ControllerRoleDetailVo) o; + return Objects.equals(this.id, controllerRoleDetailVo.id) && + Objects.equals(this.name, controllerRoleDetailVo.name) && + Objects.equals(this.type, controllerRoleDetailVo.type) && + Objects.equals(this.defaultRole, controllerRoleDetailVo.defaultRole) && + Objects.equals(this.source, controllerRoleDetailVo.source) && + Objects.equals(this.privilege, controllerRoleDetailVo.privilege); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, type, defaultRole, source, privilege); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ControllerRoleDetailVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" defaultRole: ").append(toIndentedString(defaultRole)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" privilege: ").append(toIndentedString(privilege)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ControllerRoleVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ControllerRoleVo.java new file mode 100644 index 0000000..3d5f7a3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ControllerRoleVo.java @@ -0,0 +1,953 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Role privilege + */ +@ApiModel(description = "Role privilege") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class ControllerRoleVo { + @JsonProperty("license") + private Integer license; + + @JsonProperty("globalDashboard") + private Integer globalDashboard; + + @JsonProperty("dashboard") + private Integer dashboard; + + @JsonProperty("devices") + private Integer devices; + + @JsonProperty("adopt") + private Integer adopt; + + @JsonProperty("addDevices") + private Integer addDevices; + + @JsonProperty("addAdoptDevice") + private Integer addAdoptDevice; + + @JsonProperty("manualUpgrade") + private Integer manualUpgrade; + + @JsonProperty("globalLog") + private Integer globalLog; + + @JsonProperty("log") + private Integer log; + + @JsonProperty("licenseBind") + private Integer licenseBind; + + @JsonProperty("users") + private Integer users; + + @JsonProperty("roles") + private Integer roles; + + @JsonProperty("samlUsers") + private Integer samlUsers; + + @JsonProperty("samlRoles") + private Integer samlRoles; + + @JsonProperty("samlSsos") + private Integer samlSsos; + + @JsonProperty("globalSetting") + private Integer globalSetting; + + @JsonProperty("exportData") + private Integer exportData; + + @JsonProperty("globalExportData") + private Integer globalExportData; + + @JsonProperty("exportGlobalLog") + private Integer exportGlobalLog; + + @JsonProperty("hotspot") + private Integer hotspot; + + @JsonProperty("statics") + private Integer statics; + + @JsonProperty("map") + private Integer map; + + @JsonProperty("clients") + private Integer clients; + + @JsonProperty("insight") + private Integer insight; + + @JsonProperty("report") + private Integer report; + + @JsonProperty("network") + private Integer network; + + @JsonProperty("deviceAccount") + private Integer deviceAccount; + + @JsonProperty("anomaly") + private Integer anomaly; + + @JsonProperty("analyze") + private Integer analyze; + + @JsonProperty("siteAnalyze") + private Integer siteAnalyze; + + @JsonProperty("globalSecurity") + private Integer globalSecurity; + + @JsonProperty("globalWebhook") + private Integer globalWebhook; + + @JsonProperty("globalMapToken") + private Integer globalMapToken; + + @JsonProperty("siteTemplate") + private Integer siteTemplate; + + @JsonProperty("firmwareManager") + private Integer firmwareManager; + + public ControllerRoleVo license(Integer license) { + this.license = license; + return this; + } + + /** + * License permission, it should be a value as follows: 0:block; 1:view only; 2:modify + * @return license + */ + @ApiModelProperty(value = "License permission, it should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getLicense() { + return license; + } + + public void setLicense(Integer license) { + this.license = license; + } + + public ControllerRoleVo globalDashboard(Integer globalDashboard) { + this.globalDashboard = globalDashboard; + return this; + } + + /** + * Dashboard permission in global view. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return globalDashboard + */ + @ApiModelProperty(value = "Dashboard permission in global view. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getGlobalDashboard() { + return globalDashboard; + } + + public void setGlobalDashboard(Integer globalDashboard) { + this.globalDashboard = globalDashboard; + } + + public ControllerRoleVo dashboard(Integer dashboard) { + this.dashboard = dashboard; + return this; + } + + /** + * Dashboard permission in site view. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return dashboard + */ + @ApiModelProperty(value = "Dashboard permission in site view. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getDashboard() { + return dashboard; + } + + public void setDashboard(Integer dashboard) { + this.dashboard = dashboard; + } + + public ControllerRoleVo devices(Integer devices) { + this.devices = devices; + return this; + } + + /** + * Devices permission in site view and global view. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return devices + */ + @ApiModelProperty(value = "Devices permission in site view and global view. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getDevices() { + return devices; + } + + public void setDevices(Integer devices) { + this.devices = devices; + } + + public ControllerRoleVo adopt(Integer adopt) { + this.adopt = adopt; + return this; + } + + /** + * Adopt permission should be a value as follows: 0:block; 2:access + * @return adopt + */ + @ApiModelProperty(value = "Adopt permission should be a value as follows: 0:block; 2:access") + + + public Integer getAdopt() { + return adopt; + } + + public void setAdopt(Integer adopt) { + this.adopt = adopt; + } + + public ControllerRoleVo addDevices(Integer addDevices) { + this.addDevices = addDevices; + return this; + } + + /** + * Add devices permission should be a value as follows: 0:block; 2:access + * @return addDevices + */ + @ApiModelProperty(value = "Add devices permission should be a value as follows: 0:block; 2:access") + + + public Integer getAddDevices() { + return addDevices; + } + + public void setAddDevices(Integer addDevices) { + this.addDevices = addDevices; + } + + public ControllerRoleVo addAdoptDevice(Integer addAdoptDevice) { + this.addAdoptDevice = addAdoptDevice; + return this; + } + + /** + * Add and adopt devices permission should be a value as follows: 0:block; 2:access + * @return addAdoptDevice + */ + @ApiModelProperty(value = "Add and adopt devices permission should be a value as follows: 0:block; 2:access") + + + public Integer getAddAdoptDevice() { + return addAdoptDevice; + } + + public void setAddAdoptDevice(Integer addAdoptDevice) { + this.addAdoptDevice = addAdoptDevice; + } + + public ControllerRoleVo manualUpgrade(Integer manualUpgrade) { + this.manualUpgrade = manualUpgrade; + return this; + } + + /** + * Manual Upgrade permission should be a value as follows: 0:block; 2:access + * @return manualUpgrade + */ + @ApiModelProperty(value = "Manual Upgrade permission should be a value as follows: 0:block; 2:access") + + + public Integer getManualUpgrade() { + return manualUpgrade; + } + + public void setManualUpgrade(Integer manualUpgrade) { + this.manualUpgrade = manualUpgrade; + } + + public ControllerRoleVo globalLog(Integer globalLog) { + this.globalLog = globalLog; + return this; + } + + /** + * Log permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return globalLog + */ + @ApiModelProperty(value = "Log permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getGlobalLog() { + return globalLog; + } + + public void setGlobalLog(Integer globalLog) { + this.globalLog = globalLog; + } + + public ControllerRoleVo log(Integer log) { + this.log = log; + return this; + } + + /** + * Log permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return log + */ + @ApiModelProperty(value = "Log permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getLog() { + return log; + } + + public void setLog(Integer log) { + this.log = log; + } + + public ControllerRoleVo licenseBind(Integer licenseBind) { + this.licenseBind = licenseBind; + return this; + } + + /** + * License bind permission should be a value as follows: 0:block; 1:view only; 2:modify + * @return licenseBind + */ + @ApiModelProperty(value = "License bind permission should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getLicenseBind() { + return licenseBind; + } + + public void setLicenseBind(Integer licenseBind) { + this.licenseBind = licenseBind; + } + + public ControllerRoleVo users(Integer users) { + this.users = users; + return this; + } + + /** + * Users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return users + */ + @ApiModelProperty(value = "Users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getUsers() { + return users; + } + + public void setUsers(Integer users) { + this.users = users; + } + + public ControllerRoleVo roles(Integer roles) { + this.roles = roles; + return this; + } + + /** + * Roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return roles + */ + @ApiModelProperty(value = "Roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getRoles() { + return roles; + } + + public void setRoles(Integer roles) { + this.roles = roles; + } + + public ControllerRoleVo samlUsers(Integer samlUsers) { + this.samlUsers = samlUsers; + return this; + } + + /** + * Saml users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return samlUsers + */ + @ApiModelProperty(value = "Saml users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getSamlUsers() { + return samlUsers; + } + + public void setSamlUsers(Integer samlUsers) { + this.samlUsers = samlUsers; + } + + public ControllerRoleVo samlRoles(Integer samlRoles) { + this.samlRoles = samlRoles; + return this; + } + + /** + * Saml roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return samlRoles + */ + @ApiModelProperty(value = "Saml roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getSamlRoles() { + return samlRoles; + } + + public void setSamlRoles(Integer samlRoles) { + this.samlRoles = samlRoles; + } + + public ControllerRoleVo samlSsos(Integer samlSsos) { + this.samlSsos = samlSsos; + return this; + } + + /** + * Saml ssos permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return samlSsos + */ + @ApiModelProperty(value = "Saml ssos permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getSamlSsos() { + return samlSsos; + } + + public void setSamlSsos(Integer samlSsos) { + this.samlSsos = samlSsos; + } + + public ControllerRoleVo globalSetting(Integer globalSetting) { + this.globalSetting = globalSetting; + return this; + } + + /** + * Settings permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return globalSetting + */ + @ApiModelProperty(value = "Settings permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getGlobalSetting() { + return globalSetting; + } + + public void setGlobalSetting(Integer globalSetting) { + this.globalSetting = globalSetting; + } + + public ControllerRoleVo exportData(Integer exportData) { + this.exportData = exportData; + return this; + } + + /** + * Export data permission in site view should be a value as follows: 0:block; 2:access + * @return exportData + */ + @ApiModelProperty(value = "Export data permission in site view should be a value as follows: 0:block; 2:access") + + + public Integer getExportData() { + return exportData; + } + + public void setExportData(Integer exportData) { + this.exportData = exportData; + } + + public ControllerRoleVo globalExportData(Integer globalExportData) { + this.globalExportData = globalExportData; + return this; + } + + /** + * Export data permission in global view should be a value as follows: 0:block; 2:access + * @return globalExportData + */ + @ApiModelProperty(value = "Export data permission in global view should be a value as follows: 0:block; 2:access") + + + public Integer getGlobalExportData() { + return globalExportData; + } + + public void setGlobalExportData(Integer globalExportData) { + this.globalExportData = globalExportData; + } + + public ControllerRoleVo exportGlobalLog(Integer exportGlobalLog) { + this.exportGlobalLog = exportGlobalLog; + return this; + } + + /** + * Export global log data permission in global view should be a value as follows: 0:block; 2:access + * @return exportGlobalLog + */ + @ApiModelProperty(value = "Export global log data permission in global view should be a value as follows: 0:block; 2:access") + + + public Integer getExportGlobalLog() { + return exportGlobalLog; + } + + public void setExportGlobalLog(Integer exportGlobalLog) { + this.exportGlobalLog = exportGlobalLog; + } + + public ControllerRoleVo hotspot(Integer hotspot) { + this.hotspot = hotspot; + return this; + } + + /** + * Hotspot permission should be a value as follows: 0:block; 1:view only; 2:modify + * @return hotspot + */ + @ApiModelProperty(value = "Hotspot permission should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getHotspot() { + return hotspot; + } + + public void setHotspot(Integer hotspot) { + this.hotspot = hotspot; + } + + public ControllerRoleVo statics(Integer statics) { + this.statics = statics; + return this; + } + + /** + * Statics permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return statics + */ + @ApiModelProperty(value = "Statics permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getStatics() { + return statics; + } + + public void setStatics(Integer statics) { + this.statics = statics; + } + + public ControllerRoleVo map(Integer map) { + this.map = map; + return this; + } + + /** + * Map permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return map + */ + @ApiModelProperty(value = "Map permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMap() { + return map; + } + + public void setMap(Integer map) { + this.map = map; + } + + public ControllerRoleVo clients(Integer clients) { + this.clients = clients; + return this; + } + + /** + * Clients permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return clients + */ + @ApiModelProperty(value = "Clients permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getClients() { + return clients; + } + + public void setClients(Integer clients) { + this.clients = clients; + } + + public ControllerRoleVo insight(Integer insight) { + this.insight = insight; + return this; + } + + /** + * Insight permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return insight + */ + @ApiModelProperty(value = "Insight permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getInsight() { + return insight; + } + + public void setInsight(Integer insight) { + this.insight = insight; + } + + public ControllerRoleVo report(Integer report) { + this.report = report; + return this; + } + + /** + * Network report permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return report + */ + @ApiModelProperty(value = "Network report permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getReport() { + return report; + } + + public void setReport(Integer report) { + this.report = report; + } + + public ControllerRoleVo network(Integer network) { + this.network = network; + return this; + } + + /** + * Site network settings permission in site view -> settings should be a value as follows: 0:block; 1:view only; 2:modify + * @return network + */ + @ApiModelProperty(value = "Site network settings permission in site view -> settings should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getNetwork() { + return network; + } + + public void setNetwork(Integer network) { + this.network = network; + } + + public ControllerRoleVo deviceAccount(Integer deviceAccount) { + this.deviceAccount = deviceAccount; + return this; + } + + /** + * Device account permission in site view -> site settings should be a value as follows: 0:block; 1:view only; 2:modify + * @return deviceAccount + */ + @ApiModelProperty(value = "Device account permission in site view -> site settings should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getDeviceAccount() { + return deviceAccount; + } + + public void setDeviceAccount(Integer deviceAccount) { + this.deviceAccount = deviceAccount; + } + + public ControllerRoleVo anomaly(Integer anomaly) { + this.anomaly = anomaly; + return this; + } + + /** + * Anomaly permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return anomaly + */ + @ApiModelProperty(value = "Anomaly permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getAnomaly() { + return anomaly; + } + + public void setAnomaly(Integer anomaly) { + this.anomaly = anomaly; + } + + public ControllerRoleVo analyze(Integer analyze) { + this.analyze = analyze; + return this; + } + + /** + * Tools permission in global view. Only for hardware controller should be a value as follows: 0:block; 1:view only; 2:modify + * @return analyze + */ + @ApiModelProperty(value = "Tools permission in global view. Only for hardware controller should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getAnalyze() { + return analyze; + } + + public void setAnalyze(Integer analyze) { + this.analyze = analyze; + } + + public ControllerRoleVo siteAnalyze(Integer siteAnalyze) { + this.siteAnalyze = siteAnalyze; + return this; + } + + /** + * Tools in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return siteAnalyze + */ + @ApiModelProperty(value = "Tools in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getSiteAnalyze() { + return siteAnalyze; + } + + public void setSiteAnalyze(Integer siteAnalyze) { + this.siteAnalyze = siteAnalyze; + } + + public ControllerRoleVo globalSecurity(Integer globalSecurity) { + this.globalSecurity = globalSecurity; + return this; + } + + /** + * Security permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return globalSecurity + */ + @ApiModelProperty(value = "Security permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getGlobalSecurity() { + return globalSecurity; + } + + public void setGlobalSecurity(Integer globalSecurity) { + this.globalSecurity = globalSecurity; + } + + public ControllerRoleVo globalWebhook(Integer globalWebhook) { + this.globalWebhook = globalWebhook; + return this; + } + + /** + * Webhook in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller + * @return globalWebhook + */ + @ApiModelProperty(value = "Webhook in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller") + + + public Integer getGlobalWebhook() { + return globalWebhook; + } + + public void setGlobalWebhook(Integer globalWebhook) { + this.globalWebhook = globalWebhook; + } + + public ControllerRoleVo globalMapToken(Integer globalMapToken) { + this.globalMapToken = globalMapToken; + return this; + } + + /** + * MapToken in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller + * @return globalMapToken + */ + @ApiModelProperty(value = "MapToken in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller") + + + public Integer getGlobalMapToken() { + return globalMapToken; + } + + public void setGlobalMapToken(Integer globalMapToken) { + this.globalMapToken = globalMapToken; + } + + public ControllerRoleVo siteTemplate(Integer siteTemplate) { + this.siteTemplate = siteTemplate; + return this; + } + + /** + * SiteTemplate in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller + * @return siteTemplate + */ + @ApiModelProperty(value = "SiteTemplate in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller") + + + public Integer getSiteTemplate() { + return siteTemplate; + } + + public void setSiteTemplate(Integer siteTemplate) { + this.siteTemplate = siteTemplate; + } + + public ControllerRoleVo firmwareManager(Integer firmwareManager) { + this.firmwareManager = firmwareManager; + return this; + } + + /** + * FirmwareManager in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller + * @return firmwareManager + */ + @ApiModelProperty(value = "FirmwareManager in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller") + + + public Integer getFirmwareManager() { + return firmwareManager; + } + + public void setFirmwareManager(Integer firmwareManager) { + this.firmwareManager = firmwareManager; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ControllerRoleVo controllerRoleVo = (ControllerRoleVo) o; + return Objects.equals(this.license, controllerRoleVo.license) && + Objects.equals(this.globalDashboard, controllerRoleVo.globalDashboard) && + Objects.equals(this.dashboard, controllerRoleVo.dashboard) && + Objects.equals(this.devices, controllerRoleVo.devices) && + Objects.equals(this.adopt, controllerRoleVo.adopt) && + Objects.equals(this.addDevices, controllerRoleVo.addDevices) && + Objects.equals(this.addAdoptDevice, controllerRoleVo.addAdoptDevice) && + Objects.equals(this.manualUpgrade, controllerRoleVo.manualUpgrade) && + Objects.equals(this.globalLog, controllerRoleVo.globalLog) && + Objects.equals(this.log, controllerRoleVo.log) && + Objects.equals(this.licenseBind, controllerRoleVo.licenseBind) && + Objects.equals(this.users, controllerRoleVo.users) && + Objects.equals(this.roles, controllerRoleVo.roles) && + Objects.equals(this.samlUsers, controllerRoleVo.samlUsers) && + Objects.equals(this.samlRoles, controllerRoleVo.samlRoles) && + Objects.equals(this.samlSsos, controllerRoleVo.samlSsos) && + Objects.equals(this.globalSetting, controllerRoleVo.globalSetting) && + Objects.equals(this.exportData, controllerRoleVo.exportData) && + Objects.equals(this.globalExportData, controllerRoleVo.globalExportData) && + Objects.equals(this.exportGlobalLog, controllerRoleVo.exportGlobalLog) && + Objects.equals(this.hotspot, controllerRoleVo.hotspot) && + Objects.equals(this.statics, controllerRoleVo.statics) && + Objects.equals(this.map, controllerRoleVo.map) && + Objects.equals(this.clients, controllerRoleVo.clients) && + Objects.equals(this.insight, controllerRoleVo.insight) && + Objects.equals(this.report, controllerRoleVo.report) && + Objects.equals(this.network, controllerRoleVo.network) && + Objects.equals(this.deviceAccount, controllerRoleVo.deviceAccount) && + Objects.equals(this.anomaly, controllerRoleVo.anomaly) && + Objects.equals(this.analyze, controllerRoleVo.analyze) && + Objects.equals(this.siteAnalyze, controllerRoleVo.siteAnalyze) && + Objects.equals(this.globalSecurity, controllerRoleVo.globalSecurity) && + Objects.equals(this.globalWebhook, controllerRoleVo.globalWebhook) && + Objects.equals(this.globalMapToken, controllerRoleVo.globalMapToken) && + Objects.equals(this.siteTemplate, controllerRoleVo.siteTemplate) && + Objects.equals(this.firmwareManager, controllerRoleVo.firmwareManager); + } + + @Override + public int hashCode() { + return Objects.hash(license, globalDashboard, dashboard, devices, adopt, addDevices, addAdoptDevice, manualUpgrade, globalLog, log, licenseBind, users, roles, samlUsers, samlRoles, samlSsos, globalSetting, exportData, globalExportData, exportGlobalLog, hotspot, statics, map, clients, insight, report, network, deviceAccount, anomaly, analyze, siteAnalyze, globalSecurity, globalWebhook, globalMapToken, siteTemplate, firmwareManager); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ControllerRoleVo {\n"); + + sb.append(" license: ").append(toIndentedString(license)).append("\n"); + sb.append(" globalDashboard: ").append(toIndentedString(globalDashboard)).append("\n"); + sb.append(" dashboard: ").append(toIndentedString(dashboard)).append("\n"); + sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); + sb.append(" adopt: ").append(toIndentedString(adopt)).append("\n"); + sb.append(" addDevices: ").append(toIndentedString(addDevices)).append("\n"); + sb.append(" addAdoptDevice: ").append(toIndentedString(addAdoptDevice)).append("\n"); + sb.append(" manualUpgrade: ").append(toIndentedString(manualUpgrade)).append("\n"); + sb.append(" globalLog: ").append(toIndentedString(globalLog)).append("\n"); + sb.append(" log: ").append(toIndentedString(log)).append("\n"); + sb.append(" licenseBind: ").append(toIndentedString(licenseBind)).append("\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); + sb.append(" samlUsers: ").append(toIndentedString(samlUsers)).append("\n"); + sb.append(" samlRoles: ").append(toIndentedString(samlRoles)).append("\n"); + sb.append(" samlSsos: ").append(toIndentedString(samlSsos)).append("\n"); + sb.append(" globalSetting: ").append(toIndentedString(globalSetting)).append("\n"); + sb.append(" exportData: ").append(toIndentedString(exportData)).append("\n"); + sb.append(" globalExportData: ").append(toIndentedString(globalExportData)).append("\n"); + sb.append(" exportGlobalLog: ").append(toIndentedString(exportGlobalLog)).append("\n"); + sb.append(" hotspot: ").append(toIndentedString(hotspot)).append("\n"); + sb.append(" statics: ").append(toIndentedString(statics)).append("\n"); + sb.append(" map: ").append(toIndentedString(map)).append("\n"); + sb.append(" clients: ").append(toIndentedString(clients)).append("\n"); + sb.append(" insight: ").append(toIndentedString(insight)).append("\n"); + sb.append(" report: ").append(toIndentedString(report)).append("\n"); + sb.append(" network: ").append(toIndentedString(network)).append("\n"); + sb.append(" deviceAccount: ").append(toIndentedString(deviceAccount)).append("\n"); + sb.append(" anomaly: ").append(toIndentedString(anomaly)).append("\n"); + sb.append(" analyze: ").append(toIndentedString(analyze)).append("\n"); + sb.append(" siteAnalyze: ").append(toIndentedString(siteAnalyze)).append("\n"); + sb.append(" globalSecurity: ").append(toIndentedString(globalSecurity)).append("\n"); + sb.append(" globalWebhook: ").append(toIndentedString(globalWebhook)).append("\n"); + sb.append(" globalMapToken: ").append(toIndentedString(globalMapToken)).append("\n"); + sb.append(" siteTemplate: ").append(toIndentedString(siteTemplate)).append("\n"); + sb.append(" firmwareManager: ").append(toIndentedString(firmwareManager)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateRoleResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateRoleResultVo.java new file mode 100644 index 0000000..2a18293 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateRoleResultVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CreateRoleResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class CreateRoleResultVo { + @JsonProperty("roleId") + private String roleId; + + public CreateRoleResultVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * Role ID + * @return roleId + */ + @ApiModelProperty(value = "Role ID") + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateRoleResultVo createRoleResultVo = (CreateRoleResultVo) o; + return Objects.equals(this.roleId, createRoleResultVo.roleId); + } + + @Override + public int hashCode() { + return Objects.hash(roleId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRoleResultVo {\n"); + + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateUserResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateUserResultVo.java new file mode 100644 index 0000000..1c0612c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateUserResultVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CreateUserResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class CreateUserResultVo { + @JsonProperty("userId") + private String userId; + + public CreateUserResultVo userId(String userId) { + this.userId = userId; + return this; + } + + /** + * User ID + * @return userId + */ + @ApiModelProperty(value = "User ID") + + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateUserResultVo createUserResultVo = (CreateUserResultVo) o; + return Objects.equals(this.userId, createUserResultVo.userId); + } + + @Override + public int hashCode() { + return Objects.hash(userId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateUserResultVo {\n"); + + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateUserVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateUserVo.java new file mode 100644 index 0000000..58bd791 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/CreateUserVo.java @@ -0,0 +1,294 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateUserVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class CreateUserVo { + @JsonProperty("type") + private Integer type; + + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("name") + private String name; + + @JsonProperty("password") + private String password; + + @JsonProperty("email") + private String email; + + @JsonProperty("alert") + private Boolean alert; + + @JsonProperty("incidentNotification") + private Boolean incidentNotification; + + @JsonProperty("sites") + @Valid + private List sites = null; + + @JsonProperty("allSite") + private Boolean allSite; + + public CreateUserVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of user should be a value as follows: 0: local user; 1: cloud user. + * @return type + */ + @ApiModelProperty(required = true, value = "Type of user should be a value as follows: 0: local user; 1: cloud user.") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public CreateUserVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * This field represents Role ID. Role can be created using 'Create new role' interface, and Role ID can be obtained from 'Get role list' interface. + * @return roleId + */ + @ApiModelProperty(required = true, value = "This field represents Role ID. Role can be created using 'Create new role' interface, and Role ID can be obtained from 'Get role list' interface.") + @NotNull + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public CreateUserVo name(String name) { + this.name = name; + return this; + } + + /** + * User name should contain 1 to 128 characters. When creating cloud user, you should set TP-LINK ID. + * @return name + */ + @ApiModelProperty(required = true, value = "User name should contain 1 to 128 characters. When creating cloud user, you should set TP-LINK ID.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateUserVo password(String password) { + this.password = password; + return this; + } + + /** + * Password of local user should contain 8 to 128 characters. And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported. + * @return password + */ + @ApiModelProperty(value = "Password of local user should contain 8 to 128 characters. And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported.") + +@Pattern(regexp="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[\\!\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\-\\./\\:\\;\\<\\=\\>\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~])(?!.*[\\00-\\040\\042\\077\\0177]).{8,128}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public CreateUserVo email(String email) { + this.email = email; + return this; + } + + /** + * Email of user. + * @return email + */ + @ApiModelProperty(value = "Email of user.") + + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public CreateUserVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * Whether this user want to receive alert emails. Make sure your email is not null + * @return alert + */ + @ApiModelProperty(value = "Whether this user want to receive alert emails. Make sure your email is not null") + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + public CreateUserVo incidentNotification(Boolean incidentNotification) { + this.incidentNotification = incidentNotification; + return this; + } + + /** + * Incident notification + * @return incidentNotification + */ + @ApiModelProperty(value = "Incident notification") + + + public Boolean getIncidentNotification() { + return incidentNotification; + } + + public void setIncidentNotification(Boolean incidentNotification) { + this.incidentNotification = incidentNotification; + } + + public CreateUserVo sites(List sites) { + this.sites = sites; + return this; + } + + public CreateUserVo addSitesItem(String sitesItem) { + if (this.sites == null) { + this.sites = new ArrayList<>(); + } + this.sites.add(sitesItem); + return this; + } + + /** + * User site privilege list + * @return sites + */ + @ApiModelProperty(value = "User site privilege list") + + + public List getSites() { + return sites; + } + + public void setSites(List sites) { + this.sites = sites; + } + + public CreateUserVo allSite(Boolean allSite) { + this.allSite = allSite; + return this; + } + + /** + * Whether user has all site permission, including new created site. + * @return allSite + */ + @ApiModelProperty(required = true, value = "Whether user has all site permission, including new created site.") + @NotNull + + + public Boolean getAllSite() { + return allSite; + } + + public void setAllSite(Boolean allSite) { + this.allSite = allSite; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateUserVo createUserVo = (CreateUserVo) o; + return Objects.equals(this.type, createUserVo.type) && + Objects.equals(this.roleId, createUserVo.roleId) && + Objects.equals(this.name, createUserVo.name) && + Objects.equals(this.password, createUserVo.password) && + Objects.equals(this.email, createUserVo.email) && + Objects.equals(this.alert, createUserVo.alert) && + Objects.equals(this.incidentNotification, createUserVo.incidentNotification) && + Objects.equals(this.sites, createUserVo.sites) && + Objects.equals(this.allSite, createUserVo.allSite); + } + + @Override + public int hashCode() { + return Objects.hash(type, roleId, name, password, email, alert, incidentNotification, sites, allSite); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateUserVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append(" incidentNotification: ").append(toIndentedString(incidentNotification)).append("\n"); + sb.append(" sites: ").append(toIndentedString(sites)).append("\n"); + sb.append(" allSite: ").append(toIndentedString(allSite)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/DeleteUserVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/DeleteUserVo.java new file mode 100644 index 0000000..83f85af --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/DeleteUserVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * DeleteUserVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class DeleteUserVo { + @JsonProperty("forceDelete") + private Boolean forceDelete; + + public DeleteUserVo forceDelete(Boolean forceDelete) { + this.forceDelete = forceDelete; + return this; + } + + /** + * Force delete target user. If false, target user can not be deleted, when target user has child users. If true, target user will be deleted anyway. Target user's child users will be root's child user. + * @return forceDelete + */ + @ApiModelProperty(value = "Force delete target user. If false, target user can not be deleted, when target user has child users. If true, target user will be deleted anyway. Target user's child users will be root's child user.") + + + public Boolean getForceDelete() { + return forceDelete; + } + + public void setForceDelete(Boolean forceDelete) { + this.forceDelete = forceDelete; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteUserVo deleteUserVo = (DeleteUserVo) o; + return Objects.equals(this.forceDelete, deleteUserVo.forceDelete); + } + + @Override + public int hashCode() { + return Objects.hash(forceDelete); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteUserVo {\n"); + + sb.append(" forceDelete: ").append(toIndentedString(forceDelete)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserDetailOpenApiVo.java new file mode 100644 index 0000000..d5c7dc5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserDetailOpenApiVo.java @@ -0,0 +1,228 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * ExternalUserDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class ExternalUserDetailOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("idpId") + private String idpId; + + @JsonProperty("idpName") + private String idpName; + + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("roleName") + private String roleName; + + @JsonProperty("privilege") + private PrivilegeOpenApiVo privilege; + + public ExternalUserDetailOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * External user ID. + * @return id + */ + @ApiModelProperty(value = "External user ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ExternalUserDetailOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * External user name. + * @return name + */ + @ApiModelProperty(value = "External user name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ExternalUserDetailOpenApiVo idpId(String idpId) { + this.idpId = idpId; + return this; + } + + /** + * The ID of IdP which is used by this user. + * @return idpId + */ + @ApiModelProperty(value = "The ID of IdP which is used by this user.") + + + public String getIdpId() { + return idpId; + } + + public void setIdpId(String idpId) { + this.idpId = idpId; + } + + public ExternalUserDetailOpenApiVo idpName(String idpName) { + this.idpName = idpName; + return this; + } + + /** + * The name of IdP which is used by this user. + * @return idpName + */ + @ApiModelProperty(value = "The name of IdP which is used by this user.") + + + public String getIdpName() { + return idpName; + } + + public void setIdpName(String idpName) { + this.idpName = idpName; + } + + public ExternalUserDetailOpenApiVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * The ID of role which is used by this user. + * @return roleId + */ + @ApiModelProperty(value = "The ID of role which is used by this user.") + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public ExternalUserDetailOpenApiVo roleName(String roleName) { + this.roleName = roleName; + return this; + } + + /** + * The name of role which is used by this user. + * @return roleName + */ + @ApiModelProperty(value = "The name of role which is used by this user.") + + + public String getRoleName() { + return roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + } + + public ExternalUserDetailOpenApiVo privilege(PrivilegeOpenApiVo privilege) { + this.privilege = privilege; + return this; + } + + /** + * Get privilege + * @return privilege + */ + @ApiModelProperty(value = "") + + @Valid + + public PrivilegeOpenApiVo getPrivilege() { + return privilege; + } + + public void setPrivilege(PrivilegeOpenApiVo privilege) { + this.privilege = privilege; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalUserDetailOpenApiVo externalUserDetailOpenApiVo = (ExternalUserDetailOpenApiVo) o; + return Objects.equals(this.id, externalUserDetailOpenApiVo.id) && + Objects.equals(this.name, externalUserDetailOpenApiVo.name) && + Objects.equals(this.idpId, externalUserDetailOpenApiVo.idpId) && + Objects.equals(this.idpName, externalUserDetailOpenApiVo.idpName) && + Objects.equals(this.roleId, externalUserDetailOpenApiVo.roleId) && + Objects.equals(this.roleName, externalUserDetailOpenApiVo.roleName) && + Objects.equals(this.privilege, externalUserDetailOpenApiVo.privilege); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, idpId, idpName, roleId, roleName, privilege); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalUserDetailOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" idpId: ").append(toIndentedString(idpId)).append("\n"); + sb.append(" idpName: ").append(toIndentedString(idpName)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n"); + sb.append(" privilege: ").append(toIndentedString(privilege)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserGroupDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserGroupDetailOpenApiVo.java new file mode 100644 index 0000000..2304fbb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserGroupDetailOpenApiVo.java @@ -0,0 +1,239 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ExternalUserGroupDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class ExternalUserGroupDetailOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("roleName") + private String roleName; + + @JsonProperty("roleType") + private Integer roleType; + + @JsonProperty("allSite") + private Boolean allSite; + + @JsonProperty("sites") + @Valid + private List sites = null; + + public ExternalUserGroupDetailOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * External user group ID. + * @return id + */ + @ApiModelProperty(value = "External user group ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ExternalUserGroupDetailOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * External user group name. + * @return name + */ + @ApiModelProperty(value = "External user group name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ExternalUserGroupDetailOpenApiVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * Role ID. + * @return roleId + */ + @ApiModelProperty(value = "Role ID.") + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public ExternalUserGroupDetailOpenApiVo roleName(String roleName) { + this.roleName = roleName; + return this; + } + + /** + * Role name. + * @return roleName + */ + @ApiModelProperty(value = "Role name.") + + + public String getRoleName() { + return roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + } + + public ExternalUserGroupDetailOpenApiVo roleType(Integer roleType) { + this.roleType = roleType; + return this; + } + + /** + * Role type. It should be a value as follows: 0: standard, 1: customer, 2: msp. + * @return roleType + */ + @ApiModelProperty(value = "Role type. It should be a value as follows: 0: standard, 1: customer, 2: msp.") + + + public Integer getRoleType() { + return roleType; + } + + public void setRoleType(Integer roleType) { + this.roleType = roleType; + } + + public ExternalUserGroupDetailOpenApiVo allSite(Boolean allSite) { + this.allSite = allSite; + return this; + } + + /** + * Whether having all site permissions. + * @return allSite + */ + @ApiModelProperty(value = "Whether having all site permissions.") + + + public Boolean getAllSite() { + return allSite; + } + + public void setAllSite(Boolean allSite) { + this.allSite = allSite; + } + + public ExternalUserGroupDetailOpenApiVo sites(List sites) { + this.sites = sites; + return this; + } + + public ExternalUserGroupDetailOpenApiVo addSitesItem(SiteInfoOpenApiVo sitesItem) { + if (this.sites == null) { + this.sites = new ArrayList<>(); + } + this.sites.add(sitesItem); + return this; + } + + /** + * The sites which can be accessed. + * @return sites + */ + @ApiModelProperty(value = "The sites which can be accessed.") + + @Valid + + public List getSites() { + return sites; + } + + public void setSites(List sites) { + this.sites = sites; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalUserGroupDetailOpenApiVo externalUserGroupDetailOpenApiVo = (ExternalUserGroupDetailOpenApiVo) o; + return Objects.equals(this.id, externalUserGroupDetailOpenApiVo.id) && + Objects.equals(this.name, externalUserGroupDetailOpenApiVo.name) && + Objects.equals(this.roleId, externalUserGroupDetailOpenApiVo.roleId) && + Objects.equals(this.roleName, externalUserGroupDetailOpenApiVo.roleName) && + Objects.equals(this.roleType, externalUserGroupDetailOpenApiVo.roleType) && + Objects.equals(this.allSite, externalUserGroupDetailOpenApiVo.allSite) && + Objects.equals(this.sites, externalUserGroupDetailOpenApiVo.sites); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, roleId, roleName, roleType, allSite, sites); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalUserGroupDetailOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n"); + sb.append(" roleType: ").append(toIndentedString(roleType)).append("\n"); + sb.append(" allSite: ").append(toIndentedString(allSite)).append("\n"); + sb.append(" sites: ").append(toIndentedString(sites)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserGroupOpenApiVo.java new file mode 100644 index 0000000..d6beaf2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ExternalUserGroupOpenApiVo.java @@ -0,0 +1,168 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ExternalUserGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class ExternalUserGroupOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("allSite") + private Boolean allSite; + + @JsonProperty("sites") + @Valid + private List sites = null; + + public ExternalUserGroupOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * External user group name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "External user group name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ExternalUserGroupOpenApiVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * Role ID which can be obtained from 'Get role list' interface. + * @return roleId + */ + @ApiModelProperty(required = true, value = "Role ID which can be obtained from 'Get role list' interface.") + @NotNull + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public ExternalUserGroupOpenApiVo allSite(Boolean allSite) { + this.allSite = allSite; + return this; + } + + /** + * Whether having all site permissions. + * @return allSite + */ + @ApiModelProperty(required = true, value = "Whether having all site permissions.") + @NotNull + + + public Boolean getAllSite() { + return allSite; + } + + public void setAllSite(Boolean allSite) { + this.allSite = allSite; + } + + public ExternalUserGroupOpenApiVo sites(List sites) { + this.sites = sites; + return this; + } + + public ExternalUserGroupOpenApiVo addSitesItem(String sitesItem) { + if (this.sites == null) { + this.sites = new ArrayList<>(); + } + this.sites.add(sitesItem); + return this; + } + + /** + * The site IDs that can be accessed. Effective when allSite is false. + * @return sites + */ + @ApiModelProperty(value = "The site IDs that can be accessed. Effective when allSite is false.") + + + public List getSites() { + return sites; + } + + public void setSites(List sites) { + this.sites = sites; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalUserGroupOpenApiVo externalUserGroupOpenApiVo = (ExternalUserGroupOpenApiVo) o; + return Objects.equals(this.name, externalUserGroupOpenApiVo.name) && + Objects.equals(this.roleId, externalUserGroupOpenApiVo.roleId) && + Objects.equals(this.allSite, externalUserGroupOpenApiVo.allSite) && + Objects.equals(this.sites, externalUserGroupOpenApiVo.sites); + } + + @Override + public int hashCode() { + return Objects.hash(name, roleId, allSite, sites); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalUserGroupOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" allSite: ").append(toIndentedString(allSite)).append("\n"); + sb.append(" sites: ").append(toIndentedString(sites)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoExternalUserDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoExternalUserDetailOpenApiVo.java new file mode 100644 index 0000000..e730da8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoExternalUserDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoExternalUserDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class GridVoExternalUserDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoExternalUserDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoExternalUserDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoExternalUserDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoExternalUserDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoExternalUserDetailOpenApiVo addDataItem(ExternalUserDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoExternalUserDetailOpenApiVo gridVoExternalUserDetailOpenApiVo = (GridVoExternalUserDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoExternalUserDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoExternalUserDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoExternalUserDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoExternalUserDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoExternalUserDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoExternalUserGroupDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoExternalUserGroupDetailOpenApiVo.java new file mode 100644 index 0000000..24a51ea --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoExternalUserGroupDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoExternalUserGroupDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class GridVoExternalUserGroupDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoExternalUserGroupDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoExternalUserGroupDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoExternalUserGroupDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoExternalUserGroupDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoExternalUserGroupDetailOpenApiVo addDataItem(ExternalUserGroupDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoExternalUserGroupDetailOpenApiVo gridVoExternalUserGroupDetailOpenApiVo = (GridVoExternalUserGroupDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoExternalUserGroupDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoExternalUserGroupDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoExternalUserGroupDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoExternalUserGroupDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoExternalUserGroupDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoIdpMetadataDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoIdpMetadataDetailOpenApiVo.java new file mode 100644 index 0000000..028f3cc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoIdpMetadataDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoIdpMetadataDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class GridVoIdpMetadataDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoIdpMetadataDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoIdpMetadataDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoIdpMetadataDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoIdpMetadataDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoIdpMetadataDetailOpenApiVo addDataItem(IdpMetadataDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoIdpMetadataDetailOpenApiVo gridVoIdpMetadataDetailOpenApiVo = (GridVoIdpMetadataDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoIdpMetadataDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoIdpMetadataDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoIdpMetadataDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoIdpMetadataDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoIdpMetadataDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoUserDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoUserDetailVo.java new file mode 100644 index 0000000..21d13eb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/GridVoUserDetailVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoUserDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class GridVoUserDetailVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoUserDetailVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoUserDetailVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoUserDetailVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoUserDetailVo data(List data) { + this.data = data; + return this; + } + + public GridVoUserDetailVo addDataItem(UserDetailVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoUserDetailVo gridVoUserDetailVo = (GridVoUserDetailVo) o; + return Objects.equals(this.totalRows, gridVoUserDetailVo.totalRows) && + Objects.equals(this.currentPage, gridVoUserDetailVo.currentPage) && + Objects.equals(this.currentSize, gridVoUserDetailVo.currentSize) && + Objects.equals(this.data, gridVoUserDetailVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoUserDetailVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/IdpMetadataDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/IdpMetadataDetailOpenApiVo.java new file mode 100644 index 0000000..618a9b0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/IdpMetadataDetailOpenApiVo.java @@ -0,0 +1,251 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * IdpMetadataDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class IdpMetadataDetailOpenApiVo { + @JsonProperty("idpId") + private String idpId; + + @JsonProperty("name") + private String name; + + @JsonProperty("description") + private String description; + + @JsonProperty("entityId") + private String entityId; + + @JsonProperty("loginUrl") + private String loginUrl; + + @JsonProperty("x509Certificate") + private String x509Certificate; + + @JsonProperty("entityUrl") + private String entityUrl; + + @JsonProperty("signOnUrl") + private String signOnUrl; + + public IdpMetadataDetailOpenApiVo idpId(String idpId) { + this.idpId = idpId; + return this; + } + + /** + * IdP ID(resource ID). + * @return idpId + */ + @ApiModelProperty(value = "IdP ID(resource ID).") + + + public String getIdpId() { + return idpId; + } + + public void setIdpId(String idpId) { + this.idpId = idpId; + } + + public IdpMetadataDetailOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * IdP name. + * @return name + */ + @ApiModelProperty(value = "IdP name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public IdpMetadataDetailOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description. + * @return description + */ + @ApiModelProperty(value = "Description.") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public IdpMetadataDetailOpenApiVo entityId(String entityId) { + this.entityId = entityId; + return this; + } + + /** + * The IdP entity ID which must be unique in same Omadac. + * @return entityId + */ + @ApiModelProperty(value = "The IdP entity ID which must be unique in same Omadac.") + + + public String getEntityId() { + return entityId; + } + + public void setEntityId(String entityId) { + this.entityId = entityId; + } + + public IdpMetadataDetailOpenApiVo loginUrl(String loginUrl) { + this.loginUrl = loginUrl; + return this; + } + + /** + * Login url. + * @return loginUrl + */ + @ApiModelProperty(value = "Login url.") + + + public String getLoginUrl() { + return loginUrl; + } + + public void setLoginUrl(String loginUrl) { + this.loginUrl = loginUrl; + } + + public IdpMetadataDetailOpenApiVo x509Certificate(String x509Certificate) { + this.x509Certificate = x509Certificate; + return this; + } + + /** + * BASE64 encoded string of x509 certificate. + * @return x509Certificate + */ + @ApiModelProperty(value = "BASE64 encoded string of x509 certificate.") + + + public String getX509Certificate() { + return x509Certificate; + } + + public void setX509Certificate(String x509Certificate) { + this.x509Certificate = x509Certificate; + } + + public IdpMetadataDetailOpenApiVo entityUrl(String entityUrl) { + this.entityUrl = entityUrl; + return this; + } + + /** + * Entity url. + * @return entityUrl + */ + @ApiModelProperty(value = "Entity url.") + + + public String getEntityUrl() { + return entityUrl; + } + + public void setEntityUrl(String entityUrl) { + this.entityUrl = entityUrl; + } + + public IdpMetadataDetailOpenApiVo signOnUrl(String signOnUrl) { + this.signOnUrl = signOnUrl; + return this; + } + + /** + * Sign On url. + * @return signOnUrl + */ + @ApiModelProperty(value = "Sign On url.") + + + public String getSignOnUrl() { + return signOnUrl; + } + + public void setSignOnUrl(String signOnUrl) { + this.signOnUrl = signOnUrl; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IdpMetadataDetailOpenApiVo idpMetadataDetailOpenApiVo = (IdpMetadataDetailOpenApiVo) o; + return Objects.equals(this.idpId, idpMetadataDetailOpenApiVo.idpId) && + Objects.equals(this.name, idpMetadataDetailOpenApiVo.name) && + Objects.equals(this.description, idpMetadataDetailOpenApiVo.description) && + Objects.equals(this.entityId, idpMetadataDetailOpenApiVo.entityId) && + Objects.equals(this.loginUrl, idpMetadataDetailOpenApiVo.loginUrl) && + Objects.equals(this.x509Certificate, idpMetadataDetailOpenApiVo.x509Certificate) && + Objects.equals(this.entityUrl, idpMetadataDetailOpenApiVo.entityUrl) && + Objects.equals(this.signOnUrl, idpMetadataDetailOpenApiVo.signOnUrl); + } + + @Override + public int hashCode() { + return Objects.hash(idpId, name, description, entityId, loginUrl, x509Certificate, entityUrl, signOnUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IdpMetadataDetailOpenApiVo {\n"); + + sb.append(" idpId: ").append(toIndentedString(idpId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); + sb.append(" loginUrl: ").append(toIndentedString(loginUrl)).append("\n"); + sb.append(" x509Certificate: ").append(toIndentedString(x509Certificate)).append("\n"); + sb.append(" entityUrl: ").append(toIndentedString(entityUrl)).append("\n"); + sb.append(" signOnUrl: ").append(toIndentedString(signOnUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/IdpMetadataOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/IdpMetadataOpenApiVo.java new file mode 100644 index 0000000..1286801 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/IdpMetadataOpenApiVo.java @@ -0,0 +1,182 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * IdpMetadataOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class IdpMetadataOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("description") + private String description; + + @JsonProperty("entityId") + private String entityId; + + @JsonProperty("loginUrl") + private String loginUrl; + + @JsonProperty("x509Certificate") + private String x509Certificate; + + public IdpMetadataOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * IdP name should contain 1 to 32 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "IdP name should contain 1 to 32 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,30}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public IdpMetadataOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * IdP description should contain 0 to 128 characters. + * @return description + */ + @ApiModelProperty(value = "IdP description should contain 0 to 128 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public IdpMetadataOpenApiVo entityId(String entityId) { + this.entityId = entityId; + return this; + } + + /** + * The IdP entity id which must be unique in same Omadac. + * @return entityId + */ + @ApiModelProperty(required = true, value = "The IdP entity id which must be unique in same Omadac.") + @NotNull + +@Pattern(regexp="^(?=^.{3,255}$)(http(s)?://)(www\\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\\d+)*(/[\\w-]*(\\.[\\w-]+)?)*([\\?&][\\w-]+=[\\w-]*)*$") + public String getEntityId() { + return entityId; + } + + public void setEntityId(String entityId) { + this.entityId = entityId; + } + + public IdpMetadataOpenApiVo loginUrl(String loginUrl) { + this.loginUrl = loginUrl; + return this; + } + + /** + * Login url + * @return loginUrl + */ + @ApiModelProperty(required = true, value = "Login url") + @NotNull + +@Pattern(regexp="^(?=^.{3,255}$)(http(s)?://)(www\\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\\d+)*(/[\\w-]*(\\.[\\w-]+)?)*([\\?&][\\w-]+=[\\w-]*)*$") + public String getLoginUrl() { + return loginUrl; + } + + public void setLoginUrl(String loginUrl) { + this.loginUrl = loginUrl; + } + + public IdpMetadataOpenApiVo x509Certificate(String x509Certificate) { + this.x509Certificate = x509Certificate; + return this; + } + + /** + * BASE64 encoded string of x509 certificate. + * @return x509Certificate + */ + @ApiModelProperty(required = true, value = "BASE64 encoded string of x509 certificate.") + @NotNull + + + public String getX509Certificate() { + return x509Certificate; + } + + public void setX509Certificate(String x509Certificate) { + this.x509Certificate = x509Certificate; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IdpMetadataOpenApiVo idpMetadataOpenApiVo = (IdpMetadataOpenApiVo) o; + return Objects.equals(this.name, idpMetadataOpenApiVo.name) && + Objects.equals(this.description, idpMetadataOpenApiVo.description) && + Objects.equals(this.entityId, idpMetadataOpenApiVo.entityId) && + Objects.equals(this.loginUrl, idpMetadataOpenApiVo.loginUrl) && + Objects.equals(this.x509Certificate, idpMetadataOpenApiVo.x509Certificate); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, entityId, loginUrl, x509Certificate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IdpMetadataOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); + sb.append(" loginUrl: ").append(toIndentedString(loginUrl)).append("\n"); + sb.append(" x509Certificate: ").append(toIndentedString(x509Certificate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ModifyControllerRoleVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ModifyControllerRoleVo.java new file mode 100644 index 0000000..ff8dfb9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ModifyControllerRoleVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ModifyControllerRoleVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class ModifyControllerRoleVo { + @JsonProperty("name") + private String name; + + @JsonProperty("privilege") + private ControllerRoleVo privilege; + + public ModifyControllerRoleVo name(String name) { + this.name = name; + return this; + } + + /** + * Role name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Role name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ModifyControllerRoleVo privilege(ControllerRoleVo privilege) { + this.privilege = privilege; + return this; + } + + /** + * Get privilege + * @return privilege + */ + @ApiModelProperty(value = "") + + @Valid + + public ControllerRoleVo getPrivilege() { + return privilege; + } + + public void setPrivilege(ControllerRoleVo privilege) { + this.privilege = privilege; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyControllerRoleVo modifyControllerRoleVo = (ModifyControllerRoleVo) o; + return Objects.equals(this.name, modifyControllerRoleVo.name) && + Objects.equals(this.privilege, modifyControllerRoleVo.privilege); + } + + @Override + public int hashCode() { + return Objects.hash(name, privilege); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyControllerRoleVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" privilege: ").append(toIndentedString(privilege)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ModifyUserVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ModifyUserVo.java new file mode 100644 index 0000000..b3d6f46 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ModifyUserVo.java @@ -0,0 +1,293 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ModifyUserVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class ModifyUserVo { + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("name") + private String name; + + @JsonProperty("password") + private String password; + + @JsonProperty("email") + private String email; + + @JsonProperty("alert") + private Boolean alert; + + @JsonProperty("forceModify") + private Boolean forceModify; + + @JsonProperty("incidentNotification") + private Boolean incidentNotification; + + @JsonProperty("sites") + @Valid + private List sites = null; + + @JsonProperty("allSite") + private Boolean allSite; + + public ModifyUserVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * This field represents Role ID. Role can be created using 'Create new role' interface, and Role ID can be obtained from 'Get role list' interface. + * @return roleId + */ + @ApiModelProperty(required = true, value = "This field represents Role ID. Role can be created using 'Create new role' interface, and Role ID can be obtained from 'Get role list' interface.") + @NotNull + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public ModifyUserVo name(String name) { + this.name = name; + return this; + } + + /** + * User name should contain 1 to 128 characters. When creating cloud user, you should set TP-LINK ID. + * @return name + */ + @ApiModelProperty(required = true, value = "User name should contain 1 to 128 characters. When creating cloud user, you should set TP-LINK ID.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ModifyUserVo password(String password) { + this.password = password; + return this; + } + + /** + * Password of local user should contain 8 to 128 characters. And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported. + * @return password + */ + @ApiModelProperty(value = "Password of local user should contain 8 to 128 characters. And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported.") + +@Pattern(regexp="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[\\!\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\-\\./\\:\\;\\<\\=\\>\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~])(?!.*[\\00-\\040\\042\\077\\0177]).{8,128}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public ModifyUserVo email(String email) { + this.email = email; + return this; + } + + /** + * Email of user + * @return email + */ + @ApiModelProperty(value = "Email of user") + + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public ModifyUserVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * Alert email + * @return alert + */ + @ApiModelProperty(value = "Alert email") + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + public ModifyUserVo forceModify(Boolean forceModify) { + this.forceModify = forceModify; + return this; + } + + /** + * Force modify + * @return forceModify + */ + @ApiModelProperty(value = "Force modify") + + + public Boolean getForceModify() { + return forceModify; + } + + public void setForceModify(Boolean forceModify) { + this.forceModify = forceModify; + } + + public ModifyUserVo incidentNotification(Boolean incidentNotification) { + this.incidentNotification = incidentNotification; + return this; + } + + /** + * Incident notification + * @return incidentNotification + */ + @ApiModelProperty(value = "Incident notification") + + + public Boolean getIncidentNotification() { + return incidentNotification; + } + + public void setIncidentNotification(Boolean incidentNotification) { + this.incidentNotification = incidentNotification; + } + + public ModifyUserVo sites(List sites) { + this.sites = sites; + return this; + } + + public ModifyUserVo addSitesItem(String sitesItem) { + if (this.sites == null) { + this.sites = new ArrayList<>(); + } + this.sites.add(sitesItem); + return this; + } + + /** + * User site privilege list + * @return sites + */ + @ApiModelProperty(value = "User site privilege list") + + + public List getSites() { + return sites; + } + + public void setSites(List sites) { + this.sites = sites; + } + + public ModifyUserVo allSite(Boolean allSite) { + this.allSite = allSite; + return this; + } + + /** + * Whether user has all site permission, including new created site. + * @return allSite + */ + @ApiModelProperty(required = true, value = "Whether user has all site permission, including new created site.") + @NotNull + + + public Boolean getAllSite() { + return allSite; + } + + public void setAllSite(Boolean allSite) { + this.allSite = allSite; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyUserVo modifyUserVo = (ModifyUserVo) o; + return Objects.equals(this.roleId, modifyUserVo.roleId) && + Objects.equals(this.name, modifyUserVo.name) && + Objects.equals(this.password, modifyUserVo.password) && + Objects.equals(this.email, modifyUserVo.email) && + Objects.equals(this.alert, modifyUserVo.alert) && + Objects.equals(this.forceModify, modifyUserVo.forceModify) && + Objects.equals(this.incidentNotification, modifyUserVo.incidentNotification) && + Objects.equals(this.sites, modifyUserVo.sites) && + Objects.equals(this.allSite, modifyUserVo.allSite); + } + + @Override + public int hashCode() { + return Objects.hash(roleId, name, password, email, alert, forceModify, incidentNotification, sites, allSite); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyUserVo {\n"); + + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append(" forceModify: ").append(toIndentedString(forceModify)).append("\n"); + sb.append(" incidentNotification: ").append(toIndentedString(incidentNotification)).append("\n"); + sb.append(" sites: ").append(toIndentedString(sites)).append("\n"); + sb.append(" allSite: ").append(toIndentedString(allSite)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseControllerRoleDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseControllerRoleDetailVo.java new file mode 100644 index 0000000..8b5e43e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseControllerRoleDetailVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseControllerRoleDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseControllerRoleDetailVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ControllerRoleDetailVo result; + + public OperationResponseControllerRoleDetailVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseControllerRoleDetailVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseControllerRoleDetailVo result(ControllerRoleDetailVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ControllerRoleDetailVo getResult() { + return result; + } + + public void setResult(ControllerRoleDetailVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseControllerRoleDetailVo operationResponseControllerRoleDetailVo = (OperationResponseControllerRoleDetailVo) o; + return Objects.equals(this.errorCode, operationResponseControllerRoleDetailVo.errorCode) && + Objects.equals(this.msg, operationResponseControllerRoleDetailVo.msg) && + Objects.equals(this.result, operationResponseControllerRoleDetailVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseControllerRoleDetailVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseCreateRoleResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseCreateRoleResultVo.java new file mode 100644 index 0000000..d215481 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseCreateRoleResultVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCreateRoleResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseCreateRoleResultVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CreateRoleResultVo result; + + public OperationResponseCreateRoleResultVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCreateRoleResultVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCreateRoleResultVo result(CreateRoleResultVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CreateRoleResultVo getResult() { + return result; + } + + public void setResult(CreateRoleResultVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCreateRoleResultVo operationResponseCreateRoleResultVo = (OperationResponseCreateRoleResultVo) o; + return Objects.equals(this.errorCode, operationResponseCreateRoleResultVo.errorCode) && + Objects.equals(this.msg, operationResponseCreateRoleResultVo.msg) && + Objects.equals(this.result, operationResponseCreateRoleResultVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCreateRoleResultVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseCreateUserResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseCreateUserResultVo.java new file mode 100644 index 0000000..d783e22 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseCreateUserResultVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCreateUserResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseCreateUserResultVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CreateUserResultVo result; + + public OperationResponseCreateUserResultVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCreateUserResultVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCreateUserResultVo result(CreateUserResultVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CreateUserResultVo getResult() { + return result; + } + + public void setResult(CreateUserResultVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCreateUserResultVo operationResponseCreateUserResultVo = (OperationResponseCreateUserResultVo) o; + return Objects.equals(this.errorCode, operationResponseCreateUserResultVo.errorCode) && + Objects.equals(this.msg, operationResponseCreateUserResultVo.msg) && + Objects.equals(this.result, operationResponseCreateUserResultVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCreateUserResultVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoExternalUserDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoExternalUserDetailOpenApiVo.java new file mode 100644 index 0000000..9fedda4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoExternalUserDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoExternalUserDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoExternalUserDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoExternalUserDetailOpenApiVo result; + + public OperationResponseGridVoExternalUserDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoExternalUserDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoExternalUserDetailOpenApiVo result(GridVoExternalUserDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoExternalUserDetailOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoExternalUserDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoExternalUserDetailOpenApiVo operationResponseGridVoExternalUserDetailOpenApiVo = (OperationResponseGridVoExternalUserDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoExternalUserDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoExternalUserDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoExternalUserDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoExternalUserDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoExternalUserGroupDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoExternalUserGroupDetailOpenApiVo.java new file mode 100644 index 0000000..40f800f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoExternalUserGroupDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoExternalUserGroupDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoExternalUserGroupDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoExternalUserGroupDetailOpenApiVo result; + + public OperationResponseGridVoExternalUserGroupDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoExternalUserGroupDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoExternalUserGroupDetailOpenApiVo result(GridVoExternalUserGroupDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoExternalUserGroupDetailOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoExternalUserGroupDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoExternalUserGroupDetailOpenApiVo operationResponseGridVoExternalUserGroupDetailOpenApiVo = (OperationResponseGridVoExternalUserGroupDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoExternalUserGroupDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoExternalUserGroupDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoExternalUserGroupDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoExternalUserGroupDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoIdpMetadataDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoIdpMetadataDetailOpenApiVo.java new file mode 100644 index 0000000..23ee98a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoIdpMetadataDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoIdpMetadataDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoIdpMetadataDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoIdpMetadataDetailOpenApiVo result; + + public OperationResponseGridVoIdpMetadataDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoIdpMetadataDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoIdpMetadataDetailOpenApiVo result(GridVoIdpMetadataDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoIdpMetadataDetailOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoIdpMetadataDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoIdpMetadataDetailOpenApiVo operationResponseGridVoIdpMetadataDetailOpenApiVo = (OperationResponseGridVoIdpMetadataDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoIdpMetadataDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoIdpMetadataDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoIdpMetadataDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoIdpMetadataDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoUserDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoUserDetailVo.java new file mode 100644 index 0000000..829e600 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseGridVoUserDetailVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoUserDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoUserDetailVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoUserDetailVo result; + + public OperationResponseGridVoUserDetailVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoUserDetailVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoUserDetailVo result(GridVoUserDetailVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoUserDetailVo getResult() { + return result; + } + + public void setResult(GridVoUserDetailVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoUserDetailVo operationResponseGridVoUserDetailVo = (OperationResponseGridVoUserDetailVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoUserDetailVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoUserDetailVo.msg) && + Objects.equals(this.result, operationResponseGridVoUserDetailVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoUserDetailVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseListControllerRoleDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseListControllerRoleDetailVo.java new file mode 100644 index 0000000..cbc576e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseListControllerRoleDetailVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListControllerRoleDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseListControllerRoleDetailVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListControllerRoleDetailVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListControllerRoleDetailVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListControllerRoleDetailVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListControllerRoleDetailVo addResultItem(ControllerRoleDetailVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListControllerRoleDetailVo operationResponseListControllerRoleDetailVo = (OperationResponseListControllerRoleDetailVo) o; + return Objects.equals(this.errorCode, operationResponseListControllerRoleDetailVo.errorCode) && + Objects.equals(this.msg, operationResponseListControllerRoleDetailVo.msg) && + Objects.equals(this.result, operationResponseListControllerRoleDetailVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListControllerRoleDetailVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseObject.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseObject.java new file mode 100644 index 0000000..6bc1bde --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseObject.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseObject + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseObject { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private Object result; + + public OperationResponseObject errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseObject msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseObject result(Object result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getResult() { + return result; + } + + public void setResult(Object result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseObject operationResponseObject = (OperationResponseObject) o; + return Objects.equals(this.errorCode, operationResponseObject.errorCode) && + Objects.equals(this.msg, operationResponseObject.msg) && + Objects.equals(this.result, operationResponseObject.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseObject {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseResponseIdVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseResponseIdVo.java new file mode 100644 index 0000000..79e0d4f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseResponseIdVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseResponseIdVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseResponseIdVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ResponseIdVo result; + + public OperationResponseResponseIdVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseResponseIdVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseResponseIdVo result(ResponseIdVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ResponseIdVo getResult() { + return result; + } + + public void setResult(ResponseIdVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseResponseIdVo operationResponseResponseIdVo = (OperationResponseResponseIdVo) o; + return Objects.equals(this.errorCode, operationResponseResponseIdVo.errorCode) && + Objects.equals(this.msg, operationResponseResponseIdVo.msg) && + Objects.equals(this.result, operationResponseResponseIdVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseResponseIdVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseUserDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseUserDetailVo.java new file mode 100644 index 0000000..116bdda --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseUserDetailVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseUserDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseUserDetailVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private UserDetailVo result; + + public OperationResponseUserDetailVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseUserDetailVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseUserDetailVo result(UserDetailVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public UserDetailVo getResult() { + return result; + } + + public void setResult(UserDetailVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseUserDetailVo operationResponseUserDetailVo = (OperationResponseUserDetailVo) o; + return Objects.equals(this.errorCode, operationResponseUserDetailVo.errorCode) && + Objects.equals(this.msg, operationResponseUserDetailVo.msg) && + Objects.equals(this.result, operationResponseUserDetailVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseUserDetailVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseWithoutResult.java new file mode 100644 index 0000000..70853c6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/OperationResponseWithoutResult.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class OperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public OperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseWithoutResult.msg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/PrivilegeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/PrivilegeOpenApiVo.java new file mode 100644 index 0000000..c3f4eb5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/PrivilegeOpenApiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * The site's privilege of this user. + */ +@ApiModel(description = "The site's privilege of this user.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class PrivilegeOpenApiVo { + @JsonProperty("all") + private Boolean all; + + @JsonProperty("sites") + @Valid + private List sites = null; + + public PrivilegeOpenApiVo all(Boolean all) { + this.all = all; + return this; + } + + /** + * Whether having all site privilege. + * @return all + */ + @ApiModelProperty(value = "Whether having all site privilege.") + + + public Boolean getAll() { + return all; + } + + public void setAll(Boolean all) { + this.all = all; + } + + public PrivilegeOpenApiVo sites(List sites) { + this.sites = sites; + return this; + } + + public PrivilegeOpenApiVo addSitesItem(String sitesItem) { + if (this.sites == null) { + this.sites = new ArrayList<>(); + } + this.sites.add(sitesItem); + return this; + } + + /** + * The IDs of site that can be accessed by this user. + * @return sites + */ + @ApiModelProperty(value = "The IDs of site that can be accessed by this user.") + + + public List getSites() { + return sites; + } + + public void setSites(List sites) { + this.sites = sites; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PrivilegeOpenApiVo privilegeOpenApiVo = (PrivilegeOpenApiVo) o; + return Objects.equals(this.all, privilegeOpenApiVo.all) && + Objects.equals(this.sites, privilegeOpenApiVo.sites); + } + + @Override + public int hashCode() { + return Objects.hash(all, sites); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PrivilegeOpenApiVo {\n"); + + sb.append(" all: ").append(toIndentedString(all)).append("\n"); + sb.append(" sites: ").append(toIndentedString(sites)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ResponseIdVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ResponseIdVo.java new file mode 100644 index 0000000..324a5f5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/ResponseIdVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ResponseIdVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class ResponseIdVo { + @JsonProperty("id") + private String id; + + public ResponseIdVo id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @ApiModelProperty(value = "") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseIdVo responseIdVo = (ResponseIdVo) o; + return Objects.equals(this.id, responseIdVo.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseIdVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/SiteInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/SiteInfoOpenApiVo.java new file mode 100644 index 0000000..ccb5772 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/SiteInfoOpenApiVo.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * The sites which can be accessed. + */ +@ApiModel(description = "The sites which can be accessed.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class SiteInfoOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + public SiteInfoOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Site ID + * @return id + */ + @ApiModelProperty(value = "Site ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SiteInfoOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Site name should contain 0 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "Site name should contain 0 to 64 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteInfoOpenApiVo siteInfoOpenApiVo = (SiteInfoOpenApiVo) o; + return Objects.equals(this.id, siteInfoOpenApiVo.id) && + Objects.equals(this.name, siteInfoOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteInfoOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/UserDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/UserDetailVo.java new file mode 100644 index 0000000..a8d3727 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/account/model/UserDetailVo.java @@ -0,0 +1,447 @@ +package org.wfc.omada.api.account.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UserDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:44:52.771+08:00[Asia/Shanghai]") + +public class UserDetailVo { + @JsonProperty("id") + private String id; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("roleName") + private String roleName; + + @JsonProperty("name") + private String name; + + @JsonProperty("email") + private String email; + + @JsonProperty("omadacId") + private String omadacId; + + @JsonProperty("verified") + private Boolean verified; + + @JsonProperty("alert") + private Boolean alert; + + @JsonProperty("allSite") + private Boolean allSite; + + @JsonProperty("siteIds") + @Valid + private List siteIds = null; + + @JsonProperty("parentUserId") + private String parentUserId; + + @JsonProperty("favorites") + @Valid + private List favorites = null; + + @JsonProperty("incidentNotification") + private Boolean incidentNotification; + + @JsonProperty("userLevel") + private Integer userLevel; + + public UserDetailVo id(String id) { + this.id = id; + return this; + } + + /** + * User ID + * @return id + */ + @ApiModelProperty(value = "User ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public UserDetailVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of user, type should be a value as follows: 0:local user; 1: cloud user + * @return type + */ + @ApiModelProperty(value = "Type of user, type should be a value as follows: 0:local user; 1: cloud user") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public UserDetailVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * User role ID + * @return roleId + */ + @ApiModelProperty(value = "User role ID") + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public UserDetailVo roleName(String roleName) { + this.roleName = roleName; + return this; + } + + /** + * User bind role name + * @return roleName + */ + @ApiModelProperty(value = "User bind role name") + + + public String getRoleName() { + return roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + } + + public UserDetailVo name(String name) { + this.name = name; + return this; + } + + /** + * User name + * @return name + */ + @ApiModelProperty(value = "User name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UserDetailVo email(String email) { + this.email = email; + return this; + } + + /** + * User email + * @return email + */ + @ApiModelProperty(value = "User email") + + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public UserDetailVo omadacId(String omadacId) { + this.omadacId = omadacId; + return this; + } + + /** + * Omada ID + * @return omadacId + */ + @ApiModelProperty(value = "Omada ID") + + + public String getOmadacId() { + return omadacId; + } + + public void setOmadacId(String omadacId) { + this.omadacId = omadacId; + } + + public UserDetailVo verified(Boolean verified) { + this.verified = verified; + return this; + } + + /** + * Whether this cloud user has verified + * @return verified + */ + @ApiModelProperty(value = "Whether this cloud user has verified") + + + public Boolean getVerified() { + return verified; + } + + public void setVerified(Boolean verified) { + this.verified = verified; + } + + public UserDetailVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * Whether this user want to receive alert emails + * @return alert + */ + @ApiModelProperty(value = "Whether this user want to receive alert emails") + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + public UserDetailVo allSite(Boolean allSite) { + this.allSite = allSite; + return this; + } + + /** + * Whether user has all site permission, including new created site + * @return allSite + */ + @ApiModelProperty(value = "Whether user has all site permission, including new created site") + + + public Boolean getAllSite() { + return allSite; + } + + public void setAllSite(Boolean allSite) { + this.allSite = allSite; + } + + public UserDetailVo siteIds(List siteIds) { + this.siteIds = siteIds; + return this; + } + + public UserDetailVo addSiteIdsItem(String siteIdsItem) { + if (this.siteIds == null) { + this.siteIds = new ArrayList<>(); + } + this.siteIds.add(siteIdsItem); + return this; + } + + /** + * User site privilege list + * @return siteIds + */ + @ApiModelProperty(value = "User site privilege list") + + + public List getSiteIds() { + return siteIds; + } + + public void setSiteIds(List siteIds) { + this.siteIds = siteIds; + } + + public UserDetailVo parentUserId(String parentUserId) { + this.parentUserId = parentUserId; + return this; + } + + /** + * User's parent user id + * @return parentUserId + */ + @ApiModelProperty(value = "User's parent user id") + + + public String getParentUserId() { + return parentUserId; + } + + public void setParentUserId(String parentUserId) { + this.parentUserId = parentUserId; + } + + public UserDetailVo favorites(List favorites) { + this.favorites = favorites; + return this; + } + + public UserDetailVo addFavoritesItem(String favoritesItem) { + if (this.favorites == null) { + this.favorites = new ArrayList<>(); + } + this.favorites.add(favoritesItem); + return this; + } + + /** + * User favorite site list + * @return favorites + */ + @ApiModelProperty(value = "User favorite site list") + + + public List getFavorites() { + return favorites; + } + + public void setFavorites(List favorites) { + this.favorites = favorites; + } + + public UserDetailVo incidentNotification(Boolean incidentNotification) { + this.incidentNotification = incidentNotification; + return this; + } + + /** + * Incident notification + * @return incidentNotification + */ + @ApiModelProperty(value = "Incident notification") + + + public Boolean getIncidentNotification() { + return incidentNotification; + } + + public void setIncidentNotification(Boolean incidentNotification) { + this.incidentNotification = incidentNotification; + } + + public UserDetailVo userLevel(Integer userLevel) { + this.userLevel = userLevel; + return this; + } + + /** + * User level, user level should be a value as follows: 0:standard user; 1:customer user; 2:msp user + * @return userLevel + */ + @ApiModelProperty(value = "User level, user level should be a value as follows: 0:standard user; 1:customer user; 2:msp user") + + + public Integer getUserLevel() { + return userLevel; + } + + public void setUserLevel(Integer userLevel) { + this.userLevel = userLevel; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UserDetailVo userDetailVo = (UserDetailVo) o; + return Objects.equals(this.id, userDetailVo.id) && + Objects.equals(this.type, userDetailVo.type) && + Objects.equals(this.roleId, userDetailVo.roleId) && + Objects.equals(this.roleName, userDetailVo.roleName) && + Objects.equals(this.name, userDetailVo.name) && + Objects.equals(this.email, userDetailVo.email) && + Objects.equals(this.omadacId, userDetailVo.omadacId) && + Objects.equals(this.verified, userDetailVo.verified) && + Objects.equals(this.alert, userDetailVo.alert) && + Objects.equals(this.allSite, userDetailVo.allSite) && + Objects.equals(this.siteIds, userDetailVo.siteIds) && + Objects.equals(this.parentUserId, userDetailVo.parentUserId) && + Objects.equals(this.favorites, userDetailVo.favorites) && + Objects.equals(this.incidentNotification, userDetailVo.incidentNotification) && + Objects.equals(this.userLevel, userDetailVo.userLevel); + } + + @Override + public int hashCode() { + return Objects.hash(id, type, roleId, roleName, name, email, omadacId, verified, alert, allSite, siteIds, parentUserId, favorites, incidentNotification, userLevel); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UserDetailVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" omadacId: ").append(toIndentedString(omadacId)).append("\n"); + sb.append(" verified: ").append(toIndentedString(verified)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append(" allSite: ").append(toIndentedString(allSite)).append("\n"); + sb.append(" siteIds: ").append(toIndentedString(siteIds)).append("\n"); + sb.append(" parentUserId: ").append(toIndentedString(parentUserId)).append("\n"); + sb.append(" favorites: ").append(toIndentedString(favorites)).append("\n"); + sb.append(" incidentNotification: ").append(toIndentedString(incidentNotification)).append("\n"); + sb.append(" userLevel: ").append(toIndentedString(userLevel)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/OmadaBatchOpenApiApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/OmadaBatchOpenApiApi.java new file mode 100644 index 0000000..f11cb09 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/OmadaBatchOpenApiApi.java @@ -0,0 +1,45 @@ +package org.wfc.omada.api.batch; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.batch.model.BatchRequestEntity; +import org.wfc.omada.api.batch.model.OperationResponseBatchResponseEntity; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:27.319+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaBatchOpenApi", description = "the OmadaBatchOpenApi API") +@FeignClient(name="OmadaBatchOpenApiApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaBatchOpenApiApi { + + /** + * POST /openapi/v1/{omadacId}/batch : Batch Processing OpenAPIs + * Batch processing of multiple OpenAPIs under the same Omada controller through this OpenAPI.<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-1600 - Unsupported request path.<br/>-1619 - Execution has been interrupted due to unsuccessful execution of the pre action request.<br/>-1620 - Error occurred while executing action.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.<br/>-44113 - The Access Token is Invalid.<br/>-7132 - Our server is receiving too many requests now. Please try again later. + * + * @param omadacId Omada ID (required) + * @param batchRequestEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch Processing OpenAPIs", nickname = "batchController", notes = "Batch processing of multiple OpenAPIs under the same Omada controller through this OpenAPI.

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.
-1600 - Unsupported request path.
-1619 - Execution has been interrupted due to unsuccessful execution of the pre action request.
-1620 - Error occurred while executing action.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.
-44113 - The Access Token is Invalid.
-7132 - Our server is receiving too many requests now. Please try again later.", response = OperationResponseBatchResponseEntity.class, tags={ "Omada/Batch OpenAPI","Batch OpenAPI", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseBatchResponseEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/batch", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity batchController(@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchRequestEntity batchRequestEntity); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/BatchRequestEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/BatchRequestEntity.java new file mode 100644 index 0000000..6dfc4cc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/BatchRequestEntity.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.batch.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchRequestEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:33.899+08:00[Asia/Shanghai]") + +public class BatchRequestEntity { + @JsonProperty("interrupt") + private Boolean interrupt; + + @JsonProperty("actions") + @Valid + private List actions = null; + + public BatchRequestEntity interrupt(Boolean interrupt) { + this.interrupt = interrupt; + return this; + } + + /** + * Indicates whether to interrupt execution when encountering an error while executing openAPI, defaults to true + * @return interrupt + */ + @ApiModelProperty(value = "Indicates whether to interrupt execution when encountering an error while executing openAPI, defaults to true") + + + public Boolean getInterrupt() { + return interrupt; + } + + public void setInterrupt(Boolean interrupt) { + this.interrupt = interrupt; + } + + public BatchRequestEntity actions(List actions) { + this.actions = actions; + return this; + } + + public BatchRequestEntity addActionsItem(RequestActionEntity actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.add(actionsItem); + return this; + } + + /** + * List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list + * @return actions + */ + @ApiModelProperty(value = "List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list") + + @Valid + + public List getActions() { + return actions; + } + + public void setActions(List actions) { + this.actions = actions; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchRequestEntity batchRequestEntity = (BatchRequestEntity) o; + return Objects.equals(this.interrupt, batchRequestEntity.interrupt) && + Objects.equals(this.actions, batchRequestEntity.actions); + } + + @Override + public int hashCode() { + return Objects.hash(interrupt, actions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchRequestEntity {\n"); + + sb.append(" interrupt: ").append(toIndentedString(interrupt)).append("\n"); + sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/BatchResponseEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/BatchResponseEntity.java new file mode 100644 index 0000000..a9fd6ac --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/BatchResponseEntity.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.batch.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchResponseEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:33.899+08:00[Asia/Shanghai]") + +public class BatchResponseEntity { + @JsonProperty("response") + @Valid + private List response = null; + + public BatchResponseEntity response(List response) { + this.response = response; + return this; + } + + public BatchResponseEntity addResponseItem(OperationResponse responseItem) { + if (this.response == null) { + this.response = new ArrayList<>(); + } + this.response.add(responseItem); + return this; + } + + /** + * A response list + * @return response + */ + @ApiModelProperty(value = "A response list") + + @Valid + + public List getResponse() { + return response; + } + + public void setResponse(List response) { + this.response = response; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchResponseEntity batchResponseEntity = (BatchResponseEntity) o; + return Objects.equals(this.response, batchResponseEntity.response); + } + + @Override + public int hashCode() { + return Objects.hash(response); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchResponseEntity {\n"); + + sb.append(" response: ").append(toIndentedString(response)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/OperationResponse.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/OperationResponse.java new file mode 100644 index 0000000..c5e6476 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/OperationResponse.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.batch.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * A response list + */ +@ApiModel(description = "A response list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:33.899+08:00[Asia/Shanghai]") + +public class OperationResponse { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private Object result; + + public OperationResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponse msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponse result(Object result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getResult() { + return result; + } + + public void setResult(Object result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponse operationResponse = (OperationResponse) o; + return Objects.equals(this.errorCode, operationResponse.errorCode) && + Objects.equals(this.msg, operationResponse.msg) && + Objects.equals(this.result, operationResponse.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponse {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/OperationResponseBatchResponseEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/OperationResponseBatchResponseEntity.java new file mode 100644 index 0000000..8ebf2c0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/OperationResponseBatchResponseEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.batch.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseBatchResponseEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:33.899+08:00[Asia/Shanghai]") + +public class OperationResponseBatchResponseEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private BatchResponseEntity result; + + public OperationResponseBatchResponseEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseBatchResponseEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseBatchResponseEntity result(BatchResponseEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public BatchResponseEntity getResult() { + return result; + } + + public void setResult(BatchResponseEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseBatchResponseEntity operationResponseBatchResponseEntity = (OperationResponseBatchResponseEntity) o; + return Objects.equals(this.errorCode, operationResponseBatchResponseEntity.errorCode) && + Objects.equals(this.msg, operationResponseBatchResponseEntity.msg) && + Objects.equals(this.result, operationResponseBatchResponseEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseBatchResponseEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/RequestActionEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/RequestActionEntity.java new file mode 100644 index 0000000..460b1f7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/batch/model/RequestActionEntity.java @@ -0,0 +1,156 @@ +package org.wfc.omada.api.batch.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list + */ +@ApiModel(description = "List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:47:33.899+08:00[Asia/Shanghai]") + +public class RequestActionEntity { + @JsonProperty("path") + private String path; + + @JsonProperty("method") + private String method; + + @JsonProperty("body") + private String body; + + @JsonProperty("query") + private String query; + + public RequestActionEntity path(String path) { + this.path = path; + return this; + } + + /** + * OpenAPI request path. Same as regular OpenAPI, file upload and download are not supported. + * @return path + */ + @ApiModelProperty(required = true, value = "OpenAPI request path. Same as regular OpenAPI, file upload and download are not supported.") + @NotNull + + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public RequestActionEntity method(String method) { + this.method = method; + return this; + } + + /** + * OpenAPI request method. Same as regular OpenAPI, it should be a value as follows: POST, PATCH, PUT, DELETE. + * @return method + */ + @ApiModelProperty(required = true, value = "OpenAPI request method. Same as regular OpenAPI, it should be a value as follows: POST, PATCH, PUT, DELETE.") + @NotNull + + + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + public RequestActionEntity body(String body) { + this.body = body; + return this; + } + + /** + * OpenAPI request body, same as regular OpenAPI. Should be a JSON object but not a string. + * @return body + */ + @ApiModelProperty(value = "OpenAPI request body, same as regular OpenAPI. Should be a JSON object but not a string.") + + + public String getBody() { + return body; + } + + public void setBody(String body) { + this.body = body; + } + + public RequestActionEntity query(String query) { + this.query = query; + return this; + } + + /** + * OpenAPI request query of the path, same as regular OpenAPI. + * @return query + */ + @ApiModelProperty(value = "OpenAPI request query of the path, same as regular OpenAPI.") + + + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RequestActionEntity requestActionEntity = (RequestActionEntity) o; + return Objects.equals(this.path, requestActionEntity.path) && + Objects.equals(this.method, requestActionEntity.method) && + Objects.equals(this.body, requestActionEntity.body) && + Objects.equals(this.query, requestActionEntity.query); + } + + @Override + public int hashCode() { + return Objects.hash(path, method, body, query); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RequestActionEntity {\n"); + + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/OmadaClientApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/OmadaClientApi.java new file mode 100644 index 0000000..d5bc852 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/OmadaClientApi.java @@ -0,0 +1,193 @@ +package org.wfc.omada.api.client; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.client.model.ClientLockToApSetting1; +import org.wfc.omada.api.client.model.ClientNameSetting; +import org.wfc.omada.api.client.model.ClientRateLimitSetting; +import org.wfc.omada.api.client.model.OperationResponseClientDetail; +import org.wfc.omada.api.client.model.OperationResponseClientGridVoClientInfo; +import org.wfc.omada.api.client.model.OperationResponseWithoutResult; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:32.050+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaClient", description = "the OmadaClient API") +@FeignClient(name="OmadaClientApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaClientApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/block : Block the client + * Block the client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/>Site Insight Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41002 - This client does not exist.<br/>-41003 - The number of clients to be blocked has reached the limit.<br/>-41023 - Clients locked to AP cannot be blocked.<br/>-41024 - This device is installed with the controller and cannot be blocked.<br/>-41026 - The Easy Managed Switch cannot block clients. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clientMac Client MAC (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Block the client", nickname = "blockClient", notes = "Block the client.

The interface requires one of the permissions:
Site Clients Manager Modify
Site Insight Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-41002 - This client does not exist.
-41003 - The number of clients to be blocked has reached the limit.
-41023 - Clients locked to AP cannot be blocked.
-41024 - This device is installed with the controller and cannot be blocked.
-41026 - The Easy Managed Switch cannot block clients.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/block", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity blockClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac} : Get client info + * Get client info.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager View Only<br/>Site Device Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clientMac Client MAC (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get client info", nickname = "getClientDetail", notes = "Get client info.

The interface requires one of the permissions:
Site Clients Manager View Only
Site Device Manager View Only", response = OperationResponseClientDetail.class, tags={ "Omada/Client","Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseClientDetail.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getClientDetail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/clients : Get client list + * Get all clients.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager View Only<br/>Site Device Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsMac Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsIp Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param filtersWireless Filter query parameters, support field wireless: true/false. (optional) + * @param filtersRadioId Filter query parameters, support field radioId: 0: 2G, 1: 5G1, 2: 5G2, 3: 6G (optional) + * @param filtersApMac Filter query parameters, support field ap mac (optional) + * @param filtersSwitchMac Filter query parameters, support field switch mac (optional) + * @param filtersGatewayMac Filter query parameters, support field gateway mac (optional) + * @param searchKey Fuzzy query parameters, support field clientName,clientMac,ip,channel,ssid,apName,apMac,switchMac,switchName,gatewayMac,gatewayName. (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get client list", nickname = "getGridActiveClients", notes = "Get all clients.

The interface requires one of the permissions:
Site Clients Manager View Only
Site Device Manager View Only", response = OperationResponseClientGridVoClientInfo.class, tags={ "Omada/Client","Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseClientGridVoClientInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridActiveClients(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.mac", required = false) String sortsMac,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.ip", required = false) String sortsIp,@ApiParam(value = "Filter query parameters, support field wireless: true/false.") @Valid @RequestParam(value = "filters.wireless", required = false) String filtersWireless,@ApiParam(value = "Filter query parameters, support field radioId: 0: 2G, 1: 5G1, 2: 5G2, 3: 6G") @Valid @RequestParam(value = "filters.radioId", required = false) String filtersRadioId,@ApiParam(value = "Filter query parameters, support field ap mac") @Valid @RequestParam(value = "filters.apMac", required = false) String filtersApMac,@ApiParam(value = "Filter query parameters, support field switch mac") @Valid @RequestParam(value = "filters.switchMac", required = false) String filtersSwitchMac,@ApiParam(value = "Filter query parameters, support field gateway mac") @Valid @RequestParam(value = "filters.gatewayMac", required = false) String filtersGatewayMac,@ApiParam(value = "Fuzzy query parameters, support field clientName,clientMac,ip,channel,ssid,apName,apMac,switchMac,switchName,gatewayMac,gatewayName.") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/reconnect : Reconnect the client + * Reconnect the client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41011 - This client does not exist.<br/>-41025 - Unable to reconnect wired client. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clientMac Client MAC (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Reconnect the client", nickname = "reconnectClient", notes = "Reconnect the client.

The interface requires one of the permissions:
Site Clients Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-41011 - This client does not exist.
-41025 - Unable to reconnect wired client.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/reconnect", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity reconnectClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/unblock : Unblock the client + * Unblock the client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/>Site Insight Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41004 - This client does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clientMac Client MAC (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Unblock the client", nickname = "unblockClient", notes = "Unblock the client.

The interface requires one of the permissions:
Site Clients Manager Modify
Site Insight Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-41004 - This client does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/unblock", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity unblockClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/lock-to-ap : Lock the given client to aps + * Lock the given client to aps.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41011 - This client does not exist.<br/>-41020 - Only wireless clients support Lock to AP.<br/>-41021 - The number of Lock to AP entries has reached the upper limit.<br/>-41022 - Blocked clients cannot be locked to AP. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clientMac Client MAC (required) + * @param clientLockToApSetting1 (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Lock the given client to aps", nickname = "updateClientLockToApSetting", notes = "Lock the given client to aps.

The interface requires one of the permissions:
Site Clients Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-41011 - This client does not exist.
-41020 - Only wireless clients support Lock to AP.
-41021 - The number of Lock to AP entries has reached the upper limit.
-41022 - Blocked clients cannot be locked to AP.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/lock-to-ap", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity updateClientLockToApSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClientLockToApSetting1 clientLockToApSetting1); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/name : Set name for given client + * Set name for given client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-41011 - This client does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clientMac Client MAC (required) + * @param clientNameSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Set name for given client", nickname = "updateClientName", notes = "Set name for given client.

The interface requires one of the permissions:
Site Clients Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-41011 - This client does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/name", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateClientName(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClientNameSetting clientNameSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/clients/{clientMac}/ratelimit : Set ratelimit setting for given client + * Set ratelimit setting for given client.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33732 - The Rate Limit profile does not exist.<br/>-41008 - The number of clients to be configured with Rate Limit has reached the limit.<br/>-41011 - This client does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clientMac Client MAC (required) + * @param clientRateLimitSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Set ratelimit setting for given client", nickname = "updateClientRateLimitSetting", notes = "Set ratelimit setting for given client.

The interface requires one of the permissions:
Site Clients Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33732 - The Rate Limit profile does not exist.
-41008 - The number of clients to be configured with Rate Limit has reached the limit.
-41011 - This client does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Client","Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/clients/{clientMac}/ratelimit", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateClientRateLimitSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClientRateLimitSetting clientRateLimitSetting); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/OmadaClientInsightApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/OmadaClientInsightApi.java new file mode 100644 index 0000000..a201c72 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/OmadaClientInsightApi.java @@ -0,0 +1,51 @@ +package org.wfc.omada.api.client; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.client.model.OperationResponseGridVoClientHistoryInfo; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:32.050+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaClientInsight", description = "the OmadaClientInsight API") +@FeignClient(value = "OmadaClientInsightApi",url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaClientInsightApi { + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/insight/past-connection : Get client past connection list + * Get client past connection list.<br/><br/>The interface requires one of the permissions: <br/>Site Insight Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsLastSeen Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param filtersTimeStart Filter query parameters, support field time range: start timestamp (ms). (optional) + * @param filtersTimeEnd Filter query parameters, support field time range: end timestamp (ms). (optional) + * @param filtersGuest Filter query parameters, support field guest: true/false. (optional) + * @param searchKey Fuzzy query parameters, support field name,mac,ssid. (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get client past connection list", nickname = "getGridPastConnections", notes = "Get client past connection list.

The interface requires one of the permissions:
Site Insight Manager View Only", response = OperationResponseGridVoClientHistoryInfo.class, tags={ "Omada/Client Insight","Client Insight", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoClientHistoryInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/insight/past-connection", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridPastConnections(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.lastSeen", required = false) String sortsLastSeen,@ApiParam(value = "Filter query parameters, support field time range: start timestamp (ms).") @Valid @RequestParam(value = "filters.timeStart", required = false) String filtersTimeStart,@ApiParam(value = "Filter query parameters, support field time range: end timestamp (ms).") @Valid @RequestParam(value = "filters.timeEnd", required = false) String filtersTimeEnd,@ApiParam(value = "Filter query parameters, support field guest: true/false.") @Valid @RequestParam(value = "filters.guest", required = false) String filtersGuest,@ApiParam(value = "Fuzzy query parameters, support field name,mac,ssid.") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ApBriefInfoVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ApBriefInfoVo.java new file mode 100644 index 0000000..0c9234c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ApBriefInfoVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * AP name and MAC info list. + */ +@ApiModel(description = "AP name and MAC info list.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ApBriefInfoVo { + @JsonProperty("name") + private String name; + + @JsonProperty("mac") + private String mac; + + public ApBriefInfoVo name(String name) { + this.name = name; + return this; + } + + /** + * AP name. + * @return name + */ + @ApiModelProperty(value = "AP name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ApBriefInfoVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * AP MAC, for example: AA-AA-AA-AA-AA-AA. + * @return mac + */ + @ApiModelProperty(value = "AP MAC, for example: AA-AA-AA-AA-AA-AA.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApBriefInfoVo apBriefInfoVo = (ApBriefInfoVo) o; + return Objects.equals(this.name, apBriefInfoVo.name) && + Objects.equals(this.mac, apBriefInfoVo.mac); + } + + @Override + public int hashCode() { + return Objects.hash(name, mac); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApBriefInfoVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientDetail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientDetail.java new file mode 100644 index 0000000..b308494 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientDetail.java @@ -0,0 +1,1585 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ClientDetail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ClientDetail { + @JsonProperty("id") + private String id; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("hostName") + private String hostName; + + @JsonProperty("vendor") + private String vendor; + + @JsonProperty("deviceType") + private String deviceType; + + @JsonProperty("deviceCategory") + private String deviceCategory; + + @JsonProperty("osName") + private String osName; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("ipv6List") + @Valid + private List ipv6List = null; + + @JsonProperty("connectType") + private Integer connectType; + + @JsonProperty("connectDevType") + private String connectDevType; + + @JsonProperty("connectedToWirelessRouter") + private Boolean connectedToWirelessRouter; + + @JsonProperty("wireless") + private Boolean wireless; + + @JsonProperty("ssid") + private String ssid; + + @JsonProperty("signalLevel") + private Integer signalLevel; + + @JsonProperty("signalRank") + private Integer signalRank; + + @JsonProperty("wifiMode") + private Integer wifiMode; + + @JsonProperty("apName") + private String apName; + + @JsonProperty("apMac") + private String apMac; + + @JsonProperty("radioId") + private Integer radioId; + + @JsonProperty("channel") + private Integer channel; + + @JsonProperty("rxRate") + private Long rxRate; + + @JsonProperty("txRate") + private Long txRate; + + @JsonProperty("powerSave") + private Boolean powerSave; + + @JsonProperty("rssi") + private Integer rssi; + + @JsonProperty("snr") + private Integer snr; + + @JsonProperty("switchMac") + private String switchMac; + + @JsonProperty("switchName") + private String switchName; + + @JsonProperty("gatewayMac") + private String gatewayMac; + + @JsonProperty("gatewayName") + private String gatewayName; + + @JsonProperty("vid") + private Integer vid; + + @JsonProperty("networkName") + private String networkName; + + @JsonProperty("dot1xIdentity") + private String dot1xIdentity; + + @JsonProperty("dot1xVlan") + private Integer dot1xVlan; + + @JsonProperty("port") + private Integer port; + + @JsonProperty("lagId") + private Integer lagId; + + @JsonProperty("activity") + private Long activity; + + @JsonProperty("trafficDown") + private Long trafficDown; + + @JsonProperty("trafficUp") + private Long trafficUp; + + @JsonProperty("uptime") + private Long uptime; + + @JsonProperty("lastSeen") + private Long lastSeen; + + @JsonProperty("authStatus") + private Integer authStatus; + + @JsonProperty("blocked") + private Boolean blocked; + + @JsonProperty("guest") + private Boolean guest; + + @JsonProperty("active") + private Boolean active; + + @JsonProperty("manager") + private Boolean manager; + + @JsonProperty("ipSetting") + private ClientIpSetting ipSetting; + + @JsonProperty("downPacket") + private Long downPacket; + + @JsonProperty("upPacket") + private Long upPacket; + + @JsonProperty("rateLimit") + private ClientRateLimitSetting rateLimit; + + @JsonProperty("clientLockToApSetting") + private ClientLockToApSetting clientLockToApSetting; + + @JsonProperty("multiLink") + @Valid + private List multiLink = null; + + @JsonProperty("unit") + private Integer unit; + + @JsonProperty("standardPort") + private String standardPort; + + @JsonProperty("blockDisable") + private Boolean blockDisable; + + @JsonProperty("dhcpLeaseTime") + private Long dhcpLeaseTime; + + @JsonProperty("systemName") + private String systemName; + + @JsonProperty("description") + private String description; + + @JsonProperty("capabilities") + @Valid + private List capabilities = null; + + public ClientDetail id(String id) { + this.id = id; + return this; + } + + /** + * Client ID. + * @return id + */ + @ApiModelProperty(value = "Client ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ClientDetail mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Client MAC Address. + * @return mac + */ + @ApiModelProperty(value = "Client MAC Address.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public ClientDetail name(String name) { + this.name = name; + return this; + } + + /** + * Client Name, alias. + * @return name + */ + @ApiModelProperty(value = "Client Name, alias.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ClientDetail hostName(String hostName) { + this.hostName = hostName; + return this; + } + + /** + * Host name, device name. + * @return hostName + */ + @ApiModelProperty(value = "Host name, device name.") + + + public String getHostName() { + return hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public ClientDetail vendor(String vendor) { + this.vendor = vendor; + return this; + } + + /** + * Vendor. + * @return vendor + */ + @ApiModelProperty(value = "Vendor.") + + + public String getVendor() { + return vendor; + } + + public void setVendor(String vendor) { + this.vendor = vendor; + } + + public ClientDetail deviceType(String deviceType) { + this.deviceType = deviceType; + return this; + } + + /** + * Device Type: iphone, ipod, android, pc, printer, tv... + * @return deviceType + */ + @ApiModelProperty(value = "Device Type: iphone, ipod, android, pc, printer, tv...") + + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public ClientDetail deviceCategory(String deviceCategory) { + this.deviceCategory = deviceCategory; + return this; + } + + /** + * Device Category: loT, TV, computer, phone... + * @return deviceCategory + */ + @ApiModelProperty(value = "Device Category: loT, TV, computer, phone...") + + + public String getDeviceCategory() { + return deviceCategory; + } + + public void setDeviceCategory(String deviceCategory) { + this.deviceCategory = deviceCategory; + } + + public ClientDetail osName(String osName) { + this.osName = osName; + return this; + } + + /** + * Device system version. + * @return osName + */ + @ApiModelProperty(value = "Device system version.") + + + public String getOsName() { + return osName; + } + + public void setOsName(String osName) { + this.osName = osName; + } + + public ClientDetail ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP Address. + * @return ip + */ + @ApiModelProperty(value = "IP Address.") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public ClientDetail ipv6List(List ipv6List) { + this.ipv6List = ipv6List; + return this; + } + + public ClientDetail addIpv6ListItem(String ipv6ListItem) { + if (this.ipv6List == null) { + this.ipv6List = new ArrayList<>(); + } + this.ipv6List.add(ipv6ListItem); + return this; + } + + /** + * IPv6 Address. + * @return ipv6List + */ + @ApiModelProperty(value = "IPv6 Address.") + + + public List getIpv6List() { + return ipv6List; + } + + public void setIpv6List(List ipv6List) { + this.ipv6List = ipv6List; + } + + public ClientDetail connectType(Integer connectType) { + this.connectType = connectType; + return this; + } + + /** + * Connect type should be a value as follows: 0: wireless guest; 1: wireless user; 2: wired user. + * @return connectType + */ + @ApiModelProperty(value = "Connect type should be a value as follows: 0: wireless guest; 1: wireless user; 2: wired user.") + + + public Integer getConnectType() { + return connectType; + } + + public void setConnectType(Integer connectType) { + this.connectType = connectType; + } + + public ClientDetail connectDevType(String connectDevType) { + this.connectDevType = connectDevType; + return this; + } + + /** + * connect device type should be a value as follows: ap, switch, gateway. + * @return connectDevType + */ + @ApiModelProperty(value = "connect device type should be a value as follows: ap, switch, gateway.") + + + public String getConnectDevType() { + return connectDevType; + } + + public void setConnectDevType(String connectDevType) { + this.connectDevType = connectDevType; + } + + public ClientDetail connectedToWirelessRouter(Boolean connectedToWirelessRouter) { + this.connectedToWirelessRouter = connectedToWirelessRouter; + return this; + } + + /** + * true: Client is connecting to a wireless router. + * @return connectedToWirelessRouter + */ + @ApiModelProperty(value = "true: Client is connecting to a wireless router.") + + + public Boolean getConnectedToWirelessRouter() { + return connectedToWirelessRouter; + } + + public void setConnectedToWirelessRouter(Boolean connectedToWirelessRouter) { + this.connectedToWirelessRouter = connectedToWirelessRouter; + } + + public ClientDetail wireless(Boolean wireless) { + this.wireless = wireless; + return this; + } + + /** + * true: Wireless device (connectDevType=ap); false: Not wireless device(connectDevType=switch or gateway) + * @return wireless + */ + @ApiModelProperty(value = "true: Wireless device (connectDevType=ap); false: Not wireless device(connectDevType=switch or gateway)") + + + public Boolean getWireless() { + return wireless; + } + + public void setWireless(Boolean wireless) { + this.wireless = wireless; + } + + public ClientDetail ssid(String ssid) { + this.ssid = ssid; + return this; + } + + /** + * (Wireless) SSID name. + * @return ssid + */ + @ApiModelProperty(value = "(Wireless) SSID name.") + + + public String getSsid() { + return ssid; + } + + public void setSsid(String ssid) { + this.ssid = ssid; + } + + public ClientDetail signalLevel(Integer signalLevel) { + this.signalLevel = signalLevel; + return this; + } + + /** + * (Wireless) Signal strength percentage should be within the range of 0-100. + * @return signalLevel + */ + @ApiModelProperty(value = "(Wireless) Signal strength percentage should be within the range of 0-100.") + + + public Integer getSignalLevel() { + return signalLevel; + } + + public void setSignalLevel(Integer signalLevel) { + this.signalLevel = signalLevel; + } + + public ClientDetail signalRank(Integer signalRank) { + this.signalRank = signalRank; + return this; + } + + /** + * (Wireless) Signal strength level should be within the range of 0-5. + * @return signalRank + */ + @ApiModelProperty(value = "(Wireless) Signal strength level should be within the range of 0-5.") + + + public Integer getSignalRank() { + return signalRank; + } + + public void setSignalRank(Integer signalRank) { + this.signalRank = signalRank; + } + + public ClientDetail wifiMode(Integer wifiMode) { + this.wifiMode = wifiMode; + return this; + } + + /** + * (Wireless) Wifi mode should be a value as follows: 0: 11a; 1: 11b; 2: 11g; 3: 11na; 4: 11ng; 5: 11ac; 6: 11axa; 7: 11axg; 8: 11beg; 9: 11bea. + * @return wifiMode + */ + @ApiModelProperty(value = "(Wireless) Wifi mode should be a value as follows: 0: 11a; 1: 11b; 2: 11g; 3: 11na; 4: 11ng; 5: 11ac; 6: 11axa; 7: 11axg; 8: 11beg; 9: 11bea.") + + + public Integer getWifiMode() { + return wifiMode; + } + + public void setWifiMode(Integer wifiMode) { + this.wifiMode = wifiMode; + } + + public ClientDetail apName(String apName) { + this.apName = apName; + return this; + } + + /** + * (Wireless) AP Name. + * @return apName + */ + @ApiModelProperty(value = "(Wireless) AP Name.") + + + public String getApName() { + return apName; + } + + public void setApName(String apName) { + this.apName = apName; + } + + public ClientDetail apMac(String apMac) { + this.apMac = apMac; + return this; + } + + /** + * (Wireless) AP MAC Address. + * @return apMac + */ + @ApiModelProperty(value = "(Wireless) AP MAC Address.") + + + public String getApMac() { + return apMac; + } + + public void setApMac(String apMac) { + this.apMac = apMac; + } + + public ClientDetail radioId(Integer radioId) { + this.radioId = radioId; + return this; + } + + /** + * (Wireless) Radio ID should be a value as follows: 0: 2.4GHz; 1: 5GHz-1; 2:5GHz-2; 3: 6GHz. + * @return radioId + */ + @ApiModelProperty(value = "(Wireless) Radio ID should be a value as follows: 0: 2.4GHz; 1: 5GHz-1; 2:5GHz-2; 3: 6GHz.") + + + public Integer getRadioId() { + return radioId; + } + + public void setRadioId(Integer radioId) { + this.radioId = radioId; + } + + public ClientDetail channel(Integer channel) { + this.channel = channel; + return this; + } + + /** + * (Wireless) Actual channel. + * @return channel + */ + @ApiModelProperty(value = "(Wireless) Actual channel.") + + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + public ClientDetail rxRate(Long rxRate) { + this.rxRate = rxRate; + return this; + } + + /** + * (Wireless) Uplink negotiation rate (Kbit/s). + * @return rxRate + */ + @ApiModelProperty(value = "(Wireless) Uplink negotiation rate (Kbit/s).") + + + public Long getRxRate() { + return rxRate; + } + + public void setRxRate(Long rxRate) { + this.rxRate = rxRate; + } + + public ClientDetail txRate(Long txRate) { + this.txRate = txRate; + return this; + } + + /** + * (Wireless) Downlink negotiation rate (Kbit/s). + * @return txRate + */ + @ApiModelProperty(value = "(Wireless) Downlink negotiation rate (Kbit/s).") + + + public Long getTxRate() { + return txRate; + } + + public void setTxRate(Long txRate) { + this.txRate = txRate; + } + + public ClientDetail powerSave(Boolean powerSave) { + this.powerSave = powerSave; + return this; + } + + /** + * (Wireless) true: Power save mode enabled. + * @return powerSave + */ + @ApiModelProperty(value = "(Wireless) true: Power save mode enabled.") + + + public Boolean getPowerSave() { + return powerSave; + } + + public void setPowerSave(Boolean powerSave) { + this.powerSave = powerSave; + } + + public ClientDetail rssi(Integer rssi) { + this.rssi = rssi; + return this; + } + + /** + * (Wireless) Signal strength, unit: dBm. + * @return rssi + */ + @ApiModelProperty(value = "(Wireless) Signal strength, unit: dBm.") + + + public Integer getRssi() { + return rssi; + } + + public void setRssi(Integer rssi) { + this.rssi = rssi; + } + + public ClientDetail snr(Integer snr) { + this.snr = snr; + return this; + } + + /** + * (Wireless) Signal Noise Ratio. + * @return snr + */ + @ApiModelProperty(value = "(Wireless) Signal Noise Ratio.") + + + public Integer getSnr() { + return snr; + } + + public void setSnr(Integer snr) { + this.snr = snr; + } + + public ClientDetail switchMac(String switchMac) { + this.switchMac = switchMac; + return this; + } + + /** + * (Wired, connectDevType=switch) Switch MAC address. + * @return switchMac + */ + @ApiModelProperty(value = "(Wired, connectDevType=switch) Switch MAC address.") + + + public String getSwitchMac() { + return switchMac; + } + + public void setSwitchMac(String switchMac) { + this.switchMac = switchMac; + } + + public ClientDetail switchName(String switchName) { + this.switchName = switchName; + return this; + } + + /** + * (Wired, connectDevType=switch) Switch name. + * @return switchName + */ + @ApiModelProperty(value = "(Wired, connectDevType=switch) Switch name.") + + + public String getSwitchName() { + return switchName; + } + + public void setSwitchName(String switchName) { + this.switchName = switchName; + } + + public ClientDetail gatewayMac(String gatewayMac) { + this.gatewayMac = gatewayMac; + return this; + } + + /** + * (Wired, connectDevType=gateway) Gateway MAC Address. + * @return gatewayMac + */ + @ApiModelProperty(value = "(Wired, connectDevType=gateway) Gateway MAC Address.") + + + public String getGatewayMac() { + return gatewayMac; + } + + public void setGatewayMac(String gatewayMac) { + this.gatewayMac = gatewayMac; + } + + public ClientDetail gatewayName(String gatewayName) { + this.gatewayName = gatewayName; + return this; + } + + /** + * (Wired, connectDevType=gateway) Gateway name. + * @return gatewayName + */ + @ApiModelProperty(value = "(Wired, connectDevType=gateway) Gateway name.") + + + public String getGatewayName() { + return gatewayName; + } + + public void setGatewayName(String gatewayName) { + this.gatewayName = gatewayName; + } + + public ClientDetail vid(Integer vid) { + this.vid = vid; + return this; + } + + /** + * (Wired) vlan. + * @return vid + */ + @ApiModelProperty(value = "(Wired) vlan.") + + + public Integer getVid() { + return vid; + } + + public void setVid(Integer vid) { + this.vid = vid; + } + + public ClientDetail networkName(String networkName) { + this.networkName = networkName; + return this; + } + + /** + * (Wired) Network name. + * @return networkName + */ + @ApiModelProperty(value = "(Wired) Network name.") + + + public String getNetworkName() { + return networkName; + } + + public void setNetworkName(String networkName) { + this.networkName = networkName; + } + + public ClientDetail dot1xIdentity(String dot1xIdentity) { + this.dot1xIdentity = dot1xIdentity; + return this; + } + + /** + * (Wired) 802.1x authentication identity. + * @return dot1xIdentity + */ + @ApiModelProperty(value = "(Wired) 802.1x authentication identity.") + + + public String getDot1xIdentity() { + return dot1xIdentity; + } + + public void setDot1xIdentity(String dot1xIdentity) { + this.dot1xIdentity = dot1xIdentity; + } + + public ClientDetail dot1xVlan(Integer dot1xVlan) { + this.dot1xVlan = dot1xVlan; + return this; + } + + /** + * (Wired) Network name corresponding to the VLAN obtained by 802.1x D-VLAN. + * @return dot1xVlan + */ + @ApiModelProperty(value = "(Wired) Network name corresponding to the VLAN obtained by 802.1x D-VLAN.") + + + public Integer getDot1xVlan() { + return dot1xVlan; + } + + public void setDot1xVlan(Integer dot1xVlan) { + this.dot1xVlan = dot1xVlan; + } + + public ClientDetail port(Integer port) { + this.port = port; + return this; + } + + /** + * (Wired) Port ID. + * @return port + */ + @ApiModelProperty(value = "(Wired) Port ID.") + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public ClientDetail lagId(Integer lagId) { + this.lagId = lagId; + return this; + } + + /** + * (Wired) LAG ID. Exists only when the client is connected to the LAG. + * @return lagId + */ + @ApiModelProperty(value = "(Wired) LAG ID. Exists only when the client is connected to the LAG.") + + + public Integer getLagId() { + return lagId; + } + + public void setLagId(Integer lagId) { + this.lagId = lagId; + } + + public ClientDetail activity(Long activity) { + this.activity = activity; + return this; + } + + /** + * Real-time downlink rate (Byte/s). + * @return activity + */ + @ApiModelProperty(value = "Real-time downlink rate (Byte/s).") + + + public Long getActivity() { + return activity; + } + + public void setActivity(Long activity) { + this.activity = activity; + } + + public ClientDetail trafficDown(Long trafficDown) { + this.trafficDown = trafficDown; + return this; + } + + /** + * Downstream traffic (Byte). + * @return trafficDown + */ + @ApiModelProperty(value = "Downstream traffic (Byte).") + + + public Long getTrafficDown() { + return trafficDown; + } + + public void setTrafficDown(Long trafficDown) { + this.trafficDown = trafficDown; + } + + public ClientDetail trafficUp(Long trafficUp) { + this.trafficUp = trafficUp; + return this; + } + + /** + * Upstream traffic (Byte). + * @return trafficUp + */ + @ApiModelProperty(value = "Upstream traffic (Byte).") + + + public Long getTrafficUp() { + return trafficUp; + } + + public void setTrafficUp(Long trafficUp) { + this.trafficUp = trafficUp; + } + + public ClientDetail uptime(Long uptime) { + this.uptime = uptime; + return this; + } + + /** + * Up time (unit: s). + * @return uptime + */ + @ApiModelProperty(value = "Up time (unit: s).") + + + public Long getUptime() { + return uptime; + } + + public void setUptime(Long uptime) { + this.uptime = uptime; + } + + public ClientDetail lastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + return this; + } + + /** + * Last found time, timestamp (ms). + * @return lastSeen + */ + @ApiModelProperty(value = "Last found time, timestamp (ms).") + + + public Long getLastSeen() { + return lastSeen; + } + + public void setLastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + } + + public ClientDetail authStatus(Integer authStatus) { + this.authStatus = authStatus; + return this; + } + + /** + * Authentication status should be a value as follows: 0: CONNECTED // Access without any authentication method; 1: PENDING // Access to Portal, but authentication failed; 2: AUTHORIZED // Pass through portal, pass other authentication without portal; 3: AUTH-FREE // No portal authentication required. + * @return authStatus + */ + @ApiModelProperty(value = "Authentication status should be a value as follows: 0: CONNECTED // Access without any authentication method; 1: PENDING // Access to Portal, but authentication failed; 2: AUTHORIZED // Pass through portal, pass other authentication without portal; 3: AUTH-FREE // No portal authentication required.") + + + public Integer getAuthStatus() { + return authStatus; + } + + public void setAuthStatus(Integer authStatus) { + this.authStatus = authStatus; + } + + public ClientDetail blocked(Boolean blocked) { + this.blocked = blocked; + return this; + } + + /** + * Whether the client is blocked. + * @return blocked + */ + @ApiModelProperty(value = "Whether the client is blocked.") + + + public Boolean getBlocked() { + return blocked; + } + + public void setBlocked(Boolean blocked) { + this.blocked = blocked; + } + + public ClientDetail guest(Boolean guest) { + this.guest = guest; + return this; + } + + /** + * (Wireless) Whether it is Guest (used to display the wireless Guest client icon). + * @return guest + */ + @ApiModelProperty(value = "(Wireless) Whether it is Guest (used to display the wireless Guest client icon).") + + + public Boolean getGuest() { + return guest; + } + + public void setGuest(Boolean guest) { + this.guest = guest; + } + + public ClientDetail active(Boolean active) { + this.active = active; + return this; + } + + /** + * Whether the client is online. + * @return active + */ + @ApiModelProperty(value = "Whether the client is online.") + + + public Boolean getActive() { + return active; + } + + public void setActive(Boolean active) { + this.active = active; + } + + public ClientDetail manager(Boolean manager) { + this.manager = manager; + return this; + } + + /** + * Whether it is the client currently being managed. + * @return manager + */ + @ApiModelProperty(value = "Whether it is the client currently being managed.") + + + public Boolean getManager() { + return manager; + } + + public void setManager(Boolean manager) { + this.manager = manager; + } + + public ClientDetail ipSetting(ClientIpSetting ipSetting) { + this.ipSetting = ipSetting; + return this; + } + + /** + * Get ipSetting + * @return ipSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public ClientIpSetting getIpSetting() { + return ipSetting; + } + + public void setIpSetting(ClientIpSetting ipSetting) { + this.ipSetting = ipSetting; + } + + public ClientDetail downPacket(Long downPacket) { + this.downPacket = downPacket; + return this; + } + + /** + * Number of downstream packets. + * @return downPacket + */ + @ApiModelProperty(value = "Number of downstream packets.") + + + public Long getDownPacket() { + return downPacket; + } + + public void setDownPacket(Long downPacket) { + this.downPacket = downPacket; + } + + public ClientDetail upPacket(Long upPacket) { + this.upPacket = upPacket; + return this; + } + + /** + * Number of upstream packets. + * @return upPacket + */ + @ApiModelProperty(value = "Number of upstream packets.") + + + public Long getUpPacket() { + return upPacket; + } + + public void setUpPacket(Long upPacket) { + this.upPacket = upPacket; + } + + public ClientDetail rateLimit(ClientRateLimitSetting rateLimit) { + this.rateLimit = rateLimit; + return this; + } + + /** + * Get rateLimit + * @return rateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public ClientRateLimitSetting getRateLimit() { + return rateLimit; + } + + public void setRateLimit(ClientRateLimitSetting rateLimit) { + this.rateLimit = rateLimit; + } + + public ClientDetail clientLockToApSetting(ClientLockToApSetting clientLockToApSetting) { + this.clientLockToApSetting = clientLockToApSetting; + return this; + } + + /** + * Get clientLockToApSetting + * @return clientLockToApSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public ClientLockToApSetting getClientLockToApSetting() { + return clientLockToApSetting; + } + + public void setClientLockToApSetting(ClientLockToApSetting clientLockToApSetting) { + this.clientLockToApSetting = clientLockToApSetting; + } + + public ClientDetail multiLink(List multiLink) { + this.multiLink = multiLink; + return this; + } + + public ClientDetail addMultiLinkItem(ClientMultifrequencyInfo multiLinkItem) { + if (this.multiLink == null) { + this.multiLink = new ArrayList<>(); + } + this.multiLink.add(multiLinkItem); + return this; + } + + /** + * (Wireless) Client multifrequency info list. + * @return multiLink + */ + @ApiModelProperty(value = "(Wireless) Client multifrequency info list.") + + @Valid + + public List getMultiLink() { + return multiLink; + } + + public void setMultiLink(List multiLink) { + this.multiLink = multiLink; + } + + public ClientDetail unit(Integer unit) { + this.unit = unit; + return this; + } + + /** + * Unit ID. + * @return unit + */ + @ApiModelProperty(value = "Unit ID.") + + + public Integer getUnit() { + return unit; + } + + public void setUnit(Integer unit) { + this.unit = unit; + } + + public ClientDetail standardPort(String standardPort) { + this.standardPort = standardPort; + return this; + } + + /** + * Standard port. + * @return standardPort + */ + @ApiModelProperty(value = "Standard port.") + + + public String getStandardPort() { + return standardPort; + } + + public void setStandardPort(String standardPort) { + this.standardPort = standardPort; + } + + public ClientDetail blockDisable(Boolean blockDisable) { + this.blockDisable = blockDisable; + return this; + } + + /** + * Block client disabled, default value: false + * @return blockDisable + */ + @ApiModelProperty(value = "Block client disabled, default value: false") + + + public Boolean getBlockDisable() { + return blockDisable; + } + + public void setBlockDisable(Boolean blockDisable) { + this.blockDisable = blockDisable; + } + + public ClientDetail dhcpLeaseTime(Long dhcpLeaseTime) { + this.dhcpLeaseTime = dhcpLeaseTime; + return this; + } + + /** + * DHCP lease time, unit seconds + * @return dhcpLeaseTime + */ + @ApiModelProperty(value = "DHCP lease time, unit seconds") + + + public Long getDhcpLeaseTime() { + return dhcpLeaseTime; + } + + public void setDhcpLeaseTime(Long dhcpLeaseTime) { + this.dhcpLeaseTime = dhcpLeaseTime; + } + + public ClientDetail systemName(String systemName) { + this.systemName = systemName; + return this; + } + + /** + * Device system name. + * @return systemName + */ + @ApiModelProperty(value = "Device system name.") + + + public String getSystemName() { + return systemName; + } + + public void setSystemName(String systemName) { + this.systemName = systemName; + } + + public ClientDetail description(String description) { + this.description = description; + return this; + } + + /** + * Device description. + * @return description + */ + @ApiModelProperty(value = "Device description.") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ClientDetail capabilities(List capabilities) { + this.capabilities = capabilities; + return this; + } + + public ClientDetail addCapabilitiesItem(String capabilitiesItem) { + if (this.capabilities == null) { + this.capabilities = new ArrayList<>(); + } + this.capabilities.add(capabilitiesItem); + return this; + } + + /** + * One or more of the following values: Station、DOCSIS cable device、Telephone、Router、WLAN access point、Bridge、Repeater、other. + * @return capabilities + */ + @ApiModelProperty(value = "One or more of the following values: Station、DOCSIS cable device、Telephone、Router、WLAN access point、Bridge、Repeater、other.") + + + public List getCapabilities() { + return capabilities; + } + + public void setCapabilities(List capabilities) { + this.capabilities = capabilities; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientDetail clientDetail = (ClientDetail) o; + return Objects.equals(this.id, clientDetail.id) && + Objects.equals(this.mac, clientDetail.mac) && + Objects.equals(this.name, clientDetail.name) && + Objects.equals(this.hostName, clientDetail.hostName) && + Objects.equals(this.vendor, clientDetail.vendor) && + Objects.equals(this.deviceType, clientDetail.deviceType) && + Objects.equals(this.deviceCategory, clientDetail.deviceCategory) && + Objects.equals(this.osName, clientDetail.osName) && + Objects.equals(this.ip, clientDetail.ip) && + Objects.equals(this.ipv6List, clientDetail.ipv6List) && + Objects.equals(this.connectType, clientDetail.connectType) && + Objects.equals(this.connectDevType, clientDetail.connectDevType) && + Objects.equals(this.connectedToWirelessRouter, clientDetail.connectedToWirelessRouter) && + Objects.equals(this.wireless, clientDetail.wireless) && + Objects.equals(this.ssid, clientDetail.ssid) && + Objects.equals(this.signalLevel, clientDetail.signalLevel) && + Objects.equals(this.signalRank, clientDetail.signalRank) && + Objects.equals(this.wifiMode, clientDetail.wifiMode) && + Objects.equals(this.apName, clientDetail.apName) && + Objects.equals(this.apMac, clientDetail.apMac) && + Objects.equals(this.radioId, clientDetail.radioId) && + Objects.equals(this.channel, clientDetail.channel) && + Objects.equals(this.rxRate, clientDetail.rxRate) && + Objects.equals(this.txRate, clientDetail.txRate) && + Objects.equals(this.powerSave, clientDetail.powerSave) && + Objects.equals(this.rssi, clientDetail.rssi) && + Objects.equals(this.snr, clientDetail.snr) && + Objects.equals(this.switchMac, clientDetail.switchMac) && + Objects.equals(this.switchName, clientDetail.switchName) && + Objects.equals(this.gatewayMac, clientDetail.gatewayMac) && + Objects.equals(this.gatewayName, clientDetail.gatewayName) && + Objects.equals(this.vid, clientDetail.vid) && + Objects.equals(this.networkName, clientDetail.networkName) && + Objects.equals(this.dot1xIdentity, clientDetail.dot1xIdentity) && + Objects.equals(this.dot1xVlan, clientDetail.dot1xVlan) && + Objects.equals(this.port, clientDetail.port) && + Objects.equals(this.lagId, clientDetail.lagId) && + Objects.equals(this.activity, clientDetail.activity) && + Objects.equals(this.trafficDown, clientDetail.trafficDown) && + Objects.equals(this.trafficUp, clientDetail.trafficUp) && + Objects.equals(this.uptime, clientDetail.uptime) && + Objects.equals(this.lastSeen, clientDetail.lastSeen) && + Objects.equals(this.authStatus, clientDetail.authStatus) && + Objects.equals(this.blocked, clientDetail.blocked) && + Objects.equals(this.guest, clientDetail.guest) && + Objects.equals(this.active, clientDetail.active) && + Objects.equals(this.manager, clientDetail.manager) && + Objects.equals(this.ipSetting, clientDetail.ipSetting) && + Objects.equals(this.downPacket, clientDetail.downPacket) && + Objects.equals(this.upPacket, clientDetail.upPacket) && + Objects.equals(this.rateLimit, clientDetail.rateLimit) && + Objects.equals(this.clientLockToApSetting, clientDetail.clientLockToApSetting) && + Objects.equals(this.multiLink, clientDetail.multiLink) && + Objects.equals(this.unit, clientDetail.unit) && + Objects.equals(this.standardPort, clientDetail.standardPort) && + Objects.equals(this.blockDisable, clientDetail.blockDisable) && + Objects.equals(this.dhcpLeaseTime, clientDetail.dhcpLeaseTime) && + Objects.equals(this.systemName, clientDetail.systemName) && + Objects.equals(this.description, clientDetail.description) && + Objects.equals(this.capabilities, clientDetail.capabilities); + } + + @Override + public int hashCode() { + return Objects.hash(id, mac, name, hostName, vendor, deviceType, deviceCategory, osName, ip, ipv6List, connectType, connectDevType, connectedToWirelessRouter, wireless, ssid, signalLevel, signalRank, wifiMode, apName, apMac, radioId, channel, rxRate, txRate, powerSave, rssi, snr, switchMac, switchName, gatewayMac, gatewayName, vid, networkName, dot1xIdentity, dot1xVlan, port, lagId, activity, trafficDown, trafficUp, uptime, lastSeen, authStatus, blocked, guest, active, manager, ipSetting, downPacket, upPacket, rateLimit, clientLockToApSetting, multiLink, unit, standardPort, blockDisable, dhcpLeaseTime, systemName, description, capabilities); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientDetail {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n"); + sb.append(" vendor: ").append(toIndentedString(vendor)).append("\n"); + sb.append(" deviceType: ").append(toIndentedString(deviceType)).append("\n"); + sb.append(" deviceCategory: ").append(toIndentedString(deviceCategory)).append("\n"); + sb.append(" osName: ").append(toIndentedString(osName)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" ipv6List: ").append(toIndentedString(ipv6List)).append("\n"); + sb.append(" connectType: ").append(toIndentedString(connectType)).append("\n"); + sb.append(" connectDevType: ").append(toIndentedString(connectDevType)).append("\n"); + sb.append(" connectedToWirelessRouter: ").append(toIndentedString(connectedToWirelessRouter)).append("\n"); + sb.append(" wireless: ").append(toIndentedString(wireless)).append("\n"); + sb.append(" ssid: ").append(toIndentedString(ssid)).append("\n"); + sb.append(" signalLevel: ").append(toIndentedString(signalLevel)).append("\n"); + sb.append(" signalRank: ").append(toIndentedString(signalRank)).append("\n"); + sb.append(" wifiMode: ").append(toIndentedString(wifiMode)).append("\n"); + sb.append(" apName: ").append(toIndentedString(apName)).append("\n"); + sb.append(" apMac: ").append(toIndentedString(apMac)).append("\n"); + sb.append(" radioId: ").append(toIndentedString(radioId)).append("\n"); + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" rxRate: ").append(toIndentedString(rxRate)).append("\n"); + sb.append(" txRate: ").append(toIndentedString(txRate)).append("\n"); + sb.append(" powerSave: ").append(toIndentedString(powerSave)).append("\n"); + sb.append(" rssi: ").append(toIndentedString(rssi)).append("\n"); + sb.append(" snr: ").append(toIndentedString(snr)).append("\n"); + sb.append(" switchMac: ").append(toIndentedString(switchMac)).append("\n"); + sb.append(" switchName: ").append(toIndentedString(switchName)).append("\n"); + sb.append(" gatewayMac: ").append(toIndentedString(gatewayMac)).append("\n"); + sb.append(" gatewayName: ").append(toIndentedString(gatewayName)).append("\n"); + sb.append(" vid: ").append(toIndentedString(vid)).append("\n"); + sb.append(" networkName: ").append(toIndentedString(networkName)).append("\n"); + sb.append(" dot1xIdentity: ").append(toIndentedString(dot1xIdentity)).append("\n"); + sb.append(" dot1xVlan: ").append(toIndentedString(dot1xVlan)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" lagId: ").append(toIndentedString(lagId)).append("\n"); + sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); + sb.append(" trafficDown: ").append(toIndentedString(trafficDown)).append("\n"); + sb.append(" trafficUp: ").append(toIndentedString(trafficUp)).append("\n"); + sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append(" authStatus: ").append(toIndentedString(authStatus)).append("\n"); + sb.append(" blocked: ").append(toIndentedString(blocked)).append("\n"); + sb.append(" guest: ").append(toIndentedString(guest)).append("\n"); + sb.append(" active: ").append(toIndentedString(active)).append("\n"); + sb.append(" manager: ").append(toIndentedString(manager)).append("\n"); + sb.append(" ipSetting: ").append(toIndentedString(ipSetting)).append("\n"); + sb.append(" downPacket: ").append(toIndentedString(downPacket)).append("\n"); + sb.append(" upPacket: ").append(toIndentedString(upPacket)).append("\n"); + sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n"); + sb.append(" clientLockToApSetting: ").append(toIndentedString(clientLockToApSetting)).append("\n"); + sb.append(" multiLink: ").append(toIndentedString(multiLink)).append("\n"); + sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append(" standardPort: ").append(toIndentedString(standardPort)).append("\n"); + sb.append(" blockDisable: ").append(toIndentedString(blockDisable)).append("\n"); + sb.append(" dhcpLeaseTime: ").append(toIndentedString(dhcpLeaseTime)).append("\n"); + sb.append(" systemName: ").append(toIndentedString(systemName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientGridVoClientInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientGridVoClientInfo.java new file mode 100644 index 0000000..9452c82 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientGridVoClientInfo.java @@ -0,0 +1,190 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ClientGridVoClientInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ClientGridVoClientInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + @JsonProperty("clientStat") + private ClientStatVo clientStat; + + public ClientGridVoClientInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public ClientGridVoClientInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public ClientGridVoClientInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public ClientGridVoClientInfo data(List data) { + this.data = data; + return this; + } + + public ClientGridVoClientInfo addDataItem(ClientInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ClientGridVoClientInfo clientStat(ClientStatVo clientStat) { + this.clientStat = clientStat; + return this; + } + + /** + * Get clientStat + * @return clientStat + */ + @ApiModelProperty(value = "") + + @Valid + + public ClientStatVo getClientStat() { + return clientStat; + } + + public void setClientStat(ClientStatVo clientStat) { + this.clientStat = clientStat; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientGridVoClientInfo clientGridVoClientInfo = (ClientGridVoClientInfo) o; + return Objects.equals(this.totalRows, clientGridVoClientInfo.totalRows) && + Objects.equals(this.currentPage, clientGridVoClientInfo.currentPage) && + Objects.equals(this.currentSize, clientGridVoClientInfo.currentSize) && + Objects.equals(this.data, clientGridVoClientInfo.data) && + Objects.equals(this.clientStat, clientGridVoClientInfo.clientStat); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data, clientStat); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientGridVoClientInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" clientStat: ").append(toIndentedString(clientStat)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientHistoryInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientHistoryInfo.java new file mode 100644 index 0000000..05bad45 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientHistoryInfo.java @@ -0,0 +1,438 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ClientHistoryInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ClientHistoryInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("download") + private Long download; + + @JsonProperty("upload") + private Long upload; + + @JsonProperty("duration") + private Long duration; + + @JsonProperty("firstSeen") + private Long firstSeen; + + @JsonProperty("lastSeen") + private Long lastSeen; + + @JsonProperty("name") + private String name; + + @JsonProperty("ssid") + private String ssid; + + @JsonProperty("port") + private Integer port; + + @JsonProperty("guest") + private Boolean guest; + + @JsonProperty("deviceName") + private String deviceName; + + @JsonProperty("associationTime") + private Integer associationTime; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("ipv6List") + @Valid + private List ipv6List = null; + + public ClientHistoryInfo id(String id) { + this.id = id; + return this; + } + + /** + * Client History ID. + * @return id + */ + @ApiModelProperty(value = "Client History ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ClientHistoryInfo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Client MAC Address. + * @return mac + */ + @ApiModelProperty(value = "Client MAC Address.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public ClientHistoryInfo download(Long download) { + this.download = download; + return this; + } + + /** + * Downstream traffic (Byte). + * @return download + */ + @ApiModelProperty(value = "Downstream traffic (Byte).") + + + public Long getDownload() { + return download; + } + + public void setDownload(Long download) { + this.download = download; + } + + public ClientHistoryInfo upload(Long upload) { + this.upload = upload; + return this; + } + + /** + * Upstream traffic (Byte). + * @return upload + */ + @ApiModelProperty(value = "Upstream traffic (Byte).") + + + public Long getUpload() { + return upload; + } + + public void setUpload(Long upload) { + this.upload = upload; + } + + public ClientHistoryInfo duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * Up time (unit: s). + * @return duration + */ + @ApiModelProperty(value = "Up time (unit: s).") + + + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + public ClientHistoryInfo firstSeen(Long firstSeen) { + this.firstSeen = firstSeen; + return this; + } + + /** + * The timestamp (ms) when the client connected. + * @return firstSeen + */ + @ApiModelProperty(value = "The timestamp (ms) when the client connected.") + + + public Long getFirstSeen() { + return firstSeen; + } + + public void setFirstSeen(Long firstSeen) { + this.firstSeen = firstSeen; + } + + public ClientHistoryInfo lastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + return this; + } + + /** + * Last found time, timestamp (ms). + * @return lastSeen + */ + @ApiModelProperty(value = "Last found time, timestamp (ms).") + + + public Long getLastSeen() { + return lastSeen; + } + + public void setLastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + } + + public ClientHistoryInfo name(String name) { + this.name = name; + return this; + } + + /** + * Client Name. + * @return name + */ + @ApiModelProperty(value = "Client Name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ClientHistoryInfo ssid(String ssid) { + this.ssid = ssid; + return this; + } + + /** + * (Wireless) SSID name. + * @return ssid + */ + @ApiModelProperty(value = "(Wireless) SSID name.") + + + public String getSsid() { + return ssid; + } + + public void setSsid(String ssid) { + this.ssid = ssid; + } + + public ClientHistoryInfo port(Integer port) { + this.port = port; + return this; + } + + /** + * (Wired) Port ID. + * @return port + */ + @ApiModelProperty(value = "(Wired) Port ID.") + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public ClientHistoryInfo guest(Boolean guest) { + this.guest = guest; + return this; + } + + /** + * (Wireless) Whether it is Guest (used to display the wireless Guest client icon). + * @return guest + */ + @ApiModelProperty(value = "(Wireless) Whether it is Guest (used to display the wireless Guest client icon).") + + + public Boolean getGuest() { + return guest; + } + + public void setGuest(Boolean guest) { + this.guest = guest; + } + + public ClientHistoryInfo deviceName(String deviceName) { + this.deviceName = deviceName; + return this; + } + + /** + * Device name. + * @return deviceName + */ + @ApiModelProperty(value = "Device name.") + + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public ClientHistoryInfo associationTime(Integer associationTime) { + this.associationTime = associationTime; + return this; + } + + /** + * (Wireless) The time (ms) it takes for the client to connect to SSID. + * @return associationTime + */ + @ApiModelProperty(value = "(Wireless) The time (ms) it takes for the client to connect to SSID.") + + + public Integer getAssociationTime() { + return associationTime; + } + + public void setAssociationTime(Integer associationTime) { + this.associationTime = associationTime; + } + + public ClientHistoryInfo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP Address. + * @return ip + */ + @ApiModelProperty(value = "IP Address.") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public ClientHistoryInfo ipv6List(List ipv6List) { + this.ipv6List = ipv6List; + return this; + } + + public ClientHistoryInfo addIpv6ListItem(String ipv6ListItem) { + if (this.ipv6List == null) { + this.ipv6List = new ArrayList<>(); + } + this.ipv6List.add(ipv6ListItem); + return this; + } + + /** + * IPv6 Address. + * @return ipv6List + */ + @ApiModelProperty(value = "IPv6 Address.") + + + public List getIpv6List() { + return ipv6List; + } + + public void setIpv6List(List ipv6List) { + this.ipv6List = ipv6List; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientHistoryInfo clientHistoryInfo = (ClientHistoryInfo) o; + return Objects.equals(this.id, clientHistoryInfo.id) && + Objects.equals(this.mac, clientHistoryInfo.mac) && + Objects.equals(this.download, clientHistoryInfo.download) && + Objects.equals(this.upload, clientHistoryInfo.upload) && + Objects.equals(this.duration, clientHistoryInfo.duration) && + Objects.equals(this.firstSeen, clientHistoryInfo.firstSeen) && + Objects.equals(this.lastSeen, clientHistoryInfo.lastSeen) && + Objects.equals(this.name, clientHistoryInfo.name) && + Objects.equals(this.ssid, clientHistoryInfo.ssid) && + Objects.equals(this.port, clientHistoryInfo.port) && + Objects.equals(this.guest, clientHistoryInfo.guest) && + Objects.equals(this.deviceName, clientHistoryInfo.deviceName) && + Objects.equals(this.associationTime, clientHistoryInfo.associationTime) && + Objects.equals(this.ip, clientHistoryInfo.ip) && + Objects.equals(this.ipv6List, clientHistoryInfo.ipv6List); + } + + @Override + public int hashCode() { + return Objects.hash(id, mac, download, upload, duration, firstSeen, lastSeen, name, ssid, port, guest, deviceName, associationTime, ip, ipv6List); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientHistoryInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" download: ").append(toIndentedString(download)).append("\n"); + sb.append(" upload: ").append(toIndentedString(upload)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" firstSeen: ").append(toIndentedString(firstSeen)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ssid: ").append(toIndentedString(ssid)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" guest: ").append(toIndentedString(guest)).append("\n"); + sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); + sb.append(" associationTime: ").append(toIndentedString(associationTime)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" ipv6List: ").append(toIndentedString(ipv6List)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientInfo.java new file mode 100644 index 0000000..53f12c4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientInfo.java @@ -0,0 +1,1610 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ClientInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ClientInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("hostName") + private String hostName; + + @JsonProperty("vendor") + private String vendor; + + @JsonProperty("deviceType") + private String deviceType; + + @JsonProperty("deviceCategory") + private String deviceCategory; + + @JsonProperty("osName") + private String osName; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("ipv6List") + @Valid + private List ipv6List = null; + + @JsonProperty("connectType") + private Integer connectType; + + @JsonProperty("connectDevType") + private String connectDevType; + + @JsonProperty("connectedToWirelessRouter") + private Boolean connectedToWirelessRouter; + + @JsonProperty("wireless") + private Boolean wireless; + + @JsonProperty("ssid") + private String ssid; + + @JsonProperty("signalLevel") + private Integer signalLevel; + + @JsonProperty("healthScore") + private Integer healthScore; + + @JsonProperty("signalRank") + private Integer signalRank; + + @JsonProperty("wifiMode") + private Integer wifiMode; + + @JsonProperty("apName") + private String apName; + + @JsonProperty("apMac") + private String apMac; + + @JsonProperty("radioId") + private Integer radioId; + + @JsonProperty("channel") + private Integer channel; + + @JsonProperty("rxRate") + private Long rxRate; + + @JsonProperty("txRate") + private Long txRate; + + @JsonProperty("powerSave") + private Boolean powerSave; + + @JsonProperty("rssi") + private Integer rssi; + + @JsonProperty("snr") + private Integer snr; + + @JsonProperty("switchMac") + private String switchMac; + + @JsonProperty("switchName") + private String switchName; + + @JsonProperty("gatewayMac") + private String gatewayMac; + + @JsonProperty("gatewayName") + private String gatewayName; + + @JsonProperty("vid") + private Integer vid; + + @JsonProperty("networkName") + private String networkName; + + @JsonProperty("dot1xIdentity") + private String dot1xIdentity; + + @JsonProperty("dot1xVlan") + private Integer dot1xVlan; + + @JsonProperty("port") + private Integer port; + + @JsonProperty("lagId") + private Integer lagId; + + @JsonProperty("activity") + private Long activity; + + @JsonProperty("trafficDown") + private Long trafficDown; + + @JsonProperty("trafficUp") + private Long trafficUp; + + @JsonProperty("uptime") + private Long uptime; + + @JsonProperty("lastSeen") + private Long lastSeen; + + @JsonProperty("authStatus") + private Integer authStatus; + + @JsonProperty("blocked") + private Boolean blocked; + + @JsonProperty("guest") + private Boolean guest; + + @JsonProperty("active") + private Boolean active; + + @JsonProperty("manager") + private Boolean manager; + + @JsonProperty("ipSetting") + private ClientIpSetting ipSetting; + + @JsonProperty("downPacket") + private Long downPacket; + + @JsonProperty("upPacket") + private Long upPacket; + + @JsonProperty("rateLimit") + private ClientRateLimitSetting rateLimit; + + @JsonProperty("clientLockToApSetting") + private ClientLockToApSetting clientLockToApSetting; + + @JsonProperty("multiLink") + @Valid + private List multiLink = null; + + @JsonProperty("unit") + private Integer unit; + + @JsonProperty("standardPort") + private String standardPort; + + @JsonProperty("systemName") + private String systemName; + + @JsonProperty("description") + private String description; + + @JsonProperty("capabilities") + @Valid + private List capabilities = null; + + @JsonProperty("blockDisable") + private Boolean blockDisable; + + @JsonProperty("dhcpLeaseTime") + private Long dhcpLeaseTime; + + public ClientInfo id(String id) { + this.id = id; + return this; + } + + /** + * Client ID. + * @return id + */ + @ApiModelProperty(value = "Client ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ClientInfo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Client MAC Address. + * @return mac + */ + @ApiModelProperty(value = "Client MAC Address.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public ClientInfo name(String name) { + this.name = name; + return this; + } + + /** + * Client Name, alias. + * @return name + */ + @ApiModelProperty(value = "Client Name, alias.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ClientInfo hostName(String hostName) { + this.hostName = hostName; + return this; + } + + /** + * Host name, device name. + * @return hostName + */ + @ApiModelProperty(value = "Host name, device name.") + + + public String getHostName() { + return hostName; + } + + public void setHostName(String hostName) { + this.hostName = hostName; + } + + public ClientInfo vendor(String vendor) { + this.vendor = vendor; + return this; + } + + /** + * Vendor. + * @return vendor + */ + @ApiModelProperty(value = "Vendor.") + + + public String getVendor() { + return vendor; + } + + public void setVendor(String vendor) { + this.vendor = vendor; + } + + public ClientInfo deviceType(String deviceType) { + this.deviceType = deviceType; + return this; + } + + /** + * Device Type: iphone, ipod, android, pc, printer, tv... + * @return deviceType + */ + @ApiModelProperty(value = "Device Type: iphone, ipod, android, pc, printer, tv...") + + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public ClientInfo deviceCategory(String deviceCategory) { + this.deviceCategory = deviceCategory; + return this; + } + + /** + * Device Category: loT, TV, computer, phone... + * @return deviceCategory + */ + @ApiModelProperty(value = "Device Category: loT, TV, computer, phone...") + + + public String getDeviceCategory() { + return deviceCategory; + } + + public void setDeviceCategory(String deviceCategory) { + this.deviceCategory = deviceCategory; + } + + public ClientInfo osName(String osName) { + this.osName = osName; + return this; + } + + /** + * Device system version. + * @return osName + */ + @ApiModelProperty(value = "Device system version.") + + + public String getOsName() { + return osName; + } + + public void setOsName(String osName) { + this.osName = osName; + } + + public ClientInfo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP Address. + * @return ip + */ + @ApiModelProperty(value = "IP Address.") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public ClientInfo ipv6List(List ipv6List) { + this.ipv6List = ipv6List; + return this; + } + + public ClientInfo addIpv6ListItem(String ipv6ListItem) { + if (this.ipv6List == null) { + this.ipv6List = new ArrayList<>(); + } + this.ipv6List.add(ipv6ListItem); + return this; + } + + /** + * IPv6 Address. + * @return ipv6List + */ + @ApiModelProperty(value = "IPv6 Address.") + + + public List getIpv6List() { + return ipv6List; + } + + public void setIpv6List(List ipv6List) { + this.ipv6List = ipv6List; + } + + public ClientInfo connectType(Integer connectType) { + this.connectType = connectType; + return this; + } + + /** + * Connect type should be a value as follows: 0: wireless guest; 1: wireless user; 2: wired user. + * @return connectType + */ + @ApiModelProperty(value = "Connect type should be a value as follows: 0: wireless guest; 1: wireless user; 2: wired user.") + + + public Integer getConnectType() { + return connectType; + } + + public void setConnectType(Integer connectType) { + this.connectType = connectType; + } + + public ClientInfo connectDevType(String connectDevType) { + this.connectDevType = connectDevType; + return this; + } + + /** + * connect device type should be a value as follows: ap, switch, gateway. + * @return connectDevType + */ + @ApiModelProperty(value = "connect device type should be a value as follows: ap, switch, gateway.") + + + public String getConnectDevType() { + return connectDevType; + } + + public void setConnectDevType(String connectDevType) { + this.connectDevType = connectDevType; + } + + public ClientInfo connectedToWirelessRouter(Boolean connectedToWirelessRouter) { + this.connectedToWirelessRouter = connectedToWirelessRouter; + return this; + } + + /** + * true: Client is connecting to a wireless router. + * @return connectedToWirelessRouter + */ + @ApiModelProperty(value = "true: Client is connecting to a wireless router.") + + + public Boolean getConnectedToWirelessRouter() { + return connectedToWirelessRouter; + } + + public void setConnectedToWirelessRouter(Boolean connectedToWirelessRouter) { + this.connectedToWirelessRouter = connectedToWirelessRouter; + } + + public ClientInfo wireless(Boolean wireless) { + this.wireless = wireless; + return this; + } + + /** + * true: Wireless device (connectDevType=ap); false: Not wireless device(connectDevType=switch or gateway). + * @return wireless + */ + @ApiModelProperty(value = "true: Wireless device (connectDevType=ap); false: Not wireless device(connectDevType=switch or gateway).") + + + public Boolean getWireless() { + return wireless; + } + + public void setWireless(Boolean wireless) { + this.wireless = wireless; + } + + public ClientInfo ssid(String ssid) { + this.ssid = ssid; + return this; + } + + /** + * (Wireless) SSID name. + * @return ssid + */ + @ApiModelProperty(value = "(Wireless) SSID name.") + + + public String getSsid() { + return ssid; + } + + public void setSsid(String ssid) { + this.ssid = ssid; + } + + public ClientInfo signalLevel(Integer signalLevel) { + this.signalLevel = signalLevel; + return this; + } + + /** + * (Wireless) Signal strength percentage should be within the range of 0-100. + * @return signalLevel + */ + @ApiModelProperty(value = "(Wireless) Signal strength percentage should be within the range of 0-100.") + + + public Integer getSignalLevel() { + return signalLevel; + } + + public void setSignalLevel(Integer signalLevel) { + this.signalLevel = signalLevel; + } + + public ClientInfo healthScore(Integer healthScore) { + this.healthScore = healthScore; + return this; + } + + /** + * 1~3: poor; 4~7: fair; 0: no data; 8~10 good. + * @return healthScore + */ + @ApiModelProperty(value = "1~3: poor; 4~7: fair; 0: no data; 8~10 good.") + + + public Integer getHealthScore() { + return healthScore; + } + + public void setHealthScore(Integer healthScore) { + this.healthScore = healthScore; + } + + public ClientInfo signalRank(Integer signalRank) { + this.signalRank = signalRank; + return this; + } + + /** + * (Wireless) Signal strength level should be within the range of 0-5. + * @return signalRank + */ + @ApiModelProperty(value = "(Wireless) Signal strength level should be within the range of 0-5.") + + + public Integer getSignalRank() { + return signalRank; + } + + public void setSignalRank(Integer signalRank) { + this.signalRank = signalRank; + } + + public ClientInfo wifiMode(Integer wifiMode) { + this.wifiMode = wifiMode; + return this; + } + + /** + * (Wireless) Wifi mode should be a value as follows: 0: 11a; 1: 11b; 2: 11g; 3: 11na; 4: 11ng; 5: 11ac; 6: 11axa; 7: 11axg; 8: 11beg; 9: 11bea. + * @return wifiMode + */ + @ApiModelProperty(value = "(Wireless) Wifi mode should be a value as follows: 0: 11a; 1: 11b; 2: 11g; 3: 11na; 4: 11ng; 5: 11ac; 6: 11axa; 7: 11axg; 8: 11beg; 9: 11bea.") + + + public Integer getWifiMode() { + return wifiMode; + } + + public void setWifiMode(Integer wifiMode) { + this.wifiMode = wifiMode; + } + + public ClientInfo apName(String apName) { + this.apName = apName; + return this; + } + + /** + * (Wireless) AP Name. + * @return apName + */ + @ApiModelProperty(value = "(Wireless) AP Name.") + + + public String getApName() { + return apName; + } + + public void setApName(String apName) { + this.apName = apName; + } + + public ClientInfo apMac(String apMac) { + this.apMac = apMac; + return this; + } + + /** + * (Wireless) AP MAC Address. + * @return apMac + */ + @ApiModelProperty(value = "(Wireless) AP MAC Address.") + + + public String getApMac() { + return apMac; + } + + public void setApMac(String apMac) { + this.apMac = apMac; + } + + public ClientInfo radioId(Integer radioId) { + this.radioId = radioId; + return this; + } + + /** + * (Wireless) Radio ID should be a value as follows: 0: 2.4GHz; 1: 5GHz-1; 2:5GHz-2; 3: 6GHz. + * @return radioId + */ + @ApiModelProperty(value = "(Wireless) Radio ID should be a value as follows: 0: 2.4GHz; 1: 5GHz-1; 2:5GHz-2; 3: 6GHz.") + + + public Integer getRadioId() { + return radioId; + } + + public void setRadioId(Integer radioId) { + this.radioId = radioId; + } + + public ClientInfo channel(Integer channel) { + this.channel = channel; + return this; + } + + /** + * (Wireless) Actual channel. + * @return channel + */ + @ApiModelProperty(value = "(Wireless) Actual channel.") + + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + public ClientInfo rxRate(Long rxRate) { + this.rxRate = rxRate; + return this; + } + + /** + * (Wireless) Uplink negotiation rate (Kbit/s). + * @return rxRate + */ + @ApiModelProperty(value = "(Wireless) Uplink negotiation rate (Kbit/s).") + + + public Long getRxRate() { + return rxRate; + } + + public void setRxRate(Long rxRate) { + this.rxRate = rxRate; + } + + public ClientInfo txRate(Long txRate) { + this.txRate = txRate; + return this; + } + + /** + * (Wireless) Downlink negotiation rate (Kbit/s). + * @return txRate + */ + @ApiModelProperty(value = "(Wireless) Downlink negotiation rate (Kbit/s).") + + + public Long getTxRate() { + return txRate; + } + + public void setTxRate(Long txRate) { + this.txRate = txRate; + } + + public ClientInfo powerSave(Boolean powerSave) { + this.powerSave = powerSave; + return this; + } + + /** + * (Wireless) true: Power save mode enabled. + * @return powerSave + */ + @ApiModelProperty(value = "(Wireless) true: Power save mode enabled.") + + + public Boolean getPowerSave() { + return powerSave; + } + + public void setPowerSave(Boolean powerSave) { + this.powerSave = powerSave; + } + + public ClientInfo rssi(Integer rssi) { + this.rssi = rssi; + return this; + } + + /** + * (Wireless) Signal strength, unit: dBm. + * @return rssi + */ + @ApiModelProperty(value = "(Wireless) Signal strength, unit: dBm.") + + + public Integer getRssi() { + return rssi; + } + + public void setRssi(Integer rssi) { + this.rssi = rssi; + } + + public ClientInfo snr(Integer snr) { + this.snr = snr; + return this; + } + + /** + * (Wireless) Signal Noise Ratio. + * @return snr + */ + @ApiModelProperty(value = "(Wireless) Signal Noise Ratio.") + + + public Integer getSnr() { + return snr; + } + + public void setSnr(Integer snr) { + this.snr = snr; + } + + public ClientInfo switchMac(String switchMac) { + this.switchMac = switchMac; + return this; + } + + /** + * (Wired, connectDevType=switch) Switch MAC address. + * @return switchMac + */ + @ApiModelProperty(value = "(Wired, connectDevType=switch) Switch MAC address.") + + + public String getSwitchMac() { + return switchMac; + } + + public void setSwitchMac(String switchMac) { + this.switchMac = switchMac; + } + + public ClientInfo switchName(String switchName) { + this.switchName = switchName; + return this; + } + + /** + * (Wired, connectDevType=switch) Switch name. + * @return switchName + */ + @ApiModelProperty(value = "(Wired, connectDevType=switch) Switch name.") + + + public String getSwitchName() { + return switchName; + } + + public void setSwitchName(String switchName) { + this.switchName = switchName; + } + + public ClientInfo gatewayMac(String gatewayMac) { + this.gatewayMac = gatewayMac; + return this; + } + + /** + * (Wired, connectDevType=gateway) Gateway MAC Address. + * @return gatewayMac + */ + @ApiModelProperty(value = "(Wired, connectDevType=gateway) Gateway MAC Address.") + + + public String getGatewayMac() { + return gatewayMac; + } + + public void setGatewayMac(String gatewayMac) { + this.gatewayMac = gatewayMac; + } + + public ClientInfo gatewayName(String gatewayName) { + this.gatewayName = gatewayName; + return this; + } + + /** + * (Wired, connectDevType=gateway) Gateway name. + * @return gatewayName + */ + @ApiModelProperty(value = "(Wired, connectDevType=gateway) Gateway name.") + + + public String getGatewayName() { + return gatewayName; + } + + public void setGatewayName(String gatewayName) { + this.gatewayName = gatewayName; + } + + public ClientInfo vid(Integer vid) { + this.vid = vid; + return this; + } + + /** + * (Wired) vlan. + * @return vid + */ + @ApiModelProperty(value = "(Wired) vlan.") + + + public Integer getVid() { + return vid; + } + + public void setVid(Integer vid) { + this.vid = vid; + } + + public ClientInfo networkName(String networkName) { + this.networkName = networkName; + return this; + } + + /** + * (Wired) Network name. + * @return networkName + */ + @ApiModelProperty(value = "(Wired) Network name.") + + + public String getNetworkName() { + return networkName; + } + + public void setNetworkName(String networkName) { + this.networkName = networkName; + } + + public ClientInfo dot1xIdentity(String dot1xIdentity) { + this.dot1xIdentity = dot1xIdentity; + return this; + } + + /** + * (Wired) 802.1x authentication identity. + * @return dot1xIdentity + */ + @ApiModelProperty(value = "(Wired) 802.1x authentication identity.") + + + public String getDot1xIdentity() { + return dot1xIdentity; + } + + public void setDot1xIdentity(String dot1xIdentity) { + this.dot1xIdentity = dot1xIdentity; + } + + public ClientInfo dot1xVlan(Integer dot1xVlan) { + this.dot1xVlan = dot1xVlan; + return this; + } + + /** + * (Wired) Network name corresponding to the VLAN obtained by 802.1x D-VLAN. + * @return dot1xVlan + */ + @ApiModelProperty(value = "(Wired) Network name corresponding to the VLAN obtained by 802.1x D-VLAN.") + + + public Integer getDot1xVlan() { + return dot1xVlan; + } + + public void setDot1xVlan(Integer dot1xVlan) { + this.dot1xVlan = dot1xVlan; + } + + public ClientInfo port(Integer port) { + this.port = port; + return this; + } + + /** + * (Wired) Port ID. + * @return port + */ + @ApiModelProperty(value = "(Wired) Port ID.") + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public ClientInfo lagId(Integer lagId) { + this.lagId = lagId; + return this; + } + + /** + * (Wired) LAG ID. Exists only when the client is connected to the LAG. + * @return lagId + */ + @ApiModelProperty(value = "(Wired) LAG ID. Exists only when the client is connected to the LAG.") + + + public Integer getLagId() { + return lagId; + } + + public void setLagId(Integer lagId) { + this.lagId = lagId; + } + + public ClientInfo activity(Long activity) { + this.activity = activity; + return this; + } + + /** + * Real-time downlink rate (Byte/s). + * @return activity + */ + @ApiModelProperty(value = "Real-time downlink rate (Byte/s).") + + + public Long getActivity() { + return activity; + } + + public void setActivity(Long activity) { + this.activity = activity; + } + + public ClientInfo trafficDown(Long trafficDown) { + this.trafficDown = trafficDown; + return this; + } + + /** + * Downstream traffic (Byte). + * @return trafficDown + */ + @ApiModelProperty(value = "Downstream traffic (Byte).") + + + public Long getTrafficDown() { + return trafficDown; + } + + public void setTrafficDown(Long trafficDown) { + this.trafficDown = trafficDown; + } + + public ClientInfo trafficUp(Long trafficUp) { + this.trafficUp = trafficUp; + return this; + } + + /** + * Upstream traffic (Byte). + * @return trafficUp + */ + @ApiModelProperty(value = "Upstream traffic (Byte).") + + + public Long getTrafficUp() { + return trafficUp; + } + + public void setTrafficUp(Long trafficUp) { + this.trafficUp = trafficUp; + } + + public ClientInfo uptime(Long uptime) { + this.uptime = uptime; + return this; + } + + /** + * Up time (unit: s). + * @return uptime + */ + @ApiModelProperty(value = "Up time (unit: s).") + + + public Long getUptime() { + return uptime; + } + + public void setUptime(Long uptime) { + this.uptime = uptime; + } + + public ClientInfo lastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + return this; + } + + /** + * Last found time, timestamp (ms). + * @return lastSeen + */ + @ApiModelProperty(value = "Last found time, timestamp (ms).") + + + public Long getLastSeen() { + return lastSeen; + } + + public void setLastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + } + + public ClientInfo authStatus(Integer authStatus) { + this.authStatus = authStatus; + return this; + } + + /** + * Authentication status should be a value as follows: 0: CONNECTED // Access without any authentication method; 1: PENDING // Access to Portal, but authentication failed; 2: AUTHORIZED // Pass through portal, pass other authentication without portal; 3: AUTH-FREE // No portal authentication required. + * @return authStatus + */ + @ApiModelProperty(value = "Authentication status should be a value as follows: 0: CONNECTED // Access without any authentication method; 1: PENDING // Access to Portal, but authentication failed; 2: AUTHORIZED // Pass through portal, pass other authentication without portal; 3: AUTH-FREE // No portal authentication required.") + + + public Integer getAuthStatus() { + return authStatus; + } + + public void setAuthStatus(Integer authStatus) { + this.authStatus = authStatus; + } + + public ClientInfo blocked(Boolean blocked) { + this.blocked = blocked; + return this; + } + + /** + * Whether the client is blocked. + * @return blocked + */ + @ApiModelProperty(value = "Whether the client is blocked.") + + + public Boolean getBlocked() { + return blocked; + } + + public void setBlocked(Boolean blocked) { + this.blocked = blocked; + } + + public ClientInfo guest(Boolean guest) { + this.guest = guest; + return this; + } + + /** + * (Wireless) Whether it is Guest (used to display the wireless Guest client icon). + * @return guest + */ + @ApiModelProperty(value = "(Wireless) Whether it is Guest (used to display the wireless Guest client icon).") + + + public Boolean getGuest() { + return guest; + } + + public void setGuest(Boolean guest) { + this.guest = guest; + } + + public ClientInfo active(Boolean active) { + this.active = active; + return this; + } + + /** + * Whether the client is online. + * @return active + */ + @ApiModelProperty(value = "Whether the client is online.") + + + public Boolean getActive() { + return active; + } + + public void setActive(Boolean active) { + this.active = active; + } + + public ClientInfo manager(Boolean manager) { + this.manager = manager; + return this; + } + + /** + * Whether it is the client currently being managed. + * @return manager + */ + @ApiModelProperty(value = "Whether it is the client currently being managed.") + + + public Boolean getManager() { + return manager; + } + + public void setManager(Boolean manager) { + this.manager = manager; + } + + public ClientInfo ipSetting(ClientIpSetting ipSetting) { + this.ipSetting = ipSetting; + return this; + } + + /** + * Get ipSetting + * @return ipSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public ClientIpSetting getIpSetting() { + return ipSetting; + } + + public void setIpSetting(ClientIpSetting ipSetting) { + this.ipSetting = ipSetting; + } + + public ClientInfo downPacket(Long downPacket) { + this.downPacket = downPacket; + return this; + } + + /** + * Number of downstream packets. + * @return downPacket + */ + @ApiModelProperty(value = "Number of downstream packets.") + + + public Long getDownPacket() { + return downPacket; + } + + public void setDownPacket(Long downPacket) { + this.downPacket = downPacket; + } + + public ClientInfo upPacket(Long upPacket) { + this.upPacket = upPacket; + return this; + } + + /** + * Number of upstream packets. + * @return upPacket + */ + @ApiModelProperty(value = "Number of upstream packets.") + + + public Long getUpPacket() { + return upPacket; + } + + public void setUpPacket(Long upPacket) { + this.upPacket = upPacket; + } + + public ClientInfo rateLimit(ClientRateLimitSetting rateLimit) { + this.rateLimit = rateLimit; + return this; + } + + /** + * Get rateLimit + * @return rateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public ClientRateLimitSetting getRateLimit() { + return rateLimit; + } + + public void setRateLimit(ClientRateLimitSetting rateLimit) { + this.rateLimit = rateLimit; + } + + public ClientInfo clientLockToApSetting(ClientLockToApSetting clientLockToApSetting) { + this.clientLockToApSetting = clientLockToApSetting; + return this; + } + + /** + * Get clientLockToApSetting + * @return clientLockToApSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public ClientLockToApSetting getClientLockToApSetting() { + return clientLockToApSetting; + } + + public void setClientLockToApSetting(ClientLockToApSetting clientLockToApSetting) { + this.clientLockToApSetting = clientLockToApSetting; + } + + public ClientInfo multiLink(List multiLink) { + this.multiLink = multiLink; + return this; + } + + public ClientInfo addMultiLinkItem(ClientMultifrequencyInfo multiLinkItem) { + if (this.multiLink == null) { + this.multiLink = new ArrayList<>(); + } + this.multiLink.add(multiLinkItem); + return this; + } + + /** + * (Wireless) Client multifrequency info list. + * @return multiLink + */ + @ApiModelProperty(value = "(Wireless) Client multifrequency info list.") + + @Valid + + public List getMultiLink() { + return multiLink; + } + + public void setMultiLink(List multiLink) { + this.multiLink = multiLink; + } + + public ClientInfo unit(Integer unit) { + this.unit = unit; + return this; + } + + /** + * Unit ID. + * @return unit + */ + @ApiModelProperty(value = "Unit ID.") + + + public Integer getUnit() { + return unit; + } + + public void setUnit(Integer unit) { + this.unit = unit; + } + + public ClientInfo standardPort(String standardPort) { + this.standardPort = standardPort; + return this; + } + + /** + * Standard port. + * @return standardPort + */ + @ApiModelProperty(value = "Standard port.") + + + public String getStandardPort() { + return standardPort; + } + + public void setStandardPort(String standardPort) { + this.standardPort = standardPort; + } + + public ClientInfo systemName(String systemName) { + this.systemName = systemName; + return this; + } + + /** + * Device system name. + * @return systemName + */ + @ApiModelProperty(value = "Device system name.") + + + public String getSystemName() { + return systemName; + } + + public void setSystemName(String systemName) { + this.systemName = systemName; + } + + public ClientInfo description(String description) { + this.description = description; + return this; + } + + /** + * Device description. + * @return description + */ + @ApiModelProperty(value = "Device description.") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ClientInfo capabilities(List capabilities) { + this.capabilities = capabilities; + return this; + } + + public ClientInfo addCapabilitiesItem(String capabilitiesItem) { + if (this.capabilities == null) { + this.capabilities = new ArrayList<>(); + } + this.capabilities.add(capabilitiesItem); + return this; + } + + /** + * One or more of the following values: Station、DOCSIS cable device、Telephone、Router、WLAN access point、Bridge、Repeater、other. + * @return capabilities + */ + @ApiModelProperty(value = "One or more of the following values: Station、DOCSIS cable device、Telephone、Router、WLAN access point、Bridge、Repeater、other.") + + + public List getCapabilities() { + return capabilities; + } + + public void setCapabilities(List capabilities) { + this.capabilities = capabilities; + } + + public ClientInfo blockDisable(Boolean blockDisable) { + this.blockDisable = blockDisable; + return this; + } + + /** + * Block client disabled, default value: false. + * @return blockDisable + */ + @ApiModelProperty(value = "Block client disabled, default value: false.") + + + public Boolean getBlockDisable() { + return blockDisable; + } + + public void setBlockDisable(Boolean blockDisable) { + this.blockDisable = blockDisable; + } + + public ClientInfo dhcpLeaseTime(Long dhcpLeaseTime) { + this.dhcpLeaseTime = dhcpLeaseTime; + return this; + } + + /** + * DHCP lease time, unit seconds + * @return dhcpLeaseTime + */ + @ApiModelProperty(value = "DHCP lease time, unit seconds") + + + public Long getDhcpLeaseTime() { + return dhcpLeaseTime; + } + + public void setDhcpLeaseTime(Long dhcpLeaseTime) { + this.dhcpLeaseTime = dhcpLeaseTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientInfo clientInfo = (ClientInfo) o; + return Objects.equals(this.id, clientInfo.id) && + Objects.equals(this.mac, clientInfo.mac) && + Objects.equals(this.name, clientInfo.name) && + Objects.equals(this.hostName, clientInfo.hostName) && + Objects.equals(this.vendor, clientInfo.vendor) && + Objects.equals(this.deviceType, clientInfo.deviceType) && + Objects.equals(this.deviceCategory, clientInfo.deviceCategory) && + Objects.equals(this.osName, clientInfo.osName) && + Objects.equals(this.ip, clientInfo.ip) && + Objects.equals(this.ipv6List, clientInfo.ipv6List) && + Objects.equals(this.connectType, clientInfo.connectType) && + Objects.equals(this.connectDevType, clientInfo.connectDevType) && + Objects.equals(this.connectedToWirelessRouter, clientInfo.connectedToWirelessRouter) && + Objects.equals(this.wireless, clientInfo.wireless) && + Objects.equals(this.ssid, clientInfo.ssid) && + Objects.equals(this.signalLevel, clientInfo.signalLevel) && + Objects.equals(this.healthScore, clientInfo.healthScore) && + Objects.equals(this.signalRank, clientInfo.signalRank) && + Objects.equals(this.wifiMode, clientInfo.wifiMode) && + Objects.equals(this.apName, clientInfo.apName) && + Objects.equals(this.apMac, clientInfo.apMac) && + Objects.equals(this.radioId, clientInfo.radioId) && + Objects.equals(this.channel, clientInfo.channel) && + Objects.equals(this.rxRate, clientInfo.rxRate) && + Objects.equals(this.txRate, clientInfo.txRate) && + Objects.equals(this.powerSave, clientInfo.powerSave) && + Objects.equals(this.rssi, clientInfo.rssi) && + Objects.equals(this.snr, clientInfo.snr) && + Objects.equals(this.switchMac, clientInfo.switchMac) && + Objects.equals(this.switchName, clientInfo.switchName) && + Objects.equals(this.gatewayMac, clientInfo.gatewayMac) && + Objects.equals(this.gatewayName, clientInfo.gatewayName) && + Objects.equals(this.vid, clientInfo.vid) && + Objects.equals(this.networkName, clientInfo.networkName) && + Objects.equals(this.dot1xIdentity, clientInfo.dot1xIdentity) && + Objects.equals(this.dot1xVlan, clientInfo.dot1xVlan) && + Objects.equals(this.port, clientInfo.port) && + Objects.equals(this.lagId, clientInfo.lagId) && + Objects.equals(this.activity, clientInfo.activity) && + Objects.equals(this.trafficDown, clientInfo.trafficDown) && + Objects.equals(this.trafficUp, clientInfo.trafficUp) && + Objects.equals(this.uptime, clientInfo.uptime) && + Objects.equals(this.lastSeen, clientInfo.lastSeen) && + Objects.equals(this.authStatus, clientInfo.authStatus) && + Objects.equals(this.blocked, clientInfo.blocked) && + Objects.equals(this.guest, clientInfo.guest) && + Objects.equals(this.active, clientInfo.active) && + Objects.equals(this.manager, clientInfo.manager) && + Objects.equals(this.ipSetting, clientInfo.ipSetting) && + Objects.equals(this.downPacket, clientInfo.downPacket) && + Objects.equals(this.upPacket, clientInfo.upPacket) && + Objects.equals(this.rateLimit, clientInfo.rateLimit) && + Objects.equals(this.clientLockToApSetting, clientInfo.clientLockToApSetting) && + Objects.equals(this.multiLink, clientInfo.multiLink) && + Objects.equals(this.unit, clientInfo.unit) && + Objects.equals(this.standardPort, clientInfo.standardPort) && + Objects.equals(this.systemName, clientInfo.systemName) && + Objects.equals(this.description, clientInfo.description) && + Objects.equals(this.capabilities, clientInfo.capabilities) && + Objects.equals(this.blockDisable, clientInfo.blockDisable) && + Objects.equals(this.dhcpLeaseTime, clientInfo.dhcpLeaseTime); + } + + @Override + public int hashCode() { + return Objects.hash(id, mac, name, hostName, vendor, deviceType, deviceCategory, osName, ip, ipv6List, connectType, connectDevType, connectedToWirelessRouter, wireless, ssid, signalLevel, healthScore, signalRank, wifiMode, apName, apMac, radioId, channel, rxRate, txRate, powerSave, rssi, snr, switchMac, switchName, gatewayMac, gatewayName, vid, networkName, dot1xIdentity, dot1xVlan, port, lagId, activity, trafficDown, trafficUp, uptime, lastSeen, authStatus, blocked, guest, active, manager, ipSetting, downPacket, upPacket, rateLimit, clientLockToApSetting, multiLink, unit, standardPort, systemName, description, capabilities, blockDisable, dhcpLeaseTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" hostName: ").append(toIndentedString(hostName)).append("\n"); + sb.append(" vendor: ").append(toIndentedString(vendor)).append("\n"); + sb.append(" deviceType: ").append(toIndentedString(deviceType)).append("\n"); + sb.append(" deviceCategory: ").append(toIndentedString(deviceCategory)).append("\n"); + sb.append(" osName: ").append(toIndentedString(osName)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" ipv6List: ").append(toIndentedString(ipv6List)).append("\n"); + sb.append(" connectType: ").append(toIndentedString(connectType)).append("\n"); + sb.append(" connectDevType: ").append(toIndentedString(connectDevType)).append("\n"); + sb.append(" connectedToWirelessRouter: ").append(toIndentedString(connectedToWirelessRouter)).append("\n"); + sb.append(" wireless: ").append(toIndentedString(wireless)).append("\n"); + sb.append(" ssid: ").append(toIndentedString(ssid)).append("\n"); + sb.append(" signalLevel: ").append(toIndentedString(signalLevel)).append("\n"); + sb.append(" healthScore: ").append(toIndentedString(healthScore)).append("\n"); + sb.append(" signalRank: ").append(toIndentedString(signalRank)).append("\n"); + sb.append(" wifiMode: ").append(toIndentedString(wifiMode)).append("\n"); + sb.append(" apName: ").append(toIndentedString(apName)).append("\n"); + sb.append(" apMac: ").append(toIndentedString(apMac)).append("\n"); + sb.append(" radioId: ").append(toIndentedString(radioId)).append("\n"); + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" rxRate: ").append(toIndentedString(rxRate)).append("\n"); + sb.append(" txRate: ").append(toIndentedString(txRate)).append("\n"); + sb.append(" powerSave: ").append(toIndentedString(powerSave)).append("\n"); + sb.append(" rssi: ").append(toIndentedString(rssi)).append("\n"); + sb.append(" snr: ").append(toIndentedString(snr)).append("\n"); + sb.append(" switchMac: ").append(toIndentedString(switchMac)).append("\n"); + sb.append(" switchName: ").append(toIndentedString(switchName)).append("\n"); + sb.append(" gatewayMac: ").append(toIndentedString(gatewayMac)).append("\n"); + sb.append(" gatewayName: ").append(toIndentedString(gatewayName)).append("\n"); + sb.append(" vid: ").append(toIndentedString(vid)).append("\n"); + sb.append(" networkName: ").append(toIndentedString(networkName)).append("\n"); + sb.append(" dot1xIdentity: ").append(toIndentedString(dot1xIdentity)).append("\n"); + sb.append(" dot1xVlan: ").append(toIndentedString(dot1xVlan)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" lagId: ").append(toIndentedString(lagId)).append("\n"); + sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); + sb.append(" trafficDown: ").append(toIndentedString(trafficDown)).append("\n"); + sb.append(" trafficUp: ").append(toIndentedString(trafficUp)).append("\n"); + sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append(" authStatus: ").append(toIndentedString(authStatus)).append("\n"); + sb.append(" blocked: ").append(toIndentedString(blocked)).append("\n"); + sb.append(" guest: ").append(toIndentedString(guest)).append("\n"); + sb.append(" active: ").append(toIndentedString(active)).append("\n"); + sb.append(" manager: ").append(toIndentedString(manager)).append("\n"); + sb.append(" ipSetting: ").append(toIndentedString(ipSetting)).append("\n"); + sb.append(" downPacket: ").append(toIndentedString(downPacket)).append("\n"); + sb.append(" upPacket: ").append(toIndentedString(upPacket)).append("\n"); + sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n"); + sb.append(" clientLockToApSetting: ").append(toIndentedString(clientLockToApSetting)).append("\n"); + sb.append(" multiLink: ").append(toIndentedString(multiLink)).append("\n"); + sb.append(" unit: ").append(toIndentedString(unit)).append("\n"); + sb.append(" standardPort: ").append(toIndentedString(standardPort)).append("\n"); + sb.append(" systemName: ").append(toIndentedString(systemName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" capabilities: ").append(toIndentedString(capabilities)).append("\n"); + sb.append(" blockDisable: ").append(toIndentedString(blockDisable)).append("\n"); + sb.append(" dhcpLeaseTime: ").append(toIndentedString(dhcpLeaseTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientIpSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientIpSetting.java new file mode 100644 index 0000000..4960a84 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientIpSetting.java @@ -0,0 +1,131 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Client IP setting. + */ +@ApiModel(description = "Client IP setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ClientIpSetting { + @JsonProperty("useFixedAddr") + private Boolean useFixedAddr; + + @JsonProperty("netId") + private String netId; + + @JsonProperty("ip") + private String ip; + + public ClientIpSetting useFixedAddr(Boolean useFixedAddr) { + this.useFixedAddr = useFixedAddr; + return this; + } + + /** + * Whether to use the specified IP. + * @return useFixedAddr + */ + @ApiModelProperty(required = true, value = "Whether to use the specified IP.") + @NotNull + + + public Boolean getUseFixedAddr() { + return useFixedAddr; + } + + public void setUseFixedAddr(Boolean useFixedAddr) { + this.useFixedAddr = useFixedAddr; + } + + public ClientIpSetting netId(String netId) { + this.netId = netId; + return this; + } + + /** + * LAN network ID. + * @return netId + */ + @ApiModelProperty(value = "LAN network ID.") + + + public String getNetId() { + return netId; + } + + public void setNetId(String netId) { + this.netId = netId; + } + + public ClientIpSetting ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Client IP. + * @return ip + */ + @ApiModelProperty(value = "Client IP.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientIpSetting clientIpSetting = (ClientIpSetting) o; + return Objects.equals(this.useFixedAddr, clientIpSetting.useFixedAddr) && + Objects.equals(this.netId, clientIpSetting.netId) && + Objects.equals(this.ip, clientIpSetting.ip); + } + + @Override + public int hashCode() { + return Objects.hash(useFixedAddr, netId, ip); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientIpSetting {\n"); + + sb.append(" useFixedAddr: ").append(toIndentedString(useFixedAddr)).append("\n"); + sb.append(" netId: ").append(toIndentedString(netId)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientLockToApSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientLockToApSetting.java new file mode 100644 index 0000000..549e7f5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientLockToApSetting.java @@ -0,0 +1,116 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Client lock to ap setting. + */ +@ApiModel(description = "Client lock to ap setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ClientLockToApSetting { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("aps") + @Valid + private List aps = null; + + public ClientLockToApSetting enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Lock to AP enable. + * @return enable + */ + @ApiModelProperty(value = "Lock to AP enable.") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public ClientLockToApSetting aps(List aps) { + this.aps = aps; + return this; + } + + public ClientLockToApSetting addApsItem(ApBriefInfoVo apsItem) { + if (this.aps == null) { + this.aps = new ArrayList<>(); + } + this.aps.add(apsItem); + return this; + } + + /** + * AP name and MAC info list. + * @return aps + */ + @ApiModelProperty(value = "AP name and MAC info list.") + + @Valid + + public List getAps() { + return aps; + } + + public void setAps(List aps) { + this.aps = aps; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientLockToApSetting clientLockToApSetting = (ClientLockToApSetting) o; + return Objects.equals(this.enable, clientLockToApSetting.enable) && + Objects.equals(this.aps, clientLockToApSetting.aps); + } + + @Override + public int hashCode() { + return Objects.hash(enable, aps); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientLockToApSetting {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" aps: ").append(toIndentedString(aps)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientLockToApSetting1.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientLockToApSetting1.java new file mode 100644 index 0000000..969abcd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientLockToApSetting1.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ClientLockToApSetting1 + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ClientLockToApSetting1 { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("aps") + @Valid + private List aps = null; + + public ClientLockToApSetting1 enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Lock to AP enable + * @return enable + */ + @ApiModelProperty(required = true, value = "Lock to AP enable") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public ClientLockToApSetting1 aps(List aps) { + this.aps = aps; + return this; + } + + public ClientLockToApSetting1 addApsItem(String apsItem) { + if (this.aps == null) { + this.aps = new ArrayList<>(); + } + this.aps.add(apsItem); + return this; + } + + /** + * AP MAC list. Use capital letters and separator, for example: AA-AA-AA-AA-AA-AA. + * @return aps + */ + @ApiModelProperty(value = "AP MAC list. Use capital letters and separator, for example: AA-AA-AA-AA-AA-AA.") + + + public List getAps() { + return aps; + } + + public void setAps(List aps) { + this.aps = aps; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientLockToApSetting1 clientLockToApSetting1 = (ClientLockToApSetting1) o; + return Objects.equals(this.enable, clientLockToApSetting1.enable) && + Objects.equals(this.aps, clientLockToApSetting1.aps); + } + + @Override + public int hashCode() { + return Objects.hash(enable, aps); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientLockToApSetting1 {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" aps: ").append(toIndentedString(aps)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientMultifrequencyInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientMultifrequencyInfo.java new file mode 100644 index 0000000..2f09619 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientMultifrequencyInfo.java @@ -0,0 +1,453 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * (Wireless) Client multifrequency info list. + */ +@ApiModel(description = "(Wireless) Client multifrequency info list.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ClientMultifrequencyInfo { + @JsonProperty("radioId") + private Integer radioId; + + @JsonProperty("wifiMode") + private Integer wifiMode; + + @JsonProperty("channel") + private Integer channel; + + @JsonProperty("rxRate") + private Long rxRate; + + @JsonProperty("txRate") + private Long txRate; + + @JsonProperty("powerSave") + private Boolean powerSave; + + @JsonProperty("rssi") + private Integer rssi; + + @JsonProperty("snr") + private Integer snr; + + @JsonProperty("signalLevel") + private Integer signalLevel; + + @JsonProperty("signalRank") + private Integer signalRank; + + @JsonProperty("upPacket") + private Long upPacket; + + @JsonProperty("downPacket") + private Long downPacket; + + @JsonProperty("trafficDown") + private Long trafficDown; + + @JsonProperty("trafficUp") + private Long trafficUp; + + @JsonProperty("activity") + private Long activity; + + @JsonProperty("signalLevelAndRank") + private Integer signalLevelAndRank; + + public ClientMultifrequencyInfo radioId(Integer radioId) { + this.radioId = radioId; + return this; + } + + /** + * Radio ID should be a value as follows: 0: 2.4GHz; 1: 5GHz-1; 2:5GHz-2; 3: 6GHz. + * @return radioId + */ + @ApiModelProperty(value = "Radio ID should be a value as follows: 0: 2.4GHz; 1: 5GHz-1; 2:5GHz-2; 3: 6GHz.") + + + public Integer getRadioId() { + return radioId; + } + + public void setRadioId(Integer radioId) { + this.radioId = radioId; + } + + public ClientMultifrequencyInfo wifiMode(Integer wifiMode) { + this.wifiMode = wifiMode; + return this; + } + + /** + * Wi-Fi mode should be a value as follows: 0: 11a; 1: 11b; 2: 11g; 3: 11na; 4: 11ng; 5: 11ac; 6: 11axa; 7: 11axg. + * @return wifiMode + */ + @ApiModelProperty(value = "Wi-Fi mode should be a value as follows: 0: 11a; 1: 11b; 2: 11g; 3: 11na; 4: 11ng; 5: 11ac; 6: 11axa; 7: 11axg.") + + + public Integer getWifiMode() { + return wifiMode; + } + + public void setWifiMode(Integer wifiMode) { + this.wifiMode = wifiMode; + } + + public ClientMultifrequencyInfo channel(Integer channel) { + this.channel = channel; + return this; + } + + /** + * (Wireless) Actual channel. + * @return channel + */ + @ApiModelProperty(value = "(Wireless) Actual channel.") + + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + public ClientMultifrequencyInfo rxRate(Long rxRate) { + this.rxRate = rxRate; + return this; + } + + /** + * (Wireless) Uplink negotiation rate (Kbit/s). + * @return rxRate + */ + @ApiModelProperty(value = "(Wireless) Uplink negotiation rate (Kbit/s).") + + + public Long getRxRate() { + return rxRate; + } + + public void setRxRate(Long rxRate) { + this.rxRate = rxRate; + } + + public ClientMultifrequencyInfo txRate(Long txRate) { + this.txRate = txRate; + return this; + } + + /** + * (Wireless) Downlink negotiation rate (Kbit/s). + * @return txRate + */ + @ApiModelProperty(value = "(Wireless) Downlink negotiation rate (Kbit/s).") + + + public Long getTxRate() { + return txRate; + } + + public void setTxRate(Long txRate) { + this.txRate = txRate; + } + + public ClientMultifrequencyInfo powerSave(Boolean powerSave) { + this.powerSave = powerSave; + return this; + } + + /** + * (Wireless) true: Power save mode enabled. + * @return powerSave + */ + @ApiModelProperty(value = "(Wireless) true: Power save mode enabled.") + + + public Boolean getPowerSave() { + return powerSave; + } + + public void setPowerSave(Boolean powerSave) { + this.powerSave = powerSave; + } + + public ClientMultifrequencyInfo rssi(Integer rssi) { + this.rssi = rssi; + return this; + } + + /** + * (Wireless) Signal strength, unit: dBm. + * @return rssi + */ + @ApiModelProperty(value = "(Wireless) Signal strength, unit: dBm.") + + + public Integer getRssi() { + return rssi; + } + + public void setRssi(Integer rssi) { + this.rssi = rssi; + } + + public ClientMultifrequencyInfo snr(Integer snr) { + this.snr = snr; + return this; + } + + /** + * (Wireless) Signal Noise Ratio. + * @return snr + */ + @ApiModelProperty(value = "(Wireless) Signal Noise Ratio.") + + + public Integer getSnr() { + return snr; + } + + public void setSnr(Integer snr) { + this.snr = snr; + } + + public ClientMultifrequencyInfo signalLevel(Integer signalLevel) { + this.signalLevel = signalLevel; + return this; + } + + /** + * (Wireless) Signal strength percentage should be within the range of 0-100. + * @return signalLevel + */ + @ApiModelProperty(value = "(Wireless) Signal strength percentage should be within the range of 0-100.") + + + public Integer getSignalLevel() { + return signalLevel; + } + + public void setSignalLevel(Integer signalLevel) { + this.signalLevel = signalLevel; + } + + public ClientMultifrequencyInfo signalRank(Integer signalRank) { + this.signalRank = signalRank; + return this; + } + + /** + * (Wireless) Signal strength level should be within the range of 0-5. + * @return signalRank + */ + @ApiModelProperty(value = "(Wireless) Signal strength level should be within the range of 0-5.") + + + public Integer getSignalRank() { + return signalRank; + } + + public void setSignalRank(Integer signalRank) { + this.signalRank = signalRank; + } + + public ClientMultifrequencyInfo upPacket(Long upPacket) { + this.upPacket = upPacket; + return this; + } + + /** + * Number of upstream packets. + * @return upPacket + */ + @ApiModelProperty(value = "Number of upstream packets.") + + + public Long getUpPacket() { + return upPacket; + } + + public void setUpPacket(Long upPacket) { + this.upPacket = upPacket; + } + + public ClientMultifrequencyInfo downPacket(Long downPacket) { + this.downPacket = downPacket; + return this; + } + + /** + * Number of downstream packets. + * @return downPacket + */ + @ApiModelProperty(value = "Number of downstream packets.") + + + public Long getDownPacket() { + return downPacket; + } + + public void setDownPacket(Long downPacket) { + this.downPacket = downPacket; + } + + public ClientMultifrequencyInfo trafficDown(Long trafficDown) { + this.trafficDown = trafficDown; + return this; + } + + /** + * Downstream traffic (Byte). + * @return trafficDown + */ + @ApiModelProperty(value = "Downstream traffic (Byte).") + + + public Long getTrafficDown() { + return trafficDown; + } + + public void setTrafficDown(Long trafficDown) { + this.trafficDown = trafficDown; + } + + public ClientMultifrequencyInfo trafficUp(Long trafficUp) { + this.trafficUp = trafficUp; + return this; + } + + /** + * Upstream traffic (Byte). + * @return trafficUp + */ + @ApiModelProperty(value = "Upstream traffic (Byte).") + + + public Long getTrafficUp() { + return trafficUp; + } + + public void setTrafficUp(Long trafficUp) { + this.trafficUp = trafficUp; + } + + public ClientMultifrequencyInfo activity(Long activity) { + this.activity = activity; + return this; + } + + /** + * Real-time downlink rate (Byte/s). + * @return activity + */ + @ApiModelProperty(value = "Real-time downlink rate (Byte/s).") + + + public Long getActivity() { + return activity; + } + + public void setActivity(Long activity) { + this.activity = activity; + } + + public ClientMultifrequencyInfo signalLevelAndRank(Integer signalLevelAndRank) { + this.signalLevelAndRank = signalLevelAndRank; + return this; + } + + /** + * Get signalLevelAndRank + * @return signalLevelAndRank + */ + @ApiModelProperty(value = "") + + + public Integer getSignalLevelAndRank() { + return signalLevelAndRank; + } + + public void setSignalLevelAndRank(Integer signalLevelAndRank) { + this.signalLevelAndRank = signalLevelAndRank; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientMultifrequencyInfo clientMultifrequencyInfo = (ClientMultifrequencyInfo) o; + return Objects.equals(this.radioId, clientMultifrequencyInfo.radioId) && + Objects.equals(this.wifiMode, clientMultifrequencyInfo.wifiMode) && + Objects.equals(this.channel, clientMultifrequencyInfo.channel) && + Objects.equals(this.rxRate, clientMultifrequencyInfo.rxRate) && + Objects.equals(this.txRate, clientMultifrequencyInfo.txRate) && + Objects.equals(this.powerSave, clientMultifrequencyInfo.powerSave) && + Objects.equals(this.rssi, clientMultifrequencyInfo.rssi) && + Objects.equals(this.snr, clientMultifrequencyInfo.snr) && + Objects.equals(this.signalLevel, clientMultifrequencyInfo.signalLevel) && + Objects.equals(this.signalRank, clientMultifrequencyInfo.signalRank) && + Objects.equals(this.upPacket, clientMultifrequencyInfo.upPacket) && + Objects.equals(this.downPacket, clientMultifrequencyInfo.downPacket) && + Objects.equals(this.trafficDown, clientMultifrequencyInfo.trafficDown) && + Objects.equals(this.trafficUp, clientMultifrequencyInfo.trafficUp) && + Objects.equals(this.activity, clientMultifrequencyInfo.activity) && + Objects.equals(this.signalLevelAndRank, clientMultifrequencyInfo.signalLevelAndRank); + } + + @Override + public int hashCode() { + return Objects.hash(radioId, wifiMode, channel, rxRate, txRate, powerSave, rssi, snr, signalLevel, signalRank, upPacket, downPacket, trafficDown, trafficUp, activity, signalLevelAndRank); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientMultifrequencyInfo {\n"); + + sb.append(" radioId: ").append(toIndentedString(radioId)).append("\n"); + sb.append(" wifiMode: ").append(toIndentedString(wifiMode)).append("\n"); + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" rxRate: ").append(toIndentedString(rxRate)).append("\n"); + sb.append(" txRate: ").append(toIndentedString(txRate)).append("\n"); + sb.append(" powerSave: ").append(toIndentedString(powerSave)).append("\n"); + sb.append(" rssi: ").append(toIndentedString(rssi)).append("\n"); + sb.append(" snr: ").append(toIndentedString(snr)).append("\n"); + sb.append(" signalLevel: ").append(toIndentedString(signalLevel)).append("\n"); + sb.append(" signalRank: ").append(toIndentedString(signalRank)).append("\n"); + sb.append(" upPacket: ").append(toIndentedString(upPacket)).append("\n"); + sb.append(" downPacket: ").append(toIndentedString(downPacket)).append("\n"); + sb.append(" trafficDown: ").append(toIndentedString(trafficDown)).append("\n"); + sb.append(" trafficUp: ").append(toIndentedString(trafficUp)).append("\n"); + sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); + sb.append(" signalLevelAndRank: ").append(toIndentedString(signalLevelAndRank)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientNameSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientNameSetting.java new file mode 100644 index 0000000..b61954e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientNameSetting.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ClientNameSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ClientNameSetting { + @JsonProperty("name") + private String name; + + public ClientNameSetting name(String name) { + this.name = name; + return this; + } + + /** + * Client Name should contain 1 to 128 characters + * @return name + */ + @ApiModelProperty(required = true, value = "Client Name should contain 1 to 128 characters") + @NotNull + +@Pattern(regexp="^$|^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientNameSetting clientNameSetting = (ClientNameSetting) o; + return Objects.equals(this.name, clientNameSetting.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientNameSetting {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientRateLimitSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientRateLimitSetting.java new file mode 100644 index 0000000..4e14012 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientRateLimitSetting.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ClientRateLimitSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ClientRateLimitSetting { + @JsonProperty("mode") + private Integer mode; + + @JsonProperty("rateLimitProfileId") + private String rateLimitProfileId; + + @JsonProperty("customRateLimit") + private CustomRateLimitEntity customRateLimit; + + public ClientRateLimitSetting mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Rate limit mode should be a value as follows:
0: Custom mode. Apply the given rate limit value to the client;
1: Rate limit profile mode. Find the corresponding rate limit file with rate limit ID and apply it to the client. + * @return mode + */ + @ApiModelProperty(required = true, value = "Rate limit mode should be a value as follows:
0: Custom mode. Apply the given rate limit value to the client;
1: Rate limit profile mode. Find the corresponding rate limit file with rate limit ID and apply it to the client.") + @NotNull + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + public ClientRateLimitSetting rateLimitProfileId(String rateLimitProfileId) { + this.rateLimitProfileId = rateLimitProfileId; + return this; + } + + /** + * Rate limit profile ID. Required when ratelimit mode is 1 + * @return rateLimitProfileId + */ + @ApiModelProperty(value = "Rate limit profile ID. Required when ratelimit mode is 1") + + + public String getRateLimitProfileId() { + return rateLimitProfileId; + } + + public void setRateLimitProfileId(String rateLimitProfileId) { + this.rateLimitProfileId = rateLimitProfileId; + } + + public ClientRateLimitSetting customRateLimit(CustomRateLimitEntity customRateLimit) { + this.customRateLimit = customRateLimit; + return this; + } + + /** + * Get customRateLimit + * @return customRateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public CustomRateLimitEntity getCustomRateLimit() { + return customRateLimit; + } + + public void setCustomRateLimit(CustomRateLimitEntity customRateLimit) { + this.customRateLimit = customRateLimit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientRateLimitSetting clientRateLimitSetting = (ClientRateLimitSetting) o; + return Objects.equals(this.mode, clientRateLimitSetting.mode) && + Objects.equals(this.rateLimitProfileId, clientRateLimitSetting.rateLimitProfileId) && + Objects.equals(this.customRateLimit, clientRateLimitSetting.customRateLimit); + } + + @Override + public int hashCode() { + return Objects.hash(mode, rateLimitProfileId, customRateLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientRateLimitSetting {\n"); + + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" rateLimitProfileId: ").append(toIndentedString(rateLimitProfileId)).append("\n"); + sb.append(" customRateLimit: ").append(toIndentedString(customRateLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientStatVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientStatVo.java new file mode 100644 index 0000000..76853c8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/ClientStatVo.java @@ -0,0 +1,551 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ClientStatVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class ClientStatVo { + @JsonProperty("total") + private Integer total; + + @JsonProperty("wireless") + private Integer wireless; + + @JsonProperty("wired") + private Integer wired; + + @JsonProperty("num2g") + private Integer num2g; + + @JsonProperty("num5g") + private Integer num5g; + + @JsonProperty("num6g") + private Integer num6g; + + @JsonProperty("numUser") + private Integer numUser; + + @JsonProperty("numGuest") + private Integer numGuest; + + @JsonProperty("numWirelessUser") + private Integer numWirelessUser; + + @JsonProperty("numWirelessGuest") + private Integer numWirelessGuest; + + @JsonProperty("num2gUser") + private Integer num2gUser; + + @JsonProperty("num5gUser") + private Integer num5gUser; + + @JsonProperty("num6gUser") + private Integer num6gUser; + + @JsonProperty("num2gGuest") + private Integer num2gGuest; + + @JsonProperty("num5gGuest") + private Integer num5gGuest; + + @JsonProperty("num6gGuest") + private Integer num6gGuest; + + @JsonProperty("poor") + private Integer poor; + + @JsonProperty("fair") + private Integer fair; + + @JsonProperty("noData") + private Integer noData; + + @JsonProperty("good") + private Integer good; + + public ClientStatVo total(Integer total) { + this.total = total; + return this; + } + + /** + * Get total + * @return total + */ + @ApiModelProperty(value = "") + + + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public ClientStatVo wireless(Integer wireless) { + this.wireless = wireless; + return this; + } + + /** + * Get wireless + * @return wireless + */ + @ApiModelProperty(value = "") + + + public Integer getWireless() { + return wireless; + } + + public void setWireless(Integer wireless) { + this.wireless = wireless; + } + + public ClientStatVo wired(Integer wired) { + this.wired = wired; + return this; + } + + /** + * Get wired + * @return wired + */ + @ApiModelProperty(value = "") + + + public Integer getWired() { + return wired; + } + + public void setWired(Integer wired) { + this.wired = wired; + } + + public ClientStatVo num2g(Integer num2g) { + this.num2g = num2g; + return this; + } + + /** + * Get num2g + * @return num2g + */ + @ApiModelProperty(value = "") + + + public Integer getNum2g() { + return num2g; + } + + public void setNum2g(Integer num2g) { + this.num2g = num2g; + } + + public ClientStatVo num5g(Integer num5g) { + this.num5g = num5g; + return this; + } + + /** + * Get num5g + * @return num5g + */ + @ApiModelProperty(value = "") + + + public Integer getNum5g() { + return num5g; + } + + public void setNum5g(Integer num5g) { + this.num5g = num5g; + } + + public ClientStatVo num6g(Integer num6g) { + this.num6g = num6g; + return this; + } + + /** + * Get num6g + * @return num6g + */ + @ApiModelProperty(value = "") + + + public Integer getNum6g() { + return num6g; + } + + public void setNum6g(Integer num6g) { + this.num6g = num6g; + } + + public ClientStatVo numUser(Integer numUser) { + this.numUser = numUser; + return this; + } + + /** + * Get numUser + * @return numUser + */ + @ApiModelProperty(value = "") + + + public Integer getNumUser() { + return numUser; + } + + public void setNumUser(Integer numUser) { + this.numUser = numUser; + } + + public ClientStatVo numGuest(Integer numGuest) { + this.numGuest = numGuest; + return this; + } + + /** + * Get numGuest + * @return numGuest + */ + @ApiModelProperty(value = "") + + + public Integer getNumGuest() { + return numGuest; + } + + public void setNumGuest(Integer numGuest) { + this.numGuest = numGuest; + } + + public ClientStatVo numWirelessUser(Integer numWirelessUser) { + this.numWirelessUser = numWirelessUser; + return this; + } + + /** + * Get numWirelessUser + * @return numWirelessUser + */ + @ApiModelProperty(value = "") + + + public Integer getNumWirelessUser() { + return numWirelessUser; + } + + public void setNumWirelessUser(Integer numWirelessUser) { + this.numWirelessUser = numWirelessUser; + } + + public ClientStatVo numWirelessGuest(Integer numWirelessGuest) { + this.numWirelessGuest = numWirelessGuest; + return this; + } + + /** + * Get numWirelessGuest + * @return numWirelessGuest + */ + @ApiModelProperty(value = "") + + + public Integer getNumWirelessGuest() { + return numWirelessGuest; + } + + public void setNumWirelessGuest(Integer numWirelessGuest) { + this.numWirelessGuest = numWirelessGuest; + } + + public ClientStatVo num2gUser(Integer num2gUser) { + this.num2gUser = num2gUser; + return this; + } + + /** + * Get num2gUser + * @return num2gUser + */ + @ApiModelProperty(value = "") + + + public Integer getNum2gUser() { + return num2gUser; + } + + public void setNum2gUser(Integer num2gUser) { + this.num2gUser = num2gUser; + } + + public ClientStatVo num5gUser(Integer num5gUser) { + this.num5gUser = num5gUser; + return this; + } + + /** + * Get num5gUser + * @return num5gUser + */ + @ApiModelProperty(value = "") + + + public Integer getNum5gUser() { + return num5gUser; + } + + public void setNum5gUser(Integer num5gUser) { + this.num5gUser = num5gUser; + } + + public ClientStatVo num6gUser(Integer num6gUser) { + this.num6gUser = num6gUser; + return this; + } + + /** + * Get num6gUser + * @return num6gUser + */ + @ApiModelProperty(value = "") + + + public Integer getNum6gUser() { + return num6gUser; + } + + public void setNum6gUser(Integer num6gUser) { + this.num6gUser = num6gUser; + } + + public ClientStatVo num2gGuest(Integer num2gGuest) { + this.num2gGuest = num2gGuest; + return this; + } + + /** + * Get num2gGuest + * @return num2gGuest + */ + @ApiModelProperty(value = "") + + + public Integer getNum2gGuest() { + return num2gGuest; + } + + public void setNum2gGuest(Integer num2gGuest) { + this.num2gGuest = num2gGuest; + } + + public ClientStatVo num5gGuest(Integer num5gGuest) { + this.num5gGuest = num5gGuest; + return this; + } + + /** + * Get num5gGuest + * @return num5gGuest + */ + @ApiModelProperty(value = "") + + + public Integer getNum5gGuest() { + return num5gGuest; + } + + public void setNum5gGuest(Integer num5gGuest) { + this.num5gGuest = num5gGuest; + } + + public ClientStatVo num6gGuest(Integer num6gGuest) { + this.num6gGuest = num6gGuest; + return this; + } + + /** + * Get num6gGuest + * @return num6gGuest + */ + @ApiModelProperty(value = "") + + + public Integer getNum6gGuest() { + return num6gGuest; + } + + public void setNum6gGuest(Integer num6gGuest) { + this.num6gGuest = num6gGuest; + } + + public ClientStatVo poor(Integer poor) { + this.poor = poor; + return this; + } + + /** + * Get poor + * @return poor + */ + @ApiModelProperty(value = "") + + + public Integer getPoor() { + return poor; + } + + public void setPoor(Integer poor) { + this.poor = poor; + } + + public ClientStatVo fair(Integer fair) { + this.fair = fair; + return this; + } + + /** + * Get fair + * @return fair + */ + @ApiModelProperty(value = "") + + + public Integer getFair() { + return fair; + } + + public void setFair(Integer fair) { + this.fair = fair; + } + + public ClientStatVo noData(Integer noData) { + this.noData = noData; + return this; + } + + /** + * Get noData + * @return noData + */ + @ApiModelProperty(value = "") + + + public Integer getNoData() { + return noData; + } + + public void setNoData(Integer noData) { + this.noData = noData; + } + + public ClientStatVo good(Integer good) { + this.good = good; + return this; + } + + /** + * Get good + * @return good + */ + @ApiModelProperty(value = "") + + + public Integer getGood() { + return good; + } + + public void setGood(Integer good) { + this.good = good; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientStatVo clientStatVo = (ClientStatVo) o; + return Objects.equals(this.total, clientStatVo.total) && + Objects.equals(this.wireless, clientStatVo.wireless) && + Objects.equals(this.wired, clientStatVo.wired) && + Objects.equals(this.num2g, clientStatVo.num2g) && + Objects.equals(this.num5g, clientStatVo.num5g) && + Objects.equals(this.num6g, clientStatVo.num6g) && + Objects.equals(this.numUser, clientStatVo.numUser) && + Objects.equals(this.numGuest, clientStatVo.numGuest) && + Objects.equals(this.numWirelessUser, clientStatVo.numWirelessUser) && + Objects.equals(this.numWirelessGuest, clientStatVo.numWirelessGuest) && + Objects.equals(this.num2gUser, clientStatVo.num2gUser) && + Objects.equals(this.num5gUser, clientStatVo.num5gUser) && + Objects.equals(this.num6gUser, clientStatVo.num6gUser) && + Objects.equals(this.num2gGuest, clientStatVo.num2gGuest) && + Objects.equals(this.num5gGuest, clientStatVo.num5gGuest) && + Objects.equals(this.num6gGuest, clientStatVo.num6gGuest) && + Objects.equals(this.poor, clientStatVo.poor) && + Objects.equals(this.fair, clientStatVo.fair) && + Objects.equals(this.noData, clientStatVo.noData) && + Objects.equals(this.good, clientStatVo.good); + } + + @Override + public int hashCode() { + return Objects.hash(total, wireless, wired, num2g, num5g, num6g, numUser, numGuest, numWirelessUser, numWirelessGuest, num2gUser, num5gUser, num6gUser, num2gGuest, num5gGuest, num6gGuest, poor, fair, noData, good); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientStatVo {\n"); + + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" wireless: ").append(toIndentedString(wireless)).append("\n"); + sb.append(" wired: ").append(toIndentedString(wired)).append("\n"); + sb.append(" num2g: ").append(toIndentedString(num2g)).append("\n"); + sb.append(" num5g: ").append(toIndentedString(num5g)).append("\n"); + sb.append(" num6g: ").append(toIndentedString(num6g)).append("\n"); + sb.append(" numUser: ").append(toIndentedString(numUser)).append("\n"); + sb.append(" numGuest: ").append(toIndentedString(numGuest)).append("\n"); + sb.append(" numWirelessUser: ").append(toIndentedString(numWirelessUser)).append("\n"); + sb.append(" numWirelessGuest: ").append(toIndentedString(numWirelessGuest)).append("\n"); + sb.append(" num2gUser: ").append(toIndentedString(num2gUser)).append("\n"); + sb.append(" num5gUser: ").append(toIndentedString(num5gUser)).append("\n"); + sb.append(" num6gUser: ").append(toIndentedString(num6gUser)).append("\n"); + sb.append(" num2gGuest: ").append(toIndentedString(num2gGuest)).append("\n"); + sb.append(" num5gGuest: ").append(toIndentedString(num5gGuest)).append("\n"); + sb.append(" num6gGuest: ").append(toIndentedString(num6gGuest)).append("\n"); + sb.append(" poor: ").append(toIndentedString(poor)).append("\n"); + sb.append(" fair: ").append(toIndentedString(fair)).append("\n"); + sb.append(" noData: ").append(toIndentedString(noData)).append("\n"); + sb.append(" good: ").append(toIndentedString(good)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/CustomRateLimitEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/CustomRateLimitEntity.java new file mode 100644 index 0000000..aba9dc4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/CustomRateLimitEntity.java @@ -0,0 +1,203 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Custom configuration rate limit. + */ +@ApiModel(description = "Custom configuration rate limit.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class CustomRateLimitEntity { + @JsonProperty("upEnable") + private Boolean upEnable; + + @JsonProperty("upUnit") + private Integer upUnit; + + @JsonProperty("upLimit") + private Integer upLimit; + + @JsonProperty("downEnable") + private Boolean downEnable; + + @JsonProperty("downUnit") + private Integer downUnit; + + @JsonProperty("downLimit") + private Integer downLimit; + + public CustomRateLimitEntity upEnable(Boolean upEnable) { + this.upEnable = upEnable; + return this; + } + + /** + * Up limit enable + * @return upEnable + */ + @ApiModelProperty(value = "Up limit enable") + + + public Boolean getUpEnable() { + return upEnable; + } + + public void setUpEnable(Boolean upEnable) { + this.upEnable = upEnable; + } + + public CustomRateLimitEntity upUnit(Integer upUnit) { + this.upUnit = upUnit; + return this; + } + + /** + * Up limit unit should be a value as follows: 1: Kbps; 2: Mbps + * @return upUnit + */ + @ApiModelProperty(value = "Up limit unit should be a value as follows: 1: Kbps; 2: Mbps") + + + public Integer getUpUnit() { + return upUnit; + } + + public void setUpUnit(Integer upUnit) { + this.upUnit = upUnit; + } + + public CustomRateLimitEntity upLimit(Integer upLimit) { + this.upLimit = upLimit; + return this; + } + + /** + * Up limit should be within the range of 1–1024. + * @return upLimit + */ + @ApiModelProperty(value = "Up limit should be within the range of 1–1024.") + + + public Integer getUpLimit() { + return upLimit; + } + + public void setUpLimit(Integer upLimit) { + this.upLimit = upLimit; + } + + public CustomRateLimitEntity downEnable(Boolean downEnable) { + this.downEnable = downEnable; + return this; + } + + /** + * Down limit enable + * @return downEnable + */ + @ApiModelProperty(value = "Down limit enable") + + + public Boolean getDownEnable() { + return downEnable; + } + + public void setDownEnable(Boolean downEnable) { + this.downEnable = downEnable; + } + + public CustomRateLimitEntity downUnit(Integer downUnit) { + this.downUnit = downUnit; + return this; + } + + /** + * Down limit unit should be a value as follows: 1: Kbps; 2: Mbps + * @return downUnit + */ + @ApiModelProperty(value = "Down limit unit should be a value as follows: 1: Kbps; 2: Mbps") + + + public Integer getDownUnit() { + return downUnit; + } + + public void setDownUnit(Integer downUnit) { + this.downUnit = downUnit; + } + + public CustomRateLimitEntity downLimit(Integer downLimit) { + this.downLimit = downLimit; + return this; + } + + /** + * Down limit should be within the range of 1–1024. + * @return downLimit + */ + @ApiModelProperty(value = "Down limit should be within the range of 1–1024.") + + + public Integer getDownLimit() { + return downLimit; + } + + public void setDownLimit(Integer downLimit) { + this.downLimit = downLimit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomRateLimitEntity customRateLimitEntity = (CustomRateLimitEntity) o; + return Objects.equals(this.upEnable, customRateLimitEntity.upEnable) && + Objects.equals(this.upUnit, customRateLimitEntity.upUnit) && + Objects.equals(this.upLimit, customRateLimitEntity.upLimit) && + Objects.equals(this.downEnable, customRateLimitEntity.downEnable) && + Objects.equals(this.downUnit, customRateLimitEntity.downUnit) && + Objects.equals(this.downLimit, customRateLimitEntity.downLimit); + } + + @Override + public int hashCode() { + return Objects.hash(upEnable, upUnit, upLimit, downEnable, downUnit, downLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomRateLimitEntity {\n"); + + sb.append(" upEnable: ").append(toIndentedString(upEnable)).append("\n"); + sb.append(" upUnit: ").append(toIndentedString(upUnit)).append("\n"); + sb.append(" upLimit: ").append(toIndentedString(upLimit)).append("\n"); + sb.append(" downEnable: ").append(toIndentedString(downEnable)).append("\n"); + sb.append(" downUnit: ").append(toIndentedString(downUnit)).append("\n"); + sb.append(" downLimit: ").append(toIndentedString(downLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/GridVoClientHistoryInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/GridVoClientHistoryInfo.java new file mode 100644 index 0000000..8efd4e6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/GridVoClientHistoryInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoClientHistoryInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class GridVoClientHistoryInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoClientHistoryInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoClientHistoryInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoClientHistoryInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoClientHistoryInfo data(List data) { + this.data = data; + return this; + } + + public GridVoClientHistoryInfo addDataItem(ClientHistoryInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoClientHistoryInfo gridVoClientHistoryInfo = (GridVoClientHistoryInfo) o; + return Objects.equals(this.totalRows, gridVoClientHistoryInfo.totalRows) && + Objects.equals(this.currentPage, gridVoClientHistoryInfo.currentPage) && + Objects.equals(this.currentSize, gridVoClientHistoryInfo.currentSize) && + Objects.equals(this.data, gridVoClientHistoryInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoClientHistoryInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseClientDetail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseClientDetail.java new file mode 100644 index 0000000..4c8cd25 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseClientDetail.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseClientDetail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class OperationResponseClientDetail { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ClientDetail result; + + public OperationResponseClientDetail errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseClientDetail msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseClientDetail result(ClientDetail result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ClientDetail getResult() { + return result; + } + + public void setResult(ClientDetail result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseClientDetail operationResponseClientDetail = (OperationResponseClientDetail) o; + return Objects.equals(this.errorCode, operationResponseClientDetail.errorCode) && + Objects.equals(this.msg, operationResponseClientDetail.msg) && + Objects.equals(this.result, operationResponseClientDetail.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseClientDetail {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseClientGridVoClientInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseClientGridVoClientInfo.java new file mode 100644 index 0000000..ef6d020 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseClientGridVoClientInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseClientGridVoClientInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class OperationResponseClientGridVoClientInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ClientGridVoClientInfo result; + + public OperationResponseClientGridVoClientInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseClientGridVoClientInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseClientGridVoClientInfo result(ClientGridVoClientInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ClientGridVoClientInfo getResult() { + return result; + } + + public void setResult(ClientGridVoClientInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseClientGridVoClientInfo operationResponseClientGridVoClientInfo = (OperationResponseClientGridVoClientInfo) o; + return Objects.equals(this.errorCode, operationResponseClientGridVoClientInfo.errorCode) && + Objects.equals(this.msg, operationResponseClientGridVoClientInfo.msg) && + Objects.equals(this.result, operationResponseClientGridVoClientInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseClientGridVoClientInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseGridVoClientHistoryInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseGridVoClientHistoryInfo.java new file mode 100644 index 0000000..0599a56 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseGridVoClientHistoryInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoClientHistoryInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoClientHistoryInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoClientHistoryInfo result; + + public OperationResponseGridVoClientHistoryInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoClientHistoryInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoClientHistoryInfo result(GridVoClientHistoryInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoClientHistoryInfo getResult() { + return result; + } + + public void setResult(GridVoClientHistoryInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoClientHistoryInfo operationResponseGridVoClientHistoryInfo = (OperationResponseGridVoClientHistoryInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoClientHistoryInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoClientHistoryInfo.msg) && + Objects.equals(this.result, operationResponseGridVoClientHistoryInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoClientHistoryInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseWithoutResult.java new file mode 100644 index 0000000..84bb152 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/client/model/OperationResponseWithoutResult.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.client.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T10:16:05.926+08:00[Asia/Shanghai]") + +public class OperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public OperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseWithoutResult.msg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/config/FeignConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/config/FeignConfig.java index 3e6464f..eaf3321 100644 --- a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/config/FeignConfig.java +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/config/FeignConfig.java @@ -83,6 +83,7 @@ public class FeignConfig implements RequestInterceptor { if (omadaResult == null) { return; } + // 如果返回结果未成功,重新调获取访问令牌接口 String accessToken = omadaResult.getResult().getAccessToken(); String refreshToken = omadaResult.getResult().getRefreshToken(); authorization = PRE_ACCESS_TOKEN + accessToken; diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaApApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaApApi.java new file mode 100644 index 0000000..52b9640 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaApApi.java @@ -0,0 +1,562 @@ +package org.wfc.omada.api.device; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.device.model.ApBridgeConfig; +import org.wfc.omada.api.device.model.ApGeneralConfig; +import org.wfc.omada.api.device.model.ApIpSetting; +import org.wfc.omada.api.device.model.ApRadiosConfig; +import org.wfc.omada.api.device.model.ApSsidOverrideOpenApiV2Vo; +import org.wfc.omada.api.device.model.ApSsidOverrideOpenApiVo; +import org.wfc.omada.api.device.model.OperationResponseApAvailableChannelOpenApiVo; +import org.wfc.omada.api.device.model.OperationResponseApBridgeConfig; +import org.wfc.omada.api.device.model.OperationResponseApGeneralConfig; +import org.wfc.omada.api.device.model.OperationResponseApIpSetting; +import org.wfc.omada.api.device.model.OperationResponseApLanTraffic; +import org.wfc.omada.api.device.model.OperationResponseApOfdmaConfigOpenApiVo; +import org.wfc.omada.api.device.model.OperationResponseApOverviewInfo; +import org.wfc.omada.api.device.model.OperationResponseApPowerSavingConfigOpenApiVo; +import org.wfc.omada.api.device.model.OperationResponseApRadiosConfig; +import org.wfc.omada.api.device.model.OperationResponseApRadiosDetail; +import org.wfc.omada.api.device.model.OperationResponseApRfScanInfo; +import org.wfc.omada.api.device.model.OperationResponseApRfScanResult; +import org.wfc.omada.api.device.model.OperationResponseApSsidWlansOpenApiV2Vo; +import org.wfc.omada.api.device.model.OperationResponseApSsidWlansOpenApiVo; +import org.wfc.omada.api.device.model.OperationResponseApWiredDownlink; +import org.wfc.omada.api.device.model.OperationResponseApWiredUplink; +import org.wfc.omada.api.device.model.OperationResponseWithoutResult; +import org.wfc.omada.api.device.model.RfScanCommand; +import org.wfc.omada.api.device.model.UpdateApChannelConfigOpenApiVo; +import org.wfc.omada.api.device.model.UpdateApOfdmaConfigOpenApiVo; +import org.wfc.omada.api.device.model.UpdateApPowerSavingConfigOpenApiVo; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:16.669+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaAp", description = "the OmadaAp API") +@FeignClient(name="OmadaApApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaApApi { + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/bridge : Get P2P bridge config + * Get P2P bridge config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get P2P bridge config", nickname = "getApBridgeInfo", notes = "Get P2P bridge config

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApBridgeConfig.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApBridgeConfig.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/bridge", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getApBridgeInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/ofdma : Get ap OFDMA config + * Get ap OFDMA config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ap OFDMA config", nickname = "getApOfdmaConfig", notes = "Get ap OFDMA config

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApOfdmaConfigOpenApiVo.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApOfdmaConfigOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/ofdma", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getApOfdmaConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/available-channel : Get available channel list of ap + * Get available channel list of ap<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist.<br/>-60004 - The device is not activated. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get available channel list of ap", nickname = "getAvailableChannelOfAp", notes = "Get available channel list of ap

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.
-60004 - The device is not activated. ", response = OperationResponseApAvailableChannelOpenApiVo.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApAvailableChannelOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/available-channel", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAvailableChannelOfAp(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/wired-downlink : Get ap downlink(wired) device list + * Get ap downlink(wired) device list<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-1005 - Operation forbidden.<br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ap downlink(wired) device list", nickname = "getDownlinkWiredDevices", notes = "Get ap downlink(wired) device list

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.
-1005 - Operation forbidden.
-39303 - AP does not exist.", response = OperationResponseApWiredDownlink.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApWiredDownlink.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/wired-downlink", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getDownlinkWiredDevices(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/general-config : Get ap general config + * Get ap general config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ap general config", nickname = "getGeneralConfig2", notes = "Get ap general config

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApGeneralConfig.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApGeneralConfig.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/general-config", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGeneralConfig2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/ip-setting : Get ap ip setting + * Get ap IP setting<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ap ip setting", nickname = "getIpSettingConfig", notes = "Get ap IP setting

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApIpSetting.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApIpSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/ip-setting", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getIpSettingConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/lan-traffic-info : Get ap lan traffic info + * Get ap lan traffic info<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ap lan traffic info", nickname = "getLanDetail", notes = "Get ap lan traffic info

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApLanTraffic.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApLanTraffic.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/lan-traffic-info", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLanDetail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac} : Get ap info + * Get ap info<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ap info", nickname = "getOverviewDetail", notes = "Get ap info

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApOverviewInfo.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApOverviewInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getOverviewDetail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/power-saving : Get ap power saving config + * Get ap power saving config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ap power saving config", nickname = "getPowerSavingConfig", notes = "Get ap power saving config

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApPowerSavingConfigOpenApiVo.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApPowerSavingConfigOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/power-saving", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPowerSavingConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/rf-scan-result : Get rf scan result + * Get rf scan result. This interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34808 - This AP is not connected. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Get rf scan result", nickname = "getRFScanResult", notes = "Get rf scan result. This interface has been deprecated.

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34808 - This AP is not connected.", response = OperationResponseApRfScanInfo.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApRfScanInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/rf-scan-result", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRFScanResult(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v2/{omadacId}/sites/{siteId}/aps/{apMac}/rf-scan-result : Get rf scan result + * Get rf scan result<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34808 - This AP is not connected. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get rf scan result", nickname = "getRFScanResultV2", notes = "Get rf scan result

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34808 - This AP is not connected.", response = OperationResponseApRfScanResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApRfScanResult.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/aps/{apMac}/rf-scan-result", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRFScanResultV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/radio-config : Get ap radio config + * Get ap radio config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ap radio config", nickname = "getRadiosConfig", notes = "Get ap radio config

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApRadiosConfig.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApRadiosConfig.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/radio-config", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRadiosConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/radios : Get ap radio detail + * Get ap radio detail<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ap radio detail", nickname = "getRadiosDetail", notes = "Get ap radio detail

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApRadiosDetail.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApRadiosDetail.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/radios", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRadiosDetail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/wired-uplink : Get ap uplink(wired) detail + * Get ap uplink(wired) detail<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ap uplink(wired) detail", nickname = "getUplinkWiredDetail", notes = "Get ap uplink(wired) detail

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApWiredUplink.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApWiredUplink.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/wired-uplink", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getUplinkWiredDetail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/override : Get ap WLANs override config + * Get ap WLANs override config. This interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Get ap WLANs override config", nickname = "getWlansConfig", notes = "Get ap WLANs override config. This interface has been deprecated.

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApSsidWlansOpenApiVo.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApSsidWlansOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/override", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWlansConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * GET /openapi/v2/{omadacId}/sites/{siteId}/aps/{apMac}/override : Get ap WLANs override config + * Get ap WLANs override config.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ap WLANs override config", nickname = "getWlansConfigV2", notes = "Get ap WLANs override config.

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseApSsidWlansOpenApiV2Vo.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApSsidWlansOpenApiV2Vo.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/aps/{apMac}/override", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWlansConfigV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/bridge : Modify P2P bridge config + * Modify P2P bridge config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param apBridgeConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify P2P bridge config", nickname = "modifyApBridgeInfo", notes = "Modify P2P bridge config

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/bridge", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyApBridgeInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ApBridgeConfig apBridgeConfig); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/channel-config : Modify ap channel config + * Modify ap channel config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param updateApChannelConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify ap channel config", nickname = "modifyApChannelConfig", notes = "Modify ap channel config

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/channel-config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyApChannelConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateApChannelConfigOpenApiVo updateApChannelConfigOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/ofdma : Modify ap OFDMA config + * Modify ap OFDMA config; If the device does not support this feature, it cannot be modified successfully.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param updateApOfdmaConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify ap OFDMA config", nickname = "modifyApOfdmaConfig", notes = "Modify ap OFDMA config; If the device does not support this feature, it cannot be modified successfully.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/ofdma", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyApOfdmaConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateApOfdmaConfigOpenApiVo updateApOfdmaConfigOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/general-config : Modify ap general config + * Modify ap general config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param apGeneralConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify ap general config", nickname = "modifyGeneralConfig2", notes = "Modify ap general config

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/general-config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyGeneralConfig2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ApGeneralConfig apGeneralConfig); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/ip-setting : Modify ap ip setting + * Modify ap IP setting<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param apIpSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify ap ip setting", nickname = "modifyIpSettingConfig", notes = "Modify ap IP setting

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/ip-setting", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyIpSettingConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ApIpSetting apIpSetting); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/power-saving : Modify ap power saving config + * Modify ap power saving config; If the device does not support this feature, it cannot be modified successfully.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist.<br/>-44205 - The device does not support this feature. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param updateApPowerSavingConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify ap power saving config", nickname = "modifyPowerSavingConfig", notes = "Modify ap power saving config; If the device does not support this feature, it cannot be modified successfully.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.
-44205 - The device does not support this feature.", response = OperationResponseWithoutResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/power-saving", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyPowerSavingConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateApPowerSavingConfigOpenApiVo updateApPowerSavingConfigOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/radio-config : Modify ap radio config + * Modify ap radio config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param apRadiosConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify ap radio config", nickname = "modifyRadiosConfig", notes = "Modify ap radio config

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/radio-config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyRadiosConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ApRadiosConfig apRadiosConfig); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/override : Modify ap WLANs override config + * Modify ap WLANs override config. This interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param apSsidOverrideOpenApiVo (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Modify ap WLANs override config", nickname = "modifyWlansConfig", notes = "Modify ap WLANs override config. This interface has been deprecated.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/override", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyWlansConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ApSsidOverrideOpenApiVo apSsidOverrideOpenApiVo); + + + /** + * PATCH /openapi/v2/{omadacId}/sites/{siteId}/aps/{apMac}/override : Modify ap WLANs override config + * Modify ap WLANs override config.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39303 - AP does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param apSsidOverrideOpenApiV2Vo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify ap WLANs override config", nickname = "modifyWlansConfigV2", notes = "Modify ap WLANs override config.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39303 - AP does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/aps/{apMac}/override", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyWlansConfigV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ApSsidOverrideOpenApiV2Vo apSsidOverrideOpenApiV2Vo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/aps/{apMac}/start-rf-scan : Start rf scan + * Wi-Fi connection will lost for several minutes during the scanning. Please select a spare time of network to start scanning. This interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34800 - No SSIDs are configured on the corresponding radio band.<br/>-34802 - RF scan failed. Please turn on the radio.<br/>-34803 - Optimizing WLAN... Please wait.<br/>-34808 - This AP is not connected.<br/>-34809 - This AP does not support RF Scanning.<br/>-34810 - Mesh APs do not support RF Scanning. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Start rf scan", nickname = "triggerRadioFrequencyScan", notes = "Wi-Fi connection will lost for several minutes during the scanning. Please select a spare time of network to start scanning. This interface has been deprecated.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34800 - No SSIDs are configured on the corresponding radio band.
-34802 - RF scan failed. Please turn on the radio.
-34803 - Optimizing WLAN... Please wait.
-34808 - This AP is not connected.
-34809 - This AP does not support RF Scanning.
-34810 - Mesh APs do not support RF Scanning.", response = OperationResponseWithoutResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/aps/{apMac}/start-rf-scan", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity triggerRadioFrequencyScan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac); + + + /** + * POST /openapi/v2/{omadacId}/sites/{siteId}/aps/{apMac}/start-rf-scan : Start rf scan + * Wi-Fi connection will lost for several minutes during the scanning. Please select a spare time of network to start scanning.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34800 - No SSIDs are configured on the corresponding radio band.<br/>-34802 - RF scan failed. Please turn on the radio.<br/>-34803 - Optimizing WLAN... Please wait.<br/>-34808 - This AP is not connected.<br/>-34809 - This AP does not support RF Scanning.<br/>-34810 - Mesh APs do not support RF Scanning.<br/>-34824 - Rogue AP scanning... Please wait. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apMac AP MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param rfScanCommand (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Start rf scan", nickname = "triggerRadioFrequencyScanV2", notes = "Wi-Fi connection will lost for several minutes during the scanning. Please select a spare time of network to start scanning.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34800 - No SSIDs are configured on the corresponding radio band.
-34802 - RF scan failed. Please turn on the radio.
-34803 - Optimizing WLAN... Please wait.
-34808 - This AP is not connected.
-34809 - This AP does not support RF Scanning.
-34810 - Mesh APs do not support RF Scanning.
-34824 - Rogue AP scanning... Please wait.", response = OperationResponseWithoutResult.class, tags={ "Omada/Ap","Ap", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/aps/{apMac}/start-rf-scan", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity triggerRadioFrequencyScanV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "AP MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("apMac") String apMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) RfScanCommand rfScanCommand); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaDeviceApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaDeviceApi.java new file mode 100644 index 0000000..8b929c7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaDeviceApi.java @@ -0,0 +1,811 @@ +package org.wfc.omada.api.device; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.multipart.MultipartFile; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.device.model.ActiveDeviceMultiSiteOpenApiVo; +import org.wfc.omada.api.device.model.ActiveDeviceOpenApiVo; +import org.wfc.omada.api.device.model.ActiveDeviceRespVo; +import org.wfc.omada.api.device.model.ActiveDeviceSnOpenApiVo; +import org.wfc.omada.api.device.model.ActiveDeviceSnRespVo; +import org.wfc.omada.api.device.model.AdoptDeviceRequest; +import org.wfc.omada.api.device.model.BatchTagRespOpenApiVo; +import org.wfc.omada.api.device.model.DeleteTagOpenApiVo; +import org.wfc.omada.api.device.model.DeviceCopyConfigurationOpenApiVo; +import org.wfc.omada.api.device.model.DeviceListAddBySnOpenApiVo; +import org.wfc.omada.api.device.model.DeviceListAddMultiSiteBySnOpenApiVo; +import org.wfc.omada.api.device.model.DeviceListAddOpenApiVo; +import org.wfc.omada.api.device.model.DeviceMoveSiteOpenApiVo; +import org.wfc.omada.api.device.model.LocateDeviceRequest; +import org.wfc.omada.api.device.model.ModifyTagOpenApiVo; +import org.wfc.omada.api.device.model.OperationResponseAdoptResult; +import org.wfc.omada.api.device.model.OperationResponseCheckFirmwareRes; +import org.wfc.omada.api.device.model.OperationResponseDeviceAddProcessRespVo; +import org.wfc.omada.api.device.model.OperationResponseDeviceAddRespOpenApiVo; +import org.wfc.omada.api.device.model.OperationResponseDeviceFirmwareInfo; +import org.wfc.omada.api.device.model.OperationResponseFile; +import org.wfc.omada.api.device.model.OperationResponseGridVoDeviceInfo; +import org.wfc.omada.api.device.model.OperationResponseGridVoGlobalKnownDeviceOpenApiVo; +import org.wfc.omada.api.device.model.OperationResponseGridVoGlobalUnknownDeviceOpenApiVo; +import org.wfc.omada.api.device.model.OperationResponseOnlineUpgradeRes; +import org.wfc.omada.api.device.model.OperationResponseRetryAddDeviceRespOpenApiVo; +import org.wfc.omada.api.device.model.OperationResponseRollingUpgradeRes; +import org.wfc.omada.api.device.model.OperationResponseUpgradeRes; +import org.wfc.omada.api.device.model.OperationResponseUpgradeTask; +import org.wfc.omada.api.device.model.OperationResponseWithoutResult; +import org.wfc.omada.api.device.model.RetryAddDeviceOpenApiVo; +import org.wfc.omada.api.device.model.RollingUpgradeRequest; +import org.wfc.omada.api.device.model.SetTagOpenApiVo; +import org.wfc.omada.api.device.model.TagOpenApiVo; +import org.wfc.omada.api.device.model.TagRespOpenApiVo; +import org.wfc.omada.api.device.model.UnbindActiveDeviceSnOpenApiVo; +import org.wfc.omada.api.device.model.UnbindDeviceOpenApiVo; +import org.wfc.omada.api.device.model.UnbindDeviceRespVo; +import org.wfc.omada.api.device.model.UnbindDeviceSnOpenApiVo; +import org.wfc.omada.api.device.model.UnbindDeviceSnRespVo; +import org.wfc.omada.api.device.model.UpgradeRequest; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.List; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:16.669+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaDevice", description = "the OmadaDevice API") +@FeignClient(name="OmadaDeviceApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaDeviceApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/active : Batch active devices + * Batch active devices.<br/><br/>The interface requires one of the permissions: <br/>Site Bind/Unbind License Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param activeDeviceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch active devices", nickname = "activeDevice", notes = "Batch active devices.

The interface requires one of the permissions:
Site Bind/Unbind License Manager Modify", response = ActiveDeviceRespVo.class, responseContainer = "List", tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = ActiveDeviceRespVo.class, responseContainer = "List") }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/active", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity> activeDevice(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ActiveDeviceOpenApiVo activeDeviceOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/sn-active : Batch active devices by SN + * Batch active devices by SN.<br/><br/>The interface requires one of the permissions: <br/>Site Bind/Unbind License Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param activeDeviceSnOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch active devices by SN", nickname = "activeDeviceBySn", notes = "Batch active devices by SN.

The interface requires one of the permissions:
Site Bind/Unbind License Manager Modify", response = ActiveDeviceSnRespVo.class, responseContainer = "List", tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = ActiveDeviceSnRespVo.class, responseContainer = "List") }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/sn-active", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity> activeDeviceBySn(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ActiveDeviceSnOpenApiVo activeDeviceSnOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/multi-devices/active : Batch active devices with multi site + * Batch active devices with multi site.<br/><br/>The interface requires one of the permissions: <br/>Site Bind/Unbind License Manager Modify + * + * @param omadacId Omada ID (required) + * @param activeDeviceMultiSiteOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch active devices with multi site", nickname = "activeDeviceWithMultiSite", notes = "Batch active devices with multi site.

The interface requires one of the permissions:
Site Bind/Unbind License Manager Modify", response = ActiveDeviceRespVo.class, responseContainer = "List", tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = ActiveDeviceRespVo.class, responseContainer = "List") }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/multi-devices/active", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity> activeDeviceWithMultiSite(@ApiParam(value = "" ) @Valid @RequestBody(required = false) ActiveDeviceMultiSiteOpenApiVo activeDeviceMultiSiteOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/multi-add : Batch add devices + * Batch add devices.This interface has been deprecated. Please use the following interface instead: Batch add devices by SN<br/><br/>The interface requires one of the permissions: <br/>Site Adopt Device Manager Access<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39039 - Too many devices imported at a time.<br/>-39042 - Invalid device serial number in the imported file.<br/>-39043 - Importing... Please wait.<br/>-53125 - The Add Devices function has been locked due to too many invalid attempts. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceListAddOpenApiVo (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Batch add devices", nickname = "addDevices", notes = "Batch add devices.This interface has been deprecated. Please use the following interface instead: Batch add devices by SN

The interface requires one of the permissions:
Site Adopt Device Manager Access

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39039 - Too many devices imported at a time.
-39042 - Invalid device serial number in the imported file.
-39043 - Importing... Please wait.
-53125 - The Add Devices function has been locked due to too many invalid attempts.", response = OperationResponseDeviceAddRespOpenApiVo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDeviceAddRespOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/multi-add", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity addDevices(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeviceListAddOpenApiVo deviceListAddOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/sn-add : Batch add devices by SN + * Batch add devices by SN.<br/><br/>The interface requires one of the permissions: <br/>Site Adopt Device Manager Access<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39039 - Too many devices imported at a time.<br/>-39042 - Invalid device serial number in the imported file.<br/>-39043 - Importing... Please wait.<br/>-53125 - The Add Devices function has been locked due to too many invalid attempts. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceListAddBySnOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch add devices by SN", nickname = "addDevicesBySn", notes = "Batch add devices by SN.

The interface requires one of the permissions:
Site Adopt Device Manager Access

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39039 - Too many devices imported at a time.
-39042 - Invalid device serial number in the imported file.
-39043 - Importing... Please wait.
-53125 - The Add Devices function has been locked due to too many invalid attempts.", response = OperationResponseDeviceAddRespOpenApiVo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDeviceAddRespOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/sn-add", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity addDevicesBySn(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeviceListAddBySnOpenApiVo deviceListAddBySnOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/multi-devices/sn-add : Batch add devices by SN with multi site + * Batch add devices by SN with multi site.<br/><br/>The interface requires one of the permissions: <br/>Site Adopt Device Manager Access<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39039 - Too many devices imported at a time.<br/>-39042 - Invalid device serial number in the imported file.<br/>-39043 - Importing... Please wait.<br/>-53125 - The Add Devices function has been locked due to too many invalid attempts. + * + * @param omadacId Omada ID (required) + * @param deviceListAddMultiSiteBySnOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch add devices by SN with multi site", nickname = "addDevicesBySnWithMultiSite", notes = "Batch add devices by SN with multi site.

The interface requires one of the permissions:
Site Adopt Device Manager Access

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39039 - Too many devices imported at a time.
-39042 - Invalid device serial number in the imported file.
-39043 - Importing... Please wait.
-53125 - The Add Devices function has been locked due to too many invalid attempts.", response = OperationResponseDeviceAddRespOpenApiVo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDeviceAddRespOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/multi-devices/sn-add", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity addDevicesBySnWithMultiSite(@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeviceListAddMultiSiteBySnOpenApiVo deviceListAddMultiSiteBySnOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/tag : Create new tag + * Create new tag.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param tagOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new tag", nickname = "addTag", notes = "Create new tag.

The interface requires one of the permissions:
Site Device Manager Modify", response = TagRespOpenApiVo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = TagRespOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/tag", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity addTag(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) TagOpenApiVo tagOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/{deviceMac}/start-adopt : Start adopt device + * Start adopt device.This interface does not return the actual adoptive result, you need to use the interface:Get device adopt result to obtain the adoptive result<br/><br/>The interface requires one of the permissions: <br/>Site Adopt Device Manager Access + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param adoptDeviceRequest (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Start adopt device", nickname = "adoptDevice", notes = "Start adopt device.This interface does not return the actual adoptive result, you need to use the interface:Get device adopt result to obtain the adoptive result

The interface requires one of the permissions:
Site Adopt Device Manager Access", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/{deviceMac}/start-adopt", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity adoptDevice(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) AdoptDeviceRequest adoptDeviceRequest); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/rolling-upgrade-tasks/{taskId} : End the rolling upgrade task + * Cancel the rolling upgrade task in the site. But the devices which have completed the upgrade will not be rolled back to the old version<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param taskId Task ID. The ID is the return value of 'Start batch rolling upgrade' interface. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "End the rolling upgrade task", nickname = "cancelRollingUpgrade", notes = "Cancel the rolling upgrade task in the site. But the devices which have completed the upgrade will not be rolled back to the old version

The interface requires one of the permissions:
Site Device Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/rolling-upgrade-tasks/{taskId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity cancelRollingUpgrade(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Task ID. The ID is the return value of 'Start batch rolling upgrade' interface.",required=true) @PathVariable("taskId") String taskId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/copy : Copy configuration + * Copy the configuration of one device to another device of the same model. Only for switch and access point.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist.<br/>-39056 - Failed to copy config because of source device not exist.<br/>-39057 - Failed to copy config because of the copied device is different from the model of the source device. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceCopyConfigurationOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Copy configuration", nickname = "copyDeviceConfiguration", notes = "Copy the configuration of one device to another device of the same model. Only for switch and access point.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.
-39056 - Failed to copy config because of source device not exist.
-39057 - Failed to copy config because of the copied device is different from the model of the source device.", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/copy", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity copyDeviceConfiguration(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeviceCopyConfigurationOpenApiVo deviceCopyConfigurationOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/devices/tag : Delete an existing tag + * Delete an existing tag.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deleteTagOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing tag", nickname = "deleteTag", notes = "Delete an existing tag.

The interface requires one of the permissions:
Site Device Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/tag", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.DELETE) + ResponseEntity deleteTag(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteTagOpenApiVo deleteTagOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/{deviceMac}/force-provision : Force provision device + * Force provision device.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1 - Something went wrong. Please try again later or contact our technical support.<br/>-1001 - Invalid request parameters.<br/>-1200 - You have been logged out of the controller. This may have been caused by data restore, reboot, session timeout or disabled cloud access. Please try to log in again later.<br/>-39050 - This device does not exist.<br/>-39051 - Operation failed. Please try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Force provision device", nickname = "forceProvisionDevice", notes = "Force provision device.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1 - Something went wrong. Please try again later or contact our technical support.
-1001 - Invalid request parameters.
-1200 - You have been logged out of the controller. This may have been caused by data restore, reboot, session timeout or disabled cloud access. Please try to log in again later.
-39050 - This device does not exist.
-39051 - Operation failed. Please try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/{deviceMac}/force-provision", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity forceProvisionDevice(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/{deviceMac}/forget : Forget device + * Forget device.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/>MSP Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39013 - Deletion failed. This device does not exist.<br/>-39014 - To avoid damage, please do not forget the device during upgrading.<br/>-39054 - Controller failed to forget device.<br/>-39055 - Controller has forgotten the device but failed to reset it. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Forget device", nickname = "forgetDevice", notes = "Forget device.

The interface requires one of the permissions:
Site Device Manager Modify
MSP Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39013 - Deletion failed. This device does not exist.
-39014 - To avoid damage, please do not forget the device during upgrading.
-39054 - Controller failed to forget device.
-39055 - Controller has forgotten the device but failed to reset it.", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/{deviceMac}/forget", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity forgetDevice(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/add/{operateId}/status : Batch get added device status + * Batch get added device status.<br/><br/>The interface requires one of the permissions: <br/>Site Add Device Manager Access + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param operateId (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch get added device status", nickname = "getAddDevicesStatus", notes = "Batch get added device status.

The interface requires one of the permissions:
Site Add Device Manager Access", response = OperationResponseDeviceAddProcessRespVo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDeviceAddProcessRespVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/add/{operateId}/status", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAddDevicesStatus(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("operateId") String operateId); + + + /** + * GET /openapi/v1/{omadacId}/multi-devices/add/{operateId}/status : Batch get added device status with multi site + * Batch get added device status with multi site.<br/><br/>The interface requires one of the permissions: <br/>Site Add Device Manager Access + * + * @param omadacId Omada ID (required) + * @param operateId (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch get added device status with multi site", nickname = "getAddDevicesStatusMultiSite", notes = "Batch get added device status with multi site.

The interface requires one of the permissions:
Site Add Device Manager Access", response = OperationResponseDeviceAddProcessRespVo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDeviceAddProcessRespVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/multi-devices/add/{operateId}/status", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAddDevicesStatusMultiSite(@ApiParam(value = "",required=true) @PathVariable("operateId") String operateId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/all-devices/check-latest-firmware-tasks/{taskId} : Get the result of the given check latest firmware task + * Get the result of the firmware update task, containing a list of devices with firmware updates<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param taskId Task ID. The ID is the return value of 'Start check latest firmware for all devices' interface (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the result of the given check latest firmware task", nickname = "getCheckFirmwareTaskResult", notes = "Get the result of the firmware update task, containing a list of devices with firmware updates

The interface requires one of the permissions:
Site Device Manager Modify", response = OperationResponseCheckFirmwareRes.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCheckFirmwareRes.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/all-devices/check-latest-firmware-tasks/{taskId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getCheckFirmwareTaskResult(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Task ID. The ID is the return value of 'Start check latest firmware for all devices' interface",required=true) @PathVariable("taskId") String taskId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/devices/{deviceMac}/adopt-result : Get device adopt result + * Get device adopt result.<br/><br/>The interface requires one of the permissions: <br/>Site Adopt Device Manager Access + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get device adopt result", nickname = "getDeviceAdoptResult", notes = "Get device adopt result.

The interface requires one of the permissions:
Site Adopt Device Manager Access", response = OperationResponseAdoptResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseAdoptResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/{deviceMac}/adopt-result", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getDeviceAdoptResult(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/devices : Get site device list + * Get site device list.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/>MSP Device Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsStatus Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsIp Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field name,mac,ip (optional) + * @param filtersTag Filter query parameters, support field tag name (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site device list", nickname = "getDeviceList", notes = "Get site device list.

The interface requires one of the permissions:
Site Device Manager View Only
MSP Device Manager View Only", response = OperationResponseGridVoDeviceInfo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoDeviceInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getDeviceList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.status", required = false) String sortsStatus,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.ip", required = false) String sortsIp,@ApiParam(value = "Fuzzy query parameters, support field name,mac,ip") @Valid @RequestParam(value = "searchKey", required = false) String searchKey,@ApiParam(value = "Filter query parameters, support field tag name") @Valid @RequestParam(value = "filters.tag", required = false) String filtersTag); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/devices/{deviceMac}/latest-firmware-info : Get the latest firmware info of the device + * Get latest firmware info of the device, including the latest firmware version and release logs.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the latest firmware info of the device", nickname = "getFirmwareInfo", notes = "Get latest firmware info of the device, including the latest firmware version and release logs.

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.", response = OperationResponseDeviceFirmwareInfo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDeviceFirmwareInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/{deviceMac}/latest-firmware-info", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getFirmwareInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac); + + + /** + * GET /openapi/v1/{omadacId}/devices/known-devices : Get global known device list + * Get global known device list.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/>MSP Device Manager View Only + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsMac Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchMacs Fuzzy query parameters, support field mac (optional) + * @param searchNames Fuzzy query parameters, support field name (optional) + * @param searchModels Fuzzy query parameters, support field model (optional) + * @param searchSns Fuzzy query parameters, support field sn (optional) + * @param filtersTag Filter query parameters, support field tag ID (optional) + * @param filtersDeviceSeriesType Filter query parameters, support field Device series type. 0: basic; 1: pro. (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get global known device list", nickname = "getGlobalKnownDeviceList", notes = "Get global known device list.

The interface requires one of the permissions:
Site Device Manager View Only
MSP Device Manager View Only", response = OperationResponseGridVoGlobalKnownDeviceOpenApiVo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoGlobalKnownDeviceOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/devices/known-devices", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGlobalKnownDeviceList(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.mac", required = false) String sortsMac,@ApiParam(value = "Fuzzy query parameters, support field mac") @Valid @RequestParam(value = "searchMacs", required = false) String searchMacs,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchNames", required = false) String searchNames,@ApiParam(value = "Fuzzy query parameters, support field model") @Valid @RequestParam(value = "searchModels", required = false) String searchModels,@ApiParam(value = "Fuzzy query parameters, support field sn") @Valid @RequestParam(value = "searchSns", required = false) String searchSns,@ApiParam(value = "Filter query parameters, support field tag ID") @Valid @RequestParam(value = "filters.tag", required = false) String filtersTag,@ApiParam(value = "Filter query parameters, support field Device series type. 0: basic; 1: pro.") @Valid @RequestParam(value = "filters.deviceSeriesType", required = false) String filtersDeviceSeriesType); + + + /** + * GET /openapi/v1/{omadacId}/devices/unknown-devices : Get global unknown device list + * Get global unknown device list.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/>MSP Device Manager View Only + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsMac Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchMacs Fuzzy query parameters, support field mac (optional) + * @param searchNames Fuzzy query parameters, support field name (optional) + * @param searchModels Fuzzy query parameters, support field model (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get global unknown device list", nickname = "getGlobalUnknownDeviceList", notes = "Get global unknown device list.

The interface requires one of the permissions:
Site Device Manager View Only
MSP Device Manager View Only", response = OperationResponseGridVoGlobalUnknownDeviceOpenApiVo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoGlobalUnknownDeviceOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/devices/unknown-devices", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGlobalUnknownDeviceList(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.mac", required = false) String sortsMac,@ApiParam(value = "Fuzzy query parameters, support field mac") @Valid @RequestParam(value = "searchMacs", required = false) String searchMacs,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchNames", required = false) String searchNames,@ApiParam(value = "Fuzzy query parameters, support field model") @Valid @RequestParam(value = "searchModels", required = false) String searchModels); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/manually-upgrade-tasks/{taskId} : Get the result of the given manually upgrade task + * Get the result of the manually upgrade task. The results include whether the task is finished and how many devices have not completed the upgrade.<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Access + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param taskId Task ID. The ID is the return value of 'Start manually upgrade' interface. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the result of the given manually upgrade task", nickname = "getManuallyUpgradeRes", notes = "Get the result of the manually upgrade task. The results include whether the task is finished and how many devices have not completed the upgrade.

The interface requires one of the permissions:
Site Manual Firmware Upgrade Access", response = OperationResponseUpgradeRes.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUpgradeRes.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/manually-upgrade-tasks/{taskId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getManuallyUpgradeRes(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Task ID. The ID is the return value of 'Start manually upgrade' interface.",required=true) @PathVariable("taskId") String taskId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/devices/{deviceMac}/online-upgrade-result : Get online upgrade result + * Get the result of the online upgrade.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get online upgrade result", nickname = "getOnlineUpgradeRes", notes = "Get the result of the online upgrade.

The interface requires one of the permissions:
Site Device Manager Modify", response = OperationResponseOnlineUpgradeRes.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseOnlineUpgradeRes.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/{deviceMac}/online-upgrade-result", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getOnlineUpgradeRes(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/rolling-upgrade-tasks/{taskId} : Get the result of the given rolling upgrade task + * Get the result of the rolling upgrade task. The results include whether the task is finished and how many devices have not completed the upgrade.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param taskId Task ID. The ID is the return value of 'Start batch rolling upgrade' interface. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the result of the given rolling upgrade task", nickname = "getRollingUpgradeRes", notes = "Get the result of the rolling upgrade task. The results include whether the task is finished and how many devices have not completed the upgrade.

The interface requires one of the permissions:
Site Device Manager Modify", response = OperationResponseRollingUpgradeRes.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseRollingUpgradeRes.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/rolling-upgrade-tasks/{taskId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRollingUpgradeRes(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Task ID. The ID is the return value of 'Start batch rolling upgrade' interface.",required=true) @PathVariable("taskId") String taskId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/devices/tag : Get tag list + * Get tag list.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/>Site Map Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get tag list", nickname = "getTags", notes = "Get tag list.

The interface requires one of the permissions:
Site Device Manager View Only
Site Map Manager View Only", response = TagRespOpenApiVo.class, responseContainer = "List", tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = TagRespOpenApiVo.class, responseContainer = "List") }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/tag", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity> getTags(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/{deviceMac}/locate : Locate device + * Locate device.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39005 - Failed to adopt this device because the device is not connected. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param locateDeviceRequest (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Locate device", nickname = "locateDevice", notes = "Locate device.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39005 - Failed to adopt this device because the device is not connected.", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/{deviceMac}/locate", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity locateDevice(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LocateDeviceRequest locateDeviceRequest); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/start-manually-upgrade : Start manually upgrade + * Manually upgrade the devices of the same model in the site. The firmware needs to be uploaded first. Note: Each site can only execute one multi-device upgrade task at a time, and there is a number limit of the tasks that can be executed simultaneously in the controller.<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Access<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39020 - Failed to upgrade because no device is ready for upgrading.<br/>-39050 - This device does not exist.<br/>-43704 - The file has expired. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param upgradeRequest (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Start manually upgrade", nickname = "manuallyUpgrade", notes = "Manually upgrade the devices of the same model in the site. The firmware needs to be uploaded first. Note: Each site can only execute one multi-device upgrade task at a time, and there is a number limit of the tasks that can be executed simultaneously in the controller.

The interface requires one of the permissions:
Site Manual Firmware Upgrade Access

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39020 - Failed to upgrade because no device is ready for upgrading.
-39050 - This device does not exist.
-43704 - The file has expired.", response = OperationResponseUpgradeTask.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUpgradeTask.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/start-manually-upgrade", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity manuallyUpgrade(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpgradeRequest upgradeRequest); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/devices/tag : Modify an existing tag + * Modify an existing tag.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param modifyTagOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing tag", nickname = "modifyTag", notes = "Modify an existing tag.

The interface requires one of the permissions:
Site Device Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/tag", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyTag(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyTagOpenApiVo modifyTagOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/{deviceMac}/site-move : Move site + * Move the device to another site<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33421 - The gateway model in the target site is different from the gateway model configured in the WAN Settings Overrides in the original site.<br/>-39050 - This device does not exist.<br/>-39094 - The site type does not match the device series, pro site can only manage Omada Pro device.<br/>-39095 - The site type does not match the device series, basic site can only manage Omada device.<br/>-39502 - Failed to move the gateway. The target site already has a gateway. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param deviceMoveSiteOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Move site", nickname = "moveSite", notes = "Move the device to another site

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33421 - The gateway model in the target site is different from the gateway model configured in the WAN Settings Overrides in the original site.
-39050 - This device does not exist.
-39094 - The site type does not match the device series, pro site can only manage Omada Pro device.
-39095 - The site type does not match the device series, basic site can only manage Omada device.
-39502 - Failed to move the gateway. The target site already has a gateway.", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/{deviceMac}/site-move", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity moveSite(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeviceMoveSiteOpenApiVo deviceMoveSiteOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/all-devices/start-check-latest-firmware : Start check latest firmware for all devices + * Start a task to query the latest firmware of all devices in the cloud.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Start check latest firmware for all devices", nickname = "onlineCheckUpgrade", notes = "Start a task to query the latest firmware of all devices in the cloud.

The interface requires one of the permissions:
Site Device Manager Modify", response = OperationResponseUpgradeTask.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUpgradeTask.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/all-devices/start-check-latest-firmware", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity onlineCheckUpgrade(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/start-rolling-upgrade : Start batch rolling upgrade + * Batch online upgrade the devices in a certain order in the site. It is suggested to check firmware update before the operation, or the firmware might not be the latest<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39020 - Failed to upgrade because no device is ready for upgrading. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param rollingUpgradeRequest (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Start batch rolling upgrade", nickname = "onlineRollingUpgrade", notes = "Batch online upgrade the devices in a certain order in the site. It is suggested to check firmware update before the operation, or the firmware might not be the latest

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39020 - Failed to upgrade because no device is ready for upgrading.", response = OperationResponseUpgradeTask.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUpgradeTask.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/start-rolling-upgrade", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity onlineRollingUpgrade(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) RollingUpgradeRequest rollingUpgradeRequest); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/{deviceMac}/start-online-upgrade : Start online upgrade + * Upgrade the device with the latest firmware in the cloud. It is suggested to check firmware update before the operation, or the firmware might not be the latest<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39020 - Failed to upgrade because no device is ready for upgrading.<br/>-39026 - The upgrade file is the same with the current version. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Start online upgrade", nickname = "onlineUpgrade", notes = "Upgrade the device with the latest firmware in the cloud. It is suggested to check firmware update before the operation, or the firmware might not be the latest

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39020 - Failed to upgrade because no device is ready for upgrading.
-39026 - The upgrade file is the same with the current version.", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/{deviceMac}/start-online-upgrade", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity onlineUpgrade(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/{deviceMac}/reboot : Reboot device + * Reboot device.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39006 - Operation failed. This device does not exist.<br/>-39007 - Failed to reboot this device because the device is not connected.<br/>-39008 - To avoid damage, please do not reboot the device during upgrading.<br/>-39009 - Rebooting... Please wait.<br/>-39010 - Failed to reboot. The device is synchronizing configurations.<br/>-39011 - Failed to reboot. The controller is making provision for the device.<br/>-39012 - Failed to send the reboot command to the device. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Reboot device", nickname = "rebootDevice", notes = "Reboot device.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39006 - Operation failed. This device does not exist.
-39007 - Failed to reboot this device because the device is not connected.
-39008 - To avoid damage, please do not reboot the device during upgrading.
-39009 - Rebooting... Please wait.
-39010 - Failed to reboot. The device is synchronizing configurations.
-39011 - Failed to reboot. The controller is making provision for the device.
-39012 - Failed to send the reboot command to the device.", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/{deviceMac}/reboot", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity rebootDevice(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac); + + + /** + * POST /openapi/v1/msp/{mspId}/customers/{customerId}/sites/{siteId}/devices/{deviceMac}/add/retry : retry add device in msp view + * retry add device in msp view<br/><br/>The interface requires one of the permissions: <br/>MSP Adopt Device Manager Access<br/>MSP Add Device Manager Access + * + * @param customerId Omada ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param mspId (required) + * @param siteId (required) + * @param retryAddDeviceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "retry add device in msp view", nickname = "retryAddDeviceByMsp", notes = "retry add device in msp view

The interface requires one of the permissions:
MSP Adopt Device Manager Access
MSP Add Device Manager Access", response = OperationResponseRetryAddDeviceRespOpenApiVo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseRetryAddDeviceRespOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/customers/{customerId}/sites/{siteId}/devices/{deviceMac}/add/retry", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity retryAddDeviceByMsp(@ApiParam(value = "Omada ID",required=true) @PathVariable("customerId") String customerId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac,@ApiParam(value = "",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) RetryAddDeviceOpenApiVo retryAddDeviceOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/sn-unbind-active : Change the license from the old device to the new device + * Change the license from the old device to the new device (using the same license).<br/><br/>The interface requires one of the permissions: <br/>Site Bind/Unbind License Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param unbindActiveDeviceSnOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Change the license from the old device to the new device", nickname = "unbindActiveDeviceBySn", notes = "Change the license from the old device to the new device (using the same license).

The interface requires one of the permissions:
Site Bind/Unbind License Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/sn-unbind-active", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity unbindActiveDeviceBySn(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UnbindActiveDeviceSnOpenApiVo unbindActiveDeviceSnOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/unbind : Batch unbind devices + * Batch unbind devices.<br/><br/>The interface requires one of the permissions: <br/>Site Bind/Unbind License Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param unbindDeviceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch unbind devices", nickname = "unbindDevice", notes = "Batch unbind devices.

The interface requires one of the permissions:
Site Bind/Unbind License Manager Modify", response = UnbindDeviceRespVo.class, responseContainer = "List", tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = UnbindDeviceRespVo.class, responseContainer = "List") }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/unbind", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity> unbindDevice(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UnbindDeviceOpenApiVo unbindDeviceOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/sn-unbind : Batch unbind devices by SN + * Batch unbind devices by SN.<br/><br/>The interface requires one of the permissions: <br/>Site Bind/Unbind License Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param unbindDeviceSnOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch unbind devices by SN", nickname = "unbindDeviceBySn", notes = "Batch unbind devices by SN.

The interface requires one of the permissions:
Site Bind/Unbind License Manager Modify", response = UnbindDeviceSnRespVo.class, responseContainer = "List", tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = UnbindDeviceSnRespVo.class, responseContainer = "List") }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/sn-unbind", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity> unbindDeviceBySn(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UnbindDeviceSnOpenApiVo unbindDeviceSnOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/multi-devices/tag : Set device tag for given devices + * Set device tag for given devices.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param setTagOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Set device tag for given devices", nickname = "updateDeviceTag", notes = "Set device tag for given devices.

The interface requires one of the permissions:
Site Device Manager Modify", response = BatchTagRespOpenApiVo.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = BatchTagRespOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multi-devices/tag", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity updateDeviceTag(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SetTagOpenApiVo setTagOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/devices/upgrade-file : Upload device firmware + * Upload device firmware for manually upgrade.<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Access<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39021 - Invalid file for upgrading.<br/>-39022 - This file size is too large. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param file Upload a file in request body. (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Upload device firmware", nickname = "uploadUpgradeFile", notes = "Upload device firmware for manually upgrade.

The interface requires one of the permissions:
Site Manual Firmware Upgrade Access

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39021 - Invalid file for upgrading.
-39022 - This file size is too large.", response = OperationResponseFile.class, tags={ "Omada/Device","Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseFile.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/devices/upgrade-file", + produces = "*/*", + consumes = "multipart/form-data", + method = RequestMethod.POST) + ResponseEntity uploadUpgradeFile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Upload a file in request body.") @RequestParam("file") MultipartFile file); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaFirmwareApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaFirmwareApi.java new file mode 100644 index 0000000..4ced963 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaFirmwareApi.java @@ -0,0 +1,505 @@ +package org.wfc.omada.api.device; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.device.model.AutoCheckUpgradeCreateInfo; +import org.wfc.omada.api.device.model.InlineObject; +import org.wfc.omada.api.device.model.ModelFwReleaseNoteReqInfo; +import org.wfc.omada.api.device.model.ModelUpgradeInfo; +import org.wfc.omada.api.device.model.ModelUpgradeSiteReqInfo; +import org.wfc.omada.api.device.model.OperationResponseCreateAutoCheckResInfo; +import org.wfc.omada.api.device.model.OperationResponseCreateUpgradePlanResinfo; +import org.wfc.omada.api.device.model.OperationResponseCriticalModelNum; +import org.wfc.omada.api.device.model.OperationResponseGridVoAutoCheckUpgradeInfo; +import org.wfc.omada.api.device.model.OperationResponseGridVoFirmwareInfo; +import org.wfc.omada.api.device.model.OperationResponseGridVoPlanUpgradeInfo; +import org.wfc.omada.api.device.model.OperationResponseGridVoPlanUpgradeModelList; +import org.wfc.omada.api.device.model.OperationResponseGridVoUpgradeFailedDeviceInfo; +import org.wfc.omada.api.device.model.OperationResponseGridVoUpgradeLogOpenApiInfo; +import org.wfc.omada.api.device.model.OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo; +import org.wfc.omada.api.device.model.OperationResponseModelFwOemReleaseNoteInfo; +import org.wfc.omada.api.device.model.OperationResponseModelUpgradeSiteInfo; +import org.wfc.omada.api.device.model.OperationResponsePlanUpgradeModelInfo; +import org.wfc.omada.api.device.model.OperationResponseUpgradeSettingTryBeta; +import org.wfc.omada.api.device.model.OperationResponseUpgradeSiteModelInfo; +import org.wfc.omada.api.device.model.OperationResponseUploadFirmwareResInfo; +import org.wfc.omada.api.device.model.OperationResponseWithoutResult; +import org.wfc.omada.api.device.model.PlanFirmwareUpgradeCreateInfo; +import org.wfc.omada.api.device.model.PlanUpgradeCreateInfo; +import org.wfc.omada.api.device.model.PlanUpgradeEditInfo; +import org.wfc.omada.api.device.model.RollbackCreateInfo; +import org.wfc.omada.api.device.model.UpgradeSettingTryBeta; +import org.wfc.omada.api.device.model.UpgradeSiteModelReqInfo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.List; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:16.669+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaFirmware", description = "the OmadaFirmware API") +@FeignClient(name="OmadaFirmwareApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaFirmwareApi { + + /** + * POST /openapi/v1/{omadacId}/upgrade/autoCheck : Create autocheck upgrade plan + * Create autocheck upgrade plan<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30100 - Please select at least one site.<br/>-7131 - Controller ID not exist. + * + * @param omadacId Omada ID (required) + * @param autoCheckUpgradeCreateInfo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create autocheck upgrade plan", nickname = "createAutoCheckUpgrade", notes = "Create autocheck upgrade plan

The interface requires one of the permissions:
Site Manual Firmware Upgrade Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30100 - Please select at least one site.
-7131 - Controller ID not exist.", response = OperationResponseCreateAutoCheckResInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCreateAutoCheckResInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/autoCheck", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createAutoCheckUpgrade(@ApiParam(value = "" ) @Valid @RequestBody(required = false) AutoCheckUpgradeCreateInfo autoCheckUpgradeCreateInfo); + + + /** + * POST /openapi/v1/{omadacId}/firmwares/{firmwareId}/upgrade/plan : Create firmware upgrade plan based on manually uploaded firmware + * Create an upgrade plan based on manually uploaded firmware<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30100 - Please select at least one site.<br/>-39021 - Invalid file for upgrading.<br/>-7131 - Controller ID not exist. + * + * @param omadacId Omada ID (required) + * @param firmwareId Firmware ID (required) + * @param planFirmwareUpgradeCreateInfo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create firmware upgrade plan based on manually uploaded firmware", nickname = "createFirmwareUpgradePlan", notes = "Create an upgrade plan based on manually uploaded firmware

The interface requires one of the permissions:
Site Manual Firmware Upgrade Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30100 - Please select at least one site.
-39021 - Invalid file for upgrading.
-7131 - Controller ID not exist.", response = OperationResponseCreateUpgradePlanResinfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCreateUpgradePlanResinfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/firmwares/{firmwareId}/upgrade/plan", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createFirmwareUpgradePlan(@ApiParam(value = "Firmware ID",required=true) @PathVariable("firmwareId") String firmwareId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PlanFirmwareUpgradeCreateInfo planFirmwareUpgradeCreateInfo); + + + /** + * POST /openapi/v1/{omadacId}/logs/{upgradeLogId}/upgrade/overview/rollback : Create rollback plan + * You can choose a specific time to create a rollback plan<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-7131 - Controller ID not exist. + * + * @param omadacId Omada ID (required) + * @param upgradeLogId (required) + * @param rollbackCreateInfo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create rollback plan", nickname = "createRollback", notes = "You can choose a specific time to create a rollback plan

The interface requires one of the permissions:
Site Manual Firmware Upgrade Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-7131 - Controller ID not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/logs/{upgradeLogId}/upgrade/overview/rollback", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createRollback(@ApiParam(value = "",required=true) @PathVariable("upgradeLogId") String upgradeLogId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) RollbackCreateInfo rollbackCreateInfo); + + + /** + * POST /openapi/v1/{omadacId}/upgrade/overview/plans : Create firmware upgrade plan + * Create firmware upgrade plan.<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later. + * + * @param omadacId Omada ID (required) + * @param planUpgradeCreateInfo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create firmware upgrade plan", nickname = "createUpgradePlan", notes = "Create firmware upgrade plan.

The interface requires one of the permissions:
Site Manual Firmware Upgrade Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.", response = OperationResponseCreateUpgradePlanResinfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCreateUpgradePlanResinfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/overview/plans", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createUpgradePlan(@ApiParam(value = "" ) @Valid @RequestBody(required = false) PlanUpgradeCreateInfo planUpgradeCreateInfo); + + + /** + * DELETE /openapi/v1/{omadacId}/autoCheck/{autoCheckId}/upgrade : Delete autoCheck upgrade plan + * Delete autoCheck upgrade plan<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1005 - Operation forbidden.<br/>-30028 - The system is busy. Please try again later.<br/>-7131 - Controller ID not exist. + * + * @param omadacId Omada ID (required) + * @param autoCheckId Auto Check ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete autoCheck upgrade plan", nickname = "deleteAutoCheckUpgrade", notes = "Delete autoCheck upgrade plan

The interface requires one of the permissions:
Site Manual Firmware Upgrade Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1005 - Operation forbidden.
-30028 - The system is busy. Please try again later.
-7131 - Controller ID not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/autoCheck/{autoCheckId}/upgrade", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteAutoCheckUpgrade(@ApiParam(value = "Auto Check ID",required=true) @PathVariable("autoCheckId") String autoCheckId); + + + /** + * DELETE /openapi/v1/{omadacId}/firmwares/{firmwareId}/upgrade : Delete upgrade firmware + * Delete the manually uploaded firmware<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later. + * + * @param omadacId Omada ID (required) + * @param firmwareId Firmware ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete upgrade firmware", nickname = "deleteUpgradeFirmware", notes = "Delete the manually uploaded firmware

The interface requires one of the permissions:
Site Manual Firmware Upgrade Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/firmwares/{firmwareId}/upgrade", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteUpgradeFirmware(@ApiParam(value = "Firmware ID",required=true) @PathVariable("firmwareId") String firmwareId); + + + /** + * DELETE /openapi/v1/{omadacId}/plans/{planId}/upgrade/overview : Delete firmware upgrade plan + * Delete firmware upgrade plan.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later. + * + * @param omadacId Omada ID (required) + * @param planId Upgrade Plan ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete firmware upgrade plan", nickname = "deleteUpgradePlan", notes = "Delete firmware upgrade plan.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/plans/{planId}/upgrade/overview", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteUpgradePlan(@ApiParam(value = "Upgrade Plan ID",required=true) @PathVariable("planId") String planId); + + + /** + * PATCH /openapi/v1/{omadacId}/autoCheck/{autoCheckId}/upgrade : Edit autoCheck upgrade plan + * Edit autoCheck upgrade plan<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1005 - Operation forbidden. + * + * @param omadacId Omada ID (required) + * @param autoCheckId Auto Check ID (required) + * @param autoCheckUpgradeCreateInfo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Edit autoCheck upgrade plan", nickname = "editAutoCheckUpgrade", notes = "Edit autoCheck upgrade plan

The interface requires one of the permissions:
Site Manual Firmware Upgrade Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1005 - Operation forbidden.", response = OperationResponseWithoutResult.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/autoCheck/{autoCheckId}/upgrade", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity editAutoCheckUpgrade(@ApiParam(value = "Auto Check ID",required=true) @PathVariable("autoCheckId") String autoCheckId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) AutoCheckUpgradeCreateInfo autoCheckUpgradeCreateInfo); + + + /** + * PATCH /openapi/v1/{omadacId}/plans/{planId}/upgrade/overview : Edit firmware upgrade plan + * Edit firmware upgrade plan.<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1005 - Operation forbidden.<br/>-30028 - The system is busy. Please try again later. + * + * @param omadacId Omada ID (required) + * @param planId Upgrade Plan ID (required) + * @param planUpgradeEditInfo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Edit firmware upgrade plan", nickname = "editUpgradePlan", notes = "Edit firmware upgrade plan.

The interface requires one of the permissions:
Site Manual Firmware Upgrade Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1005 - Operation forbidden.
-30028 - The system is busy. Please try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/plans/{planId}/upgrade/overview", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity editUpgradePlan(@ApiParam(value = "Upgrade Plan ID",required=true) @PathVariable("planId") String planId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PlanUpgradeEditInfo planUpgradeEditInfo); + + + /** + * GET /openapi/v1/{omadacId}/upgrade/autoCheck : Get autocheck upgrade plan + * Paging to get autocheck upgrade plan<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-7131 - Controller ID not exist. + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsAutoCheckTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field upgrade (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get autocheck upgrade plan", nickname = "getGridAutoCheckUpgrade", notes = "Paging to get autocheck upgrade plan

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-7131 - Controller ID not exist.", response = OperationResponseGridVoAutoCheckUpgradeInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoAutoCheckUpgradeInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/autoCheck", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridAutoCheckUpgrade(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.autoCheckTime", required = false) String sortsAutoCheckTime,@ApiParam(value = "Fuzzy query parameters, support field upgrade") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/upgrade/firmwares : Get the uploaded firmware list + * Paging to get the uploaded firmware list<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsModelTypeInfo Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsUploadTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field upgrade (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the uploaded firmware list", nickname = "getGridFirmwareList", notes = "Paging to get the uploaded firmware list

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only", response = OperationResponseGridVoFirmwareInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoFirmwareInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/firmwares", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridFirmwareList(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.modelTypeInfo", required = false) String sortsModelTypeInfo,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.uploadTime", required = false) String sortsUploadTime,@ApiParam(value = "Fuzzy query parameters, support field upgrade") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/upgrade/overview/firmwares : Get firmware pool list + * Paging to get firmware pool list<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1501 - Omada Cloud Platform error. + * + * @param omadacId Omada ID (required) + * @param channel Channel should be a value as follows: 0: stable; 1: Release Candidate(RC); 2: Beta. (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsModelTypeInfo Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsReleaseTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get firmware pool list", nickname = "getGridFirmwarePoolList", notes = "Paging to get firmware pool list

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1501 - Omada Cloud Platform error.", response = OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/overview/firmwares", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridFirmwarePoolList(@NotNull @ApiParam(value = "Channel should be a value as follows: 0: stable; 1: Release Candidate(RC); 2: Beta.", required = true) @Valid @RequestParam(value = "channel", required = true) Integer channel,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.modelTypeInfo", required = false) String sortsModelTypeInfo,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.releaseTime", required = false) String sortsReleaseTime); + + + /** + * GET /openapi/v1/{omadacId}/upgrade/plan/models : Get the list of models + * Get the list of models on the Controller upgrade plan page.<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1501 - Omada Cloud Platform error. + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsModelTypeInfo Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field upgrade (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the list of models", nickname = "getGridPlanUpgradeModelList", notes = "Get the list of models on the Controller upgrade plan page.

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1501 - Omada Cloud Platform error.", response = OperationResponseGridVoPlanUpgradeModelList.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoPlanUpgradeModelList.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/plan/models", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridPlanUpgradeModelList(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.modelTypeInfo", required = false) String sortsModelTypeInfo,@ApiParam(value = "Fuzzy query parameters, support field upgrade") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * POST /openapi/v1/{omadacId}/upgrade/plan/sites : Get the sites of the selected model + * Paging to get the sites of the selected model<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only + * + * @param omadacId Omada ID (required) + * @param modelUpgradeSiteReqInfo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the sites of the selected model", nickname = "getGridPlanUpgradeSiteList", notes = "Paging to get the sites of the selected model

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only", response = OperationResponseModelUpgradeSiteInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseModelUpgradeSiteInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/plan/sites", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity getGridPlanUpgradeSiteList(@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModelUpgradeSiteReqInfo modelUpgradeSiteReqInfo); + + + /** + * GET /openapi/v1/{omadacId}/upgrade/overview/logs : Get firmware upgrade logs + * Paging to get firmware upgrade logs.<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-7131 - Controller ID not exist. + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsUpgradeTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsModelTypeInfo Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get firmware upgrade logs", nickname = "getGridUpgradeLogs", notes = "Paging to get firmware upgrade logs.

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-7131 - Controller ID not exist.", response = OperationResponseGridVoUpgradeLogOpenApiInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoUpgradeLogOpenApiInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/overview/logs", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridUpgradeLogs(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.upgradeTime", required = false) String sortsUpgradeTime,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.modelTypeInfo", required = false) String sortsModelTypeInfo); + + + /** + * GET /openapi/v1/{omadacId}/upgrade/overview/plans : Get firmware upgrade plans + * Paging to get firmware upgrade plans.<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsScheduledUpgradeTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsModelTypeInfo Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get firmware upgrade plans", nickname = "getGridUpgradePlans", notes = "Paging to get firmware upgrade plans.

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only", response = OperationResponseGridVoPlanUpgradeInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoPlanUpgradeInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/overview/plans", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridUpgradePlans(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.scheduledUpgradeTime", required = false) String sortsScheduledUpgradeTime,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.modelTypeInfo", required = false) String sortsModelTypeInfo); + + + /** + * POST /openapi/v1/{omadacId}/upgrade/models : Get the model of the specified site + * Get the model of the specified site. If no site is specified, it defaults to all authorized sites<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only + * + * @param omadacId Omada ID (required) + * @param upgradeSiteModelReqInfo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the model of the specified site", nickname = "getModelBySites", notes = "Get the model of the specified site. If no site is specified, it defaults to all authorized sites

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only", response = OperationResponseUpgradeSiteModelInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUpgradeSiteModelInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/models", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity getModelBySites(@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpgradeSiteModelReqInfo upgradeSiteModelReqInfo); + + + /** + * POST /openapi/v1/{omadacId}/upgrade/overview/firmwares/release-note : Get release notes information + * Get release notes information of a firmware series<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1501 - Omada Cloud Platform error. + * + * @param omadacId Omada ID (required) + * @param modelFwReleaseNoteReqInfo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get release notes information", nickname = "getModelFirmwareReleaseNotes", notes = "Get release notes information of a firmware series

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1501 - Omada Cloud Platform error.", response = OperationResponseModelFwOemReleaseNoteInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseModelFwOemReleaseNoteInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/overview/firmwares/release-note", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity getModelFirmwareReleaseNotes(@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModelFwReleaseNoteReqInfo modelFwReleaseNoteReqInfo); + + + /** + * POST /openapi/v1/{omadacId}/upgrade/plan/firmware : Get the upgradeable information of the selected model + * Get the upgradeable information of the selected model.<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1501 - Omada Cloud Platform error. + * + * @param omadacId Omada ID (required) + * @param modelUpgradeInfo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the upgradeable information of the selected model", nickname = "getPlanUpgradeModelInfo", notes = "Get the upgradeable information of the selected model.

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1501 - Omada Cloud Platform error.", response = OperationResponsePlanUpgradeModelInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponsePlanUpgradeModelInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/plan/firmware", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity getPlanUpgradeModelInfo(@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModelUpgradeInfo modelUpgradeInfo); + + + /** + * GET /openapi/v1/{omadacId}/upgrade/overview/try-beta : Get try-beta switch status + * You can get try-beta switch status<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get try-beta switch status", nickname = "getTryBetaStatus", notes = "You can get try-beta switch status

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only", response = OperationResponseUpgradeSettingTryBeta.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUpgradeSettingTryBeta.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/overview/try-beta", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getTryBetaStatus(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/logs/{upgradeLogId}/upgrade/overview/failed-devices : Get the list of devices which upgrade failed + * Get the list of devices which upgrade failed through upgrade logs<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only + * + * @param omadacId Omada ID (required) + * @param upgradeLogId (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the list of devices which upgrade failed", nickname = "getUpgradeFailedDeviceInfos", notes = "Get the list of devices which upgrade failed through upgrade logs

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only", response = OperationResponseGridVoUpgradeFailedDeviceInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoUpgradeFailedDeviceInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/logs/{upgradeLogId}/upgrade/overview/failed-devices", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getUpgradeFailedDeviceInfos(@ApiParam(value = "",required=true) @PathVariable("upgradeLogId") String upgradeLogId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/upgrade/overview/critical : Get the number of critical models + * You can get the number of critical models.<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1501 - Omada Cloud Platform error. + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the number of critical models", nickname = "getcriticalModelNum", notes = "You can get the number of critical models.

The interface requires one of the permissions:
Site Manual Firmware Upgrade View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1501 - Omada Cloud Platform error.", response = OperationResponseCriticalModelNum.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCriticalModelNum.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/overview/critical", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getcriticalModelNum(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * PATCH /openapi/v1/{omadacId}/upgrade/overview/try-beta : Modify try-beta switch status + * You can modify the try-beta switch status<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34556 - Try Beta switch cannot be turned off after being turned on. + * + * @param omadacId Omada ID (required) + * @param upgradeSettingTryBeta (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify try-beta switch status", nickname = "modifyTryBetaStatus", notes = "You can modify the try-beta switch status

The interface requires one of the permissions:
Site Manual Firmware Upgrade Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34556 - Try Beta switch cannot be turned off after being turned on.", response = OperationResponseWithoutResult.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/upgrade/overview/try-beta", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyTryBetaStatus(@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpgradeSettingTryBeta upgradeSettingTryBeta); + + + /** + * POST /openapi/v1/{omadacId}/files/upgrade/firmware : Upload upgrade firmware + * Upload upgrade firmware<br/><br/>The interface requires one of the permissions: <br/>Site Manual Firmware Upgrade Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30402 - Failed to upload the firmware file for upgrade.<br/>-39022 - This file size is too large.<br/>-39027 - Invalid upgrade file. + * + * @param omadacId Omada ID (required) + * @param description Description of upload firmware (required) + * @param showModel ShowModel of upload firmware, you can also get this field throw: \"Get the model of the specified site\" (required) + * @param compoundModel CompoundModel of upload firmware, you can also get this field throw: \"Get the model of the specified site\" (required) + * @param targetEnable Do the sites set up specified firmware, it should be a value as follows: true, false (required) + * @param targetSites Target sites ID, it exists when \"targetEnable\" is true (required) + * @param inlineObject (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Upload upgrade firmware", nickname = "uploadUpgradeFirmware", notes = "Upload upgrade firmware

The interface requires one of the permissions:
Site Manual Firmware Upgrade Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30402 - Failed to upload the firmware file for upgrade.
-39022 - This file size is too large.
-39027 - Invalid upgrade file.", response = OperationResponseUploadFirmwareResInfo.class, tags={ "Omada/Firmware","Firmware", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUploadFirmwareResInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/files/upgrade/firmware", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity uploadUpgradeFirmware(@NotNull @ApiParam(value = "Description of upload firmware", required = true) @Valid @RequestParam(value = "description", required = true) String description,@NotNull @ApiParam(value = "ShowModel of upload firmware, you can also get this field throw: \"Get the model of the specified site\"", required = true) @Valid @RequestParam(value = "showModel", required = true) String showModel,@NotNull @ApiParam(value = "CompoundModel of upload firmware, you can also get this field throw: \"Get the model of the specified site\"", required = true) @Valid @RequestParam(value = "compoundModel", required = true) String compoundModel,@NotNull @ApiParam(value = "Do the sites set up specified firmware, it should be a value as follows: true, false", required = true) @Valid @RequestParam(value = "targetEnable", required = true) Boolean targetEnable,@NotNull @ApiParam(value = "Target sites ID, it exists when \"targetEnable\" is true", required = true) @Valid @RequestParam(value = "targetSites", required = true) List targetSites,@ApiParam(value = "" ) @Valid @RequestBody(required = false) InlineObject inlineObject); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaGatewayApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaGatewayApi.java new file mode 100644 index 0000000..60b9fc9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaGatewayApi.java @@ -0,0 +1,188 @@ +package org.wfc.omada.api.device; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.device.model.GatewayGeneralConfig; +import org.wfc.omada.api.device.model.GatewayPortSettingConfig; +import org.wfc.omada.api.device.model.GatewayPortsConfigEntity; +import org.wfc.omada.api.device.model.OperationResponseGatewayGeneralConfig; +import org.wfc.omada.api.device.model.OperationResponseGatewayInfo; +import org.wfc.omada.api.device.model.OperationResponseGatewayPortSettingConfig; +import org.wfc.omada.api.device.model.OperationResponseGatewayPortsConfigEntity; +import org.wfc.omada.api.device.model.OperationResponseListGatewayWanStatusEntity; +import org.wfc.omada.api.device.model.OperationResponseListLanStatus; +import org.wfc.omada.api.device.model.OperationResponseOperationResponseWithoutResult; +import org.wfc.omada.api.device.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:16.669+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaGateway", description = "the OmadaGateway API") +@FeignClient(name="OmadaGatewayApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaGatewayApi { + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/gateways/{gatewayMac}/multi-ports/config : Batch modify gateway port config + * Batch modify gateway port config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39501 - This gateway does not exist.<br/>-39507 - Gateway mirroring port reaches max limit.<br/>-39706 - Please choose at least one port or LAG to be mirrored.<br/>-39718 - Mirrored ports contain invalid port. + * + * @param siteId Site ID (required) + * @param gatewayMac Gateway MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param omadacId (required) + * @param gatewayPortsConfigEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch modify gateway port config", nickname = "batchModifyPortConfig", notes = "Batch modify gateway port config

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39501 - This gateway does not exist.
-39507 - Gateway mirroring port reaches max limit.
-39706 - Please choose at least one port or LAG to be mirrored.
-39718 - Mirrored ports contain invalid port.", response = OperationResponseGatewayPortsConfigEntity.class, tags={ "Omada/Gateway","Gateway", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGatewayPortsConfigEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/gateways/{gatewayMac}/multi-ports/config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity batchModifyPortConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Gateway MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("gatewayMac") String gatewayMac,@ApiParam(value = "",required=true) @PathVariable("omadacId") String omadacId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) GatewayPortsConfigEntity gatewayPortsConfigEntity); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/gateways/{gatewayMac} : Get gateway info + * Get gateway info<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39501 - This gateway does not exist.<br/>-39507 - Gateway mirroring port reaches max limit.<br/>-39706 - Please choose at least one port or LAG to be mirrored.<br/>-39718 - Mirrored ports contain invalid port. + * + * @param siteId Site ID (required) + * @param gatewayMac Gateway MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param omadacId (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get gateway info", nickname = "getGatewayInfo", notes = "Get gateway info

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39501 - This gateway does not exist.
-39507 - Gateway mirroring port reaches max limit.
-39706 - Please choose at least one port or LAG to be mirrored.
-39718 - Mirrored ports contain invalid port.", response = OperationResponseGatewayInfo.class, tags={ "Omada/Gateway","Gateway", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGatewayInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/gateways/{gatewayMac}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGatewayInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Gateway MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("gatewayMac") String gatewayMac,@ApiParam(value = "",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/gateways/{gatewayMac}/general-config : Get gateway general config + * Get gateway general config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39501 - This gateway does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param gatewayMac Gateway MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get gateway general config", nickname = "getGeneralConfig1", notes = "Get gateway general config

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39501 - This gateway does not exist.", response = OperationResponseGatewayGeneralConfig.class, tags={ "Omada/Gateway","Gateway", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGatewayGeneralConfig.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/gateways/{gatewayMac}/general-config", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGeneralConfig1(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Gateway MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("gatewayMac") String gatewayMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/gateways/{gatewayMac}/lan-status : Get gateway lan status + * Get gateway lan status<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39501 - This gateway does not exist. + * + * @param siteId Site ID (required) + * @param gatewayMac Gateway MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param omadacId (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get gateway lan status", nickname = "getLanStatus", notes = "Get gateway lan status

The interface requires one of the permissions:
Global Dashboard Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39501 - This gateway does not exist.", response = OperationResponseListLanStatus.class, tags={ "Omada/Gateway","Gateway", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListLanStatus.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/gateways/{gatewayMac}/lan-status", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLanStatus(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Gateway MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("gatewayMac") String gatewayMac,@ApiParam(value = "",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/gateways/{gatewayMac}/wan-status : Get gateway wan status + * Get gateway wan status<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39501 - This gateway does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param gatewayMac Gateway MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get gateway wan status", nickname = "getWanStatus", notes = "Get gateway wan status

The interface requires one of the permissions:
Global Dashboard Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39501 - This gateway does not exist.", response = OperationResponseListGatewayWanStatusEntity.class, tags={ "Omada/Gateway","Gateway", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListGatewayWanStatusEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/gateways/{gatewayMac}/wan-status", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWanStatus(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Gateway MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("gatewayMac") String gatewayMac); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/gateways/{gatewayMac}/general-config : Modify gateway general config + * Modify gateway general config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39501 - This gateway does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param gatewayMac Gateway MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param gatewayGeneralConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify gateway general config", nickname = "modifyGeneralConfig1", notes = "Modify gateway general config

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39501 - This gateway does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Gateway","Gateway", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/gateways/{gatewayMac}/general-config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyGeneralConfig1(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Gateway MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("gatewayMac") String gatewayMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) GatewayGeneralConfig gatewayGeneralConfig); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/gateways/{gatewayMac}/ports/{port}/config : Modify gateway port config + * Modify gateway port config<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39501 - This gateway does not exist.<br/>-39507 - Gateway mirroring port reaches max limit.<br/>-39706 - Please choose at least one port or LAG to be mirrored.<br/>-39718 - Mirrored ports contain invalid port. + * + * @param siteId Site ID (required) + * @param gatewayMac Gateway MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param port Gateway port number (required) + * @param omadacId (required) + * @param gatewayPortSettingConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify gateway port config", nickname = "modifyPortConfig", notes = "Modify gateway port config

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39501 - This gateway does not exist.
-39507 - Gateway mirroring port reaches max limit.
-39706 - Please choose at least one port or LAG to be mirrored.
-39718 - Mirrored ports contain invalid port.", response = OperationResponseGatewayPortSettingConfig.class, tags={ "Omada/Gateway","Gateway", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGatewayPortSettingConfig.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/gateways/{gatewayMac}/ports/{port}/config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyPortConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Gateway MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("gatewayMac") String gatewayMac,@ApiParam(value = "Gateway port number",required=true) @PathVariable("port") String port,@ApiParam(value = "",required=true) @PathVariable("omadacId") String omadacId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) GatewayPortSettingConfig gatewayPortSettingConfig); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/gateways/{gatewayMac}/ports/{port}/restart : Recovery gateway poe port + * Recovery gateway poe port<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39501 - This gateway does not exist.<br/>-39508 - The current gateway model or firmware version does not support poe restart. + * + * @param siteId Site ID (required) + * @param gatewayMac Gateway MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param port Gateway port number (required) + * @param omadacId (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Recovery gateway poe port", nickname = "recoveryPoePort", notes = "Recovery gateway poe port

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39501 - This gateway does not exist.
-39508 - The current gateway model or firmware version does not support poe restart.", response = OperationResponseOperationResponseWithoutResult.class, tags={ "Omada/Gateway","Gateway", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseOperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/gateways/{gatewayMac}/ports/{port}/restart", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity recoveryPoePort(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Gateway MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("gatewayMac") String gatewayMac,@ApiParam(value = "Gateway port number",required=true) @PathVariable("port") String port,@ApiParam(value = "",required=true) @PathVariable("omadacId") String omadacId); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaSwitchApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaSwitchApi.java new file mode 100644 index 0000000..bab78a8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/OmadaSwitchApi.java @@ -0,0 +1,357 @@ +package org.wfc.omada.api.device; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.device.model.BatchProfileOverride; +import org.wfc.omada.api.device.model.EasyManagedSwitchGeneralConfig; +import org.wfc.omada.api.device.model.OperationResponseEasyManageOverviewInfo; +import org.wfc.omada.api.device.model.OperationResponseEasyManagedSwitchGeneralConfig; +import org.wfc.omada.api.device.model.OperationResponseListNetworkPortsAssociationVo; +import org.wfc.omada.api.device.model.OperationResponseSwitchGeneralConfig; +import org.wfc.omada.api.device.model.OperationResponseSwitchOverviewInfo; +import org.wfc.omada.api.device.model.OperationResponseWithoutResult; +import org.wfc.omada.api.device.model.PortNameList; +import org.wfc.omada.api.device.model.ProfileOverride; +import org.wfc.omada.api.device.model.SwitchGeneralConfig; +import org.wfc.omada.api.device.model.SwitchPortName; +import org.wfc.omada.api.device.model.SwitchPortPoe; +import org.wfc.omada.api.device.model.SwitchPortStatus; +import org.wfc.omada.api.device.model.SwitchPortsPoe; +import org.wfc.omada.api.device.model.SwitchPortsStatus; +import org.wfc.omada.api.device.model.SwitchProfileId; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:16.669+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaSwitch", description = "the OmadaSwitch API") +@FeignClient(name="OmadaSwitchApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaSwitchApi { + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac}/multi-ports/name : Batch set name for given ports + * Batch set name for given ports.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist.<br/>-39701 - This port does not exist<br/>-40205 - The device has been added to the stack group and related configurations cannot be modified. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param portNameList (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch set name for given ports", nickname = "batchSetNameForGivenPorts", notes = "Batch set name for given ports.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.
-39701 - This port does not exist
-40205 - The device has been added to the stack group and related configurations cannot be modified.", response = OperationResponseWithoutResult.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}/multi-ports/name", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity batchSetNameForGivenPorts(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PortNameList portNameList); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac}/multi-ports/poe-mode : Batch set poe mode for given ports + * Batch set poe mode for given ports. Please enable profile override first to use this interface.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist.<br/>-39701 - This port does not exist<br/>-39737 - Profile override setting is disabled.<br/>-39747 - This switch does not support PoE.<br/>-40205 - The device has been added to the stack group and related configurations cannot be modified. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param switchPortsPoe (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch set poe mode for given ports", nickname = "batchSetPoeModeForGivenPorts", notes = "Batch set poe mode for given ports. Please enable profile override first to use this interface.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.
-39701 - This port does not exist
-39737 - Profile override setting is disabled.
-39747 - This switch does not support PoE.
-40205 - The device has been added to the stack group and related configurations cannot be modified.", response = OperationResponseWithoutResult.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}/multi-ports/poe-mode", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity batchSetPoeModeForGivenPorts(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SwitchPortsPoe switchPortsPoe); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac}/multi-ports/status : Batch set status for given ports + * Batch set status for given ports. <br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist.<br/>-39701 - This port does not exist<br/>-39723 - Cannot choose mirroring or aggregating ports to batch modify.<br/>-40205 - The device has been added to the stack group and related configurations cannot be modified. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param switchPortsStatus (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch set status for given ports", nickname = "batchSetPortStatusForGivenPorts", notes = "Batch set status for given ports.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.
-39701 - This port does not exist
-39723 - Cannot choose mirroring or aggregating ports to batch modify.
-40205 - The device has been added to the stack group and related configurations cannot be modified.", response = OperationResponseWithoutResult.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}/multi-ports/status", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity batchSetPortStatusForGivenPorts(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SwitchPortsStatus switchPortsStatus); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac}/multi-ports/profile-override : Batch set profile-override for given ports + * Batch set profile-override for given ports.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist.<br/>-39701 - This port does not exist<br/>-40205 - The device has been added to the stack group and related configurations cannot be modified. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param batchProfileOverride (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch set profile-override for given ports", nickname = "batchSetProfileOverrideForGivenPorts", notes = "Batch set profile-override for given ports.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.
-39701 - This port does not exist
-40205 - The device has been added to the stack group and related configurations cannot be modified.", response = OperationResponseWithoutResult.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}/multi-ports/profile-override", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity batchSetProfileOverrideForGivenPorts(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchProfileOverride batchProfileOverride); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/switches/es/{switchMac}/general-config : Get switch general config (easy managed switch) + * Get easy managed switch general config.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39700 - Switch does not exist<br/>-39743 - The smart switch should use the corresponding path. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get switch general config (easy managed switch)", nickname = "getESGeneralConfig", notes = "Get easy managed switch general config.

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39700 - Switch does not exist
-39743 - The smart switch should use the corresponding path.", response = OperationResponseEasyManagedSwitchGeneralConfig.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseEasyManagedSwitchGeneralConfig.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/es/{switchMac}/general-config", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getESGeneralConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/switches/es/{switchMac} : Get switch info (easy managed switch) + * Get easy managed switch info.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist.<br/>-39743 - The smart switch should use the corresponding path. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get switch info (easy managed switch)", nickname = "getESInfo", notes = "Get easy managed switch info.

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.
-39743 - The smart switch should use the corresponding path.", response = OperationResponseEasyManageOverviewInfo.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseEasyManageOverviewInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/es/{switchMac}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getESInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/switches/es/{switchMac}/network-overview : Query easy managed switch valid network + * Query easy managed switch valid network.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39700 - Switch does not exist<br/>-39748 - This request is only for the Easy Managed Switch. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Query easy managed switch valid network", nickname = "getESNetworkOverview", notes = "Query easy managed switch valid network.

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39700 - Switch does not exist
-39748 - This request is only for the Easy Managed Switch.", response = OperationResponseListNetworkPortsAssociationVo.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListNetworkPortsAssociationVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/es/{switchMac}/network-overview", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getESNetworkOverview(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac}/general-config : Get switch general config + * Get switch general config.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39700 - Switch does not exist<br/>-39742 - The Easy Managed Switch should use the corresponding path. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get switch general config", nickname = "getGeneralConfig", notes = "Get switch general config.

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39700 - Switch does not exist
-39742 - The Easy Managed Switch should use the corresponding path.", response = OperationResponseSwitchGeneralConfig.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSwitchGeneralConfig.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}/general-config", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGeneralConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac} : Get switch info + * Get switch info.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist.<br/>-39742 - The Easy Managed Switch should use the corresponding path. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get switch info", nickname = "getSwitchInfo", notes = "Get switch info.

The interface requires one of the permissions:
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.
-39742 - The Easy Managed Switch should use the corresponding path.", response = OperationResponseSwitchOverviewInfo.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSwitchOverviewInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSwitchInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/switches/es/{switchMac}/general-config : Modify switch general config (easy managed switch) + * Modify easy managed switch general config.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39700 - Switch does not exist<br/>-39743 - The smart switch should use the corresponding path. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param easyManagedSwitchGeneralConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify switch general config (easy managed switch)", nickname = "modifyESGeneralConfig", notes = "Modify easy managed switch general config.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39700 - Switch does not exist
-39743 - The smart switch should use the corresponding path.", response = OperationResponseWithoutResult.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/es/{switchMac}/general-config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyESGeneralConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) EasyManagedSwitchGeneralConfig easyManagedSwitchGeneralConfig); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac}/general-config : Modify switch general config + * Modify switch general config.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39700 - Switch does not exist<br/>-39742 - The Easy Managed Switch should use the corresponding path.<br/>-40205 - The device has been added to the stack group and related configurations cannot be modified. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param switchGeneralConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify switch general config", nickname = "modifyGeneralConfig", notes = "Modify switch general config.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39700 - Switch does not exist
-39742 - The Easy Managed Switch should use the corresponding path.
-40205 - The device has been added to the stack group and related configurations cannot be modified.", response = OperationResponseWithoutResult.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}/general-config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyGeneralConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SwitchGeneralConfig switchGeneralConfig); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac}/ports/{port}/name : Set name for given port + * Set name for given port.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist.<br/>-39701 - This port does not exist<br/>-40205 - The device has been added to the stack group and related configurations cannot be modified. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param port Port ID (required) + * @param switchPortName (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Set name for given port", nickname = "setNameForGivenPort", notes = "Set name for given port.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.
-39701 - This port does not exist
-40205 - The device has been added to the stack group and related configurations cannot be modified.", response = OperationResponseWithoutResult.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}/ports/{port}/name", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity setNameForGivenPort(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac,@ApiParam(value = "Port ID",required=true) @PathVariable("port") String port,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SwitchPortName switchPortName); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac}/ports/{port}/poe-mode : Set poe mode for given port + * Set poe mode for given port. Please enable profile override first to use this interface.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist.<br/>-39701 - This port does not exist<br/>-39737 - Profile override setting is disabled.<br/>-39747 - This switch does not support PoE.<br/>-40205 - The device has been added to the stack group and related configurations cannot be modified. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param port (required) + * @param switchPortPoe (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Set poe mode for given port", nickname = "setPoeModeForGivenPort", notes = "Set poe mode for given port. Please enable profile override first to use this interface.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.
-39701 - This port does not exist
-39737 - Profile override setting is disabled.
-39747 - This switch does not support PoE.
-40205 - The device has been added to the stack group and related configurations cannot be modified.", response = OperationResponseWithoutResult.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}/ports/{port}/poe-mode", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity setPoeModeForGivenPort(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac,@ApiParam(value = "",required=true) @PathVariable("port") String port,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SwitchPortPoe switchPortPoe); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac}/ports/{port}/status : Set port status for given port + * Set port status for given port. <br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist.<br/>-39701 - This port does not exist<br/>-39738 - Cannot choose mirroring or aggregating port to modify status.<br/>-40205 - The device has been added to the stack group and related configurations cannot be modified. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param port Port (required) + * @param switchPortStatus (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Set port status for given port", nickname = "setPortModeForGivenPort", notes = "Set port status for given port.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.
-39701 - This port does not exist
-39738 - Cannot choose mirroring or aggregating port to modify status.
-40205 - The device has been added to the stack group and related configurations cannot be modified.", response = OperationResponseWithoutResult.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}/ports/{port}/status", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity setPortModeForGivenPort(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac,@ApiParam(value = "Port",required=true) @PathVariable("port") String port,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SwitchPortStatus switchPortStatus); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac}/ports/{port}/profile : Set profile for given port + * Set profile for given port.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33507 - This profile does not exist.<br/>-33558 - The profile does not support the Easy Managed Switch.<br/>-33564 - The number of VLANs has reached the limit of the Easy Managed Switch.<br/>-39050 - This device does not exist.<br/>-39701 - This port does not exist<br/>-40205 - The device has been added to the stack group and related configurations cannot be modified. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param port Port ID (required) + * @param switchProfileId (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Set profile for given port", nickname = "setProfileForGivenPort", notes = "Set profile for given port.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33507 - This profile does not exist.
-33558 - The profile does not support the Easy Managed Switch.
-33564 - The number of VLANs has reached the limit of the Easy Managed Switch.
-39050 - This device does not exist.
-39701 - This port does not exist
-40205 - The device has been added to the stack group and related configurations cannot be modified.", response = OperationResponseWithoutResult.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}/ports/{port}/profile", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity setProfileForGivenPort(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac,@ApiParam(value = "Port ID",required=true) @PathVariable("port") String port,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SwitchProfileId switchProfileId); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/switches/{switchMac}/ports/{port}/profile-override : Set profile-override for given port + * Set profile-override for given port.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-39050 - This device does not exist.<br/>-39701 - This port does not exist<br/>-40205 - The device has been added to the stack group and related configurations cannot be modified. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchMac Switch MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param port Port ID (required) + * @param profileOverride (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Set profile-override for given port", nickname = "setProfileOverrideForGivenPort", notes = "Set profile-override for given port.

The interface requires one of the permissions:
Site Device Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-39050 - This device does not exist.
-39701 - This port does not exist
-40205 - The device has been added to the stack group and related configurations cannot be modified.", response = OperationResponseWithoutResult.class, tags={ "Omada/Switch","Switch", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switches/{switchMac}/ports/{port}/profile-override", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity setProfileOverrideForGivenPort(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("switchMac") String switchMac,@ApiParam(value = "Port ID",required=true) @PathVariable("port") String port,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ProfileOverride profileOverride); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceMultiSiteOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceMultiSiteOpenApiVo.java new file mode 100644 index 0000000..ea666bd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceMultiSiteOpenApiVo.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ActiveDeviceMultiSiteOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ActiveDeviceMultiSiteOpenApiVo { + @JsonProperty("activePairList") + @Valid + private List activePairList = new ArrayList<>(); + + @JsonProperty("category") + private String category; + + public ActiveDeviceMultiSiteOpenApiVo activePairList(List activePairList) { + this.activePairList = activePairList; + return this; + } + + public ActiveDeviceMultiSiteOpenApiVo addActivePairListItem(ActivePairMultiSiteOpenApiDto activePairListItem) { + this.activePairList.add(activePairListItem); + return this; + } + + /** + * Get activePairList + * @return activePairList + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public List getActivePairList() { + return activePairList; + } + + public void setActivePairList(List activePairList) { + this.activePairList = activePairList; + } + + public ActiveDeviceMultiSiteOpenApiVo category(String category) { + this.category = category; + return this; + } + + /** + * It should be a value as follows: basic; ap; l2Switch; l3Switch; gateway + * @return category + */ + @ApiModelProperty(required = true, value = "It should be a value as follows: basic; ap; l2Switch; l3Switch; gateway") + @NotNull + + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActiveDeviceMultiSiteOpenApiVo activeDeviceMultiSiteOpenApiVo = (ActiveDeviceMultiSiteOpenApiVo) o; + return Objects.equals(this.activePairList, activeDeviceMultiSiteOpenApiVo.activePairList) && + Objects.equals(this.category, activeDeviceMultiSiteOpenApiVo.category); + } + + @Override + public int hashCode() { + return Objects.hash(activePairList, category); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActiveDeviceMultiSiteOpenApiVo {\n"); + + sb.append(" activePairList: ").append(toIndentedString(activePairList)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceOpenApiVo.java new file mode 100644 index 0000000..ed247c4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceOpenApiVo.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ActiveDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ActiveDeviceOpenApiVo { + @JsonProperty("activePairList") + @Valid + private List activePairList = new ArrayList<>(); + + @JsonProperty("category") + private String category; + + public ActiveDeviceOpenApiVo activePairList(List activePairList) { + this.activePairList = activePairList; + return this; + } + + public ActiveDeviceOpenApiVo addActivePairListItem(ActivePairOpenApiDto activePairListItem) { + this.activePairList.add(activePairListItem); + return this; + } + + /** + * Get activePairList + * @return activePairList + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public List getActivePairList() { + return activePairList; + } + + public void setActivePairList(List activePairList) { + this.activePairList = activePairList; + } + + public ActiveDeviceOpenApiVo category(String category) { + this.category = category; + return this; + } + + /** + * It should be a value as follows: basic; ap; l2Switch; l3Switch; gateway + * @return category + */ + @ApiModelProperty(required = true, value = "It should be a value as follows: basic; ap; l2Switch; l3Switch; gateway") + @NotNull + + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActiveDeviceOpenApiVo activeDeviceOpenApiVo = (ActiveDeviceOpenApiVo) o; + return Objects.equals(this.activePairList, activeDeviceOpenApiVo.activePairList) && + Objects.equals(this.category, activeDeviceOpenApiVo.category); + } + + @Override + public int hashCode() { + return Objects.hash(activePairList, category); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActiveDeviceOpenApiVo {\n"); + + sb.append(" activePairList: ").append(toIndentedString(activePairList)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceRespVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceRespVo.java new file mode 100644 index 0000000..27f8af2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceRespVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ActiveDeviceRespVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ActiveDeviceRespVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("status") + private Integer status; + + public ActiveDeviceRespVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Get mac + * @return mac + */ + @ApiModelProperty(value = "") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public ActiveDeviceRespVo status(Integer status) { + this.status = status; + return this; + } + + /** + * active device status(0: success;-2002: device already active;-2003: license not enough;-2011: license category not match device;) + * @return status + */ + @ApiModelProperty(value = "active device status(0: success;-2002: device already active;-2003: license not enough;-2011: license category not match device;)") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActiveDeviceRespVo activeDeviceRespVo = (ActiveDeviceRespVo) o; + return Objects.equals(this.mac, activeDeviceRespVo.mac) && + Objects.equals(this.status, activeDeviceRespVo.status); + } + + @Override + public int hashCode() { + return Objects.hash(mac, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActiveDeviceRespVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceSnOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceSnOpenApiVo.java new file mode 100644 index 0000000..36ad1ee --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceSnOpenApiVo.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ActiveDeviceSnOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ActiveDeviceSnOpenApiVo { + @JsonProperty("activePairList") + @Valid + private List activePairList = new ArrayList<>(); + + @JsonProperty("category") + private String category; + + public ActiveDeviceSnOpenApiVo activePairList(List activePairList) { + this.activePairList = activePairList; + return this; + } + + public ActiveDeviceSnOpenApiVo addActivePairListItem(ActivePairSnOpenApiDto activePairListItem) { + this.activePairList.add(activePairListItem); + return this; + } + + /** + * Get activePairList + * @return activePairList + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public List getActivePairList() { + return activePairList; + } + + public void setActivePairList(List activePairList) { + this.activePairList = activePairList; + } + + public ActiveDeviceSnOpenApiVo category(String category) { + this.category = category; + return this; + } + + /** + * It should be a value as follows: basic; ap; l2Switch; l3Switch; gateway + * @return category + */ + @ApiModelProperty(required = true, value = "It should be a value as follows: basic; ap; l2Switch; l3Switch; gateway") + @NotNull + + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActiveDeviceSnOpenApiVo activeDeviceSnOpenApiVo = (ActiveDeviceSnOpenApiVo) o; + return Objects.equals(this.activePairList, activeDeviceSnOpenApiVo.activePairList) && + Objects.equals(this.category, activeDeviceSnOpenApiVo.category); + } + + @Override + public int hashCode() { + return Objects.hash(activePairList, category); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActiveDeviceSnOpenApiVo {\n"); + + sb.append(" activePairList: ").append(toIndentedString(activePairList)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceSnRespVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceSnRespVo.java new file mode 100644 index 0000000..6b07368 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActiveDeviceSnRespVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ActiveDeviceSnRespVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ActiveDeviceSnRespVo { + @JsonProperty("sn") + private String sn; + + @JsonProperty("status") + private Integer status; + + public ActiveDeviceSnRespVo sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Get sn + * @return sn + */ + @ApiModelProperty(value = "") + + + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public ActiveDeviceSnRespVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Active device status should be a value as follows: 0: success; -1: failed; -2002: device already active; -2003: license not enough; -2011: license category not match device;) + * @return status + */ + @ApiModelProperty(value = "Active device status should be a value as follows: 0: success; -1: failed; -2002: device already active; -2003: license not enough; -2011: license category not match device;) ") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActiveDeviceSnRespVo activeDeviceSnRespVo = (ActiveDeviceSnRespVo) o; + return Objects.equals(this.sn, activeDeviceSnRespVo.sn) && + Objects.equals(this.status, activeDeviceSnRespVo.status); + } + + @Override + public int hashCode() { + return Objects.hash(sn, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActiveDeviceSnRespVo {\n"); + + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairMultiSiteOpenApiDto.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairMultiSiteOpenApiDto.java new file mode 100644 index 0000000..265dfd4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairMultiSiteOpenApiDto.java @@ -0,0 +1,154 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ActivePairMultiSiteOpenApiDto + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ActivePairMultiSiteOpenApiDto { + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("deviceMac") + private String deviceMac; + + @JsonProperty("licenseType") + private String licenseType; + + @JsonProperty("licenseId") + private String licenseId; + + public ActivePairMultiSiteOpenApiDto siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public ActivePairMultiSiteOpenApiDto deviceMac(String deviceMac) { + this.deviceMac = deviceMac; + return this; + } + + /** + * Device MAC address, like AA-BB-CC-DD-EE-FF + * @return deviceMac + */ + @ApiModelProperty(required = true, value = "Device MAC address, like AA-BB-CC-DD-EE-FF") + @NotNull + + + public String getDeviceMac() { + return deviceMac; + } + + public void setDeviceMac(String deviceMac) { + this.deviceMac = deviceMac; + } + + public ActivePairMultiSiteOpenApiDto licenseType(String licenseType) { + this.licenseType = licenseType; + return this; + } + + /** + * License type should be a value as follows: Cloud Based Controller(1year, 2years, 3years, 4years, 5years, others, trial); Local Controller(trial, permanent); + * @return licenseType + */ + @ApiModelProperty(required = true, value = "License type should be a value as follows: Cloud Based Controller(1year, 2years, 3years, 4years, 5years, others, trial); Local Controller(trial, permanent);") + @NotNull + + + public String getLicenseType() { + return licenseType; + } + + public void setLicenseType(String licenseType) { + this.licenseType = licenseType; + } + + public ActivePairMultiSiteOpenApiDto licenseId(String licenseId) { + this.licenseId = licenseId; + return this; + } + + /** + * License ID + * @return licenseId + */ + @ApiModelProperty(value = "License ID") + + + public String getLicenseId() { + return licenseId; + } + + public void setLicenseId(String licenseId) { + this.licenseId = licenseId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActivePairMultiSiteOpenApiDto activePairMultiSiteOpenApiDto = (ActivePairMultiSiteOpenApiDto) o; + return Objects.equals(this.siteId, activePairMultiSiteOpenApiDto.siteId) && + Objects.equals(this.deviceMac, activePairMultiSiteOpenApiDto.deviceMac) && + Objects.equals(this.licenseType, activePairMultiSiteOpenApiDto.licenseType) && + Objects.equals(this.licenseId, activePairMultiSiteOpenApiDto.licenseId); + } + + @Override + public int hashCode() { + return Objects.hash(siteId, deviceMac, licenseType, licenseId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActivePairMultiSiteOpenApiDto {\n"); + + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" deviceMac: ").append(toIndentedString(deviceMac)).append("\n"); + sb.append(" licenseType: ").append(toIndentedString(licenseType)).append("\n"); + sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairOpenApiDto.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairOpenApiDto.java new file mode 100644 index 0000000..cc3b8d7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairOpenApiDto.java @@ -0,0 +1,129 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ActivePairOpenApiDto + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ActivePairOpenApiDto { + @JsonProperty("deviceMac") + private String deviceMac; + + @JsonProperty("licenseType") + private String licenseType; + + @JsonProperty("licenseId") + private String licenseId; + + public ActivePairOpenApiDto deviceMac(String deviceMac) { + this.deviceMac = deviceMac; + return this; + } + + /** + * Device MAC address, like AA-BB-CC-DD-EE-FF + * @return deviceMac + */ + @ApiModelProperty(required = true, value = "Device MAC address, like AA-BB-CC-DD-EE-FF") + @NotNull + + + public String getDeviceMac() { + return deviceMac; + } + + public void setDeviceMac(String deviceMac) { + this.deviceMac = deviceMac; + } + + public ActivePairOpenApiDto licenseType(String licenseType) { + this.licenseType = licenseType; + return this; + } + + /** + * License type should be a value as follows: Cloud Based Controller(1year, 2years, 3years, 4years, 5years, others, trial); Local Controller(trial, permanent); + * @return licenseType + */ + @ApiModelProperty(required = true, value = "License type should be a value as follows: Cloud Based Controller(1year, 2years, 3years, 4years, 5years, others, trial); Local Controller(trial, permanent);") + @NotNull + + + public String getLicenseType() { + return licenseType; + } + + public void setLicenseType(String licenseType) { + this.licenseType = licenseType; + } + + public ActivePairOpenApiDto licenseId(String licenseId) { + this.licenseId = licenseId; + return this; + } + + /** + * License ID + * @return licenseId + */ + @ApiModelProperty(value = "License ID") + + + public String getLicenseId() { + return licenseId; + } + + public void setLicenseId(String licenseId) { + this.licenseId = licenseId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActivePairOpenApiDto activePairOpenApiDto = (ActivePairOpenApiDto) o; + return Objects.equals(this.deviceMac, activePairOpenApiDto.deviceMac) && + Objects.equals(this.licenseType, activePairOpenApiDto.licenseType) && + Objects.equals(this.licenseId, activePairOpenApiDto.licenseId); + } + + @Override + public int hashCode() { + return Objects.hash(deviceMac, licenseType, licenseId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActivePairOpenApiDto {\n"); + + sb.append(" deviceMac: ").append(toIndentedString(deviceMac)).append("\n"); + sb.append(" licenseType: ").append(toIndentedString(licenseType)).append("\n"); + sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairSnOpenApiDto.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairSnOpenApiDto.java new file mode 100644 index 0000000..d128c80 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ActivePairSnOpenApiDto.java @@ -0,0 +1,129 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ActivePairSnOpenApiDto + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ActivePairSnOpenApiDto { + @JsonProperty("sn") + private String sn; + + @JsonProperty("licenseType") + private String licenseType; + + @JsonProperty("licenseId") + private String licenseId; + + public ActivePairSnOpenApiDto sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Device serial number. It should contains 13 characters. + * @return sn + */ + @ApiModelProperty(required = true, value = "Device serial number. It should contains 13 characters.") + @NotNull + + + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public ActivePairSnOpenApiDto licenseType(String licenseType) { + this.licenseType = licenseType; + return this; + } + + /** + * License type should be a value as follows: 1year; 2years; 3years; 4years; 5years; others; trial + * @return licenseType + */ + @ApiModelProperty(required = true, value = "License type should be a value as follows: 1year; 2years; 3years; 4years; 5years; others; trial") + @NotNull + + + public String getLicenseType() { + return licenseType; + } + + public void setLicenseType(String licenseType) { + this.licenseType = licenseType; + } + + public ActivePairSnOpenApiDto licenseId(String licenseId) { + this.licenseId = licenseId; + return this; + } + + /** + * License ID + * @return licenseId + */ + @ApiModelProperty(value = "License ID") + + + public String getLicenseId() { + return licenseId; + } + + public void setLicenseId(String licenseId) { + this.licenseId = licenseId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActivePairSnOpenApiDto activePairSnOpenApiDto = (ActivePairSnOpenApiDto) o; + return Objects.equals(this.sn, activePairSnOpenApiDto.sn) && + Objects.equals(this.licenseType, activePairSnOpenApiDto.licenseType) && + Objects.equals(this.licenseId, activePairSnOpenApiDto.licenseId); + } + + @Override + public int hashCode() { + return Objects.hash(sn, licenseType, licenseId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActivePairSnOpenApiDto {\n"); + + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" licenseType: ").append(toIndentedString(licenseType)).append("\n"); + sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceBySnOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceBySnOpenApiVo.java new file mode 100644 index 0000000..7074a85 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceBySnOpenApiVo.java @@ -0,0 +1,154 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Add devices list + */ +@ApiModel(description = "Add devices list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class AddDeviceBySnOpenApiVo { + @JsonProperty("sn") + private String sn; + + @JsonProperty("name") + private String name; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + public AddDeviceBySnOpenApiVo sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Device serial number. It should contains 13 characters. + * @return sn + */ + @ApiModelProperty(value = "Device serial number. It should contains 13 characters.") + +@Pattern(regexp="^[A-Z0-9]{13}$") + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public AddDeviceBySnOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Device name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(value = "Device name should contain 1 to 128 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AddDeviceBySnOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * Device username. It should contain 1 to 128 characters. + * @return username + */ + @ApiModelProperty(value = "Device username. It should contain 1 to 128 characters.") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public AddDeviceBySnOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Device password. It should contain 1 to 128 characters. + * @return password + */ + @ApiModelProperty(value = "Device password. It should contain 1 to 128 characters.") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddDeviceBySnOpenApiVo addDeviceBySnOpenApiVo = (AddDeviceBySnOpenApiVo) o; + return Objects.equals(this.sn, addDeviceBySnOpenApiVo.sn) && + Objects.equals(this.name, addDeviceBySnOpenApiVo.name) && + Objects.equals(this.username, addDeviceBySnOpenApiVo.username) && + Objects.equals(this.password, addDeviceBySnOpenApiVo.password); + } + + @Override + public int hashCode() { + return Objects.hash(sn, name, username, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddDeviceBySnOpenApiVo {\n"); + + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceVo.java new file mode 100644 index 0000000..0fd7dc2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceVo.java @@ -0,0 +1,178 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Add devices list + */ +@ApiModel(description = "Add devices list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class AddDeviceVo { + @JsonProperty("sn") + private String sn; + + @JsonProperty("name") + private String name; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + @JsonProperty("deviceKey") + private String deviceKey; + + public AddDeviceVo sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Device serial number. It should contains 13 characters. + * @return sn + */ + @ApiModelProperty(value = "Device serial number. It should contains 13 characters.") + + + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public AddDeviceVo name(String name) { + this.name = name; + return this; + } + + /** + * Device name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(value = "Device name should contain 1 to 128 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AddDeviceVo username(String username) { + this.username = username; + return this; + } + + /** + * Device username. It should contain 1 to 64 characters. + * @return username + */ + @ApiModelProperty(value = "Device username. It should contain 1 to 64 characters.") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public AddDeviceVo password(String password) { + this.password = password; + return this; + } + + /** + * Device password. It should contain 1 to 64 characters. + * @return password + */ + @ApiModelProperty(value = "Device password. It should contain 1 to 64 characters.") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public AddDeviceVo deviceKey(String deviceKey) { + this.deviceKey = deviceKey; + return this; + } + + /** + * Get deviceKey + * @return deviceKey + */ + @ApiModelProperty(value = "") + + + public String getDeviceKey() { + return deviceKey; + } + + public void setDeviceKey(String deviceKey) { + this.deviceKey = deviceKey; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddDeviceVo addDeviceVo = (AddDeviceVo) o; + return Objects.equals(this.sn, addDeviceVo.sn) && + Objects.equals(this.name, addDeviceVo.name) && + Objects.equals(this.username, addDeviceVo.username) && + Objects.equals(this.password, addDeviceVo.password) && + Objects.equals(this.deviceKey, addDeviceVo.deviceKey); + } + + @Override + public int hashCode() { + return Objects.hash(sn, name, username, password, deviceKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddDeviceVo {\n"); + + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" deviceKey: ").append(toIndentedString(deviceKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceWithSiteBySnOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceWithSiteBySnOpenApiVo.java new file mode 100644 index 0000000..9238085 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AddDeviceWithSiteBySnOpenApiVo.java @@ -0,0 +1,179 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Add devices list + */ +@ApiModel(description = "Add devices list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class AddDeviceWithSiteBySnOpenApiVo { + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("sn") + private String sn; + + @JsonProperty("name") + private String name; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + public AddDeviceWithSiteBySnOpenApiVo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public AddDeviceWithSiteBySnOpenApiVo sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Device serial number. It should contains 13 characters. + * @return sn + */ + @ApiModelProperty(value = "Device serial number. It should contains 13 characters.") + +@Pattern(regexp="^[A-Z0-9]{13}$") + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public AddDeviceWithSiteBySnOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Device name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(value = "Device name should contain 1 to 128 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AddDeviceWithSiteBySnOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * Device username. It should contain 1 to 128 characters. + * @return username + */ + @ApiModelProperty(value = "Device username. It should contain 1 to 128 characters.") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public AddDeviceWithSiteBySnOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Device password. It should contain 1 to 128 characters. + * @return password + */ + @ApiModelProperty(value = "Device password. It should contain 1 to 128 characters.") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddDeviceWithSiteBySnOpenApiVo addDeviceWithSiteBySnOpenApiVo = (AddDeviceWithSiteBySnOpenApiVo) o; + return Objects.equals(this.siteId, addDeviceWithSiteBySnOpenApiVo.siteId) && + Objects.equals(this.sn, addDeviceWithSiteBySnOpenApiVo.sn) && + Objects.equals(this.name, addDeviceWithSiteBySnOpenApiVo.name) && + Objects.equals(this.username, addDeviceWithSiteBySnOpenApiVo.username) && + Objects.equals(this.password, addDeviceWithSiteBySnOpenApiVo.password); + } + + @Override + public int hashCode() { + return Objects.hash(siteId, sn, name, username, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddDeviceWithSiteBySnOpenApiVo {\n"); + + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AdoptDeviceRequest.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AdoptDeviceRequest.java new file mode 100644 index 0000000..3716a23 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AdoptDeviceRequest.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * AdoptDeviceRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class AdoptDeviceRequest { + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + public AdoptDeviceRequest username(String username) { + this.username = username; + return this; + } + + /** + * Adopt device username. It should contain 1 to 64 characters. + * @return username + */ + @ApiModelProperty(value = "Adopt device username. It should contain 1 to 64 characters.") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public AdoptDeviceRequest password(String password) { + this.password = password; + return this; + } + + /** + * Adopt device password. It should contain 1 to 64 characters. + * @return password + */ + @ApiModelProperty(value = "Adopt device password. It should contain 1 to 64 characters.") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AdoptDeviceRequest adoptDeviceRequest = (AdoptDeviceRequest) o; + return Objects.equals(this.username, adoptDeviceRequest.username) && + Objects.equals(this.password, adoptDeviceRequest.password); + } + + @Override + public int hashCode() { + return Objects.hash(username, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AdoptDeviceRequest {\n"); + + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AdoptResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AdoptResult.java new file mode 100644 index 0000000..b395fc1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AdoptResult.java @@ -0,0 +1,126 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * AdoptResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class AdoptResult { + @JsonProperty("deviceMac") + private String deviceMac; + + @JsonProperty("adoptErrorCode") + private Integer adoptErrorCode; + + @JsonProperty("adoptFailedType") + private Integer adoptFailedType; + + public AdoptResult deviceMac(String deviceMac) { + this.deviceMac = deviceMac; + return this; + } + + /** + * Device MAC + * @return deviceMac + */ + @ApiModelProperty(value = "Device MAC") + + + public String getDeviceMac() { + return deviceMac; + } + + public void setDeviceMac(String deviceMac) { + this.deviceMac = deviceMac; + } + + public AdoptResult adoptErrorCode(Integer adoptErrorCode) { + this.adoptErrorCode = adoptErrorCode; + return this; + } + + /** + * Adopt result should be a value as follows: 0: Adopt Device Success; -39002: Device adoption failed because the device does not respond to adopt commands; -39003: Failed to adopt the Device. The username or password is incorrect; -39004: Failed to adopt device; -39005: Failed to adopt this device because the device is not connected; -39329: Failed to link to the uplink AP. + * @return adoptErrorCode + */ + @ApiModelProperty(value = "Adopt result should be a value as follows: 0: Adopt Device Success; -39002: Device adoption failed because the device does not respond to adopt commands; -39003: Failed to adopt the Device. The username or password is incorrect; -39004: Failed to adopt device; -39005: Failed to adopt this device because the device is not connected; -39329: Failed to link to the uplink AP.") + + + public Integer getAdoptErrorCode() { + return adoptErrorCode; + } + + public void setAdoptErrorCode(Integer adoptErrorCode) { + this.adoptErrorCode = adoptErrorCode; + } + + public AdoptResult adoptFailedType(Integer adoptFailedType) { + this.adoptFailedType = adoptFailedType; + return this; + } + + /** + * Adopt failed type should be a value as follows: -1: No need print username or password;-2: Need print username or password. + * @return adoptFailedType + */ + @ApiModelProperty(value = "Adopt failed type should be a value as follows: -1: No need print username or password;-2: Need print username or password.") + + + public Integer getAdoptFailedType() { + return adoptFailedType; + } + + public void setAdoptFailedType(Integer adoptFailedType) { + this.adoptFailedType = adoptFailedType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AdoptResult adoptResult = (AdoptResult) o; + return Objects.equals(this.deviceMac, adoptResult.deviceMac) && + Objects.equals(this.adoptErrorCode, adoptResult.adoptErrorCode) && + Objects.equals(this.adoptFailedType, adoptResult.adoptFailedType); + } + + @Override + public int hashCode() { + return Objects.hash(deviceMac, adoptErrorCode, adoptFailedType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AdoptResult {\n"); + + sb.append(" deviceMac: ").append(toIndentedString(deviceMac)).append("\n"); + sb.append(" adoptErrorCode: ").append(toIndentedString(adoptErrorCode)).append("\n"); + sb.append(" adoptFailedType: ").append(toIndentedString(adoptFailedType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApAvailableChannelOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApAvailableChannelOpenApiVo.java new file mode 100644 index 0000000..b3d8dc4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApAvailableChannelOpenApiVo.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApAvailableChannelOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApAvailableChannelOpenApiVo { + @JsonProperty("radioId") + private Integer radioId; + + @JsonProperty("apChannelDetailList") + @Valid + private List apChannelDetailList = null; + + public ApAvailableChannelOpenApiVo radioId(Integer radioId) { + this.radioId = radioId; + return this; + } + + /** + * (Wireless) Radio ID should be a value as follows: 0: 2.4GHz; 1: 5GHz-1; 2: 5GHz-2; 3: 6GHz. + * @return radioId + */ + @ApiModelProperty(value = "(Wireless) Radio ID should be a value as follows: 0: 2.4GHz; 1: 5GHz-1; 2: 5GHz-2; 3: 6GHz.") + + + public Integer getRadioId() { + return radioId; + } + + public void setRadioId(Integer radioId) { + this.radioId = radioId; + } + + public ApAvailableChannelOpenApiVo apChannelDetailList(List apChannelDetailList) { + this.apChannelDetailList = apChannelDetailList; + return this; + } + + public ApAvailableChannelOpenApiVo addApChannelDetailListItem(ApChannelDetailOpenApiVo apChannelDetailListItem) { + if (this.apChannelDetailList == null) { + this.apChannelDetailList = new ArrayList<>(); + } + this.apChannelDetailList.add(apChannelDetailListItem); + return this; + } + + /** + * channels detail supported by device configuration. + * @return apChannelDetailList + */ + @ApiModelProperty(value = "channels detail supported by device configuration.") + + @Valid + + public List getApChannelDetailList() { + return apChannelDetailList; + } + + public void setApChannelDetailList(List apChannelDetailList) { + this.apChannelDetailList = apChannelDetailList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApAvailableChannelOpenApiVo apAvailableChannelOpenApiVo = (ApAvailableChannelOpenApiVo) o; + return Objects.equals(this.radioId, apAvailableChannelOpenApiVo.radioId) && + Objects.equals(this.apChannelDetailList, apAvailableChannelOpenApiVo.apChannelDetailList); + } + + @Override + public int hashCode() { + return Objects.hash(radioId, apChannelDetailList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApAvailableChannelOpenApiVo {\n"); + + sb.append(" radioId: ").append(toIndentedString(radioId)).append("\n"); + sb.append(" apChannelDetailList: ").append(toIndentedString(apChannelDetailList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApBridgeConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApBridgeConfig.java new file mode 100644 index 0000000..080c109 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApBridgeConfig.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ApBridgeConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApBridgeConfig { + @JsonProperty("bridgeSsidName") + private String bridgeSsidName; + + @JsonProperty("bridgeSsidPassword") + private String bridgeSsidPassword; + + public ApBridgeConfig bridgeSsidName(String bridgeSsidName) { + this.bridgeSsidName = bridgeSsidName; + return this; + } + + /** + * Bridge SSID name. It should contain 1 to 32 UTF-8 characters. + * @return bridgeSsidName + */ + @ApiModelProperty(required = true, value = "Bridge SSID name. It should contain 1 to 32 UTF-8 characters.") + @NotNull + + + public String getBridgeSsidName() { + return bridgeSsidName; + } + + public void setBridgeSsidName(String bridgeSsidName) { + this.bridgeSsidName = bridgeSsidName; + } + + public ApBridgeConfig bridgeSsidPassword(String bridgeSsidPassword) { + this.bridgeSsidPassword = bridgeSsidPassword; + return this; + } + + /** + * Bridge SSID password. It should contain 8-63 printable ASCII characters. + * @return bridgeSsidPassword + */ + @ApiModelProperty(required = true, value = "Bridge SSID password. It should contain 8-63 printable ASCII characters.") + @NotNull + + + public String getBridgeSsidPassword() { + return bridgeSsidPassword; + } + + public void setBridgeSsidPassword(String bridgeSsidPassword) { + this.bridgeSsidPassword = bridgeSsidPassword; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApBridgeConfig apBridgeConfig = (ApBridgeConfig) o; + return Objects.equals(this.bridgeSsidName, apBridgeConfig.bridgeSsidName) && + Objects.equals(this.bridgeSsidPassword, apBridgeConfig.bridgeSsidPassword); + } + + @Override + public int hashCode() { + return Objects.hash(bridgeSsidName, bridgeSsidPassword); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApBridgeConfig {\n"); + + sb.append(" bridgeSsidName: ").append(toIndentedString(bridgeSsidName)).append("\n"); + sb.append(" bridgeSsidPassword: ").append(toIndentedString(bridgeSsidPassword)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApChannelDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApChannelDetailOpenApiVo.java new file mode 100644 index 0000000..d3bb9e5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApChannelDetailOpenApiVo.java @@ -0,0 +1,140 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * channels detail supported by device configuration. + */ +@ApiModel(description = "channels detail supported by device configuration.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApChannelDetailOpenApiVo { + @JsonProperty("channel") + private Integer channel; + + @JsonProperty("freq") + private Integer freq; + + @JsonProperty("availableChannelWidthList") + @Valid + private List availableChannelWidthList = null; + + public ApChannelDetailOpenApiVo channel(Integer channel) { + this.channel = channel; + return this; + } + + /** + * channel value; For example, 1 in 1/2412MHz. + * @return channel + */ + @ApiModelProperty(value = "channel value; For example, 1 in 1/2412MHz.") + + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + public ApChannelDetailOpenApiVo freq(Integer freq) { + this.freq = freq; + return this; + } + + /** + * channel frequency; For example, 2412 in 1/2412MHz. + * @return freq + */ + @ApiModelProperty(value = "channel frequency; For example, 2412 in 1/2412MHz.") + + + public Integer getFreq() { + return freq; + } + + public void setFreq(Integer freq) { + this.freq = freq; + } + + public ApChannelDetailOpenApiVo availableChannelWidthList(List availableChannelWidthList) { + this.availableChannelWidthList = availableChannelWidthList; + return this; + } + + public ApChannelDetailOpenApiVo addAvailableChannelWidthListItem(Integer availableChannelWidthListItem) { + if (this.availableChannelWidthList == null) { + this.availableChannelWidthList = new ArrayList<>(); + } + this.availableChannelWidthList.add(availableChannelWidthListItem); + return this; + } + + /** + * Available bandwidth list for the channel configuration; For example: [20, 40, 80, 160, 240, 320]. + * @return availableChannelWidthList + */ + @ApiModelProperty(value = "Available bandwidth list for the channel configuration; For example: [20, 40, 80, 160, 240, 320].") + + + public List getAvailableChannelWidthList() { + return availableChannelWidthList; + } + + public void setAvailableChannelWidthList(List availableChannelWidthList) { + this.availableChannelWidthList = availableChannelWidthList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApChannelDetailOpenApiVo apChannelDetailOpenApiVo = (ApChannelDetailOpenApiVo) o; + return Objects.equals(this.channel, apChannelDetailOpenApiVo.channel) && + Objects.equals(this.freq, apChannelDetailOpenApiVo.freq) && + Objects.equals(this.availableChannelWidthList, apChannelDetailOpenApiVo.availableChannelWidthList); + } + + @Override + public int hashCode() { + return Objects.hash(channel, freq, availableChannelWidthList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApChannelDetailOpenApiVo {\n"); + + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" freq: ").append(toIndentedString(freq)).append("\n"); + sb.append(" availableChannelWidthList: ").append(toIndentedString(availableChannelWidthList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApDownLinkStatusVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApDownLinkStatusVo.java new file mode 100644 index 0000000..7844b2b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApDownLinkStatusVo.java @@ -0,0 +1,703 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Wired downlink device list + */ +@ApiModel(description = "Wired downlink device list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApDownLinkStatusVo { + @JsonProperty("port") + private String port; + + @JsonProperty("portType") + private Integer portType; + + @JsonProperty("duplex") + private Integer duplex; + + @JsonProperty("link") + private Integer link; + + @JsonProperty("speed") + private Integer speed; + + @JsonProperty("poeState") + private Integer poeState; + + @JsonProperty("voipState") + private Integer voipState; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("type") + private String type; + + @JsonProperty("deviceName") + private String deviceName; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + @JsonProperty("txPower") + private Double txPower; + + @JsonProperty("rxPower") + private Double rxPower; + + @JsonProperty("temp") + private Double temp; + + @JsonProperty("voltage") + private Double voltage; + + @JsonProperty("current") + private Double current; + + @JsonProperty("rxPkts") + private Long rxPkts; + + @JsonProperty("txPkts") + private Long txPkts; + + @JsonProperty("rx") + private Long rx; + + @JsonProperty("tx") + private Long tx; + + @JsonProperty("rxDropPkts") + private Long rxDropPkts; + + @JsonProperty("txDropPkts") + private Long txDropPkts; + + @JsonProperty("rxErrPkts") + private Long rxErrPkts; + + @JsonProperty("txErrPkts") + private Long txErrPkts; + + public ApDownLinkStatusVo port(String port) { + this.port = port; + return this; + } + + /** + * Get port + * @return port + */ + @ApiModelProperty(value = "") + + + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port; + } + + public ApDownLinkStatusVo portType(Integer portType) { + this.portType = portType; + return this; + } + + /** + * Get portType + * @return portType + */ + @ApiModelProperty(value = "") + + + public Integer getPortType() { + return portType; + } + + public void setPortType(Integer portType) { + this.portType = portType; + } + + public ApDownLinkStatusVo duplex(Integer duplex) { + this.duplex = duplex; + return this; + } + + /** + * Get duplex + * @return duplex + */ + @ApiModelProperty(value = "") + + + public Integer getDuplex() { + return duplex; + } + + public void setDuplex(Integer duplex) { + this.duplex = duplex; + } + + public ApDownLinkStatusVo link(Integer link) { + this.link = link; + return this; + } + + /** + * Get link + * @return link + */ + @ApiModelProperty(value = "") + + + public Integer getLink() { + return link; + } + + public void setLink(Integer link) { + this.link = link; + } + + public ApDownLinkStatusVo speed(Integer speed) { + this.speed = speed; + return this; + } + + /** + * Get speed + * @return speed + */ + @ApiModelProperty(value = "") + + + public Integer getSpeed() { + return speed; + } + + public void setSpeed(Integer speed) { + this.speed = speed; + } + + public ApDownLinkStatusVo poeState(Integer poeState) { + this.poeState = poeState; + return this; + } + + /** + * Get poeState + * @return poeState + */ + @ApiModelProperty(value = "") + + + public Integer getPoeState() { + return poeState; + } + + public void setPoeState(Integer poeState) { + this.poeState = poeState; + } + + public ApDownLinkStatusVo voipState(Integer voipState) { + this.voipState = voipState; + return this; + } + + /** + * Get voipState + * @return voipState + */ + @ApiModelProperty(value = "") + + + public Integer getVoipState() { + return voipState; + } + + public void setVoipState(Integer voipState) { + this.voipState = voipState; + } + + public ApDownLinkStatusVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Get mac + * @return mac + */ + @ApiModelProperty(value = "") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public ApDownLinkStatusVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Get ip + * @return ip + */ + @ApiModelProperty(value = "") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public ApDownLinkStatusVo type(String type) { + this.type = type; + return this; + } + + /** + * Get type + * @return type + */ + @ApiModelProperty(value = "") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ApDownLinkStatusVo deviceName(String deviceName) { + this.deviceName = deviceName; + return this; + } + + /** + * Get deviceName + * @return deviceName + */ + @ApiModelProperty(value = "") + + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public ApDownLinkStatusVo model(String model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + */ + @ApiModelProperty(value = "") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public ApDownLinkStatusVo modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Get modelVersion + * @return modelVersion + */ + @ApiModelProperty(value = "") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public ApDownLinkStatusVo txPower(Double txPower) { + this.txPower = txPower; + return this; + } + + /** + * Get txPower + * @return txPower + */ + @ApiModelProperty(value = "") + + + public Double getTxPower() { + return txPower; + } + + public void setTxPower(Double txPower) { + this.txPower = txPower; + } + + public ApDownLinkStatusVo rxPower(Double rxPower) { + this.rxPower = rxPower; + return this; + } + + /** + * Get rxPower + * @return rxPower + */ + @ApiModelProperty(value = "") + + + public Double getRxPower() { + return rxPower; + } + + public void setRxPower(Double rxPower) { + this.rxPower = rxPower; + } + + public ApDownLinkStatusVo temp(Double temp) { + this.temp = temp; + return this; + } + + /** + * Get temp + * @return temp + */ + @ApiModelProperty(value = "") + + + public Double getTemp() { + return temp; + } + + public void setTemp(Double temp) { + this.temp = temp; + } + + public ApDownLinkStatusVo voltage(Double voltage) { + this.voltage = voltage; + return this; + } + + /** + * Get voltage + * @return voltage + */ + @ApiModelProperty(value = "") + + + public Double getVoltage() { + return voltage; + } + + public void setVoltage(Double voltage) { + this.voltage = voltage; + } + + public ApDownLinkStatusVo current(Double current) { + this.current = current; + return this; + } + + /** + * Get current + * @return current + */ + @ApiModelProperty(value = "") + + + public Double getCurrent() { + return current; + } + + public void setCurrent(Double current) { + this.current = current; + } + + public ApDownLinkStatusVo rxPkts(Long rxPkts) { + this.rxPkts = rxPkts; + return this; + } + + /** + * Get rxPkts + * @return rxPkts + */ + @ApiModelProperty(value = "") + + + public Long getRxPkts() { + return rxPkts; + } + + public void setRxPkts(Long rxPkts) { + this.rxPkts = rxPkts; + } + + public ApDownLinkStatusVo txPkts(Long txPkts) { + this.txPkts = txPkts; + return this; + } + + /** + * Get txPkts + * @return txPkts + */ + @ApiModelProperty(value = "") + + + public Long getTxPkts() { + return txPkts; + } + + public void setTxPkts(Long txPkts) { + this.txPkts = txPkts; + } + + public ApDownLinkStatusVo rx(Long rx) { + this.rx = rx; + return this; + } + + /** + * Get rx + * @return rx + */ + @ApiModelProperty(value = "") + + + public Long getRx() { + return rx; + } + + public void setRx(Long rx) { + this.rx = rx; + } + + public ApDownLinkStatusVo tx(Long tx) { + this.tx = tx; + return this; + } + + /** + * Get tx + * @return tx + */ + @ApiModelProperty(value = "") + + + public Long getTx() { + return tx; + } + + public void setTx(Long tx) { + this.tx = tx; + } + + public ApDownLinkStatusVo rxDropPkts(Long rxDropPkts) { + this.rxDropPkts = rxDropPkts; + return this; + } + + /** + * Get rxDropPkts + * @return rxDropPkts + */ + @ApiModelProperty(value = "") + + + public Long getRxDropPkts() { + return rxDropPkts; + } + + public void setRxDropPkts(Long rxDropPkts) { + this.rxDropPkts = rxDropPkts; + } + + public ApDownLinkStatusVo txDropPkts(Long txDropPkts) { + this.txDropPkts = txDropPkts; + return this; + } + + /** + * Get txDropPkts + * @return txDropPkts + */ + @ApiModelProperty(value = "") + + + public Long getTxDropPkts() { + return txDropPkts; + } + + public void setTxDropPkts(Long txDropPkts) { + this.txDropPkts = txDropPkts; + } + + public ApDownLinkStatusVo rxErrPkts(Long rxErrPkts) { + this.rxErrPkts = rxErrPkts; + return this; + } + + /** + * Get rxErrPkts + * @return rxErrPkts + */ + @ApiModelProperty(value = "") + + + public Long getRxErrPkts() { + return rxErrPkts; + } + + public void setRxErrPkts(Long rxErrPkts) { + this.rxErrPkts = rxErrPkts; + } + + public ApDownLinkStatusVo txErrPkts(Long txErrPkts) { + this.txErrPkts = txErrPkts; + return this; + } + + /** + * Get txErrPkts + * @return txErrPkts + */ + @ApiModelProperty(value = "") + + + public Long getTxErrPkts() { + return txErrPkts; + } + + public void setTxErrPkts(Long txErrPkts) { + this.txErrPkts = txErrPkts; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApDownLinkStatusVo apDownLinkStatusVo = (ApDownLinkStatusVo) o; + return Objects.equals(this.port, apDownLinkStatusVo.port) && + Objects.equals(this.portType, apDownLinkStatusVo.portType) && + Objects.equals(this.duplex, apDownLinkStatusVo.duplex) && + Objects.equals(this.link, apDownLinkStatusVo.link) && + Objects.equals(this.speed, apDownLinkStatusVo.speed) && + Objects.equals(this.poeState, apDownLinkStatusVo.poeState) && + Objects.equals(this.voipState, apDownLinkStatusVo.voipState) && + Objects.equals(this.mac, apDownLinkStatusVo.mac) && + Objects.equals(this.ip, apDownLinkStatusVo.ip) && + Objects.equals(this.type, apDownLinkStatusVo.type) && + Objects.equals(this.deviceName, apDownLinkStatusVo.deviceName) && + Objects.equals(this.model, apDownLinkStatusVo.model) && + Objects.equals(this.modelVersion, apDownLinkStatusVo.modelVersion) && + Objects.equals(this.txPower, apDownLinkStatusVo.txPower) && + Objects.equals(this.rxPower, apDownLinkStatusVo.rxPower) && + Objects.equals(this.temp, apDownLinkStatusVo.temp) && + Objects.equals(this.voltage, apDownLinkStatusVo.voltage) && + Objects.equals(this.current, apDownLinkStatusVo.current) && + Objects.equals(this.rxPkts, apDownLinkStatusVo.rxPkts) && + Objects.equals(this.txPkts, apDownLinkStatusVo.txPkts) && + Objects.equals(this.rx, apDownLinkStatusVo.rx) && + Objects.equals(this.tx, apDownLinkStatusVo.tx) && + Objects.equals(this.rxDropPkts, apDownLinkStatusVo.rxDropPkts) && + Objects.equals(this.txDropPkts, apDownLinkStatusVo.txDropPkts) && + Objects.equals(this.rxErrPkts, apDownLinkStatusVo.rxErrPkts) && + Objects.equals(this.txErrPkts, apDownLinkStatusVo.txErrPkts); + } + + @Override + public int hashCode() { + return Objects.hash(port, portType, duplex, link, speed, poeState, voipState, mac, ip, type, deviceName, model, modelVersion, txPower, rxPower, temp, voltage, current, rxPkts, txPkts, rx, tx, rxDropPkts, txDropPkts, rxErrPkts, txErrPkts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApDownLinkStatusVo {\n"); + + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" portType: ").append(toIndentedString(portType)).append("\n"); + sb.append(" duplex: ").append(toIndentedString(duplex)).append("\n"); + sb.append(" link: ").append(toIndentedString(link)).append("\n"); + sb.append(" speed: ").append(toIndentedString(speed)).append("\n"); + sb.append(" poeState: ").append(toIndentedString(poeState)).append("\n"); + sb.append(" voipState: ").append(toIndentedString(voipState)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" txPower: ").append(toIndentedString(txPower)).append("\n"); + sb.append(" rxPower: ").append(toIndentedString(rxPower)).append("\n"); + sb.append(" temp: ").append(toIndentedString(temp)).append("\n"); + sb.append(" voltage: ").append(toIndentedString(voltage)).append("\n"); + sb.append(" current: ").append(toIndentedString(current)).append("\n"); + sb.append(" rxPkts: ").append(toIndentedString(rxPkts)).append("\n"); + sb.append(" txPkts: ").append(toIndentedString(txPkts)).append("\n"); + sb.append(" rx: ").append(toIndentedString(rx)).append("\n"); + sb.append(" tx: ").append(toIndentedString(tx)).append("\n"); + sb.append(" rxDropPkts: ").append(toIndentedString(rxDropPkts)).append("\n"); + sb.append(" txDropPkts: ").append(toIndentedString(txDropPkts)).append("\n"); + sb.append(" rxErrPkts: ").append(toIndentedString(rxErrPkts)).append("\n"); + sb.append(" txErrPkts: ").append(toIndentedString(txErrPkts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApGeneralConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApGeneralConfig.java new file mode 100644 index 0000000..5521400 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApGeneralConfig.java @@ -0,0 +1,165 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApGeneralConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApGeneralConfig { + @JsonProperty("name") + private String name; + + @JsonProperty("ledSetting") + private Integer ledSetting; + + @JsonProperty("tagIds") + @Valid + private List tagIds = null; + + @JsonProperty("location") + private DeviceLocationDetailVo location; + + public ApGeneralConfig name(String name) { + this.name = name; + return this; + } + + /** + * Device name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(value = "Device name should contain 1 to 128 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ApGeneralConfig ledSetting(Integer ledSetting) { + this.ledSetting = ledSetting; + return this; + } + + /** + * Led setting should be a value as follows: 0:off; 1:on; 2:Use Site Settings + * @return ledSetting + */ + @ApiModelProperty(value = "Led setting should be a value as follows: 0:off; 1:on; 2:Use Site Settings") + + + public Integer getLedSetting() { + return ledSetting; + } + + public void setLedSetting(Integer ledSetting) { + this.ledSetting = ledSetting; + } + + public ApGeneralConfig tagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + public ApGeneralConfig addTagIdsItem(String tagIdsItem) { + if (this.tagIds == null) { + this.tagIds = new ArrayList<>(); + } + this.tagIds.add(tagIdsItem); + return this; + } + + /** + * Tag IDs + * @return tagIds + */ + @ApiModelProperty(value = "Tag IDs") + + + public List getTagIds() { + return tagIds; + } + + public void setTagIds(List tagIds) { + this.tagIds = tagIds; + } + + public ApGeneralConfig location(DeviceLocationDetailVo location) { + this.location = location; + return this; + } + + /** + * Get location + * @return location + */ + @ApiModelProperty(value = "") + + @Valid + + public DeviceLocationDetailVo getLocation() { + return location; + } + + public void setLocation(DeviceLocationDetailVo location) { + this.location = location; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApGeneralConfig apGeneralConfig = (ApGeneralConfig) o; + return Objects.equals(this.name, apGeneralConfig.name) && + Objects.equals(this.ledSetting, apGeneralConfig.ledSetting) && + Objects.equals(this.tagIds, apGeneralConfig.tagIds) && + Objects.equals(this.location, apGeneralConfig.location); + } + + @Override + public int hashCode() { + return Objects.hash(name, ledSetting, tagIds, location); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApGeneralConfig {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ledSetting: ").append(toIndentedString(ledSetting)).append("\n"); + sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); + sb.append(" location: ").append(toIndentedString(location)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApIpSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApIpSetting.java new file mode 100644 index 0000000..d467da9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApIpSetting.java @@ -0,0 +1,132 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ApIpSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApIpSetting { + @JsonProperty("mode") + private String mode; + + @JsonProperty("dhcpIpSetting") + private DhcpIpSettingEntity dhcpIpSetting; + + @JsonProperty("staticIpSetting") + private StaticIpSettingEntity staticIpSetting; + + public ApIpSetting mode(String mode) { + this.mode = mode; + return this; + } + + /** + * Mode should be a value as follows: Static; DHCP + * @return mode + */ + @ApiModelProperty(required = true, value = "Mode should be a value as follows: Static; DHCP") + @NotNull + +@Pattern(regexp="static|dhcp") + public String getMode() { + return mode; + } + + public void setMode(String mode) { + this.mode = mode; + } + + public ApIpSetting dhcpIpSetting(DhcpIpSettingEntity dhcpIpSetting) { + this.dhcpIpSetting = dhcpIpSetting; + return this; + } + + /** + * Get dhcpIpSetting + * @return dhcpIpSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpIpSettingEntity getDhcpIpSetting() { + return dhcpIpSetting; + } + + public void setDhcpIpSetting(DhcpIpSettingEntity dhcpIpSetting) { + this.dhcpIpSetting = dhcpIpSetting; + } + + public ApIpSetting staticIpSetting(StaticIpSettingEntity staticIpSetting) { + this.staticIpSetting = staticIpSetting; + return this; + } + + /** + * Get staticIpSetting + * @return staticIpSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public StaticIpSettingEntity getStaticIpSetting() { + return staticIpSetting; + } + + public void setStaticIpSetting(StaticIpSettingEntity staticIpSetting) { + this.staticIpSetting = staticIpSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApIpSetting apIpSetting = (ApIpSetting) o; + return Objects.equals(this.mode, apIpSetting.mode) && + Objects.equals(this.dhcpIpSetting, apIpSetting.dhcpIpSetting) && + Objects.equals(this.staticIpSetting, apIpSetting.staticIpSetting); + } + + @Override + public int hashCode() { + return Objects.hash(mode, dhcpIpSetting, staticIpSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApIpSetting {\n"); + + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" dhcpIpSetting: ").append(toIndentedString(dhcpIpSetting)).append("\n"); + sb.append(" staticIpSetting: ").append(toIndentedString(staticIpSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApLanTraffic.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApLanTraffic.java new file mode 100644 index 0000000..91adf5e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApLanTraffic.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * ApLanTraffic + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApLanTraffic { + @JsonProperty("lanTraffic") + private LanTraffic lanTraffic; + + public ApLanTraffic lanTraffic(LanTraffic lanTraffic) { + this.lanTraffic = lanTraffic; + return this; + } + + /** + * Get lanTraffic + * @return lanTraffic + */ + @ApiModelProperty(value = "") + + @Valid + + public LanTraffic getLanTraffic() { + return lanTraffic; + } + + public void setLanTraffic(LanTraffic lanTraffic) { + this.lanTraffic = lanTraffic; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApLanTraffic apLanTraffic = (ApLanTraffic) o; + return Objects.equals(this.lanTraffic, apLanTraffic.lanTraffic); + } + + @Override + public int hashCode() { + return Objects.hash(lanTraffic); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApLanTraffic {\n"); + + sb.append(" lanTraffic: ").append(toIndentedString(lanTraffic)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApOfdmaConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApOfdmaConfigOpenApiVo.java new file mode 100644 index 0000000..da360d3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApOfdmaConfigOpenApiVo.java @@ -0,0 +1,251 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ApOfdmaConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApOfdmaConfigOpenApiVo { + @JsonProperty("ofdmaEnable2g") + private Boolean ofdmaEnable2g; + + @JsonProperty("ofdmaEnable5g") + private Boolean ofdmaEnable5g; + + @JsonProperty("ofdmaEnable5g2") + private Boolean ofdmaEnable5g2; + + @JsonProperty("ofdmaEnable6g") + private Boolean ofdmaEnable6g; + + @JsonProperty("supportOfdma2g") + private Boolean supportOfdma2g; + + @JsonProperty("supportOfdma5g") + private Boolean supportOfdma5g; + + @JsonProperty("supportOfdma5g2") + private Boolean supportOfdma5g2; + + @JsonProperty("supportOfdma6g") + private Boolean supportOfdma6g; + + public ApOfdmaConfigOpenApiVo ofdmaEnable2g(Boolean ofdmaEnable2g) { + this.ofdmaEnable2g = ofdmaEnable2g; + return this; + } + + /** + * Advanced feature OFDMA 2G config status. True: enable, false: disable. + * @return ofdmaEnable2g + */ + @ApiModelProperty(value = "Advanced feature OFDMA 2G config status. True: enable, false: disable.") + + + public Boolean getOfdmaEnable2g() { + return ofdmaEnable2g; + } + + public void setOfdmaEnable2g(Boolean ofdmaEnable2g) { + this.ofdmaEnable2g = ofdmaEnable2g; + } + + public ApOfdmaConfigOpenApiVo ofdmaEnable5g(Boolean ofdmaEnable5g) { + this.ofdmaEnable5g = ofdmaEnable5g; + return this; + } + + /** + * Advanced feature OFDMA 5G config status. True: enable, false: disable. + * @return ofdmaEnable5g + */ + @ApiModelProperty(value = "Advanced feature OFDMA 5G config status. True: enable, false: disable.") + + + public Boolean getOfdmaEnable5g() { + return ofdmaEnable5g; + } + + public void setOfdmaEnable5g(Boolean ofdmaEnable5g) { + this.ofdmaEnable5g = ofdmaEnable5g; + } + + public ApOfdmaConfigOpenApiVo ofdmaEnable5g2(Boolean ofdmaEnable5g2) { + this.ofdmaEnable5g2 = ofdmaEnable5g2; + return this; + } + + /** + * Advanced feature OFDMA 5G2 config status. True: enable, false: disable. + * @return ofdmaEnable5g2 + */ + @ApiModelProperty(value = "Advanced feature OFDMA 5G2 config status. True: enable, false: disable.") + + + public Boolean getOfdmaEnable5g2() { + return ofdmaEnable5g2; + } + + public void setOfdmaEnable5g2(Boolean ofdmaEnable5g2) { + this.ofdmaEnable5g2 = ofdmaEnable5g2; + } + + public ApOfdmaConfigOpenApiVo ofdmaEnable6g(Boolean ofdmaEnable6g) { + this.ofdmaEnable6g = ofdmaEnable6g; + return this; + } + + /** + * Advanced feature OFDMA 6G config status. True: enable, false: disable. + * @return ofdmaEnable6g + */ + @ApiModelProperty(value = "Advanced feature OFDMA 6G config status. True: enable, false: disable.") + + + public Boolean getOfdmaEnable6g() { + return ofdmaEnable6g; + } + + public void setOfdmaEnable6g(Boolean ofdmaEnable6g) { + this.ofdmaEnable6g = ofdmaEnable6g; + } + + public ApOfdmaConfigOpenApiVo supportOfdma2g(Boolean supportOfdma2g) { + this.supportOfdma2g = supportOfdma2g; + return this; + } + + /** + * Indicates whether the device supports OFDMA 2G. True: support, false: unSupport. + * @return supportOfdma2g + */ + @ApiModelProperty(value = "Indicates whether the device supports OFDMA 2G. True: support, false: unSupport.") + + + public Boolean getSupportOfdma2g() { + return supportOfdma2g; + } + + public void setSupportOfdma2g(Boolean supportOfdma2g) { + this.supportOfdma2g = supportOfdma2g; + } + + public ApOfdmaConfigOpenApiVo supportOfdma5g(Boolean supportOfdma5g) { + this.supportOfdma5g = supportOfdma5g; + return this; + } + + /** + * Indicates whether the device supports OFDMA 5G. True: support, false: unSupport. + * @return supportOfdma5g + */ + @ApiModelProperty(value = "Indicates whether the device supports OFDMA 5G. True: support, false: unSupport.") + + + public Boolean getSupportOfdma5g() { + return supportOfdma5g; + } + + public void setSupportOfdma5g(Boolean supportOfdma5g) { + this.supportOfdma5g = supportOfdma5g; + } + + public ApOfdmaConfigOpenApiVo supportOfdma5g2(Boolean supportOfdma5g2) { + this.supportOfdma5g2 = supportOfdma5g2; + return this; + } + + /** + * Indicates whether the device supports OFDMA 5G2. True: support, false: unSupport. + * @return supportOfdma5g2 + */ + @ApiModelProperty(value = "Indicates whether the device supports OFDMA 5G2. True: support, false: unSupport.") + + + public Boolean getSupportOfdma5g2() { + return supportOfdma5g2; + } + + public void setSupportOfdma5g2(Boolean supportOfdma5g2) { + this.supportOfdma5g2 = supportOfdma5g2; + } + + public ApOfdmaConfigOpenApiVo supportOfdma6g(Boolean supportOfdma6g) { + this.supportOfdma6g = supportOfdma6g; + return this; + } + + /** + * Indicates whether the device supports OFDMA 6G. True: support, false: unSupport. + * @return supportOfdma6g + */ + @ApiModelProperty(value = "Indicates whether the device supports OFDMA 6G. True: support, false: unSupport.") + + + public Boolean getSupportOfdma6g() { + return supportOfdma6g; + } + + public void setSupportOfdma6g(Boolean supportOfdma6g) { + this.supportOfdma6g = supportOfdma6g; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApOfdmaConfigOpenApiVo apOfdmaConfigOpenApiVo = (ApOfdmaConfigOpenApiVo) o; + return Objects.equals(this.ofdmaEnable2g, apOfdmaConfigOpenApiVo.ofdmaEnable2g) && + Objects.equals(this.ofdmaEnable5g, apOfdmaConfigOpenApiVo.ofdmaEnable5g) && + Objects.equals(this.ofdmaEnable5g2, apOfdmaConfigOpenApiVo.ofdmaEnable5g2) && + Objects.equals(this.ofdmaEnable6g, apOfdmaConfigOpenApiVo.ofdmaEnable6g) && + Objects.equals(this.supportOfdma2g, apOfdmaConfigOpenApiVo.supportOfdma2g) && + Objects.equals(this.supportOfdma5g, apOfdmaConfigOpenApiVo.supportOfdma5g) && + Objects.equals(this.supportOfdma5g2, apOfdmaConfigOpenApiVo.supportOfdma5g2) && + Objects.equals(this.supportOfdma6g, apOfdmaConfigOpenApiVo.supportOfdma6g); + } + + @Override + public int hashCode() { + return Objects.hash(ofdmaEnable2g, ofdmaEnable5g, ofdmaEnable5g2, ofdmaEnable6g, supportOfdma2g, supportOfdma5g, supportOfdma5g2, supportOfdma6g); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApOfdmaConfigOpenApiVo {\n"); + + sb.append(" ofdmaEnable2g: ").append(toIndentedString(ofdmaEnable2g)).append("\n"); + sb.append(" ofdmaEnable5g: ").append(toIndentedString(ofdmaEnable5g)).append("\n"); + sb.append(" ofdmaEnable5g2: ").append(toIndentedString(ofdmaEnable5g2)).append("\n"); + sb.append(" ofdmaEnable6g: ").append(toIndentedString(ofdmaEnable6g)).append("\n"); + sb.append(" supportOfdma2g: ").append(toIndentedString(supportOfdma2g)).append("\n"); + sb.append(" supportOfdma5g: ").append(toIndentedString(supportOfdma5g)).append("\n"); + sb.append(" supportOfdma5g2: ").append(toIndentedString(supportOfdma5g2)).append("\n"); + sb.append(" supportOfdma6g: ").append(toIndentedString(supportOfdma6g)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApOverviewInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApOverviewInfo.java new file mode 100644 index 0000000..af2db84 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApOverviewInfo.java @@ -0,0 +1,364 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApOverviewInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApOverviewInfo { + @JsonProperty("type") + private String type; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("ipv6List") + @Valid + private List ipv6List = null; + + @JsonProperty("wlan group id") + private String wlanGroupId; + + @JsonProperty("wireless uplink info") + private ApWirelessUplink wirelessUplinkInfo; + + @JsonProperty("model") + private String model; + + @JsonProperty("firmwareVersion") + private String firmwareVersion; + + @JsonProperty("cpuUtil") + private Integer cpuUtil; + + @JsonProperty("memoryUtil") + private Integer memoryUtil; + + @JsonProperty("uptimeLong") + private Long uptimeLong; + + public ApOverviewInfo type(String type) { + this.type = type; + return this; + } + + /** + * Device type + * @return type + */ + @ApiModelProperty(value = "Device type") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ApOverviewInfo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC, e.g. 00-00-FF-FF-0C-E9 + * @return mac + */ + @ApiModelProperty(value = "Device MAC, e.g. 00-00-FF-FF-0C-E9") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public ApOverviewInfo name(String name) { + this.name = name; + return this; + } + + /** + * Device name + * @return name + */ + @ApiModelProperty(value = "Device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ApOverviewInfo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Device IP + * @return ip + */ + @ApiModelProperty(value = "Device IP") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public ApOverviewInfo ipv6List(List ipv6List) { + this.ipv6List = ipv6List; + return this; + } + + public ApOverviewInfo addIpv6ListItem(String ipv6ListItem) { + if (this.ipv6List == null) { + this.ipv6List = new ArrayList<>(); + } + this.ipv6List.add(ipv6ListItem); + return this; + } + + /** + * Device IPv6 + * @return ipv6List + */ + @ApiModelProperty(value = "Device IPv6") + + + public List getIpv6List() { + return ipv6List; + } + + public void setIpv6List(List ipv6List) { + this.ipv6List = ipv6List; + } + + public ApOverviewInfo wlanGroupId(String wlanGroupId) { + this.wlanGroupId = wlanGroupId; + return this; + } + + /** + * WLAN group ID + * @return wlanGroupId + */ + @ApiModelProperty(value = "WLAN group ID") + + + public String getWlanGroupId() { + return wlanGroupId; + } + + public void setWlanGroupId(String wlanGroupId) { + this.wlanGroupId = wlanGroupId; + } + + public ApOverviewInfo wirelessUplinkInfo(ApWirelessUplink wirelessUplinkInfo) { + this.wirelessUplinkInfo = wirelessUplinkInfo; + return this; + } + + /** + * Get wirelessUplinkInfo + * @return wirelessUplinkInfo + */ + @ApiModelProperty(value = "") + + @Valid + + public ApWirelessUplink getWirelessUplinkInfo() { + return wirelessUplinkInfo; + } + + public void setWirelessUplinkInfo(ApWirelessUplink wirelessUplinkInfo) { + this.wirelessUplinkInfo = wirelessUplinkInfo; + } + + public ApOverviewInfo model(String model) { + this.model = model; + return this; + } + + /** + * Device model + * @return model + */ + @ApiModelProperty(value = "Device model") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public ApOverviewInfo firmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + return this; + } + + /** + * Device firmware version + * @return firmwareVersion + */ + @ApiModelProperty(value = "Device firmware version") + + + public String getFirmwareVersion() { + return firmwareVersion; + } + + public void setFirmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + } + + public ApOverviewInfo cpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + return this; + } + + /** + * Device cpu util(like 1 means 1% cpu util) + * @return cpuUtil + */ + @ApiModelProperty(value = "Device cpu util(like 1 means 1% cpu util)") + + + public Integer getCpuUtil() { + return cpuUtil; + } + + public void setCpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + } + + public ApOverviewInfo memoryUtil(Integer memoryUtil) { + this.memoryUtil = memoryUtil; + return this; + } + + /** + * Device memory util(like 50 means 50% memory util) + * @return memoryUtil + */ + @ApiModelProperty(value = "Device memory util(like 50 means 50% memory util)") + + + public Integer getMemoryUtil() { + return memoryUtil; + } + + public void setMemoryUtil(Integer memoryUtil) { + this.memoryUtil = memoryUtil; + } + + public ApOverviewInfo uptimeLong(Long uptimeLong) { + this.uptimeLong = uptimeLong; + return this; + } + + /** + * Device uptime(unit:second) + * @return uptimeLong + */ + @ApiModelProperty(value = "Device uptime(unit:second)") + + + public Long getUptimeLong() { + return uptimeLong; + } + + public void setUptimeLong(Long uptimeLong) { + this.uptimeLong = uptimeLong; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApOverviewInfo apOverviewInfo = (ApOverviewInfo) o; + return Objects.equals(this.type, apOverviewInfo.type) && + Objects.equals(this.mac, apOverviewInfo.mac) && + Objects.equals(this.name, apOverviewInfo.name) && + Objects.equals(this.ip, apOverviewInfo.ip) && + Objects.equals(this.ipv6List, apOverviewInfo.ipv6List) && + Objects.equals(this.wlanGroupId, apOverviewInfo.wlanGroupId) && + Objects.equals(this.wirelessUplinkInfo, apOverviewInfo.wirelessUplinkInfo) && + Objects.equals(this.model, apOverviewInfo.model) && + Objects.equals(this.firmwareVersion, apOverviewInfo.firmwareVersion) && + Objects.equals(this.cpuUtil, apOverviewInfo.cpuUtil) && + Objects.equals(this.memoryUtil, apOverviewInfo.memoryUtil) && + Objects.equals(this.uptimeLong, apOverviewInfo.uptimeLong); + } + + @Override + public int hashCode() { + return Objects.hash(type, mac, name, ip, ipv6List, wlanGroupId, wirelessUplinkInfo, model, firmwareVersion, cpuUtil, memoryUtil, uptimeLong); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApOverviewInfo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" ipv6List: ").append(toIndentedString(ipv6List)).append("\n"); + sb.append(" wlanGroupId: ").append(toIndentedString(wlanGroupId)).append("\n"); + sb.append(" wirelessUplinkInfo: ").append(toIndentedString(wirelessUplinkInfo)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" firmwareVersion: ").append(toIndentedString(firmwareVersion)).append("\n"); + sb.append(" cpuUtil: ").append(toIndentedString(cpuUtil)).append("\n"); + sb.append(" memoryUtil: ").append(toIndentedString(memoryUtil)).append("\n"); + sb.append(" uptimeLong: ").append(toIndentedString(uptimeLong)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApPowerSavingConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApPowerSavingConfigOpenApiVo.java new file mode 100644 index 0000000..4b5caa8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApPowerSavingConfigOpenApiVo.java @@ -0,0 +1,288 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApPowerSavingConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApPowerSavingConfigOpenApiVo { + @JsonProperty("timeEnable") + private Boolean timeEnable; + + @JsonProperty("startTimeH") + private Integer startTimeH; + + @JsonProperty("startTimeM") + private Integer startTimeM; + + @JsonProperty("endTimeH") + private Integer endTimeH; + + @JsonProperty("endTimeM") + private Integer endTimeM; + + @JsonProperty("bandEnable") + private Boolean bandEnable; + + @JsonProperty("bands") + @Valid + private List bands = null; + + @JsonProperty("idleDuration") + private Integer idleDuration; + + @JsonProperty("supportPowerSaving") + private Boolean supportPowerSaving; + + public ApPowerSavingConfigOpenApiVo timeEnable(Boolean timeEnable) { + this.timeEnable = timeEnable; + return this; + } + + /** + * Power Saving trigger by time config status. True: enable, false: disable. + * @return timeEnable + */ + @ApiModelProperty(value = "Power Saving trigger by time config status. True: enable, false: disable.") + + + public Boolean getTimeEnable() { + return timeEnable; + } + + public void setTimeEnable(Boolean timeEnable) { + this.timeEnable = timeEnable; + } + + public ApPowerSavingConfigOpenApiVo startTimeH(Integer startTimeH) { + this.startTimeH = startTimeH; + return this; + } + + /** + * Start time of trigger by time(unit: hour); It should be within the range of 0–23. + * @return startTimeH + */ + @ApiModelProperty(value = "Start time of trigger by time(unit: hour); It should be within the range of 0–23.") + + + public Integer getStartTimeH() { + return startTimeH; + } + + public void setStartTimeH(Integer startTimeH) { + this.startTimeH = startTimeH; + } + + public ApPowerSavingConfigOpenApiVo startTimeM(Integer startTimeM) { + this.startTimeM = startTimeM; + return this; + } + + /** + * Start time of trigger by time(unit: minute); It should be within the range of 0–59. + * @return startTimeM + */ + @ApiModelProperty(value = "Start time of trigger by time(unit: minute); It should be within the range of 0–59.") + + + public Integer getStartTimeM() { + return startTimeM; + } + + public void setStartTimeM(Integer startTimeM) { + this.startTimeM = startTimeM; + } + + public ApPowerSavingConfigOpenApiVo endTimeH(Integer endTimeH) { + this.endTimeH = endTimeH; + return this; + } + + /** + * End time of trigger by time(unit: hour); It should be within the range of 0–23. + * @return endTimeH + */ + @ApiModelProperty(value = "End time of trigger by time(unit: hour); It should be within the range of 0–23.") + + + public Integer getEndTimeH() { + return endTimeH; + } + + public void setEndTimeH(Integer endTimeH) { + this.endTimeH = endTimeH; + } + + public ApPowerSavingConfigOpenApiVo endTimeM(Integer endTimeM) { + this.endTimeM = endTimeM; + return this; + } + + /** + * End time of trigger by time(unit: minute); It should be within the range of 0–59. + * @return endTimeM + */ + @ApiModelProperty(value = "End time of trigger by time(unit: minute); It should be within the range of 0–59.") + + + public Integer getEndTimeM() { + return endTimeM; + } + + public void setEndTimeM(Integer endTimeM) { + this.endTimeM = endTimeM; + } + + public ApPowerSavingConfigOpenApiVo bandEnable(Boolean bandEnable) { + this.bandEnable = bandEnable; + return this; + } + + /** + * Power Saving trigger by band config status. True: enable, false: disable. + * @return bandEnable + */ + @ApiModelProperty(value = "Power Saving trigger by band config status. True: enable, false: disable.") + + + public Boolean getBandEnable() { + return bandEnable; + } + + public void setBandEnable(Boolean bandEnable) { + this.bandEnable = bandEnable; + } + + public ApPowerSavingConfigOpenApiVo bands(List bands) { + this.bands = bands; + return this; + } + + public ApPowerSavingConfigOpenApiVo addBandsItem(Integer bandsItem) { + if (this.bands == null) { + this.bands = new ArrayList<>(); + } + this.bands.add(bandsItem); + return this; + } + + /** + * Select bands list config of trigger by band;It should be a value as follows: 0: 2.4GHz; 1: 5GHz; 2: 5G2Hz; 3: 6GHz. + * @return bands + */ + @ApiModelProperty(value = "Select bands list config of trigger by band;It should be a value as follows: 0: 2.4GHz; 1: 5GHz; 2: 5G2Hz; 3: 6GHz.") + + + public List getBands() { + return bands; + } + + public void setBands(List bands) { + this.bands = bands; + } + + public ApPowerSavingConfigOpenApiVo idleDuration(Integer idleDuration) { + this.idleDuration = idleDuration; + return this; + } + + /** + * Idle duration config of trigger by band. + * @return idleDuration + */ + @ApiModelProperty(value = "Idle duration config of trigger by band.") + + + public Integer getIdleDuration() { + return idleDuration; + } + + public void setIdleDuration(Integer idleDuration) { + this.idleDuration = idleDuration; + } + + public ApPowerSavingConfigOpenApiVo supportPowerSaving(Boolean supportPowerSaving) { + this.supportPowerSaving = supportPowerSaving; + return this; + } + + /** + * Indicates whether the device supports power saving. True: support, false: unSupport. + * @return supportPowerSaving + */ + @ApiModelProperty(value = "Indicates whether the device supports power saving. True: support, false: unSupport.") + + + public Boolean getSupportPowerSaving() { + return supportPowerSaving; + } + + public void setSupportPowerSaving(Boolean supportPowerSaving) { + this.supportPowerSaving = supportPowerSaving; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApPowerSavingConfigOpenApiVo apPowerSavingConfigOpenApiVo = (ApPowerSavingConfigOpenApiVo) o; + return Objects.equals(this.timeEnable, apPowerSavingConfigOpenApiVo.timeEnable) && + Objects.equals(this.startTimeH, apPowerSavingConfigOpenApiVo.startTimeH) && + Objects.equals(this.startTimeM, apPowerSavingConfigOpenApiVo.startTimeM) && + Objects.equals(this.endTimeH, apPowerSavingConfigOpenApiVo.endTimeH) && + Objects.equals(this.endTimeM, apPowerSavingConfigOpenApiVo.endTimeM) && + Objects.equals(this.bandEnable, apPowerSavingConfigOpenApiVo.bandEnable) && + Objects.equals(this.bands, apPowerSavingConfigOpenApiVo.bands) && + Objects.equals(this.idleDuration, apPowerSavingConfigOpenApiVo.idleDuration) && + Objects.equals(this.supportPowerSaving, apPowerSavingConfigOpenApiVo.supportPowerSaving); + } + + @Override + public int hashCode() { + return Objects.hash(timeEnable, startTimeH, startTimeM, endTimeH, endTimeM, bandEnable, bands, idleDuration, supportPowerSaving); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApPowerSavingConfigOpenApiVo {\n"); + + sb.append(" timeEnable: ").append(toIndentedString(timeEnable)).append("\n"); + sb.append(" startTimeH: ").append(toIndentedString(startTimeH)).append("\n"); + sb.append(" startTimeM: ").append(toIndentedString(startTimeM)).append("\n"); + sb.append(" endTimeH: ").append(toIndentedString(endTimeH)).append("\n"); + sb.append(" endTimeM: ").append(toIndentedString(endTimeM)).append("\n"); + sb.append(" bandEnable: ").append(toIndentedString(bandEnable)).append("\n"); + sb.append(" bands: ").append(toIndentedString(bands)).append("\n"); + sb.append(" idleDuration: ").append(toIndentedString(idleDuration)).append("\n"); + sb.append(" supportPowerSaving: ").append(toIndentedString(supportPowerSaving)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioChannel.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioChannel.java new file mode 100644 index 0000000..9d63d53 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioChannel.java @@ -0,0 +1,328 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Radio channel 6g + */ +@ApiModel(description = "Radio channel 6g") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApRadioChannel { + @JsonProperty("actualChannel") + private String actualChannel; + + @JsonProperty("maxTxRate") + private Integer maxTxRate; + + @JsonProperty("txPower") + private Integer txPower; + + @JsonProperty("region") + private Integer region; + + @JsonProperty("bandWidth") + private String bandWidth; + + @JsonProperty("rdMode") + private String rdMode; + + @JsonProperty("txUtil") + private Integer txUtil; + + @JsonProperty("rxUtil") + private Integer rxUtil; + + @JsonProperty("interUtil") + private Integer interUtil; + + @JsonProperty("busyUtil") + private Integer busyUtil; + + @JsonProperty("aiRoamingOffset") + private Integer aiRoamingOffset; + + public ApRadioChannel actualChannel(String actualChannel) { + this.actualChannel = actualChannel; + return this; + } + + /** + * Actual channel of the device + * @return actualChannel + */ + @ApiModelProperty(value = "Actual channel of the device") + + + public String getActualChannel() { + return actualChannel; + } + + public void setActualChannel(String actualChannel) { + this.actualChannel = actualChannel; + } + + public ApRadioChannel maxTxRate(Integer maxTxRate) { + this.maxTxRate = maxTxRate; + return this; + } + + /** + * TxRate of the device + * @return maxTxRate + */ + @ApiModelProperty(value = "TxRate of the device") + + + public Integer getMaxTxRate() { + return maxTxRate; + } + + public void setMaxTxRate(Integer maxTxRate) { + this.maxTxRate = maxTxRate; + } + + public ApRadioChannel txPower(Integer txPower) { + this.txPower = txPower; + return this; + } + + /** + * TxPower of the device + * @return txPower + */ + @ApiModelProperty(value = "TxPower of the device") + + + public Integer getTxPower() { + return txPower; + } + + public void setTxPower(Integer txPower) { + this.txPower = txPower; + } + + public ApRadioChannel region(Integer region) { + this.region = region; + return this; + } + + /** + * Region code of the device + * @return region + */ + @ApiModelProperty(value = "Region code of the device") + + + public Integer getRegion() { + return region; + } + + public void setRegion(Integer region) { + this.region = region; + } + + public ApRadioChannel bandWidth(String bandWidth) { + this.bandWidth = bandWidth; + return this; + } + + /** + * BandWidth of the device + * @return bandWidth + */ + @ApiModelProperty(value = "BandWidth of the device") + + + public String getBandWidth() { + return bandWidth; + } + + public void setBandWidth(String bandWidth) { + this.bandWidth = bandWidth; + } + + public ApRadioChannel rdMode(String rdMode) { + this.rdMode = rdMode; + return this; + } + + /** + * RdMode of the device + * @return rdMode + */ + @ApiModelProperty(value = "RdMode of the device") + + + public String getRdMode() { + return rdMode; + } + + public void setRdMode(String rdMode) { + this.rdMode = rdMode; + } + + public ApRadioChannel txUtil(Integer txUtil) { + this.txUtil = txUtil; + return this; + } + + /** + * TxUtil of the device, value range [0, 100]. + * @return txUtil + */ + @ApiModelProperty(value = "TxUtil of the device, value range [0, 100].") + + + public Integer getTxUtil() { + return txUtil; + } + + public void setTxUtil(Integer txUtil) { + this.txUtil = txUtil; + } + + public ApRadioChannel rxUtil(Integer rxUtil) { + this.rxUtil = rxUtil; + return this; + } + + /** + * RxUtil of the device, value range [0, 100]. + * @return rxUtil + */ + @ApiModelProperty(value = "RxUtil of the device, value range [0, 100].") + + + public Integer getRxUtil() { + return rxUtil; + } + + public void setRxUtil(Integer rxUtil) { + this.rxUtil = rxUtil; + } + + public ApRadioChannel interUtil(Integer interUtil) { + this.interUtil = interUtil; + return this; + } + + /** + * InterUtil of the device, value range [0, 100]. + * @return interUtil + */ + @ApiModelProperty(value = "InterUtil of the device, value range [0, 100].") + + + public Integer getInterUtil() { + return interUtil; + } + + public void setInterUtil(Integer interUtil) { + this.interUtil = interUtil; + } + + public ApRadioChannel busyUtil(Integer busyUtil) { + this.busyUtil = busyUtil; + return this; + } + + /** + * BusyUtil of the device(Support by MTK device), value range [0, 100]. + * @return busyUtil + */ + @ApiModelProperty(value = "BusyUtil of the device(Support by MTK device), value range [0, 100].") + + + public Integer getBusyUtil() { + return busyUtil; + } + + public void setBusyUtil(Integer busyUtil) { + this.busyUtil = busyUtil; + } + + public ApRadioChannel aiRoamingOffset(Integer aiRoamingOffset) { + this.aiRoamingOffset = aiRoamingOffset; + return this; + } + + /** + * AI Roaming offset of the device + * @return aiRoamingOffset + */ + @ApiModelProperty(value = "AI Roaming offset of the device") + + + public Integer getAiRoamingOffset() { + return aiRoamingOffset; + } + + public void setAiRoamingOffset(Integer aiRoamingOffset) { + this.aiRoamingOffset = aiRoamingOffset; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApRadioChannel apRadioChannel = (ApRadioChannel) o; + return Objects.equals(this.actualChannel, apRadioChannel.actualChannel) && + Objects.equals(this.maxTxRate, apRadioChannel.maxTxRate) && + Objects.equals(this.txPower, apRadioChannel.txPower) && + Objects.equals(this.region, apRadioChannel.region) && + Objects.equals(this.bandWidth, apRadioChannel.bandWidth) && + Objects.equals(this.rdMode, apRadioChannel.rdMode) && + Objects.equals(this.txUtil, apRadioChannel.txUtil) && + Objects.equals(this.rxUtil, apRadioChannel.rxUtil) && + Objects.equals(this.interUtil, apRadioChannel.interUtil) && + Objects.equals(this.busyUtil, apRadioChannel.busyUtil) && + Objects.equals(this.aiRoamingOffset, apRadioChannel.aiRoamingOffset); + } + + @Override + public int hashCode() { + return Objects.hash(actualChannel, maxTxRate, txPower, region, bandWidth, rdMode, txUtil, rxUtil, interUtil, busyUtil, aiRoamingOffset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApRadioChannel {\n"); + + sb.append(" actualChannel: ").append(toIndentedString(actualChannel)).append("\n"); + sb.append(" maxTxRate: ").append(toIndentedString(maxTxRate)).append("\n"); + sb.append(" txPower: ").append(toIndentedString(txPower)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" bandWidth: ").append(toIndentedString(bandWidth)).append("\n"); + sb.append(" rdMode: ").append(toIndentedString(rdMode)).append("\n"); + sb.append(" txUtil: ").append(toIndentedString(txUtil)).append("\n"); + sb.append(" rxUtil: ").append(toIndentedString(rxUtil)).append("\n"); + sb.append(" interUtil: ").append(toIndentedString(interUtil)).append("\n"); + sb.append(" busyUtil: ").append(toIndentedString(busyUtil)).append("\n"); + sb.append(" aiRoamingOffset: ").append(toIndentedString(aiRoamingOffset)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioSetting.java new file mode 100644 index 0000000..3e679c2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioSetting.java @@ -0,0 +1,290 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Radio Setting + */ +@ApiModel(description = "Radio Setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApRadioSetting { + @JsonProperty("radioEnable") + private Boolean radioEnable; + + @JsonProperty("channelRange") + @Valid + private List channelRange = null; + + @JsonProperty("channelWidth") + private String channelWidth; + + @JsonProperty("channel") + private String channel; + + @JsonProperty("txPower") + private Integer txPower; + + @JsonProperty("txPowerLevel") + private Integer txPowerLevel; + + @JsonProperty("channelLimitEnable") + private Boolean channelLimitEnable; + + @JsonProperty("freq") + private Integer freq; + + @JsonProperty("wirelessMode") + private Integer wirelessMode; + + public ApRadioSetting radioEnable(Boolean radioEnable) { + this.radioEnable = radioEnable; + return this; + } + + /** + * Enable/Disable radio setting(if false, other params is not required) + * @return radioEnable + */ + @ApiModelProperty(value = "Enable/Disable radio setting(if false, other params is not required)") + + + public Boolean getRadioEnable() { + return radioEnable; + } + + public void setRadioEnable(Boolean radioEnable) { + this.radioEnable = radioEnable; + } + + public ApRadioSetting channelRange(List channelRange) { + this.channelRange = channelRange; + return this; + } + + public ApRadioSetting addChannelRangeItem(Integer channelRangeItem) { + if (this.channelRange == null) { + this.channelRange = new ArrayList<>(); + } + this.channelRange.add(channelRangeItem); + return this; + } + + /** + * Custom optional channel freq collection. + * @return channelRange + */ + @ApiModelProperty(value = "Custom optional channel freq collection.") + + + public List getChannelRange() { + return channelRange; + } + + public void setChannelRange(List channelRange) { + this.channelRange = channelRange; + } + + public ApRadioSetting channelWidth(String channelWidth) { + this.channelWidth = channelWidth; + return this; + } + + /** + * RADIO_20 = 2; RADIO_40 = 3; RADIO_40_20 = 4(corresponding 2G Auto); RADIO_80 = 5; RADIO_80_40_20 = 6(corresponding 5G Auto); RADIO_160= 7; RADIO_160_80_40_20 = 8; RADIO_240 = 9; RADIO_320 = 10 + * @return channelWidth + */ + @ApiModelProperty(value = "RADIO_20 = 2; RADIO_40 = 3; RADIO_40_20 = 4(corresponding 2G Auto); RADIO_80 = 5; RADIO_80_40_20 = 6(corresponding 5G Auto); RADIO_160= 7; RADIO_160_80_40_20 = 8; RADIO_240 = 9; RADIO_320 = 10") + + + public String getChannelWidth() { + return channelWidth; + } + + public void setChannelWidth(String channelWidth) { + this.channelWidth = channelWidth; + } + + public ApRadioSetting channel(String channel) { + this.channel = channel; + return this; + } + + /** + * Channel + * @return channel + */ + @ApiModelProperty(value = "Channel") + + + public String getChannel() { + return channel; + } + + public void setChannel(String channel) { + this.channel = channel; + } + + public ApRadioSetting txPower(Integer txPower) { + this.txPower = txPower; + return this; + } + + /** + * TX Power + * @return txPower + */ + @ApiModelProperty(value = "TX Power") + + + public Integer getTxPower() { + return txPower; + } + + public void setTxPower(Integer txPower) { + this.txPower = txPower; + } + + public ApRadioSetting txPowerLevel(Integer txPowerLevel) { + this.txPowerLevel = txPowerLevel; + return this; + } + + /** + * It should be a value as follows: 0: Low; 1: Medium; 2: High; 3: Custom; 4: Auto + * @return txPowerLevel + */ + @ApiModelProperty(value = "It should be a value as follows: 0: Low; 1: Medium; 2: High; 3: Custom; 4: Auto") + + + public Integer getTxPowerLevel() { + return txPowerLevel; + } + + public void setTxPowerLevel(Integer txPowerLevel) { + this.txPowerLevel = txPowerLevel; + } + + public ApRadioSetting channelLimitEnable(Boolean channelLimitEnable) { + this.channelLimitEnable = channelLimitEnable; + return this; + } + + /** + * Enable channel limit(site level) + * @return channelLimitEnable + */ + @ApiModelProperty(value = "Enable channel limit(site level)") + + + public Boolean getChannelLimitEnable() { + return channelLimitEnable; + } + + public void setChannelLimitEnable(Boolean channelLimitEnable) { + this.channelLimitEnable = channelLimitEnable; + } + + public ApRadioSetting freq(Integer freq) { + this.freq = freq; + return this; + } + + /** + * Frequency + * @return freq + */ + @ApiModelProperty(value = "Frequency") + + + public Integer getFreq() { + return freq; + } + + public void setFreq(Integer freq) { + this.freq = freq; + } + + public ApRadioSetting wirelessMode(Integer wirelessMode) { + this.wirelessMode = wirelessMode; + return this; + } + + /** + * Wireless mode config status of the device; -2 : Auto; 3 : 802.11b/g mixed(Only for 2.4G); 4 : 802.11b/g/n mixed(Only for 2.4G); 13 : 802.11b/g/n/ax mixed(Only for 2.4G); 17 : 802.11b/g/n/ax/be mixed(Only for 2.4G); 7 : 802.11a/n mixed(Only for 5G); 10 : 802.11a/n/ac mixed(Only for 5G); 16 : 802.11a/n/ac/ax mixed(Only for 5G); 18 : 802.11a/n/ac/ax/be mixed(Only for 5G); 11 : 802.11ax only(Only for 6G); 19 : 802.11ax/be mixed(Only for 6G). + * @return wirelessMode + */ + @ApiModelProperty(value = "Wireless mode config status of the device; -2 : Auto; 3 : 802.11b/g mixed(Only for 2.4G); 4 : 802.11b/g/n mixed(Only for 2.4G); 13 : 802.11b/g/n/ax mixed(Only for 2.4G); 17 : 802.11b/g/n/ax/be mixed(Only for 2.4G); 7 : 802.11a/n mixed(Only for 5G); 10 : 802.11a/n/ac mixed(Only for 5G); 16 : 802.11a/n/ac/ax mixed(Only for 5G); 18 : 802.11a/n/ac/ax/be mixed(Only for 5G); 11 : 802.11ax only(Only for 6G); 19 : 802.11ax/be mixed(Only for 6G).") + + + public Integer getWirelessMode() { + return wirelessMode; + } + + public void setWirelessMode(Integer wirelessMode) { + this.wirelessMode = wirelessMode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApRadioSetting apRadioSetting = (ApRadioSetting) o; + return Objects.equals(this.radioEnable, apRadioSetting.radioEnable) && + Objects.equals(this.channelRange, apRadioSetting.channelRange) && + Objects.equals(this.channelWidth, apRadioSetting.channelWidth) && + Objects.equals(this.channel, apRadioSetting.channel) && + Objects.equals(this.txPower, apRadioSetting.txPower) && + Objects.equals(this.txPowerLevel, apRadioSetting.txPowerLevel) && + Objects.equals(this.channelLimitEnable, apRadioSetting.channelLimitEnable) && + Objects.equals(this.freq, apRadioSetting.freq) && + Objects.equals(this.wirelessMode, apRadioSetting.wirelessMode); + } + + @Override + public int hashCode() { + return Objects.hash(radioEnable, channelRange, channelWidth, channel, txPower, txPowerLevel, channelLimitEnable, freq, wirelessMode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApRadioSetting {\n"); + + sb.append(" radioEnable: ").append(toIndentedString(radioEnable)).append("\n"); + sb.append(" channelRange: ").append(toIndentedString(channelRange)).append("\n"); + sb.append(" channelWidth: ").append(toIndentedString(channelWidth)).append("\n"); + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" txPower: ").append(toIndentedString(txPower)).append("\n"); + sb.append(" txPowerLevel: ").append(toIndentedString(txPowerLevel)).append("\n"); + sb.append(" channelLimitEnable: ").append(toIndentedString(channelLimitEnable)).append("\n"); + sb.append(" freq: ").append(toIndentedString(freq)).append("\n"); + sb.append(" wirelessMode: ").append(toIndentedString(wirelessMode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioTrafficEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioTrafficEntity.java new file mode 100644 index 0000000..c81bbc4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadioTrafficEntity.java @@ -0,0 +1,303 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Radio traffic 6g + */ +@ApiModel(description = "Radio traffic 6g") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApRadioTrafficEntity { + @JsonProperty("rxPkts") + private Long rxPkts; + + @JsonProperty("txPkts") + private Long txPkts; + + @JsonProperty("rx") + private Long rx; + + @JsonProperty("tx") + private Long tx; + + @JsonProperty("rxDropPkts") + private Long rxDropPkts; + + @JsonProperty("txDropPkts") + private Long txDropPkts; + + @JsonProperty("rxErrPkts") + private Long rxErrPkts; + + @JsonProperty("txErrPkts") + private Long txErrPkts; + + @JsonProperty("rxRetryPkts") + private Long rxRetryPkts; + + @JsonProperty("txRetryPkts") + private Long txRetryPkts; + + public ApRadioTrafficEntity rxPkts(Long rxPkts) { + this.rxPkts = rxPkts; + return this; + } + + /** + * Total RX packets + * @return rxPkts + */ + @ApiModelProperty(value = "Total RX packets") + + + public Long getRxPkts() { + return rxPkts; + } + + public void setRxPkts(Long rxPkts) { + this.rxPkts = rxPkts; + } + + public ApRadioTrafficEntity txPkts(Long txPkts) { + this.txPkts = txPkts; + return this; + } + + /** + * Total TX packets + * @return txPkts + */ + @ApiModelProperty(value = "Total TX packets") + + + public Long getTxPkts() { + return txPkts; + } + + public void setTxPkts(Long txPkts) { + this.txPkts = txPkts; + } + + public ApRadioTrafficEntity rx(Long rx) { + this.rx = rx; + return this; + } + + /** + * Total RX bytes + * @return rx + */ + @ApiModelProperty(value = "Total RX bytes") + + + public Long getRx() { + return rx; + } + + public void setRx(Long rx) { + this.rx = rx; + } + + public ApRadioTrafficEntity tx(Long tx) { + this.tx = tx; + return this; + } + + /** + * Total TX bytes + * @return tx + */ + @ApiModelProperty(value = "Total TX bytes") + + + public Long getTx() { + return tx; + } + + public void setTx(Long tx) { + this.tx = tx; + } + + public ApRadioTrafficEntity rxDropPkts(Long rxDropPkts) { + this.rxDropPkts = rxDropPkts; + return this; + } + + /** + * RX dropped packets + * @return rxDropPkts + */ + @ApiModelProperty(value = "RX dropped packets") + + + public Long getRxDropPkts() { + return rxDropPkts; + } + + public void setRxDropPkts(Long rxDropPkts) { + this.rxDropPkts = rxDropPkts; + } + + public ApRadioTrafficEntity txDropPkts(Long txDropPkts) { + this.txDropPkts = txDropPkts; + return this; + } + + /** + * TX dropped Packets + * @return txDropPkts + */ + @ApiModelProperty(value = "TX dropped Packets") + + + public Long getTxDropPkts() { + return txDropPkts; + } + + public void setTxDropPkts(Long txDropPkts) { + this.txDropPkts = txDropPkts; + } + + public ApRadioTrafficEntity rxErrPkts(Long rxErrPkts) { + this.rxErrPkts = rxErrPkts; + return this; + } + + /** + * RX error packets + * @return rxErrPkts + */ + @ApiModelProperty(value = "RX error packets") + + + public Long getRxErrPkts() { + return rxErrPkts; + } + + public void setRxErrPkts(Long rxErrPkts) { + this.rxErrPkts = rxErrPkts; + } + + public ApRadioTrafficEntity txErrPkts(Long txErrPkts) { + this.txErrPkts = txErrPkts; + return this; + } + + /** + * TX error packets + * @return txErrPkts + */ + @ApiModelProperty(value = "TX error packets") + + + public Long getTxErrPkts() { + return txErrPkts; + } + + public void setTxErrPkts(Long txErrPkts) { + this.txErrPkts = txErrPkts; + } + + public ApRadioTrafficEntity rxRetryPkts(Long rxRetryPkts) { + this.rxRetryPkts = rxRetryPkts; + return this; + } + + /** + * RX retried packets + * @return rxRetryPkts + */ + @ApiModelProperty(value = "RX retried packets") + + + public Long getRxRetryPkts() { + return rxRetryPkts; + } + + public void setRxRetryPkts(Long rxRetryPkts) { + this.rxRetryPkts = rxRetryPkts; + } + + public ApRadioTrafficEntity txRetryPkts(Long txRetryPkts) { + this.txRetryPkts = txRetryPkts; + return this; + } + + /** + * TX retried packets + * @return txRetryPkts + */ + @ApiModelProperty(value = "TX retried packets") + + + public Long getTxRetryPkts() { + return txRetryPkts; + } + + public void setTxRetryPkts(Long txRetryPkts) { + this.txRetryPkts = txRetryPkts; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApRadioTrafficEntity apRadioTrafficEntity = (ApRadioTrafficEntity) o; + return Objects.equals(this.rxPkts, apRadioTrafficEntity.rxPkts) && + Objects.equals(this.txPkts, apRadioTrafficEntity.txPkts) && + Objects.equals(this.rx, apRadioTrafficEntity.rx) && + Objects.equals(this.tx, apRadioTrafficEntity.tx) && + Objects.equals(this.rxDropPkts, apRadioTrafficEntity.rxDropPkts) && + Objects.equals(this.txDropPkts, apRadioTrafficEntity.txDropPkts) && + Objects.equals(this.rxErrPkts, apRadioTrafficEntity.rxErrPkts) && + Objects.equals(this.txErrPkts, apRadioTrafficEntity.txErrPkts) && + Objects.equals(this.rxRetryPkts, apRadioTrafficEntity.rxRetryPkts) && + Objects.equals(this.txRetryPkts, apRadioTrafficEntity.txRetryPkts); + } + + @Override + public int hashCode() { + return Objects.hash(rxPkts, txPkts, rx, tx, rxDropPkts, txDropPkts, rxErrPkts, txErrPkts, rxRetryPkts, txRetryPkts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApRadioTrafficEntity {\n"); + + sb.append(" rxPkts: ").append(toIndentedString(rxPkts)).append("\n"); + sb.append(" txPkts: ").append(toIndentedString(txPkts)).append("\n"); + sb.append(" rx: ").append(toIndentedString(rx)).append("\n"); + sb.append(" tx: ").append(toIndentedString(tx)).append("\n"); + sb.append(" rxDropPkts: ").append(toIndentedString(rxDropPkts)).append("\n"); + sb.append(" txDropPkts: ").append(toIndentedString(txDropPkts)).append("\n"); + sb.append(" rxErrPkts: ").append(toIndentedString(rxErrPkts)).append("\n"); + sb.append(" txErrPkts: ").append(toIndentedString(txErrPkts)).append("\n"); + sb.append(" rxRetryPkts: ").append(toIndentedString(rxRetryPkts)).append("\n"); + sb.append(" txRetryPkts: ").append(toIndentedString(txRetryPkts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadiosConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadiosConfig.java new file mode 100644 index 0000000..4a02fc1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadiosConfig.java @@ -0,0 +1,182 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * ApRadiosConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApRadiosConfig { + @JsonProperty("radioSetting2g") + private ApRadioSetting radioSetting2g; + + @JsonProperty("radioSetting5g") + private ApRadioSetting radioSetting5g; + + @JsonProperty("radioSetting5g1") + private ApRadioSetting radioSetting5g1; + + @JsonProperty("radioSetting5g2") + private ApRadioSetting radioSetting5g2; + + @JsonProperty("radioSetting6g") + private ApRadioSetting radioSetting6g; + + public ApRadiosConfig radioSetting2g(ApRadioSetting radioSetting2g) { + this.radioSetting2g = radioSetting2g; + return this; + } + + /** + * Get radioSetting2g + * @return radioSetting2g + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioSetting getRadioSetting2g() { + return radioSetting2g; + } + + public void setRadioSetting2g(ApRadioSetting radioSetting2g) { + this.radioSetting2g = radioSetting2g; + } + + public ApRadiosConfig radioSetting5g(ApRadioSetting radioSetting5g) { + this.radioSetting5g = radioSetting5g; + return this; + } + + /** + * Get radioSetting5g + * @return radioSetting5g + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioSetting getRadioSetting5g() { + return radioSetting5g; + } + + public void setRadioSetting5g(ApRadioSetting radioSetting5g) { + this.radioSetting5g = radioSetting5g; + } + + public ApRadiosConfig radioSetting5g1(ApRadioSetting radioSetting5g1) { + this.radioSetting5g1 = radioSetting5g1; + return this; + } + + /** + * Get radioSetting5g1 + * @return radioSetting5g1 + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioSetting getRadioSetting5g1() { + return radioSetting5g1; + } + + public void setRadioSetting5g1(ApRadioSetting radioSetting5g1) { + this.radioSetting5g1 = radioSetting5g1; + } + + public ApRadiosConfig radioSetting5g2(ApRadioSetting radioSetting5g2) { + this.radioSetting5g2 = radioSetting5g2; + return this; + } + + /** + * Get radioSetting5g2 + * @return radioSetting5g2 + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioSetting getRadioSetting5g2() { + return radioSetting5g2; + } + + public void setRadioSetting5g2(ApRadioSetting radioSetting5g2) { + this.radioSetting5g2 = radioSetting5g2; + } + + public ApRadiosConfig radioSetting6g(ApRadioSetting radioSetting6g) { + this.radioSetting6g = radioSetting6g; + return this; + } + + /** + * Get radioSetting6g + * @return radioSetting6g + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioSetting getRadioSetting6g() { + return radioSetting6g; + } + + public void setRadioSetting6g(ApRadioSetting radioSetting6g) { + this.radioSetting6g = radioSetting6g; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApRadiosConfig apRadiosConfig = (ApRadiosConfig) o; + return Objects.equals(this.radioSetting2g, apRadiosConfig.radioSetting2g) && + Objects.equals(this.radioSetting5g, apRadiosConfig.radioSetting5g) && + Objects.equals(this.radioSetting5g1, apRadiosConfig.radioSetting5g1) && + Objects.equals(this.radioSetting5g2, apRadiosConfig.radioSetting5g2) && + Objects.equals(this.radioSetting6g, apRadiosConfig.radioSetting6g); + } + + @Override + public int hashCode() { + return Objects.hash(radioSetting2g, radioSetting5g, radioSetting5g1, radioSetting5g2, radioSetting6g); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApRadiosConfig {\n"); + + sb.append(" radioSetting2g: ").append(toIndentedString(radioSetting2g)).append("\n"); + sb.append(" radioSetting5g: ").append(toIndentedString(radioSetting5g)).append("\n"); + sb.append(" radioSetting5g1: ").append(toIndentedString(radioSetting5g1)).append("\n"); + sb.append(" radioSetting5g2: ").append(toIndentedString(radioSetting5g2)).append("\n"); + sb.append(" radioSetting6g: ").append(toIndentedString(radioSetting6g)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadiosDetail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadiosDetail.java new file mode 100644 index 0000000..5f885b1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRadiosDetail.java @@ -0,0 +1,260 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * ApRadiosDetail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApRadiosDetail { + @JsonProperty("radioTraffic2g") + private ApRadioTrafficEntity radioTraffic2g; + + @JsonProperty("radioTraffic5g") + private ApRadioTrafficEntity radioTraffic5g; + + @JsonProperty("radioTraffic5g2") + private ApRadioTrafficEntity radioTraffic5g2; + + @JsonProperty("radioTraffic6g") + private ApRadioTrafficEntity radioTraffic6g; + + @JsonProperty("wp2g") + private ApRadioChannel wp2g; + + @JsonProperty("wp5g") + private ApRadioChannel wp5g; + + @JsonProperty("wp5g2") + private ApRadioChannel wp5g2; + + @JsonProperty("wp6g") + private ApRadioChannel wp6g; + + public ApRadiosDetail radioTraffic2g(ApRadioTrafficEntity radioTraffic2g) { + this.radioTraffic2g = radioTraffic2g; + return this; + } + + /** + * Get radioTraffic2g + * @return radioTraffic2g + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioTrafficEntity getRadioTraffic2g() { + return radioTraffic2g; + } + + public void setRadioTraffic2g(ApRadioTrafficEntity radioTraffic2g) { + this.radioTraffic2g = radioTraffic2g; + } + + public ApRadiosDetail radioTraffic5g(ApRadioTrafficEntity radioTraffic5g) { + this.radioTraffic5g = radioTraffic5g; + return this; + } + + /** + * Get radioTraffic5g + * @return radioTraffic5g + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioTrafficEntity getRadioTraffic5g() { + return radioTraffic5g; + } + + public void setRadioTraffic5g(ApRadioTrafficEntity radioTraffic5g) { + this.radioTraffic5g = radioTraffic5g; + } + + public ApRadiosDetail radioTraffic5g2(ApRadioTrafficEntity radioTraffic5g2) { + this.radioTraffic5g2 = radioTraffic5g2; + return this; + } + + /** + * Get radioTraffic5g2 + * @return radioTraffic5g2 + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioTrafficEntity getRadioTraffic5g2() { + return radioTraffic5g2; + } + + public void setRadioTraffic5g2(ApRadioTrafficEntity radioTraffic5g2) { + this.radioTraffic5g2 = radioTraffic5g2; + } + + public ApRadiosDetail radioTraffic6g(ApRadioTrafficEntity radioTraffic6g) { + this.radioTraffic6g = radioTraffic6g; + return this; + } + + /** + * Get radioTraffic6g + * @return radioTraffic6g + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioTrafficEntity getRadioTraffic6g() { + return radioTraffic6g; + } + + public void setRadioTraffic6g(ApRadioTrafficEntity radioTraffic6g) { + this.radioTraffic6g = radioTraffic6g; + } + + public ApRadiosDetail wp2g(ApRadioChannel wp2g) { + this.wp2g = wp2g; + return this; + } + + /** + * Get wp2g + * @return wp2g + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioChannel getWp2g() { + return wp2g; + } + + public void setWp2g(ApRadioChannel wp2g) { + this.wp2g = wp2g; + } + + public ApRadiosDetail wp5g(ApRadioChannel wp5g) { + this.wp5g = wp5g; + return this; + } + + /** + * Get wp5g + * @return wp5g + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioChannel getWp5g() { + return wp5g; + } + + public void setWp5g(ApRadioChannel wp5g) { + this.wp5g = wp5g; + } + + public ApRadiosDetail wp5g2(ApRadioChannel wp5g2) { + this.wp5g2 = wp5g2; + return this; + } + + /** + * Get wp5g2 + * @return wp5g2 + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioChannel getWp5g2() { + return wp5g2; + } + + public void setWp5g2(ApRadioChannel wp5g2) { + this.wp5g2 = wp5g2; + } + + public ApRadiosDetail wp6g(ApRadioChannel wp6g) { + this.wp6g = wp6g; + return this; + } + + /** + * Get wp6g + * @return wp6g + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadioChannel getWp6g() { + return wp6g; + } + + public void setWp6g(ApRadioChannel wp6g) { + this.wp6g = wp6g; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApRadiosDetail apRadiosDetail = (ApRadiosDetail) o; + return Objects.equals(this.radioTraffic2g, apRadiosDetail.radioTraffic2g) && + Objects.equals(this.radioTraffic5g, apRadiosDetail.radioTraffic5g) && + Objects.equals(this.radioTraffic5g2, apRadiosDetail.radioTraffic5g2) && + Objects.equals(this.radioTraffic6g, apRadiosDetail.radioTraffic6g) && + Objects.equals(this.wp2g, apRadiosDetail.wp2g) && + Objects.equals(this.wp5g, apRadiosDetail.wp5g) && + Objects.equals(this.wp5g2, apRadiosDetail.wp5g2) && + Objects.equals(this.wp6g, apRadiosDetail.wp6g); + } + + @Override + public int hashCode() { + return Objects.hash(radioTraffic2g, radioTraffic5g, radioTraffic5g2, radioTraffic6g, wp2g, wp5g, wp5g2, wp6g); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApRadiosDetail {\n"); + + sb.append(" radioTraffic2g: ").append(toIndentedString(radioTraffic2g)).append("\n"); + sb.append(" radioTraffic5g: ").append(toIndentedString(radioTraffic5g)).append("\n"); + sb.append(" radioTraffic5g2: ").append(toIndentedString(radioTraffic5g2)).append("\n"); + sb.append(" radioTraffic6g: ").append(toIndentedString(radioTraffic6g)).append("\n"); + sb.append(" wp2g: ").append(toIndentedString(wp2g)).append("\n"); + sb.append(" wp5g: ").append(toIndentedString(wp5g)).append("\n"); + sb.append(" wp5g2: ").append(toIndentedString(wp5g2)).append("\n"); + sb.append(" wp6g: ").append(toIndentedString(wp6g)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRfScanInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRfScanInfo.java new file mode 100644 index 0000000..c10e0cf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRfScanInfo.java @@ -0,0 +1,444 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApRfScanInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApRfScanInfo { + @JsonProperty("channel2g") + @Valid + private List channel2g = null; + + @JsonProperty("channel5g") + @Valid + private List channel5g = null; + + @JsonProperty("channel5g2") + @Valid + private List channel5g2 = null; + + @JsonProperty("channel6g") + @Valid + private List channel6g = null; + + @JsonProperty("currentChan2g") + private String currentChan2g; + + @JsonProperty("currentChan5g") + private String currentChan5g; + + @JsonProperty("currentChan5g2") + private String currentChan5g2; + + @JsonProperty("currentChan6g") + private String currentChan6g; + + @JsonProperty("currentChanW2g") + private Integer currentChanW2g; + + @JsonProperty("currentChanW5g") + private Integer currentChanW5g; + + @JsonProperty("currentChanW5g2") + private Integer currentChanW5g2; + + @JsonProperty("currentChanW6g") + private Integer currentChanW6g; + + @JsonProperty("time") + private Long time; + + @JsonProperty("status") + private Integer status; + + public ApRfScanInfo channel2g(List channel2g) { + this.channel2g = channel2g; + return this; + } + + public ApRfScanInfo addChannel2gItem(RfScanRadio channel2gItem) { + if (this.channel2g == null) { + this.channel2g = new ArrayList<>(); + } + this.channel2g.add(channel2gItem); + return this; + } + + /** + * Channel 2g + * @return channel2g + */ + @ApiModelProperty(value = "Channel 2g") + + @Valid + + public List getChannel2g() { + return channel2g; + } + + public void setChannel2g(List channel2g) { + this.channel2g = channel2g; + } + + public ApRfScanInfo channel5g(List channel5g) { + this.channel5g = channel5g; + return this; + } + + public ApRfScanInfo addChannel5gItem(RfScanRadio channel5gItem) { + if (this.channel5g == null) { + this.channel5g = new ArrayList<>(); + } + this.channel5g.add(channel5gItem); + return this; + } + + /** + * Channel 5g + * @return channel5g + */ + @ApiModelProperty(value = "Channel 5g") + + @Valid + + public List getChannel5g() { + return channel5g; + } + + public void setChannel5g(List channel5g) { + this.channel5g = channel5g; + } + + public ApRfScanInfo channel5g2(List channel5g2) { + this.channel5g2 = channel5g2; + return this; + } + + public ApRfScanInfo addChannel5g2Item(RfScanRadio channel5g2Item) { + if (this.channel5g2 == null) { + this.channel5g2 = new ArrayList<>(); + } + this.channel5g2.add(channel5g2Item); + return this; + } + + /** + * Channel 5g2 + * @return channel5g2 + */ + @ApiModelProperty(value = "Channel 5g2") + + @Valid + + public List getChannel5g2() { + return channel5g2; + } + + public void setChannel5g2(List channel5g2) { + this.channel5g2 = channel5g2; + } + + public ApRfScanInfo channel6g(List channel6g) { + this.channel6g = channel6g; + return this; + } + + public ApRfScanInfo addChannel6gItem(RfScanRadio channel6gItem) { + if (this.channel6g == null) { + this.channel6g = new ArrayList<>(); + } + this.channel6g.add(channel6gItem); + return this; + } + + /** + * Channel 6g + * @return channel6g + */ + @ApiModelProperty(value = "Channel 6g") + + @Valid + + public List getChannel6g() { + return channel6g; + } + + public void setChannel6g(List channel6g) { + this.channel6g = channel6g; + } + + public ApRfScanInfo currentChan2g(String currentChan2g) { + this.currentChan2g = currentChan2g; + return this; + } + + /** + * The 2G channel of AP, such as 1,6,11,13. It should be within the range of 1–13. + * @return currentChan2g + */ + @ApiModelProperty(value = "The 2G channel of AP, such as 1,6,11,13. It should be within the range of 1–13.") + + + public String getCurrentChan2g() { + return currentChan2g; + } + + public void setCurrentChan2g(String currentChan2g) { + this.currentChan2g = currentChan2g; + } + + public ApRfScanInfo currentChan5g(String currentChan5g) { + this.currentChan5g = currentChan5g; + return this; + } + + /** + * The 5G channel of AP, such as 36,161. It should be within the range of 36–161. + * @return currentChan5g + */ + @ApiModelProperty(value = "The 5G channel of AP, such as 36,161. It should be within the range of 36–161.") + + + public String getCurrentChan5g() { + return currentChan5g; + } + + public void setCurrentChan5g(String currentChan5g) { + this.currentChan5g = currentChan5g; + } + + public ApRfScanInfo currentChan5g2(String currentChan5g2) { + this.currentChan5g2 = currentChan5g2; + return this; + } + + /** + * The 5G2 channel of AP,such as 36,161. It should be within the range of 36–161. + * @return currentChan5g2 + */ + @ApiModelProperty(value = "The 5G2 channel of AP,such as 36,161. It should be within the range of 36–161.") + + + public String getCurrentChan5g2() { + return currentChan5g2; + } + + public void setCurrentChan5g2(String currentChan5g2) { + this.currentChan5g2 = currentChan5g2; + } + + public ApRfScanInfo currentChan6g(String currentChan6g) { + this.currentChan6g = currentChan6g; + return this; + } + + /** + * The 6G channel of AP,such as 36,161. It should be within the range of 36–161. + * @return currentChan6g + */ + @ApiModelProperty(value = "The 6G channel of AP,such as 36,161. It should be within the range of 36–161.") + + + public String getCurrentChan6g() { + return currentChan6g; + } + + public void setCurrentChan6g(String currentChan6g) { + this.currentChan6g = currentChan6g; + } + + public ApRfScanInfo currentChanW2g(Integer currentChanW2g) { + this.currentChanW2g = currentChanW2g; + return this; + } + + /** + * The 2g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz + * @return currentChanW2g + */ + @ApiModelProperty(value = "The 2g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz") + + + public Integer getCurrentChanW2g() { + return currentChanW2g; + } + + public void setCurrentChanW2g(Integer currentChanW2g) { + this.currentChanW2g = currentChanW2g; + } + + public ApRfScanInfo currentChanW5g(Integer currentChanW5g) { + this.currentChanW5g = currentChanW5g; + return this; + } + + /** + * The 5g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz2 menas 20MHz, 3 means 40MHz, 5 means 80MHz + * @return currentChanW5g + */ + @ApiModelProperty(value = "The 5g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz2 menas 20MHz, 3 means 40MHz, 5 means 80MHz") + + + public Integer getCurrentChanW5g() { + return currentChanW5g; + } + + public void setCurrentChanW5g(Integer currentChanW5g) { + this.currentChanW5g = currentChanW5g; + } + + public ApRfScanInfo currentChanW5g2(Integer currentChanW5g2) { + this.currentChanW5g2 = currentChanW5g2; + return this; + } + + /** + * The 5g2 channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz + * @return currentChanW5g2 + */ + @ApiModelProperty(value = "The 5g2 channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz") + + + public Integer getCurrentChanW5g2() { + return currentChanW5g2; + } + + public void setCurrentChanW5g2(Integer currentChanW5g2) { + this.currentChanW5g2 = currentChanW5g2; + } + + public ApRfScanInfo currentChanW6g(Integer currentChanW6g) { + this.currentChanW6g = currentChanW6g; + return this; + } + + /** + * The 6g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz + * @return currentChanW6g + */ + @ApiModelProperty(value = "The 6g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz") + + + public Integer getCurrentChanW6g() { + return currentChanW6g; + } + + public void setCurrentChanW6g(Integer currentChanW6g) { + this.currentChanW6g = currentChanW6g; + } + + public ApRfScanInfo time(Long time) { + this.time = time; + return this; + } + + /** + * The scan time(13 bits), Unit: ms + * @return time + */ + @ApiModelProperty(value = "The scan time(13 bits), Unit: ms") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public ApRfScanInfo status(Integer status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning + * @return status + */ + @ApiModelProperty(value = "Status should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApRfScanInfo apRfScanInfo = (ApRfScanInfo) o; + return Objects.equals(this.channel2g, apRfScanInfo.channel2g) && + Objects.equals(this.channel5g, apRfScanInfo.channel5g) && + Objects.equals(this.channel5g2, apRfScanInfo.channel5g2) && + Objects.equals(this.channel6g, apRfScanInfo.channel6g) && + Objects.equals(this.currentChan2g, apRfScanInfo.currentChan2g) && + Objects.equals(this.currentChan5g, apRfScanInfo.currentChan5g) && + Objects.equals(this.currentChan5g2, apRfScanInfo.currentChan5g2) && + Objects.equals(this.currentChan6g, apRfScanInfo.currentChan6g) && + Objects.equals(this.currentChanW2g, apRfScanInfo.currentChanW2g) && + Objects.equals(this.currentChanW5g, apRfScanInfo.currentChanW5g) && + Objects.equals(this.currentChanW5g2, apRfScanInfo.currentChanW5g2) && + Objects.equals(this.currentChanW6g, apRfScanInfo.currentChanW6g) && + Objects.equals(this.time, apRfScanInfo.time) && + Objects.equals(this.status, apRfScanInfo.status); + } + + @Override + public int hashCode() { + return Objects.hash(channel2g, channel5g, channel5g2, channel6g, currentChan2g, currentChan5g, currentChan5g2, currentChan6g, currentChanW2g, currentChanW5g, currentChanW5g2, currentChanW6g, time, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApRfScanInfo {\n"); + + sb.append(" channel2g: ").append(toIndentedString(channel2g)).append("\n"); + sb.append(" channel5g: ").append(toIndentedString(channel5g)).append("\n"); + sb.append(" channel5g2: ").append(toIndentedString(channel5g2)).append("\n"); + sb.append(" channel6g: ").append(toIndentedString(channel6g)).append("\n"); + sb.append(" currentChan2g: ").append(toIndentedString(currentChan2g)).append("\n"); + sb.append(" currentChan5g: ").append(toIndentedString(currentChan5g)).append("\n"); + sb.append(" currentChan5g2: ").append(toIndentedString(currentChan5g2)).append("\n"); + sb.append(" currentChan6g: ").append(toIndentedString(currentChan6g)).append("\n"); + sb.append(" currentChanW2g: ").append(toIndentedString(currentChanW2g)).append("\n"); + sb.append(" currentChanW5g: ").append(toIndentedString(currentChanW5g)).append("\n"); + sb.append(" currentChanW5g2: ").append(toIndentedString(currentChanW5g2)).append("\n"); + sb.append(" currentChanW6g: ").append(toIndentedString(currentChanW6g)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRfScanResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRfScanResult.java new file mode 100644 index 0000000..225355b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApRfScanResult.java @@ -0,0 +1,619 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApRfScanResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApRfScanResult { + @JsonProperty("channel2g") + @Valid + private List channel2g = null; + + @JsonProperty("channel5g") + @Valid + private List channel5g = null; + + @JsonProperty("channel5g2") + @Valid + private List channel5g2 = null; + + @JsonProperty("channel6g") + @Valid + private List channel6g = null; + + @JsonProperty("currentChan2g") + private String currentChan2g; + + @JsonProperty("currentChan5g") + private String currentChan5g; + + @JsonProperty("currentChan5g2") + private String currentChan5g2; + + @JsonProperty("currentChan6g") + private String currentChan6g; + + @JsonProperty("currentChanW2g") + private Integer currentChanW2g; + + @JsonProperty("currentChanW5g") + private Integer currentChanW5g; + + @JsonProperty("currentChanW5g2") + private Integer currentChanW5g2; + + @JsonProperty("currentChanW6g") + private Integer currentChanW6g; + + @JsonProperty("time") + private Long time; + + @JsonProperty("time2g") + private Long time2g; + + @JsonProperty("time5g") + private Long time5g; + + @JsonProperty("time6g") + private Long time6g; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("status2g") + private Integer status2g; + + @JsonProperty("status5g") + private Integer status5g; + + @JsonProperty("status5g2") + private Integer status5g2; + + @JsonProperty("status6g") + private Integer status6g; + + public ApRfScanResult channel2g(List channel2g) { + this.channel2g = channel2g; + return this; + } + + public ApRfScanResult addChannel2gItem(RfScanRadio2g channel2gItem) { + if (this.channel2g == null) { + this.channel2g = new ArrayList<>(); + } + this.channel2g.add(channel2gItem); + return this; + } + + /** + * Channel 2g + * @return channel2g + */ + @ApiModelProperty(value = "Channel 2g") + + @Valid + + public List getChannel2g() { + return channel2g; + } + + public void setChannel2g(List channel2g) { + this.channel2g = channel2g; + } + + public ApRfScanResult channel5g(List channel5g) { + this.channel5g = channel5g; + return this; + } + + public ApRfScanResult addChannel5gItem(RfScanRadio5g channel5gItem) { + if (this.channel5g == null) { + this.channel5g = new ArrayList<>(); + } + this.channel5g.add(channel5gItem); + return this; + } + + /** + * Channel 5g + * @return channel5g + */ + @ApiModelProperty(value = "Channel 5g") + + @Valid + + public List getChannel5g() { + return channel5g; + } + + public void setChannel5g(List channel5g) { + this.channel5g = channel5g; + } + + public ApRfScanResult channel5g2(List channel5g2) { + this.channel5g2 = channel5g2; + return this; + } + + public ApRfScanResult addChannel5g2Item(RfScanRadio5g2 channel5g2Item) { + if (this.channel5g2 == null) { + this.channel5g2 = new ArrayList<>(); + } + this.channel5g2.add(channel5g2Item); + return this; + } + + /** + * Channel 5g2 + * @return channel5g2 + */ + @ApiModelProperty(value = "Channel 5g2") + + @Valid + + public List getChannel5g2() { + return channel5g2; + } + + public void setChannel5g2(List channel5g2) { + this.channel5g2 = channel5g2; + } + + public ApRfScanResult channel6g(List channel6g) { + this.channel6g = channel6g; + return this; + } + + public ApRfScanResult addChannel6gItem(RfScanRadio6g channel6gItem) { + if (this.channel6g == null) { + this.channel6g = new ArrayList<>(); + } + this.channel6g.add(channel6gItem); + return this; + } + + /** + * Channel 6g + * @return channel6g + */ + @ApiModelProperty(value = "Channel 6g") + + @Valid + + public List getChannel6g() { + return channel6g; + } + + public void setChannel6g(List channel6g) { + this.channel6g = channel6g; + } + + public ApRfScanResult currentChan2g(String currentChan2g) { + this.currentChan2g = currentChan2g; + return this; + } + + /** + * The 2G channel of AP, such as 1,6,11,13. It should be within the range of 1–13. + * @return currentChan2g + */ + @ApiModelProperty(value = "The 2G channel of AP, such as 1,6,11,13. It should be within the range of 1–13.") + + + public String getCurrentChan2g() { + return currentChan2g; + } + + public void setCurrentChan2g(String currentChan2g) { + this.currentChan2g = currentChan2g; + } + + public ApRfScanResult currentChan5g(String currentChan5g) { + this.currentChan5g = currentChan5g; + return this; + } + + /** + * The 5G channel of AP, such as 36,161. It should be within the range of 36–161. + * @return currentChan5g + */ + @ApiModelProperty(value = "The 5G channel of AP, such as 36,161. It should be within the range of 36–161.") + + + public String getCurrentChan5g() { + return currentChan5g; + } + + public void setCurrentChan5g(String currentChan5g) { + this.currentChan5g = currentChan5g; + } + + public ApRfScanResult currentChan5g2(String currentChan5g2) { + this.currentChan5g2 = currentChan5g2; + return this; + } + + /** + * The 5G2 channel of AP,such as 36,161. It should be within the range of 36–161. + * @return currentChan5g2 + */ + @ApiModelProperty(value = "The 5G2 channel of AP,such as 36,161. It should be within the range of 36–161.") + + + public String getCurrentChan5g2() { + return currentChan5g2; + } + + public void setCurrentChan5g2(String currentChan5g2) { + this.currentChan5g2 = currentChan5g2; + } + + public ApRfScanResult currentChan6g(String currentChan6g) { + this.currentChan6g = currentChan6g; + return this; + } + + /** + * The 6G channel of AP,such as 36,161. It should be within the range of 36–161. + * @return currentChan6g + */ + @ApiModelProperty(value = "The 6G channel of AP,such as 36,161. It should be within the range of 36–161.") + + + public String getCurrentChan6g() { + return currentChan6g; + } + + public void setCurrentChan6g(String currentChan6g) { + this.currentChan6g = currentChan6g; + } + + public ApRfScanResult currentChanW2g(Integer currentChanW2g) { + this.currentChanW2g = currentChanW2g; + return this; + } + + /** + * The 2g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz + * @return currentChanW2g + */ + @ApiModelProperty(value = "The 2g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz") + + + public Integer getCurrentChanW2g() { + return currentChanW2g; + } + + public void setCurrentChanW2g(Integer currentChanW2g) { + this.currentChanW2g = currentChanW2g; + } + + public ApRfScanResult currentChanW5g(Integer currentChanW5g) { + this.currentChanW5g = currentChanW5g; + return this; + } + + /** + * The 5g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz2 menas 20MHz, 3 means 40MHz, 5 means 80MHz + * @return currentChanW5g + */ + @ApiModelProperty(value = "The 5g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz2 menas 20MHz, 3 means 40MHz, 5 means 80MHz") + + + public Integer getCurrentChanW5g() { + return currentChanW5g; + } + + public void setCurrentChanW5g(Integer currentChanW5g) { + this.currentChanW5g = currentChanW5g; + } + + public ApRfScanResult currentChanW5g2(Integer currentChanW5g2) { + this.currentChanW5g2 = currentChanW5g2; + return this; + } + + /** + * The 5g2 channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz + * @return currentChanW5g2 + */ + @ApiModelProperty(value = "The 5g2 channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz") + + + public Integer getCurrentChanW5g2() { + return currentChanW5g2; + } + + public void setCurrentChanW5g2(Integer currentChanW5g2) { + this.currentChanW5g2 = currentChanW5g2; + } + + public ApRfScanResult currentChanW6g(Integer currentChanW6g) { + this.currentChanW6g = currentChanW6g; + return this; + } + + /** + * The 6g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz + * @return currentChanW6g + */ + @ApiModelProperty(value = "The 6g channel bandwidth of the AP. It should be a value as follows: 2:20MHz, 3: 40MHz, 5: 80MHz") + + + public Integer getCurrentChanW6g() { + return currentChanW6g; + } + + public void setCurrentChanW6g(Integer currentChanW6g) { + this.currentChanW6g = currentChanW6g; + } + + public ApRfScanResult time(Long time) { + this.time = time; + return this; + } + + /** + * The scan time(13 bits), Unit: ms + * @return time + */ + @ApiModelProperty(value = "The scan time(13 bits), Unit: ms") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public ApRfScanResult time2g(Long time2g) { + this.time2g = time2g; + return this; + } + + /** + * The scan time(13 bits) of 5GHz-2 band, Unit: ms + * @return time2g + */ + @ApiModelProperty(value = "The scan time(13 bits) of 5GHz-2 band, Unit: ms") + + + public Long getTime2g() { + return time2g; + } + + public void setTime2g(Long time2g) { + this.time2g = time2g; + } + + public ApRfScanResult time5g(Long time5g) { + this.time5g = time5g; + return this; + } + + /** + * The scan time(13 bits) of 5GHz band, Unit: ms + * @return time5g + */ + @ApiModelProperty(value = "The scan time(13 bits) of 5GHz band, Unit: ms") + + + public Long getTime5g() { + return time5g; + } + + public void setTime5g(Long time5g) { + this.time5g = time5g; + } + + public ApRfScanResult time6g(Long time6g) { + this.time6g = time6g; + return this; + } + + /** + * The scan time(13 bits) of 6GHz band, Unit: ms + * @return time6g + */ + @ApiModelProperty(value = "The scan time(13 bits) of 6GHz band, Unit: ms") + + + public Long getTime6g() { + return time6g; + } + + public void setTime6g(Long time6g) { + this.time6g = time6g; + } + + public ApRfScanResult status(Integer status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning + * @return status + */ + @ApiModelProperty(value = "Status should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public ApRfScanResult status2g(Integer status2g) { + this.status2g = status2g; + return this; + } + + /** + * Status of 2.4GHz band should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning + * @return status2g + */ + @ApiModelProperty(value = "Status of 2.4GHz band should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning") + + + public Integer getStatus2g() { + return status2g; + } + + public void setStatus2g(Integer status2g) { + this.status2g = status2g; + } + + public ApRfScanResult status5g(Integer status5g) { + this.status5g = status5g; + return this; + } + + /** + * Status of 5GHz band should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning + * @return status5g + */ + @ApiModelProperty(value = "Status of 5GHz band should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning") + + + public Integer getStatus5g() { + return status5g; + } + + public void setStatus5g(Integer status5g) { + this.status5g = status5g; + } + + public ApRfScanResult status5g2(Integer status5g2) { + this.status5g2 = status5g2; + return this; + } + + /** + * Status of 5GHz-2 band should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning + * @return status5g2 + */ + @ApiModelProperty(value = "Status of 5GHz-2 band should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning") + + + public Integer getStatus5g2() { + return status5g2; + } + + public void setStatus5g2(Integer status5g2) { + this.status5g2 = status5g2; + } + + public ApRfScanResult status6g(Integer status6g) { + this.status6g = status6g; + return this; + } + + /** + * Status of 6GHz band should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning + * @return status6g + */ + @ApiModelProperty(value = "Status of 6GHz band should be a value as follows: 0: the scan result is displayed; 1: no scan result; 2: Scanning") + + + public Integer getStatus6g() { + return status6g; + } + + public void setStatus6g(Integer status6g) { + this.status6g = status6g; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApRfScanResult apRfScanResult = (ApRfScanResult) o; + return Objects.equals(this.channel2g, apRfScanResult.channel2g) && + Objects.equals(this.channel5g, apRfScanResult.channel5g) && + Objects.equals(this.channel5g2, apRfScanResult.channel5g2) && + Objects.equals(this.channel6g, apRfScanResult.channel6g) && + Objects.equals(this.currentChan2g, apRfScanResult.currentChan2g) && + Objects.equals(this.currentChan5g, apRfScanResult.currentChan5g) && + Objects.equals(this.currentChan5g2, apRfScanResult.currentChan5g2) && + Objects.equals(this.currentChan6g, apRfScanResult.currentChan6g) && + Objects.equals(this.currentChanW2g, apRfScanResult.currentChanW2g) && + Objects.equals(this.currentChanW5g, apRfScanResult.currentChanW5g) && + Objects.equals(this.currentChanW5g2, apRfScanResult.currentChanW5g2) && + Objects.equals(this.currentChanW6g, apRfScanResult.currentChanW6g) && + Objects.equals(this.time, apRfScanResult.time) && + Objects.equals(this.time2g, apRfScanResult.time2g) && + Objects.equals(this.time5g, apRfScanResult.time5g) && + Objects.equals(this.time6g, apRfScanResult.time6g) && + Objects.equals(this.status, apRfScanResult.status) && + Objects.equals(this.status2g, apRfScanResult.status2g) && + Objects.equals(this.status5g, apRfScanResult.status5g) && + Objects.equals(this.status5g2, apRfScanResult.status5g2) && + Objects.equals(this.status6g, apRfScanResult.status6g); + } + + @Override + public int hashCode() { + return Objects.hash(channel2g, channel5g, channel5g2, channel6g, currentChan2g, currentChan5g, currentChan5g2, currentChan6g, currentChanW2g, currentChanW5g, currentChanW5g2, currentChanW6g, time, time2g, time5g, time6g, status, status2g, status5g, status5g2, status6g); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApRfScanResult {\n"); + + sb.append(" channel2g: ").append(toIndentedString(channel2g)).append("\n"); + sb.append(" channel5g: ").append(toIndentedString(channel5g)).append("\n"); + sb.append(" channel5g2: ").append(toIndentedString(channel5g2)).append("\n"); + sb.append(" channel6g: ").append(toIndentedString(channel6g)).append("\n"); + sb.append(" currentChan2g: ").append(toIndentedString(currentChan2g)).append("\n"); + sb.append(" currentChan5g: ").append(toIndentedString(currentChan5g)).append("\n"); + sb.append(" currentChan5g2: ").append(toIndentedString(currentChan5g2)).append("\n"); + sb.append(" currentChan6g: ").append(toIndentedString(currentChan6g)).append("\n"); + sb.append(" currentChanW2g: ").append(toIndentedString(currentChanW2g)).append("\n"); + sb.append(" currentChanW5g: ").append(toIndentedString(currentChanW5g)).append("\n"); + sb.append(" currentChanW5g2: ").append(toIndentedString(currentChanW5g2)).append("\n"); + sb.append(" currentChanW6g: ").append(toIndentedString(currentChanW6g)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" time2g: ").append(toIndentedString(time2g)).append("\n"); + sb.append(" time5g: ").append(toIndentedString(time5g)).append("\n"); + sb.append(" time6g: ").append(toIndentedString(time6g)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" status2g: ").append(toIndentedString(status2g)).append("\n"); + sb.append(" status5g: ").append(toIndentedString(status5g)).append("\n"); + sb.append(" status5g2: ").append(toIndentedString(status5g2)).append("\n"); + sb.append(" status6g: ").append(toIndentedString(status6g)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidOverrideOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidOverrideOpenApiV2Vo.java new file mode 100644 index 0000000..5981827 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidOverrideOpenApiV2Vo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApSsidOverrideOpenApiV2Vo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApSsidOverrideOpenApiV2Vo { + @JsonProperty("ssidOverrides") + @Valid + private List ssidOverrides = new ArrayList<>(); + + public ApSsidOverrideOpenApiV2Vo ssidOverrides(List ssidOverrides) { + this.ssidOverrides = ssidOverrides; + return this; + } + + public ApSsidOverrideOpenApiV2Vo addSsidOverridesItem(SsidOverrideOpenApiV2Vo ssidOverridesItem) { + this.ssidOverrides.add(ssidOverridesItem); + return this; + } + + /** + * SsidOverride Config List + * @return ssidOverrides + */ + @ApiModelProperty(required = true, value = "SsidOverride Config List") + @NotNull + + @Valid + + public List getSsidOverrides() { + return ssidOverrides; + } + + public void setSsidOverrides(List ssidOverrides) { + this.ssidOverrides = ssidOverrides; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApSsidOverrideOpenApiV2Vo apSsidOverrideOpenApiV2Vo = (ApSsidOverrideOpenApiV2Vo) o; + return Objects.equals(this.ssidOverrides, apSsidOverrideOpenApiV2Vo.ssidOverrides); + } + + @Override + public int hashCode() { + return Objects.hash(ssidOverrides); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApSsidOverrideOpenApiV2Vo {\n"); + + sb.append(" ssidOverrides: ").append(toIndentedString(ssidOverrides)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidOverrideOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidOverrideOpenApiVo.java new file mode 100644 index 0000000..b020a2c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidOverrideOpenApiVo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApSsidOverrideOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApSsidOverrideOpenApiVo { + @JsonProperty("ssidOverrides") + @Valid + private List ssidOverrides = new ArrayList<>(); + + public ApSsidOverrideOpenApiVo ssidOverrides(List ssidOverrides) { + this.ssidOverrides = ssidOverrides; + return this; + } + + public ApSsidOverrideOpenApiVo addSsidOverridesItem(SsidOverrideOpenApiVo ssidOverridesItem) { + this.ssidOverrides.add(ssidOverridesItem); + return this; + } + + /** + * Get ssidOverrides + * @return ssidOverrides + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public List getSsidOverrides() { + return ssidOverrides; + } + + public void setSsidOverrides(List ssidOverrides) { + this.ssidOverrides = ssidOverrides; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApSsidOverrideOpenApiVo apSsidOverrideOpenApiVo = (ApSsidOverrideOpenApiVo) o; + return Objects.equals(this.ssidOverrides, apSsidOverrideOpenApiVo.ssidOverrides); + } + + @Override + public int hashCode() { + return Objects.hash(ssidOverrides); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApSsidOverrideOpenApiVo {\n"); + + sb.append(" ssidOverrides: ").append(toIndentedString(ssidOverrides)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidWlansOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidWlansOpenApiV2Vo.java new file mode 100644 index 0000000..84ab14b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidWlansOpenApiV2Vo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApSsidWlansOpenApiV2Vo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApSsidWlansOpenApiV2Vo { + @JsonProperty("ssidOverrides") + @Valid + private List ssidOverrides = new ArrayList<>(); + + public ApSsidWlansOpenApiV2Vo ssidOverrides(List ssidOverrides) { + this.ssidOverrides = ssidOverrides; + return this; + } + + public ApSsidWlansOpenApiV2Vo addSsidOverridesItem(SsidOverrideConfigOpenApiV2Vo ssidOverridesItem) { + this.ssidOverrides.add(ssidOverridesItem); + return this; + } + + /** + * SsidOverride Config List + * @return ssidOverrides + */ + @ApiModelProperty(required = true, value = "SsidOverride Config List") + @NotNull + + @Valid + + public List getSsidOverrides() { + return ssidOverrides; + } + + public void setSsidOverrides(List ssidOverrides) { + this.ssidOverrides = ssidOverrides; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApSsidWlansOpenApiV2Vo apSsidWlansOpenApiV2Vo = (ApSsidWlansOpenApiV2Vo) o; + return Objects.equals(this.ssidOverrides, apSsidWlansOpenApiV2Vo.ssidOverrides); + } + + @Override + public int hashCode() { + return Objects.hash(ssidOverrides); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApSsidWlansOpenApiV2Vo {\n"); + + sb.append(" ssidOverrides: ").append(toIndentedString(ssidOverrides)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidWlansOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidWlansOpenApiVo.java new file mode 100644 index 0000000..29d8b7f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApSsidWlansOpenApiVo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApSsidWlansOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApSsidWlansOpenApiVo { + @JsonProperty("ssidOverrides") + @Valid + private List ssidOverrides = new ArrayList<>(); + + public ApSsidWlansOpenApiVo ssidOverrides(List ssidOverrides) { + this.ssidOverrides = ssidOverrides; + return this; + } + + public ApSsidWlansOpenApiVo addSsidOverridesItem(SsidOverrideConfigOpenApiVo ssidOverridesItem) { + this.ssidOverrides.add(ssidOverridesItem); + return this; + } + + /** + * Get ssidOverrides + * @return ssidOverrides + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public List getSsidOverrides() { + return ssidOverrides; + } + + public void setSsidOverrides(List ssidOverrides) { + this.ssidOverrides = ssidOverrides; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApSsidWlansOpenApiVo apSsidWlansOpenApiVo = (ApSsidWlansOpenApiVo) o; + return Objects.equals(this.ssidOverrides, apSsidWlansOpenApiVo.ssidOverrides); + } + + @Override + public int hashCode() { + return Objects.hash(ssidOverrides); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApSsidWlansOpenApiVo {\n"); + + sb.append(" ssidOverrides: ").append(toIndentedString(ssidOverrides)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredDownlink.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredDownlink.java new file mode 100644 index 0000000..635a1cc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredDownlink.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApWiredDownlink + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApWiredDownlink { + @JsonProperty("wiredDownlinkList") + @Valid + private List wiredDownlinkList = null; + + public ApWiredDownlink wiredDownlinkList(List wiredDownlinkList) { + this.wiredDownlinkList = wiredDownlinkList; + return this; + } + + public ApWiredDownlink addWiredDownlinkListItem(ApDownLinkStatusVo wiredDownlinkListItem) { + if (this.wiredDownlinkList == null) { + this.wiredDownlinkList = new ArrayList<>(); + } + this.wiredDownlinkList.add(wiredDownlinkListItem); + return this; + } + + /** + * Wired downlink device list + * @return wiredDownlinkList + */ + @ApiModelProperty(value = "Wired downlink device list") + + @Valid + + public List getWiredDownlinkList() { + return wiredDownlinkList; + } + + public void setWiredDownlinkList(List wiredDownlinkList) { + this.wiredDownlinkList = wiredDownlinkList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApWiredDownlink apWiredDownlink = (ApWiredDownlink) o; + return Objects.equals(this.wiredDownlinkList, apWiredDownlink.wiredDownlinkList); + } + + @Override + public int hashCode() { + return Objects.hash(wiredDownlinkList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApWiredDownlink {\n"); + + sb.append(" wiredDownlinkList: ").append(toIndentedString(wiredDownlinkList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredUplink.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredUplink.java new file mode 100644 index 0000000..34e397e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredUplink.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * ApWiredUplink + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApWiredUplink { + @JsonProperty("wiredUplink") + private ApWiredUplinkInfo wiredUplink; + + public ApWiredUplink wiredUplink(ApWiredUplinkInfo wiredUplink) { + this.wiredUplink = wiredUplink; + return this; + } + + /** + * Get wiredUplink + * @return wiredUplink + */ + @ApiModelProperty(value = "") + + @Valid + + public ApWiredUplinkInfo getWiredUplink() { + return wiredUplink; + } + + public void setWiredUplink(ApWiredUplinkInfo wiredUplink) { + this.wiredUplink = wiredUplink; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApWiredUplink apWiredUplink = (ApWiredUplink) o; + return Objects.equals(this.wiredUplink, apWiredUplink.wiredUplink); + } + + @Override + public int hashCode() { + return Objects.hash(wiredUplink); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApWiredUplink {\n"); + + sb.append(" wiredUplink: ").append(toIndentedString(wiredUplink)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredUplinkInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredUplinkInfo.java new file mode 100644 index 0000000..853e9aa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWiredUplinkInfo.java @@ -0,0 +1,553 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Wired uplink info + */ +@ApiModel(description = "Wired uplink info") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApWiredUplinkInfo { + @JsonProperty("uplinkMac") + private String uplinkMac; + + @JsonProperty("type") + private String type; + + @JsonProperty("name") + private String name; + + @JsonProperty("rate") + private String rate; + + @JsonProperty("duplex") + private Integer duplex; + + @JsonProperty("upBytes") + private Long upBytes; + + @JsonProperty("downBytes") + private Long downBytes; + + @JsonProperty("upPackets") + private Long upPackets; + + @JsonProperty("downPackets") + private Long downPackets; + + @JsonProperty("activity") + private Long activity; + + @JsonProperty("port") + private String port; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("portType") + private Integer portType; + + @JsonProperty("txPower") + private Double txPower; + + @JsonProperty("rxPower") + private Double rxPower; + + @JsonProperty("temp") + private Double temp; + + @JsonProperty("voltage") + private Double voltage; + + @JsonProperty("current") + private Double current; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + public ApWiredUplinkInfo uplinkMac(String uplinkMac) { + this.uplinkMac = uplinkMac; + return this; + } + + /** + * Uplink device MAC address + * @return uplinkMac + */ + @ApiModelProperty(value = "Uplink device MAC address") + + + public String getUplinkMac() { + return uplinkMac; + } + + public void setUplinkMac(String uplinkMac) { + this.uplinkMac = uplinkMac; + } + + public ApWiredUplinkInfo type(String type) { + this.type = type; + return this; + } + + /** + * Uplink device type + * @return type + */ + @ApiModelProperty(value = "Uplink device type") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ApWiredUplinkInfo name(String name) { + this.name = name; + return this; + } + + /** + * Uplink device name + * @return name + */ + @ApiModelProperty(value = "Uplink device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ApWiredUplinkInfo rate(String rate) { + this.rate = rate; + return this; + } + + /** + * Negotiation rate, LAN(connected): 10,100,1000,2500,10000, LAN(disconnected):0, Unit:Mbps + * @return rate + */ + @ApiModelProperty(value = "Negotiation rate, LAN(connected): 10,100,1000,2500,10000, LAN(disconnected):0, Unit:Mbps") + + + public String getRate() { + return rate; + } + + public void setRate(String rate) { + this.rate = rate; + } + + public ApWiredUplinkInfo duplex(Integer duplex) { + this.duplex = duplex; + return this; + } + + /** + * Duplex should be a value as follows: 0: LAN disconnected; 1: half; 2: full + * @return duplex + */ + @ApiModelProperty(value = "Duplex should be a value as follows: 0: LAN disconnected; 1: half; 2: full") + + + public Integer getDuplex() { + return duplex; + } + + public void setDuplex(Integer duplex) { + this.duplex = duplex; + } + + public ApWiredUplinkInfo upBytes(Long upBytes) { + this.upBytes = upBytes; + return this; + } + + /** + * Unit: Byte + * @return upBytes + */ + @ApiModelProperty(value = "Unit: Byte") + + + public Long getUpBytes() { + return upBytes; + } + + public void setUpBytes(Long upBytes) { + this.upBytes = upBytes; + } + + public ApWiredUplinkInfo downBytes(Long downBytes) { + this.downBytes = downBytes; + return this; + } + + /** + * Unit: Byte + * @return downBytes + */ + @ApiModelProperty(value = "Unit: Byte") + + + public Long getDownBytes() { + return downBytes; + } + + public void setDownBytes(Long downBytes) { + this.downBytes = downBytes; + } + + public ApWiredUplinkInfo upPackets(Long upPackets) { + this.upPackets = upPackets; + return this; + } + + /** + * Get upPackets + * @return upPackets + */ + @ApiModelProperty(value = "") + + + public Long getUpPackets() { + return upPackets; + } + + public void setUpPackets(Long upPackets) { + this.upPackets = upPackets; + } + + public ApWiredUplinkInfo downPackets(Long downPackets) { + this.downPackets = downPackets; + return this; + } + + /** + * Get downPackets + * @return downPackets + */ + @ApiModelProperty(value = "") + + + public Long getDownPackets() { + return downPackets; + } + + public void setDownPackets(Long downPackets) { + this.downPackets = downPackets; + } + + public ApWiredUplinkInfo activity(Long activity) { + this.activity = activity; + return this; + } + + /** + * (Change of( downBytes+upBytes))/ time, Unit: Bytes/s + * @return activity + */ + @ApiModelProperty(value = "(Change of( downBytes+upBytes))/ time, Unit: Bytes/s") + + + public Long getActivity() { + return activity; + } + + public void setActivity(Long activity) { + this.activity = activity; + } + + public ApWiredUplinkInfo port(String port) { + this.port = port; + return this; + } + + /** + * Uplink port ID, only supported by some devices. + * @return port + */ + @ApiModelProperty(value = "Uplink port ID, only supported by some devices.") + + + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port; + } + + public ApWiredUplinkInfo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Uplink device ip. + * @return ip + */ + @ApiModelProperty(value = "Uplink device ip.") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public ApWiredUplinkInfo portType(Integer portType) { + this.portType = portType; + return this; + } + + /** + * Port Type, 0:ETH, 1:POTS, 2:SFP + * @return portType + */ + @ApiModelProperty(value = "Port Type, 0:ETH, 1:POTS, 2:SFP") + + + public Integer getPortType() { + return portType; + } + + public void setPortType(Integer portType) { + this.portType = portType; + } + + public ApWiredUplinkInfo txPower(Double txPower) { + this.txPower = txPower; + return this; + } + + /** + * Tx power, only supported by some devices. + * @return txPower + */ + @ApiModelProperty(value = "Tx power, only supported by some devices.") + + + public Double getTxPower() { + return txPower; + } + + public void setTxPower(Double txPower) { + this.txPower = txPower; + } + + public ApWiredUplinkInfo rxPower(Double rxPower) { + this.rxPower = rxPower; + return this; + } + + /** + * Rx Power, only supported by some devices. + * @return rxPower + */ + @ApiModelProperty(value = "Rx Power, only supported by some devices.") + + + public Double getRxPower() { + return rxPower; + } + + public void setRxPower(Double rxPower) { + this.rxPower = rxPower; + } + + public ApWiredUplinkInfo temp(Double temp) { + this.temp = temp; + return this; + } + + /** + * Temperature, only supported by some devices. + * @return temp + */ + @ApiModelProperty(value = "Temperature, only supported by some devices.") + + + public Double getTemp() { + return temp; + } + + public void setTemp(Double temp) { + this.temp = temp; + } + + public ApWiredUplinkInfo voltage(Double voltage) { + this.voltage = voltage; + return this; + } + + /** + * Voltage, only supported by some devices. + * @return voltage + */ + @ApiModelProperty(value = "Voltage, only supported by some devices.") + + + public Double getVoltage() { + return voltage; + } + + public void setVoltage(Double voltage) { + this.voltage = voltage; + } + + public ApWiredUplinkInfo current(Double current) { + this.current = current; + return this; + } + + /** + * Current, only supported by some devices. + * @return current + */ + @ApiModelProperty(value = "Current, only supported by some devices.") + + + public Double getCurrent() { + return current; + } + + public void setCurrent(Double current) { + this.current = current; + } + + public ApWiredUplinkInfo model(String model) { + this.model = model; + return this; + } + + /** + * Get model + * @return model + */ + @ApiModelProperty(value = "") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public ApWiredUplinkInfo modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Get modelVersion + * @return modelVersion + */ + @ApiModelProperty(value = "") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApWiredUplinkInfo apWiredUplinkInfo = (ApWiredUplinkInfo) o; + return Objects.equals(this.uplinkMac, apWiredUplinkInfo.uplinkMac) && + Objects.equals(this.type, apWiredUplinkInfo.type) && + Objects.equals(this.name, apWiredUplinkInfo.name) && + Objects.equals(this.rate, apWiredUplinkInfo.rate) && + Objects.equals(this.duplex, apWiredUplinkInfo.duplex) && + Objects.equals(this.upBytes, apWiredUplinkInfo.upBytes) && + Objects.equals(this.downBytes, apWiredUplinkInfo.downBytes) && + Objects.equals(this.upPackets, apWiredUplinkInfo.upPackets) && + Objects.equals(this.downPackets, apWiredUplinkInfo.downPackets) && + Objects.equals(this.activity, apWiredUplinkInfo.activity) && + Objects.equals(this.port, apWiredUplinkInfo.port) && + Objects.equals(this.ip, apWiredUplinkInfo.ip) && + Objects.equals(this.portType, apWiredUplinkInfo.portType) && + Objects.equals(this.txPower, apWiredUplinkInfo.txPower) && + Objects.equals(this.rxPower, apWiredUplinkInfo.rxPower) && + Objects.equals(this.temp, apWiredUplinkInfo.temp) && + Objects.equals(this.voltage, apWiredUplinkInfo.voltage) && + Objects.equals(this.current, apWiredUplinkInfo.current) && + Objects.equals(this.model, apWiredUplinkInfo.model) && + Objects.equals(this.modelVersion, apWiredUplinkInfo.modelVersion); + } + + @Override + public int hashCode() { + return Objects.hash(uplinkMac, type, name, rate, duplex, upBytes, downBytes, upPackets, downPackets, activity, port, ip, portType, txPower, rxPower, temp, voltage, current, model, modelVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApWiredUplinkInfo {\n"); + + sb.append(" uplinkMac: ").append(toIndentedString(uplinkMac)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" rate: ").append(toIndentedString(rate)).append("\n"); + sb.append(" duplex: ").append(toIndentedString(duplex)).append("\n"); + sb.append(" upBytes: ").append(toIndentedString(upBytes)).append("\n"); + sb.append(" downBytes: ").append(toIndentedString(downBytes)).append("\n"); + sb.append(" upPackets: ").append(toIndentedString(upPackets)).append("\n"); + sb.append(" downPackets: ").append(toIndentedString(downPackets)).append("\n"); + sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" portType: ").append(toIndentedString(portType)).append("\n"); + sb.append(" txPower: ").append(toIndentedString(txPower)).append("\n"); + sb.append(" rxPower: ").append(toIndentedString(rxPower)).append("\n"); + sb.append(" temp: ").append(toIndentedString(temp)).append("\n"); + sb.append(" voltage: ").append(toIndentedString(voltage)).append("\n"); + sb.append(" current: ").append(toIndentedString(current)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWirelessUplink.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWirelessUplink.java new file mode 100644 index 0000000..c2a6ea2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ApWirelessUplink.java @@ -0,0 +1,403 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Wireless uplink info + */ +@ApiModel(description = "Wireless uplink info") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ApWirelessUplink { + @JsonProperty("uplinkMac") + private String uplinkMac; + + @JsonProperty("name") + private String name; + + @JsonProperty("channel") + private Integer channel; + + @JsonProperty("rssi") + private Integer rssi; + + @JsonProperty("snr") + private Integer snr; + + @JsonProperty("txRate") + private String txRate; + + @JsonProperty("txRateInt") + private Integer txRateInt; + + @JsonProperty("rxRate") + private String rxRate; + + @JsonProperty("rxRateInt") + private Integer rxRateInt; + + @JsonProperty("upBytes") + private Long upBytes; + + @JsonProperty("downBytes") + private Long downBytes; + + @JsonProperty("upPackets") + private Long upPackets; + + @JsonProperty("downPackets") + private Long downPackets; + + @JsonProperty("activity") + private Long activity; + + public ApWirelessUplink uplinkMac(String uplinkMac) { + this.uplinkMac = uplinkMac; + return this; + } + + /** + * Uplink AP MAC + * @return uplinkMac + */ + @ApiModelProperty(value = "Uplink AP MAC") + + + public String getUplinkMac() { + return uplinkMac; + } + + public void setUplinkMac(String uplinkMac) { + this.uplinkMac = uplinkMac; + } + + public ApWirelessUplink name(String name) { + this.name = name; + return this; + } + + /** + * Uplink AP name + * @return name + */ + @ApiModelProperty(value = "Uplink AP name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ApWirelessUplink channel(Integer channel) { + this.channel = channel; + return this; + } + + /** + * Uplink AP channel + * @return channel + */ + @ApiModelProperty(value = "Uplink AP channel") + + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + public ApWirelessUplink rssi(Integer rssi) { + this.rssi = rssi; + return this; + } + + /** + * Uplink AP rssi + * @return rssi + */ + @ApiModelProperty(value = "Uplink AP rssi") + + + public Integer getRssi() { + return rssi; + } + + public void setRssi(Integer rssi) { + this.rssi = rssi; + } + + public ApWirelessUplink snr(Integer snr) { + this.snr = snr; + return this; + } + + /** + * Uplink AP Signal-noise ratio + * @return snr + */ + @ApiModelProperty(value = "Uplink AP Signal-noise ratio") + + + public Integer getSnr() { + return snr; + } + + public void setSnr(Integer snr) { + this.snr = snr; + } + + public ApWirelessUplink txRate(String txRate) { + this.txRate = txRate; + return this; + } + + /** + * Uplink AP txRate + * @return txRate + */ + @ApiModelProperty(value = "Uplink AP txRate") + + + public String getTxRate() { + return txRate; + } + + public void setTxRate(String txRate) { + this.txRate = txRate; + } + + public ApWirelessUplink txRateInt(Integer txRateInt) { + this.txRateInt = txRateInt; + return this; + } + + /** + * Uplink AP txRateInt; Unit: Mbps + * @return txRateInt + */ + @ApiModelProperty(value = "Uplink AP txRateInt; Unit: Mbps") + + + public Integer getTxRateInt() { + return txRateInt; + } + + public void setTxRateInt(Integer txRateInt) { + this.txRateInt = txRateInt; + } + + public ApWirelessUplink rxRate(String rxRate) { + this.rxRate = rxRate; + return this; + } + + /** + * Uplink AP rxRate + * @return rxRate + */ + @ApiModelProperty(value = "Uplink AP rxRate") + + + public String getRxRate() { + return rxRate; + } + + public void setRxRate(String rxRate) { + this.rxRate = rxRate; + } + + public ApWirelessUplink rxRateInt(Integer rxRateInt) { + this.rxRateInt = rxRateInt; + return this; + } + + /** + * Uplink AP rxRateInt; Unit: Mbps + * @return rxRateInt + */ + @ApiModelProperty(value = "Uplink AP rxRateInt; Unit: Mbps") + + + public Integer getRxRateInt() { + return rxRateInt; + } + + public void setRxRateInt(Integer rxRateInt) { + this.rxRateInt = rxRateInt; + } + + public ApWirelessUplink upBytes(Long upBytes) { + this.upBytes = upBytes; + return this; + } + + /** + * Uplink AP upBytes; Unit: Byte + * @return upBytes + */ + @ApiModelProperty(value = "Uplink AP upBytes; Unit: Byte") + + + public Long getUpBytes() { + return upBytes; + } + + public void setUpBytes(Long upBytes) { + this.upBytes = upBytes; + } + + public ApWirelessUplink downBytes(Long downBytes) { + this.downBytes = downBytes; + return this; + } + + /** + * Uplink AP downBytes; Unit:Byte + * @return downBytes + */ + @ApiModelProperty(value = "Uplink AP downBytes; Unit:Byte") + + + public Long getDownBytes() { + return downBytes; + } + + public void setDownBytes(Long downBytes) { + this.downBytes = downBytes; + } + + public ApWirelessUplink upPackets(Long upPackets) { + this.upPackets = upPackets; + return this; + } + + /** + * Uplink AP upPackets + * @return upPackets + */ + @ApiModelProperty(value = "Uplink AP upPackets") + + + public Long getUpPackets() { + return upPackets; + } + + public void setUpPackets(Long upPackets) { + this.upPackets = upPackets; + } + + public ApWirelessUplink downPackets(Long downPackets) { + this.downPackets = downPackets; + return this; + } + + /** + * Uplink AP downPackets + * @return downPackets + */ + @ApiModelProperty(value = "Uplink AP downPackets") + + + public Long getDownPackets() { + return downPackets; + } + + public void setDownPackets(Long downPackets) { + this.downPackets = downPackets; + } + + public ApWirelessUplink activity(Long activity) { + this.activity = activity; + return this; + } + + /** + * Uplink AP activity: (change of(downBytes+upBytes))/time + * @return activity + */ + @ApiModelProperty(value = "Uplink AP activity: (change of(downBytes+upBytes))/time") + + + public Long getActivity() { + return activity; + } + + public void setActivity(Long activity) { + this.activity = activity; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApWirelessUplink apWirelessUplink = (ApWirelessUplink) o; + return Objects.equals(this.uplinkMac, apWirelessUplink.uplinkMac) && + Objects.equals(this.name, apWirelessUplink.name) && + Objects.equals(this.channel, apWirelessUplink.channel) && + Objects.equals(this.rssi, apWirelessUplink.rssi) && + Objects.equals(this.snr, apWirelessUplink.snr) && + Objects.equals(this.txRate, apWirelessUplink.txRate) && + Objects.equals(this.txRateInt, apWirelessUplink.txRateInt) && + Objects.equals(this.rxRate, apWirelessUplink.rxRate) && + Objects.equals(this.rxRateInt, apWirelessUplink.rxRateInt) && + Objects.equals(this.upBytes, apWirelessUplink.upBytes) && + Objects.equals(this.downBytes, apWirelessUplink.downBytes) && + Objects.equals(this.upPackets, apWirelessUplink.upPackets) && + Objects.equals(this.downPackets, apWirelessUplink.downPackets) && + Objects.equals(this.activity, apWirelessUplink.activity); + } + + @Override + public int hashCode() { + return Objects.hash(uplinkMac, name, channel, rssi, snr, txRate, txRateInt, rxRate, rxRateInt, upBytes, downBytes, upPackets, downPackets, activity); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApWirelessUplink {\n"); + + sb.append(" uplinkMac: ").append(toIndentedString(uplinkMac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" rssi: ").append(toIndentedString(rssi)).append("\n"); + sb.append(" snr: ").append(toIndentedString(snr)).append("\n"); + sb.append(" txRate: ").append(toIndentedString(txRate)).append("\n"); + sb.append(" txRateInt: ").append(toIndentedString(txRateInt)).append("\n"); + sb.append(" rxRate: ").append(toIndentedString(rxRate)).append("\n"); + sb.append(" rxRateInt: ").append(toIndentedString(rxRateInt)).append("\n"); + sb.append(" upBytes: ").append(toIndentedString(upBytes)).append("\n"); + sb.append(" downBytes: ").append(toIndentedString(downBytes)).append("\n"); + sb.append(" upPackets: ").append(toIndentedString(upPackets)).append("\n"); + sb.append(" downPackets: ").append(toIndentedString(downPackets)).append("\n"); + sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AutoCheckUpgradeCreateInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AutoCheckUpgradeCreateInfo.java new file mode 100644 index 0000000..c39c5be --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AutoCheckUpgradeCreateInfo.java @@ -0,0 +1,173 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * AutoCheckUpgradeCreateInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class AutoCheckUpgradeCreateInfo { + @JsonProperty("modelTypeInfos") + @Valid + private List modelTypeInfos = new ArrayList<>(); + + @JsonProperty("siteIds") + @Valid + private List siteIds = new ArrayList<>(); + + @JsonProperty("occurrence") + private UpgradeBaseScheduleTimeOpenApiVo occurrence; + + @JsonProperty("channel") + private Integer channel; + + public AutoCheckUpgradeCreateInfo modelTypeInfos(List modelTypeInfos) { + this.modelTypeInfos = modelTypeInfos; + return this; + } + + public AutoCheckUpgradeCreateInfo addModelTypeInfosItem(ModelTypeInfoOpenApiVo modelTypeInfosItem) { + this.modelTypeInfos.add(modelTypeInfosItem); + return this; + } + + /** + * List of model type selected by the user, and it should not be null + * @return modelTypeInfos + */ + @ApiModelProperty(required = true, value = "List of model type selected by the user, and it should not be null") + @NotNull + + @Valid + + public List getModelTypeInfos() { + return modelTypeInfos; + } + + public void setModelTypeInfos(List modelTypeInfos) { + this.modelTypeInfos = modelTypeInfos; + } + + public AutoCheckUpgradeCreateInfo siteIds(List siteIds) { + this.siteIds = siteIds; + return this; + } + + public AutoCheckUpgradeCreateInfo addSiteIdsItem(String siteIdsItem) { + this.siteIds.add(siteIdsItem); + return this; + } + + /** + * List of sites selected by the user, and it should not be null + * @return siteIds + */ + @ApiModelProperty(required = true, value = "List of sites selected by the user, and it should not be null") + @NotNull + + + public List getSiteIds() { + return siteIds; + } + + public void setSiteIds(List siteIds) { + this.siteIds = siteIds; + } + + public AutoCheckUpgradeCreateInfo occurrence(UpgradeBaseScheduleTimeOpenApiVo occurrence) { + this.occurrence = occurrence; + return this; + } + + /** + * Get occurrence + * @return occurrence + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public UpgradeBaseScheduleTimeOpenApiVo getOccurrence() { + return occurrence; + } + + public void setOccurrence(UpgradeBaseScheduleTimeOpenApiVo occurrence) { + this.occurrence = occurrence; + } + + public AutoCheckUpgradeCreateInfo channel(Integer channel) { + this.channel = channel; + return this; + } + + /** + * Channel should be a value as follows: 0: stable; 1: Release Candidate(RC); 2: Beta, and it should not be null + * @return channel + */ + @ApiModelProperty(required = true, value = "Channel should be a value as follows: 0: stable; 1: Release Candidate(RC); 2: Beta, and it should not be null") + @NotNull + + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutoCheckUpgradeCreateInfo autoCheckUpgradeCreateInfo = (AutoCheckUpgradeCreateInfo) o; + return Objects.equals(this.modelTypeInfos, autoCheckUpgradeCreateInfo.modelTypeInfos) && + Objects.equals(this.siteIds, autoCheckUpgradeCreateInfo.siteIds) && + Objects.equals(this.occurrence, autoCheckUpgradeCreateInfo.occurrence) && + Objects.equals(this.channel, autoCheckUpgradeCreateInfo.channel); + } + + @Override + public int hashCode() { + return Objects.hash(modelTypeInfos, siteIds, occurrence, channel); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutoCheckUpgradeCreateInfo {\n"); + + sb.append(" modelTypeInfos: ").append(toIndentedString(modelTypeInfos)).append("\n"); + sb.append(" siteIds: ").append(toIndentedString(siteIds)).append("\n"); + sb.append(" occurrence: ").append(toIndentedString(occurrence)).append("\n"); + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AutoCheckUpgradeInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AutoCheckUpgradeInfo.java new file mode 100644 index 0000000..d6ae254 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/AutoCheckUpgradeInfo.java @@ -0,0 +1,249 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * AutoCheckUpgradeInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class AutoCheckUpgradeInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("modelTypeInfos") + @Valid + private List modelTypeInfos = null; + + @JsonProperty("siteNames") + @Valid + private List siteNames = null; + + @JsonProperty("siteNum") + private Integer siteNum; + + @JsonProperty("autoCheckTime") + private String autoCheckTime; + + @JsonProperty("channel") + private Integer channel; + + @JsonProperty("occurrence") + private UpgradeBaseScheduleTimeOpenApiVo occurrence; + + public AutoCheckUpgradeInfo id(String id) { + this.id = id; + return this; + } + + /** + * ID + * @return id + */ + @ApiModelProperty(value = "ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AutoCheckUpgradeInfo modelTypeInfos(List modelTypeInfos) { + this.modelTypeInfos = modelTypeInfos; + return this; + } + + public AutoCheckUpgradeInfo addModelTypeInfosItem(ModelTypeInfoOpenApiVo modelTypeInfosItem) { + if (this.modelTypeInfos == null) { + this.modelTypeInfos = new ArrayList<>(); + } + this.modelTypeInfos.add(modelTypeInfosItem); + return this; + } + + /** + * List of model type selected by the user + * @return modelTypeInfos + */ + @ApiModelProperty(value = "List of model type selected by the user") + + @Valid + + public List getModelTypeInfos() { + return modelTypeInfos; + } + + public void setModelTypeInfos(List modelTypeInfos) { + this.modelTypeInfos = modelTypeInfos; + } + + public AutoCheckUpgradeInfo siteNames(List siteNames) { + this.siteNames = siteNames; + return this; + } + + public AutoCheckUpgradeInfo addSiteNamesItem(String siteNamesItem) { + if (this.siteNames == null) { + this.siteNames = new ArrayList<>(); + } + this.siteNames.add(siteNamesItem); + return this; + } + + /** + * The siteNames lists selected by the user + * @return siteNames + */ + @ApiModelProperty(value = "The siteNames lists selected by the user") + + + public List getSiteNames() { + return siteNames; + } + + public void setSiteNames(List siteNames) { + this.siteNames = siteNames; + } + + public AutoCheckUpgradeInfo siteNum(Integer siteNum) { + this.siteNum = siteNum; + return this; + } + + /** + * Number of sites selected by the user + * @return siteNum + */ + @ApiModelProperty(value = "Number of sites selected by the user") + + + public Integer getSiteNum() { + return siteNum; + } + + public void setSiteNum(Integer siteNum) { + this.siteNum = siteNum; + } + + public AutoCheckUpgradeInfo autoCheckTime(String autoCheckTime) { + this.autoCheckTime = autoCheckTime; + return this; + } + + /** + * Next execution time + * @return autoCheckTime + */ + @ApiModelProperty(value = "Next execution time") + + + public String getAutoCheckTime() { + return autoCheckTime; + } + + public void setAutoCheckTime(String autoCheckTime) { + this.autoCheckTime = autoCheckTime; + } + + public AutoCheckUpgradeInfo channel(Integer channel) { + this.channel = channel; + return this; + } + + /** + * Channel should be a value as follows: 0: stable; 1: Release Candidate(RC); 2: Beta + * @return channel + */ + @ApiModelProperty(value = "Channel should be a value as follows: 0: stable; 1: Release Candidate(RC); 2: Beta") + + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + public AutoCheckUpgradeInfo occurrence(UpgradeBaseScheduleTimeOpenApiVo occurrence) { + this.occurrence = occurrence; + return this; + } + + /** + * Get occurrence + * @return occurrence + */ + @ApiModelProperty(value = "") + + @Valid + + public UpgradeBaseScheduleTimeOpenApiVo getOccurrence() { + return occurrence; + } + + public void setOccurrence(UpgradeBaseScheduleTimeOpenApiVo occurrence) { + this.occurrence = occurrence; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutoCheckUpgradeInfo autoCheckUpgradeInfo = (AutoCheckUpgradeInfo) o; + return Objects.equals(this.id, autoCheckUpgradeInfo.id) && + Objects.equals(this.modelTypeInfos, autoCheckUpgradeInfo.modelTypeInfos) && + Objects.equals(this.siteNames, autoCheckUpgradeInfo.siteNames) && + Objects.equals(this.siteNum, autoCheckUpgradeInfo.siteNum) && + Objects.equals(this.autoCheckTime, autoCheckUpgradeInfo.autoCheckTime) && + Objects.equals(this.channel, autoCheckUpgradeInfo.channel) && + Objects.equals(this.occurrence, autoCheckUpgradeInfo.occurrence); + } + + @Override + public int hashCode() { + return Objects.hash(id, modelTypeInfos, siteNames, siteNum, autoCheckTime, channel, occurrence); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutoCheckUpgradeInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" modelTypeInfos: ").append(toIndentedString(modelTypeInfos)).append("\n"); + sb.append(" siteNames: ").append(toIndentedString(siteNames)).append("\n"); + sb.append(" siteNum: ").append(toIndentedString(siteNum)).append("\n"); + sb.append(" autoCheckTime: ").append(toIndentedString(autoCheckTime)).append("\n"); + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" occurrence: ").append(toIndentedString(occurrence)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/BatchProfileOverride.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/BatchProfileOverride.java new file mode 100644 index 0000000..2e1a4e8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/BatchProfileOverride.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchProfileOverride + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class BatchProfileOverride { + @JsonProperty("portList") + @Valid + private List portList = new ArrayList<>(); + + @JsonProperty("profileOverrideEnable") + private Boolean profileOverrideEnable; + + public BatchProfileOverride portList(List portList) { + this.portList = portList; + return this; + } + + public BatchProfileOverride addPortListItem(Integer portListItem) { + this.portList.add(portListItem); + return this; + } + + /** + * Port ID List. + * @return portList + */ + @ApiModelProperty(required = true, value = "Port ID List.") + @NotNull + +@Size(min=1,max=2147483647) + public List getPortList() { + return portList; + } + + public void setPortList(List portList) { + this.portList = portList; + } + + public BatchProfileOverride profileOverrideEnable(Boolean profileOverrideEnable) { + this.profileOverrideEnable = profileOverrideEnable; + return this; + } + + /** + * Profile Override Enable. + * @return profileOverrideEnable + */ + @ApiModelProperty(required = true, value = "Profile Override Enable.") + @NotNull + + + public Boolean getProfileOverrideEnable() { + return profileOverrideEnable; + } + + public void setProfileOverrideEnable(Boolean profileOverrideEnable) { + this.profileOverrideEnable = profileOverrideEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchProfileOverride batchProfileOverride = (BatchProfileOverride) o; + return Objects.equals(this.portList, batchProfileOverride.portList) && + Objects.equals(this.profileOverrideEnable, batchProfileOverride.profileOverrideEnable); + } + + @Override + public int hashCode() { + return Objects.hash(portList, profileOverrideEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchProfileOverride {\n"); + + sb.append(" portList: ").append(toIndentedString(portList)).append("\n"); + sb.append(" profileOverrideEnable: ").append(toIndentedString(profileOverrideEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/BatchTagRespOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/BatchTagRespOpenApiVo.java new file mode 100644 index 0000000..6cc06c9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/BatchTagRespOpenApiVo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchTagRespOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class BatchTagRespOpenApiVo { + @JsonProperty("batchTagResult") + @Valid + private List batchTagResult = null; + + public BatchTagRespOpenApiVo batchTagResult(List batchTagResult) { + this.batchTagResult = batchTagResult; + return this; + } + + public BatchTagRespOpenApiVo addBatchTagResultItem(SetTagResultOpenApiVo batchTagResultItem) { + if (this.batchTagResult == null) { + this.batchTagResult = new ArrayList<>(); + } + this.batchTagResult.add(batchTagResultItem); + return this; + } + + /** + * batch set tag result + * @return batchTagResult + */ + @ApiModelProperty(value = "batch set tag result") + + @Valid + + public List getBatchTagResult() { + return batchTagResult; + } + + public void setBatchTagResult(List batchTagResult) { + this.batchTagResult = batchTagResult; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchTagRespOpenApiVo batchTagRespOpenApiVo = (BatchTagRespOpenApiVo) o; + return Objects.equals(this.batchTagResult, batchTagRespOpenApiVo.batchTagResult); + } + + @Override + public int hashCode() { + return Objects.hash(batchTagResult); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchTagRespOpenApiVo {\n"); + + sb.append(" batchTagResult: ").append(toIndentedString(batchTagResult)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CheckFirmwareRes.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CheckFirmwareRes.java new file mode 100644 index 0000000..1986a1c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CheckFirmwareRes.java @@ -0,0 +1,181 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CheckFirmwareRes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class CheckFirmwareRes { + @JsonProperty("finished") + private Boolean finished; + + @JsonProperty("apMacList") + @Valid + private List apMacList = null; + + @JsonProperty("switchMacList") + @Valid + private List switchMacList = null; + + @JsonProperty("gatewayMacList") + @Valid + private List gatewayMacList = null; + + public CheckFirmwareRes finished(Boolean finished) { + this.finished = finished; + return this; + } + + /** + * Whether the task is complete + * @return finished + */ + @ApiModelProperty(value = "Whether the task is complete") + + + public Boolean getFinished() { + return finished; + } + + public void setFinished(Boolean finished) { + this.finished = finished; + } + + public CheckFirmwareRes apMacList(List apMacList) { + this.apMacList = apMacList; + return this; + } + + public CheckFirmwareRes addApMacListItem(String apMacListItem) { + if (this.apMacList == null) { + this.apMacList = new ArrayList<>(); + } + this.apMacList.add(apMacListItem); + return this; + } + + /** + * List of the ap MAC address with firmware updates. E.g. AA-BB-CC-DD-11-22 + * @return apMacList + */ + @ApiModelProperty(value = "List of the ap MAC address with firmware updates. E.g. AA-BB-CC-DD-11-22") + + + public List getApMacList() { + return apMacList; + } + + public void setApMacList(List apMacList) { + this.apMacList = apMacList; + } + + public CheckFirmwareRes switchMacList(List switchMacList) { + this.switchMacList = switchMacList; + return this; + } + + public CheckFirmwareRes addSwitchMacListItem(String switchMacListItem) { + if (this.switchMacList == null) { + this.switchMacList = new ArrayList<>(); + } + this.switchMacList.add(switchMacListItem); + return this; + } + + /** + * List of switch MAC address with firmware updates. E.g. AA-BB-CC-DD-11-22 + * @return switchMacList + */ + @ApiModelProperty(value = "List of switch MAC address with firmware updates. E.g. AA-BB-CC-DD-11-22") + + + public List getSwitchMacList() { + return switchMacList; + } + + public void setSwitchMacList(List switchMacList) { + this.switchMacList = switchMacList; + } + + public CheckFirmwareRes gatewayMacList(List gatewayMacList) { + this.gatewayMacList = gatewayMacList; + return this; + } + + public CheckFirmwareRes addGatewayMacListItem(String gatewayMacListItem) { + if (this.gatewayMacList == null) { + this.gatewayMacList = new ArrayList<>(); + } + this.gatewayMacList.add(gatewayMacListItem); + return this; + } + + /** + * List of gateway MAC address with firmware updates. E.g. AA-BB-CC-DD-11-22 + * @return gatewayMacList + */ + @ApiModelProperty(value = "List of gateway MAC address with firmware updates. E.g. AA-BB-CC-DD-11-22") + + + public List getGatewayMacList() { + return gatewayMacList; + } + + public void setGatewayMacList(List gatewayMacList) { + this.gatewayMacList = gatewayMacList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CheckFirmwareRes checkFirmwareRes = (CheckFirmwareRes) o; + return Objects.equals(this.finished, checkFirmwareRes.finished) && + Objects.equals(this.apMacList, checkFirmwareRes.apMacList) && + Objects.equals(this.switchMacList, checkFirmwareRes.switchMacList) && + Objects.equals(this.gatewayMacList, checkFirmwareRes.gatewayMacList); + } + + @Override + public int hashCode() { + return Objects.hash(finished, apMacList, switchMacList, gatewayMacList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckFirmwareRes {\n"); + + sb.append(" finished: ").append(toIndentedString(finished)).append("\n"); + sb.append(" apMacList: ").append(toIndentedString(apMacList)).append("\n"); + sb.append(" switchMacList: ").append(toIndentedString(switchMacList)).append("\n"); + sb.append(" gatewayMacList: ").append(toIndentedString(gatewayMacList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CreateAutoCheckResInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CreateAutoCheckResInfo.java new file mode 100644 index 0000000..60f49f3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CreateAutoCheckResInfo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CreateAutoCheckResInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class CreateAutoCheckResInfo { + @JsonProperty("autoCheckId") + private String autoCheckId; + + public CreateAutoCheckResInfo autoCheckId(String autoCheckId) { + this.autoCheckId = autoCheckId; + return this; + } + + /** + * AutoCheck ID + * @return autoCheckId + */ + @ApiModelProperty(value = "AutoCheck ID") + + + public String getAutoCheckId() { + return autoCheckId; + } + + public void setAutoCheckId(String autoCheckId) { + this.autoCheckId = autoCheckId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateAutoCheckResInfo createAutoCheckResInfo = (CreateAutoCheckResInfo) o; + return Objects.equals(this.autoCheckId, createAutoCheckResInfo.autoCheckId); + } + + @Override + public int hashCode() { + return Objects.hash(autoCheckId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateAutoCheckResInfo {\n"); + + sb.append(" autoCheckId: ").append(toIndentedString(autoCheckId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CreateUpgradePlanResinfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CreateUpgradePlanResinfo.java new file mode 100644 index 0000000..24c0e42 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CreateUpgradePlanResinfo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateUpgradePlanResinfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class CreateUpgradePlanResinfo { + @JsonProperty("upgradeIdList") + @Valid + private List upgradeIdList = null; + + public CreateUpgradePlanResinfo upgradeIdList(List upgradeIdList) { + this.upgradeIdList = upgradeIdList; + return this; + } + + public CreateUpgradePlanResinfo addUpgradeIdListItem(String upgradeIdListItem) { + if (this.upgradeIdList == null) { + this.upgradeIdList = new ArrayList<>(); + } + this.upgradeIdList.add(upgradeIdListItem); + return this; + } + + /** + * Upgrade ID list + * @return upgradeIdList + */ + @ApiModelProperty(value = "Upgrade ID list") + + + public List getUpgradeIdList() { + return upgradeIdList; + } + + public void setUpgradeIdList(List upgradeIdList) { + this.upgradeIdList = upgradeIdList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateUpgradePlanResinfo createUpgradePlanResinfo = (CreateUpgradePlanResinfo) o; + return Objects.equals(this.upgradeIdList, createUpgradePlanResinfo.upgradeIdList); + } + + @Override + public int hashCode() { + return Objects.hash(upgradeIdList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateUpgradePlanResinfo {\n"); + + sb.append(" upgradeIdList: ").append(toIndentedString(upgradeIdList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CriticalModelNum.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CriticalModelNum.java new file mode 100644 index 0000000..2561588 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/CriticalModelNum.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CriticalModelNum + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class CriticalModelNum { + @JsonProperty("criticalNumber") + private Integer criticalNumber; + + public CriticalModelNum criticalNumber(Integer criticalNumber) { + this.criticalNumber = criticalNumber; + return this; + } + + /** + * Number of critical models + * @return criticalNumber + */ + @ApiModelProperty(value = "Number of critical models") + + + public Integer getCriticalNumber() { + return criticalNumber; + } + + public void setCriticalNumber(Integer criticalNumber) { + this.criticalNumber = criticalNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CriticalModelNum criticalModelNum = (CriticalModelNum) o; + return Objects.equals(this.criticalNumber, criticalModelNum.criticalNumber); + } + + @Override + public int hashCode() { + return Objects.hash(criticalNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CriticalModelNum {\n"); + + sb.append(" criticalNumber: ").append(toIndentedString(criticalNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeleteTagOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeleteTagOpenApiVo.java new file mode 100644 index 0000000..4cb251d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeleteTagOpenApiVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DeleteTagOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DeleteTagOpenApiVo { + @JsonProperty("tagId") + private String tagId; + + public DeleteTagOpenApiVo tagId(String tagId) { + this.tagId = tagId; + return this; + } + + /** + * Tag ID + * @return tagId + */ + @ApiModelProperty(required = true, value = "Tag ID") + @NotNull + + + public String getTagId() { + return tagId; + } + + public void setTagId(String tagId) { + this.tagId = tagId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteTagOpenApiVo deleteTagOpenApiVo = (DeleteTagOpenApiVo) o; + return Objects.equals(this.tagId, deleteTagOpenApiVo.tagId); + } + + @Override + public int hashCode() { + return Objects.hash(tagId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteTagOpenApiVo {\n"); + + sb.append(" tagId: ").append(toIndentedString(tagId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceAddProcessRespVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceAddProcessRespVo.java new file mode 100644 index 0000000..a68671e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceAddProcessRespVo.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * DeviceAddProcessRespVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DeviceAddProcessRespVo { + @JsonProperty("processStatus") + private Integer processStatus; + + @JsonProperty("devices") + @Valid + private List devices = null; + + public DeviceAddProcessRespVo processStatus(Integer processStatus) { + this.processStatus = processStatus; + return this; + } + + /** + * It should be a value as follows: 0: init; 1: doing; 2: done + * @return processStatus + */ + @ApiModelProperty(value = "It should be a value as follows: 0: init; 1: doing; 2: done") + + + public Integer getProcessStatus() { + return processStatus; + } + + public void setProcessStatus(Integer processStatus) { + this.processStatus = processStatus; + } + + public DeviceAddProcessRespVo devices(List devices) { + this.devices = devices; + return this; + } + + public DeviceAddProcessRespVo addDevicesItem(SnAddResultVo devicesItem) { + if (this.devices == null) { + this.devices = new ArrayList<>(); + } + this.devices.add(devicesItem); + return this; + } + + /** + * Devices add result + * @return devices + */ + @ApiModelProperty(value = "Devices add result") + + @Valid + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceAddProcessRespVo deviceAddProcessRespVo = (DeviceAddProcessRespVo) o; + return Objects.equals(this.processStatus, deviceAddProcessRespVo.processStatus) && + Objects.equals(this.devices, deviceAddProcessRespVo.devices); + } + + @Override + public int hashCode() { + return Objects.hash(processStatus, devices); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceAddProcessRespVo {\n"); + + sb.append(" processStatus: ").append(toIndentedString(processStatus)).append("\n"); + sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceAddRespOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceAddRespOpenApiVo.java new file mode 100644 index 0000000..1924111 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceAddRespOpenApiVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * DeviceAddRespOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DeviceAddRespOpenApiVo { + @JsonProperty("operateId") + private String operateId; + + public DeviceAddRespOpenApiVo operateId(String operateId) { + this.operateId = operateId; + return this; + } + + /** + * Operation ID used for progress query + * @return operateId + */ + @ApiModelProperty(value = "Operation ID used for progress query") + + + public String getOperateId() { + return operateId; + } + + public void setOperateId(String operateId) { + this.operateId = operateId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceAddRespOpenApiVo deviceAddRespOpenApiVo = (DeviceAddRespOpenApiVo) o; + return Objects.equals(this.operateId, deviceAddRespOpenApiVo.operateId); + } + + @Override + public int hashCode() { + return Objects.hash(operateId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceAddRespOpenApiVo {\n"); + + sb.append(" operateId: ").append(toIndentedString(operateId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceCopyConfigurationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceCopyConfigurationOpenApiVo.java new file mode 100644 index 0000000..b039167 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceCopyConfigurationOpenApiVo.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DeviceCopyConfigurationOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DeviceCopyConfigurationOpenApiVo { + @JsonProperty("sourceMac") + private String sourceMac; + + @JsonProperty("targetMac") + private String targetMac; + + public DeviceCopyConfigurationOpenApiVo sourceMac(String sourceMac) { + this.sourceMac = sourceMac; + return this; + } + + /** + * Source device MAC, like AA-BB-CC-DD-EE-FF + * @return sourceMac + */ + @ApiModelProperty(required = true, value = "Source device MAC, like AA-BB-CC-DD-EE-FF") + @NotNull + + + public String getSourceMac() { + return sourceMac; + } + + public void setSourceMac(String sourceMac) { + this.sourceMac = sourceMac; + } + + public DeviceCopyConfigurationOpenApiVo targetMac(String targetMac) { + this.targetMac = targetMac; + return this; + } + + /** + * Target device MAC, like AA-BB-CC-DD-EE-FF + * @return targetMac + */ + @ApiModelProperty(required = true, value = "Target device MAC, like AA-BB-CC-DD-EE-FF") + @NotNull + + + public String getTargetMac() { + return targetMac; + } + + public void setTargetMac(String targetMac) { + this.targetMac = targetMac; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceCopyConfigurationOpenApiVo deviceCopyConfigurationOpenApiVo = (DeviceCopyConfigurationOpenApiVo) o; + return Objects.equals(this.sourceMac, deviceCopyConfigurationOpenApiVo.sourceMac) && + Objects.equals(this.targetMac, deviceCopyConfigurationOpenApiVo.targetMac); + } + + @Override + public int hashCode() { + return Objects.hash(sourceMac, targetMac); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceCopyConfigurationOpenApiVo {\n"); + + sb.append(" sourceMac: ").append(toIndentedString(sourceMac)).append("\n"); + sb.append(" targetMac: ").append(toIndentedString(targetMac)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceFirmwareInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceFirmwareInfo.java new file mode 100644 index 0000000..cec3ad6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceFirmwareInfo.java @@ -0,0 +1,126 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * DeviceFirmwareInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DeviceFirmwareInfo { + @JsonProperty("curFwVer") + private String curFwVer; + + @JsonProperty("lastFwVer") + private String lastFwVer; + + @JsonProperty("fwReleaseLog") + private String fwReleaseLog; + + public DeviceFirmwareInfo curFwVer(String curFwVer) { + this.curFwVer = curFwVer; + return this; + } + + /** + * Current firmware version + * @return curFwVer + */ + @ApiModelProperty(value = "Current firmware version") + + + public String getCurFwVer() { + return curFwVer; + } + + public void setCurFwVer(String curFwVer) { + this.curFwVer = curFwVer; + } + + public DeviceFirmwareInfo lastFwVer(String lastFwVer) { + this.lastFwVer = lastFwVer; + return this; + } + + /** + * Latest firmware version + * @return lastFwVer + */ + @ApiModelProperty(value = "Latest firmware version") + + + public String getLastFwVer() { + return lastFwVer; + } + + public void setLastFwVer(String lastFwVer) { + this.lastFwVer = lastFwVer; + } + + public DeviceFirmwareInfo fwReleaseLog(String fwReleaseLog) { + this.fwReleaseLog = fwReleaseLog; + return this; + } + + /** + * Firmware release log + * @return fwReleaseLog + */ + @ApiModelProperty(value = "Firmware release log") + + + public String getFwReleaseLog() { + return fwReleaseLog; + } + + public void setFwReleaseLog(String fwReleaseLog) { + this.fwReleaseLog = fwReleaseLog; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceFirmwareInfo deviceFirmwareInfo = (DeviceFirmwareInfo) o; + return Objects.equals(this.curFwVer, deviceFirmwareInfo.curFwVer) && + Objects.equals(this.lastFwVer, deviceFirmwareInfo.lastFwVer) && + Objects.equals(this.fwReleaseLog, deviceFirmwareInfo.fwReleaseLog); + } + + @Override + public int hashCode() { + return Objects.hash(curFwVer, lastFwVer, fwReleaseLog); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceFirmwareInfo {\n"); + + sb.append(" curFwVer: ").append(toIndentedString(curFwVer)).append("\n"); + sb.append(" lastFwVer: ").append(toIndentedString(lastFwVer)).append("\n"); + sb.append(" fwReleaseLog: ").append(toIndentedString(fwReleaseLog)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceInfo.java new file mode 100644 index 0000000..d7fcace --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceInfo.java @@ -0,0 +1,663 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * DeviceInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DeviceInfo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private String type; + + @JsonProperty("subtype") + private String subtype; + + @JsonProperty("deviceSeriesType") + private Integer deviceSeriesType; + + @JsonProperty("model") + private String model; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("ipv6") + @Valid + private List ipv6 = null; + + @JsonProperty("uptime") + private String uptime; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("lastSeen") + private Long lastSeen; + + @JsonProperty("cpuUtil") + private Integer cpuUtil; + + @JsonProperty("memUtil") + private Integer memUtil; + + @JsonProperty("sn") + private String sn; + + @JsonProperty("licenseStatus") + private Integer licenseStatus; + + @JsonProperty("tagName") + private String tagName; + + @JsonProperty("uplinkDeviceMac") + private String uplinkDeviceMac; + + @JsonProperty("uplinkDeviceName") + private String uplinkDeviceName; + + @JsonProperty("uplinkDevicePort") + private String uplinkDevicePort; + + @JsonProperty("linkSpeed") + private Integer linkSpeed; + + @JsonProperty("duplex") + private Integer duplex; + + @JsonProperty("switchConsistent") + private Boolean switchConsistent; + + @JsonProperty("publicIp") + private String publicIp; + + @JsonProperty("firmwareVersion") + private String firmwareVersion; + + public DeviceInfo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC + * @return mac + */ + @ApiModelProperty(value = "Device MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public DeviceInfo name(String name) { + this.name = name; + return this; + } + + /** + * Device name + * @return name + */ + @ApiModelProperty(value = "Device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DeviceInfo type(String type) { + this.type = type; + return this; + } + + /** + * Device type + * @return type + */ + @ApiModelProperty(value = "Device type") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public DeviceInfo subtype(String subtype) { + this.subtype = subtype; + return this; + } + + /** + * Switch subtype should be a value as follows: smart: Smart Switch; es: Easy Managed Switch. + * @return subtype + */ + @ApiModelProperty(value = "Switch subtype should be a value as follows: smart: Smart Switch; es: Easy Managed Switch.") + + + public String getSubtype() { + return subtype; + } + + public void setSubtype(String subtype) { + this.subtype = subtype; + } + + public DeviceInfo deviceSeriesType(Integer deviceSeriesType) { + this.deviceSeriesType = deviceSeriesType; + return this; + } + + /** + * Device series type. 0 means basic, 1 means pro. + * @return deviceSeriesType + */ + @ApiModelProperty(value = "Device series type. 0 means basic, 1 means pro.") + + + public Integer getDeviceSeriesType() { + return deviceSeriesType; + } + + public void setDeviceSeriesType(Integer deviceSeriesType) { + this.deviceSeriesType = deviceSeriesType; + } + + public DeviceInfo model(String model) { + this.model = model; + return this; + } + + /** + * Device model name + * @return model + */ + @ApiModelProperty(value = "Device model name") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public DeviceInfo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Device IP + * @return ip + */ + @ApiModelProperty(value = "Device IP") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public DeviceInfo ipv6(List ipv6) { + this.ipv6 = ipv6; + return this; + } + + public DeviceInfo addIpv6Item(String ipv6Item) { + if (this.ipv6 == null) { + this.ipv6 = new ArrayList<>(); + } + this.ipv6.add(ipv6Item); + return this; + } + + /** + * Device IPv6 list + * @return ipv6 + */ + @ApiModelProperty(value = "Device IPv6 list") + + + public List getIpv6() { + return ipv6; + } + + public void setIpv6(List ipv6) { + this.ipv6 = ipv6; + } + + public DeviceInfo uptime(String uptime) { + this.uptime = uptime; + return this; + } + + /** + * Device uptime + * @return uptime + */ + @ApiModelProperty(value = "Device uptime") + + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public DeviceInfo status(Integer status) { + this.status = status; + return this; + } + + /** + * Device status should be a value as follows: 0: Disconnected; 1: Connected; 2: Pending; 3: Heartbeat Missed; 4: Isolated + * @return status + */ + @ApiModelProperty(value = "Device status should be a value as follows: 0: Disconnected; 1: Connected; 2: Pending; 3: Heartbeat Missed; 4: Isolated") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public DeviceInfo lastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + return this; + } + + /** + * Device lastSeen + * @return lastSeen + */ + @ApiModelProperty(value = "Device lastSeen") + + + public Long getLastSeen() { + return lastSeen; + } + + public void setLastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + } + + public DeviceInfo cpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + return this; + } + + /** + * Device cpuUtil + * @return cpuUtil + */ + @ApiModelProperty(value = "Device cpuUtil") + + + public Integer getCpuUtil() { + return cpuUtil; + } + + public void setCpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + } + + public DeviceInfo memUtil(Integer memUtil) { + this.memUtil = memUtil; + return this; + } + + /** + * Device memUtil + * @return memUtil + */ + @ApiModelProperty(value = "Device memUtil") + + + public Integer getMemUtil() { + return memUtil; + } + + public void setMemUtil(Integer memUtil) { + this.memUtil = memUtil; + } + + public DeviceInfo sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Device serial number + * @return sn + */ + @ApiModelProperty(value = "Device serial number") + + + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public DeviceInfo licenseStatus(Integer licenseStatus) { + this.licenseStatus = licenseStatus; + return this; + } + + /** + * Device license status (Only for cloud base) should be a value as follows: 0: unActive; 1: Unbind; 2: Expired; 3: active + * @return licenseStatus + */ + @ApiModelProperty(value = "Device license status (Only for cloud base) should be a value as follows: 0: unActive; 1: Unbind; 2: Expired; 3: active") + + + public Integer getLicenseStatus() { + return licenseStatus; + } + + public void setLicenseStatus(Integer licenseStatus) { + this.licenseStatus = licenseStatus; + } + + public DeviceInfo tagName(String tagName) { + this.tagName = tagName; + return this; + } + + /** + * Device tag name + * @return tagName + */ + @ApiModelProperty(value = "Device tag name") + + + public String getTagName() { + return tagName; + } + + public void setTagName(String tagName) { + this.tagName = tagName; + } + + public DeviceInfo uplinkDeviceMac(String uplinkDeviceMac) { + this.uplinkDeviceMac = uplinkDeviceMac; + return this; + } + + /** + * Uplink device mac + * @return uplinkDeviceMac + */ + @ApiModelProperty(value = "Uplink device mac") + + + public String getUplinkDeviceMac() { + return uplinkDeviceMac; + } + + public void setUplinkDeviceMac(String uplinkDeviceMac) { + this.uplinkDeviceMac = uplinkDeviceMac; + } + + public DeviceInfo uplinkDeviceName(String uplinkDeviceName) { + this.uplinkDeviceName = uplinkDeviceName; + return this; + } + + /** + * Uplink device name + * @return uplinkDeviceName + */ + @ApiModelProperty(value = "Uplink device name") + + + public String getUplinkDeviceName() { + return uplinkDeviceName; + } + + public void setUplinkDeviceName(String uplinkDeviceName) { + this.uplinkDeviceName = uplinkDeviceName; + } + + public DeviceInfo uplinkDevicePort(String uplinkDevicePort) { + this.uplinkDevicePort = uplinkDevicePort; + return this; + } + + /** + * Uplink device port + * @return uplinkDevicePort + */ + @ApiModelProperty(value = "Uplink device port") + + + public String getUplinkDevicePort() { + return uplinkDevicePort; + } + + public void setUplinkDevicePort(String uplinkDevicePort) { + this.uplinkDevicePort = uplinkDevicePort; + } + + public DeviceInfo linkSpeed(Integer linkSpeed) { + this.linkSpeed = linkSpeed; + return this; + } + + /** + * Device uplink port linkSpeed, linkSpeed should be a value as follows: 0: Auto; 1: 10M; 2: 100M; 3: 1000M; 4: 2500M; 5: 10G; 6: 5G; 7: 25G, 8: 100G. + * @return linkSpeed + */ + @ApiModelProperty(value = "Device uplink port linkSpeed, linkSpeed should be a value as follows: 0: Auto; 1: 10M; 2: 100M; 3: 1000M; 4: 2500M; 5: 10G; 6: 5G; 7: 25G, 8: 100G.") + + + public Integer getLinkSpeed() { + return linkSpeed; + } + + public void setLinkSpeed(Integer linkSpeed) { + this.linkSpeed = linkSpeed; + } + + public DeviceInfo duplex(Integer duplex) { + this.duplex = duplex; + return this; + } + + /** + * Device uplink port duplex mode, duplex should be a value as follows: 0: Auto; 1: Half; 2: Full. + * @return duplex + */ + @ApiModelProperty(value = "Device uplink port duplex mode, duplex should be a value as follows: 0: Auto; 1: Half; 2: Full.") + + + public Integer getDuplex() { + return duplex; + } + + public void setDuplex(Integer duplex) { + this.duplex = duplex; + } + + public DeviceInfo switchConsistent(Boolean switchConsistent) { + this.switchConsistent = switchConsistent; + return this; + } + + /** + * Whether the device can be adopted by the site. + * @return switchConsistent + */ + @ApiModelProperty(value = "Whether the device can be adopted by the site.") + + + public Boolean getSwitchConsistent() { + return switchConsistent; + } + + public void setSwitchConsistent(Boolean switchConsistent) { + this.switchConsistent = switchConsistent; + } + + public DeviceInfo publicIp(String publicIp) { + this.publicIp = publicIp; + return this; + } + + /** + * Device public IP + * @return publicIp + */ + @ApiModelProperty(value = "Device public IP") + + + public String getPublicIp() { + return publicIp; + } + + public void setPublicIp(String publicIp) { + this.publicIp = publicIp; + } + + public DeviceInfo firmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + return this; + } + + /** + * The device firmware version. + * @return firmwareVersion + */ + @ApiModelProperty(value = "The device firmware version.") + + + public String getFirmwareVersion() { + return firmwareVersion; + } + + public void setFirmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceInfo deviceInfo = (DeviceInfo) o; + return Objects.equals(this.mac, deviceInfo.mac) && + Objects.equals(this.name, deviceInfo.name) && + Objects.equals(this.type, deviceInfo.type) && + Objects.equals(this.subtype, deviceInfo.subtype) && + Objects.equals(this.deviceSeriesType, deviceInfo.deviceSeriesType) && + Objects.equals(this.model, deviceInfo.model) && + Objects.equals(this.ip, deviceInfo.ip) && + Objects.equals(this.ipv6, deviceInfo.ipv6) && + Objects.equals(this.uptime, deviceInfo.uptime) && + Objects.equals(this.status, deviceInfo.status) && + Objects.equals(this.lastSeen, deviceInfo.lastSeen) && + Objects.equals(this.cpuUtil, deviceInfo.cpuUtil) && + Objects.equals(this.memUtil, deviceInfo.memUtil) && + Objects.equals(this.sn, deviceInfo.sn) && + Objects.equals(this.licenseStatus, deviceInfo.licenseStatus) && + Objects.equals(this.tagName, deviceInfo.tagName) && + Objects.equals(this.uplinkDeviceMac, deviceInfo.uplinkDeviceMac) && + Objects.equals(this.uplinkDeviceName, deviceInfo.uplinkDeviceName) && + Objects.equals(this.uplinkDevicePort, deviceInfo.uplinkDevicePort) && + Objects.equals(this.linkSpeed, deviceInfo.linkSpeed) && + Objects.equals(this.duplex, deviceInfo.duplex) && + Objects.equals(this.switchConsistent, deviceInfo.switchConsistent) && + Objects.equals(this.publicIp, deviceInfo.publicIp) && + Objects.equals(this.firmwareVersion, deviceInfo.firmwareVersion); + } + + @Override + public int hashCode() { + return Objects.hash(mac, name, type, subtype, deviceSeriesType, model, ip, ipv6, uptime, status, lastSeen, cpuUtil, memUtil, sn, licenseStatus, tagName, uplinkDeviceMac, uplinkDeviceName, uplinkDevicePort, linkSpeed, duplex, switchConsistent, publicIp, firmwareVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceInfo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" deviceSeriesType: ").append(toIndentedString(deviceSeriesType)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" ipv6: ").append(toIndentedString(ipv6)).append("\n"); + sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append(" cpuUtil: ").append(toIndentedString(cpuUtil)).append("\n"); + sb.append(" memUtil: ").append(toIndentedString(memUtil)).append("\n"); + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" licenseStatus: ").append(toIndentedString(licenseStatus)).append("\n"); + sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n"); + sb.append(" uplinkDeviceMac: ").append(toIndentedString(uplinkDeviceMac)).append("\n"); + sb.append(" uplinkDeviceName: ").append(toIndentedString(uplinkDeviceName)).append("\n"); + sb.append(" uplinkDevicePort: ").append(toIndentedString(uplinkDevicePort)).append("\n"); + sb.append(" linkSpeed: ").append(toIndentedString(linkSpeed)).append("\n"); + sb.append(" duplex: ").append(toIndentedString(duplex)).append("\n"); + sb.append(" switchConsistent: ").append(toIndentedString(switchConsistent)).append("\n"); + sb.append(" publicIp: ").append(toIndentedString(publicIp)).append("\n"); + sb.append(" firmwareVersion: ").append(toIndentedString(firmwareVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddBySnOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddBySnOpenApiVo.java new file mode 100644 index 0000000..9e1ffef --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddBySnOpenApiVo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * DeviceListAddBySnOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DeviceListAddBySnOpenApiVo { + @JsonProperty("devices") + @Valid + private List devices = new ArrayList<>(); + + public DeviceListAddBySnOpenApiVo devices(List devices) { + this.devices = devices; + return this; + } + + public DeviceListAddBySnOpenApiVo addDevicesItem(AddDeviceBySnOpenApiVo devicesItem) { + this.devices.add(devicesItem); + return this; + } + + /** + * Add devices list + * @return devices + */ + @ApiModelProperty(required = true, value = "Add devices list") + @NotNull + + @Valid + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceListAddBySnOpenApiVo deviceListAddBySnOpenApiVo = (DeviceListAddBySnOpenApiVo) o; + return Objects.equals(this.devices, deviceListAddBySnOpenApiVo.devices); + } + + @Override + public int hashCode() { + return Objects.hash(devices); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceListAddBySnOpenApiVo {\n"); + + sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddMultiSiteBySnOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddMultiSiteBySnOpenApiVo.java new file mode 100644 index 0000000..77cd3df --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddMultiSiteBySnOpenApiVo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * DeviceListAddMultiSiteBySnOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DeviceListAddMultiSiteBySnOpenApiVo { + @JsonProperty("devices") + @Valid + private List devices = new ArrayList<>(); + + public DeviceListAddMultiSiteBySnOpenApiVo devices(List devices) { + this.devices = devices; + return this; + } + + public DeviceListAddMultiSiteBySnOpenApiVo addDevicesItem(AddDeviceWithSiteBySnOpenApiVo devicesItem) { + this.devices.add(devicesItem); + return this; + } + + /** + * Add devices list + * @return devices + */ + @ApiModelProperty(required = true, value = "Add devices list") + @NotNull + + @Valid + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceListAddMultiSiteBySnOpenApiVo deviceListAddMultiSiteBySnOpenApiVo = (DeviceListAddMultiSiteBySnOpenApiVo) o; + return Objects.equals(this.devices, deviceListAddMultiSiteBySnOpenApiVo.devices); + } + + @Override + public int hashCode() { + return Objects.hash(devices); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceListAddMultiSiteBySnOpenApiVo {\n"); + + sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddOpenApiVo.java new file mode 100644 index 0000000..c47d4b7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceListAddOpenApiVo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * DeviceListAddOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DeviceListAddOpenApiVo { + @JsonProperty("devices") + @Valid + private List devices = new ArrayList<>(); + + public DeviceListAddOpenApiVo devices(List devices) { + this.devices = devices; + return this; + } + + public DeviceListAddOpenApiVo addDevicesItem(AddDeviceVo devicesItem) { + this.devices.add(devicesItem); + return this; + } + + /** + * Add devices list + * @return devices + */ + @ApiModelProperty(required = true, value = "Add devices list") + @NotNull + + @Valid + + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceListAddOpenApiVo deviceListAddOpenApiVo = (DeviceListAddOpenApiVo) o; + return Objects.equals(this.devices, deviceListAddOpenApiVo.devices); + } + + @Override + public int hashCode() { + return Objects.hash(devices); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceListAddOpenApiVo {\n"); + + sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceLocationDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceLocationDetailVo.java new file mode 100644 index 0000000..d319f00 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceLocationDetailVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Device location + */ +@ApiModel(description = "Device location") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DeviceLocationDetailVo { + @JsonProperty("longitude") + private Double longitude; + + @JsonProperty("latitude") + private Double latitude; + + @JsonProperty("address") + private String address; + + public DeviceLocationDetailVo longitude(Double longitude) { + this.longitude = longitude; + return this; + } + + /** + * Longitude of the device. + * @return longitude + */ + @ApiModelProperty(value = "Longitude of the device.") + + + public Double getLongitude() { + return longitude; + } + + public void setLongitude(Double longitude) { + this.longitude = longitude; + } + + public DeviceLocationDetailVo latitude(Double latitude) { + this.latitude = latitude; + return this; + } + + /** + * Latitude of the device. + * @return latitude + */ + @ApiModelProperty(value = "Latitude of the device.") + + + public Double getLatitude() { + return latitude; + } + + public void setLatitude(Double latitude) { + this.latitude = latitude; + } + + public DeviceLocationDetailVo address(String address) { + this.address = address; + return this; + } + + /** + * Address of the device. + * @return address + */ + @ApiModelProperty(value = "Address of the device.") + + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceLocationDetailVo deviceLocationDetailVo = (DeviceLocationDetailVo) o; + return Objects.equals(this.longitude, deviceLocationDetailVo.longitude) && + Objects.equals(this.latitude, deviceLocationDetailVo.latitude) && + Objects.equals(this.address, deviceLocationDetailVo.address); + } + + @Override + public int hashCode() { + return Objects.hash(longitude, latitude, address); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceLocationDetailVo {\n"); + + sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); + sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceMoveSiteOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceMoveSiteOpenApiVo.java new file mode 100644 index 0000000..3217f92 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DeviceMoveSiteOpenApiVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DeviceMoveSiteOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DeviceMoveSiteOpenApiVo { + @JsonProperty("targetSite") + private String targetSite; + + public DeviceMoveSiteOpenApiVo targetSite(String targetSite) { + this.targetSite = targetSite; + return this; + } + + /** + * Target site ID + * @return targetSite + */ + @ApiModelProperty(required = true, value = "Target site ID") + @NotNull + + + public String getTargetSite() { + return targetSite; + } + + public void setTargetSite(String targetSite) { + this.targetSite = targetSite; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceMoveSiteOpenApiVo deviceMoveSiteOpenApiVo = (DeviceMoveSiteOpenApiVo) o; + return Objects.equals(this.targetSite, deviceMoveSiteOpenApiVo.targetSite); + } + + @Override + public int hashCode() { + return Objects.hash(targetSite); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceMoveSiteOpenApiVo {\n"); + + sb.append(" targetSite: ").append(toIndentedString(targetSite)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DhcpIpSettingEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DhcpIpSettingEntity.java new file mode 100644 index 0000000..bede2b1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DhcpIpSettingEntity.java @@ -0,0 +1,229 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * DHCP IP setting + */ +@ApiModel(description = "DHCP IP setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DhcpIpSettingEntity { + @JsonProperty("fallback") + private Boolean fallback; + + @JsonProperty("fallbackIp") + private String fallbackIp; + + @JsonProperty("fallbackMask") + private String fallbackMask; + + @JsonProperty("fallbackGate") + private String fallbackGate; + + @JsonProperty("useFixedAddr") + private Boolean useFixedAddr; + + @JsonProperty("netId") + private String netId; + + @JsonProperty("dhcpIp") + private String dhcpIp; + + public DhcpIpSettingEntity fallback(Boolean fallback) { + this.fallback = fallback; + return this; + } + + /** + * Enable/Disable fallback(if false, other params is not required) + * @return fallback + */ + @ApiModelProperty(value = "Enable/Disable fallback(if false, other params is not required)") + + + public Boolean getFallback() { + return fallback; + } + + public void setFallback(Boolean fallback) { + this.fallback = fallback; + } + + public DhcpIpSettingEntity fallbackIp(String fallbackIp) { + this.fallbackIp = fallbackIp; + return this; + } + + /** + * Fallback IP address + * @return fallbackIp + */ + @ApiModelProperty(value = "Fallback IP address") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getFallbackIp() { + return fallbackIp; + } + + public void setFallbackIp(String fallbackIp) { + this.fallbackIp = fallbackIp; + } + + public DhcpIpSettingEntity fallbackMask(String fallbackMask) { + this.fallbackMask = fallbackMask; + return this; + } + + /** + * Fallback IP mask + * @return fallbackMask + */ + @ApiModelProperty(value = "Fallback IP mask") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getFallbackMask() { + return fallbackMask; + } + + public void setFallbackMask(String fallbackMask) { + this.fallbackMask = fallbackMask; + } + + public DhcpIpSettingEntity fallbackGate(String fallbackGate) { + this.fallbackGate = fallbackGate; + return this; + } + + /** + * Fallback gateway IP address + * @return fallbackGate + */ + @ApiModelProperty(value = "Fallback gateway IP address") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getFallbackGate() { + return fallbackGate; + } + + public void setFallbackGate(String fallbackGate) { + this.fallbackGate = fallbackGate; + } + + public DhcpIpSettingEntity useFixedAddr(Boolean useFixedAddr) { + this.useFixedAddr = useFixedAddr; + return this; + } + + /** + * Enable reserved address(Gateway required) + * @return useFixedAddr + */ + @ApiModelProperty(value = "Enable reserved address(Gateway required)") + + + public Boolean getUseFixedAddr() { + return useFixedAddr; + } + + public void setUseFixedAddr(Boolean useFixedAddr) { + this.useFixedAddr = useFixedAddr; + } + + public DhcpIpSettingEntity netId(String netId) { + this.netId = netId; + return this; + } + + /** + * Network ID + * @return netId + */ + @ApiModelProperty(value = "Network ID") + + + public String getNetId() { + return netId; + } + + public void setNetId(String netId) { + this.netId = netId; + } + + public DhcpIpSettingEntity dhcpIp(String dhcpIp) { + this.dhcpIp = dhcpIp; + return this; + } + + /** + * Reserved IP address + * @return dhcpIp + */ + @ApiModelProperty(value = "Reserved IP address") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDhcpIp() { + return dhcpIp; + } + + public void setDhcpIp(String dhcpIp) { + this.dhcpIp = dhcpIp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DhcpIpSettingEntity dhcpIpSettingEntity = (DhcpIpSettingEntity) o; + return Objects.equals(this.fallback, dhcpIpSettingEntity.fallback) && + Objects.equals(this.fallbackIp, dhcpIpSettingEntity.fallbackIp) && + Objects.equals(this.fallbackMask, dhcpIpSettingEntity.fallbackMask) && + Objects.equals(this.fallbackGate, dhcpIpSettingEntity.fallbackGate) && + Objects.equals(this.useFixedAddr, dhcpIpSettingEntity.useFixedAddr) && + Objects.equals(this.netId, dhcpIpSettingEntity.netId) && + Objects.equals(this.dhcpIp, dhcpIpSettingEntity.dhcpIp); + } + + @Override + public int hashCode() { + return Objects.hash(fallback, fallbackIp, fallbackMask, fallbackGate, useFixedAddr, netId, dhcpIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DhcpIpSettingEntity {\n"); + + sb.append(" fallback: ").append(toIndentedString(fallback)).append("\n"); + sb.append(" fallbackIp: ").append(toIndentedString(fallbackIp)).append("\n"); + sb.append(" fallbackMask: ").append(toIndentedString(fallbackMask)).append("\n"); + sb.append(" fallbackGate: ").append(toIndentedString(fallbackGate)).append("\n"); + sb.append(" useFixedAddr: ").append(toIndentedString(useFixedAddr)).append("\n"); + sb.append(" netId: ").append(toIndentedString(netId)).append("\n"); + sb.append(" dhcpIp: ").append(toIndentedString(dhcpIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DslSettings.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DslSettings.java new file mode 100644 index 0000000..db90bd3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/DslSettings.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * DSL port configurations. + */ +@ApiModel(description = "DSL port configurations.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class DslSettings { + @JsonProperty("modulationType") + private Integer modulationType; + + @JsonProperty("annexType") + private Integer annexType; + + @JsonProperty("bitSwap") + private Integer bitSwap; + + @JsonProperty("sra") + private Integer sra; + + public DslSettings modulationType(Integer modulationType) { + this.modulationType = modulationType; + return this; + } + + /** + * Enter a value as follows: 0-Auto Sync-up, 2-ADSL2, 3-ADSL2+, 4-G.dmt, 5-T1.423, 6-VDSL2. + * @return modulationType + */ + @ApiModelProperty(value = "Enter a value as follows: 0-Auto Sync-up, 2-ADSL2, 3-ADSL2+, 4-G.dmt, 5-T1.423, 6-VDSL2.") + + + public Integer getModulationType() { + return modulationType; + } + + public void setModulationType(Integer modulationType) { + this.modulationType = modulationType; + } + + public DslSettings annexType(Integer annexType) { + this.annexType = annexType; + return this; + } + + /** + * Enter a value as follows: 0-Annex Auto, 1-Annex A, 2-Annex B, 3-Annex I, 4-Annex J, 5-Annex M, 6-Annex A/L, 7-Annex B/J, 8-Annex A/I/J/L/M + * @return annexType + */ + @ApiModelProperty(value = "Enter a value as follows: 0-Annex Auto, 1-Annex A, 2-Annex B, 3-Annex I, 4-Annex J, 5-Annex M, 6-Annex A/L, 7-Annex B/J, 8-Annex A/I/J/L/M") + + + public Integer getAnnexType() { + return annexType; + } + + public void setAnnexType(Integer annexType) { + this.annexType = annexType; + } + + public DslSettings bitSwap(Integer bitSwap) { + this.bitSwap = bitSwap; + return this; + } + + /** + * Enter a value as follows: 0-off, 1-on. + * @return bitSwap + */ + @ApiModelProperty(value = "Enter a value as follows: 0-off, 1-on.") + + + public Integer getBitSwap() { + return bitSwap; + } + + public void setBitSwap(Integer bitSwap) { + this.bitSwap = bitSwap; + } + + public DslSettings sra(Integer sra) { + this.sra = sra; + return this; + } + + /** + * Enter a value as follows: 0-off, 1-on. + * @return sra + */ + @ApiModelProperty(value = "Enter a value as follows: 0-off, 1-on.") + + + public Integer getSra() { + return sra; + } + + public void setSra(Integer sra) { + this.sra = sra; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DslSettings dslSettings = (DslSettings) o; + return Objects.equals(this.modulationType, dslSettings.modulationType) && + Objects.equals(this.annexType, dslSettings.annexType) && + Objects.equals(this.bitSwap, dslSettings.bitSwap) && + Objects.equals(this.sra, dslSettings.sra); + } + + @Override + public int hashCode() { + return Objects.hash(modulationType, annexType, bitSwap, sra); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DslSettings {\n"); + + sb.append(" modulationType: ").append(toIndentedString(modulationType)).append("\n"); + sb.append(" annexType: ").append(toIndentedString(annexType)).append("\n"); + sb.append(" bitSwap: ").append(toIndentedString(bitSwap)).append("\n"); + sb.append(" sra: ").append(toIndentedString(sra)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/EasyManageOverviewInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/EasyManageOverviewInfo.java new file mode 100644 index 0000000..249be49 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/EasyManageOverviewInfo.java @@ -0,0 +1,264 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * EasyManageOverviewInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class EasyManageOverviewInfo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("model") + private String model; + + @JsonProperty("firmwareVersion") + private String firmwareVersion; + + @JsonProperty("version") + private String version; + + @JsonProperty("hwVersion") + private String hwVersion; + + @JsonProperty("uptime") + private String uptime; + + @JsonProperty("portList") + @Valid + private List portList = null; + + public EasyManageOverviewInfo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Switch MAC address + * @return mac + */ + @ApiModelProperty(value = "Switch MAC address") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public EasyManageOverviewInfo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Switch IP address + * @return ip + */ + @ApiModelProperty(value = "Switch IP address") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public EasyManageOverviewInfo model(String model) { + this.model = model; + return this; + } + + /** + * Model + * @return model + */ + @ApiModelProperty(value = "Model") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public EasyManageOverviewInfo firmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + return this; + } + + /** + * Firmware Version e.g:2.5.0 Build 20190118 Rel. 64821 + * @return firmwareVersion + */ + @ApiModelProperty(value = "Firmware Version e.g:2.5.0 Build 20190118 Rel. 64821") + + + public String getFirmwareVersion() { + return firmwareVersion; + } + + public void setFirmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + } + + public EasyManageOverviewInfo version(String version) { + this.version = version; + return this; + } + + /** + * Firmware Version e.g:2.5.0 + * @return version + */ + @ApiModelProperty(value = "Firmware Version e.g:2.5.0") + + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public EasyManageOverviewInfo hwVersion(String hwVersion) { + this.hwVersion = hwVersion; + return this; + } + + /** + * Hardware Version + * @return hwVersion + */ + @ApiModelProperty(value = "Hardware Version") + + + public String getHwVersion() { + return hwVersion; + } + + public void setHwVersion(String hwVersion) { + this.hwVersion = hwVersion; + } + + public EasyManageOverviewInfo uptime(String uptime) { + this.uptime = uptime; + return this; + } + + /** + * Uptime + * @return uptime + */ + @ApiModelProperty(value = "Uptime") + + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public EasyManageOverviewInfo portList(List portList) { + this.portList = portList; + return this; + } + + public EasyManageOverviewInfo addPortListItem(PortInfo portListItem) { + if (this.portList == null) { + this.portList = new ArrayList<>(); + } + this.portList.add(portListItem); + return this; + } + + /** + * Port List + * @return portList + */ + @ApiModelProperty(value = "Port List") + + @Valid + + public List getPortList() { + return portList; + } + + public void setPortList(List portList) { + this.portList = portList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EasyManageOverviewInfo easyManageOverviewInfo = (EasyManageOverviewInfo) o; + return Objects.equals(this.mac, easyManageOverviewInfo.mac) && + Objects.equals(this.ip, easyManageOverviewInfo.ip) && + Objects.equals(this.model, easyManageOverviewInfo.model) && + Objects.equals(this.firmwareVersion, easyManageOverviewInfo.firmwareVersion) && + Objects.equals(this.version, easyManageOverviewInfo.version) && + Objects.equals(this.hwVersion, easyManageOverviewInfo.hwVersion) && + Objects.equals(this.uptime, easyManageOverviewInfo.uptime) && + Objects.equals(this.portList, easyManageOverviewInfo.portList); + } + + @Override + public int hashCode() { + return Objects.hash(mac, ip, model, firmwareVersion, version, hwVersion, uptime, portList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EasyManageOverviewInfo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" firmwareVersion: ").append(toIndentedString(firmwareVersion)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" hwVersion: ").append(toIndentedString(hwVersion)).append("\n"); + sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" portList: ").append(toIndentedString(portList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/EasyManagedSwitchGeneralConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/EasyManagedSwitchGeneralConfig.java new file mode 100644 index 0000000..c7e58ee --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/EasyManagedSwitchGeneralConfig.java @@ -0,0 +1,215 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * EasyManagedSwitchGeneralConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class EasyManagedSwitchGeneralConfig { + @JsonProperty("name") + private String name; + + @JsonProperty("ledSetting") + private Integer ledSetting; + + @JsonProperty("tagIds") + @Valid + private List tagIds = null; + + @JsonProperty("jumboEnable") + private Boolean jumboEnable; + + @JsonProperty("location") + private DeviceLocationDetailVo location; + + @JsonProperty("remember") + private Boolean remember; + + public EasyManagedSwitchGeneralConfig name(String name) { + this.name = name; + return this; + } + + /** + * Device name should contain 1 to 32 characters. + * @return name + */ + @ApiModelProperty(value = "Device name should contain 1 to 32 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,30}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public EasyManagedSwitchGeneralConfig ledSetting(Integer ledSetting) { + this.ledSetting = ledSetting; + return this; + } + + /** + * LED setting should be a value as follows: 0:off; 1:on; 2:Use Site Settings + * @return ledSetting + */ + @ApiModelProperty(value = "LED setting should be a value as follows: 0:off; 1:on; 2:Use Site Settings") + + + public Integer getLedSetting() { + return ledSetting; + } + + public void setLedSetting(Integer ledSetting) { + this.ledSetting = ledSetting; + } + + public EasyManagedSwitchGeneralConfig tagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + public EasyManagedSwitchGeneralConfig addTagIdsItem(String tagIdsItem) { + if (this.tagIds == null) { + this.tagIds = new ArrayList<>(); + } + this.tagIds.add(tagIdsItem); + return this; + } + + /** + * Tag IDs + * @return tagIds + */ + @ApiModelProperty(value = "Tag IDs") + + + public List getTagIds() { + return tagIds; + } + + public void setTagIds(List tagIds) { + this.tagIds = tagIds; + } + + public EasyManagedSwitchGeneralConfig jumboEnable(Boolean jumboEnable) { + this.jumboEnable = jumboEnable; + return this; + } + + /** + * Parameter [jumboEnable] should be true or false. + * @return jumboEnable + */ + @ApiModelProperty(value = "Parameter [jumboEnable] should be true or false.") + + + public Boolean getJumboEnable() { + return jumboEnable; + } + + public void setJumboEnable(Boolean jumboEnable) { + this.jumboEnable = jumboEnable; + } + + public EasyManagedSwitchGeneralConfig location(DeviceLocationDetailVo location) { + this.location = location; + return this; + } + + /** + * Get location + * @return location + */ + @ApiModelProperty(value = "") + + @Valid + + public DeviceLocationDetailVo getLocation() { + return location; + } + + public void setLocation(DeviceLocationDetailVo location) { + this.location = location; + } + + public EasyManagedSwitchGeneralConfig remember(Boolean remember) { + this.remember = remember; + return this; + } + + /** + * Parameter [remember] should be true or false. + * @return remember + */ + @ApiModelProperty(value = "Parameter [remember] should be true or false.") + + + public Boolean getRemember() { + return remember; + } + + public void setRemember(Boolean remember) { + this.remember = remember; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EasyManagedSwitchGeneralConfig easyManagedSwitchGeneralConfig = (EasyManagedSwitchGeneralConfig) o; + return Objects.equals(this.name, easyManagedSwitchGeneralConfig.name) && + Objects.equals(this.ledSetting, easyManagedSwitchGeneralConfig.ledSetting) && + Objects.equals(this.tagIds, easyManagedSwitchGeneralConfig.tagIds) && + Objects.equals(this.jumboEnable, easyManagedSwitchGeneralConfig.jumboEnable) && + Objects.equals(this.location, easyManagedSwitchGeneralConfig.location) && + Objects.equals(this.remember, easyManagedSwitchGeneralConfig.remember); + } + + @Override + public int hashCode() { + return Objects.hash(name, ledSetting, tagIds, jumboEnable, location, remember); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EasyManagedSwitchGeneralConfig {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ledSetting: ").append(toIndentedString(ledSetting)).append("\n"); + sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); + sb.append(" jumboEnable: ").append(toIndentedString(jumboEnable)).append("\n"); + sb.append(" location: ").append(toIndentedString(location)).append("\n"); + sb.append(" remember: ").append(toIndentedString(remember)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/FirmwareInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/FirmwareInfo.java new file mode 100644 index 0000000..7ff84c7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/FirmwareInfo.java @@ -0,0 +1,178 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * FirmwareInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class FirmwareInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("modelTypeInfo") + private ModelTypeInfoOpenApiVo modelTypeInfo; + + @JsonProperty("uploadTime") + private Long uploadTime; + + @JsonProperty("description") + private String description; + + public FirmwareInfo id(String id) { + this.id = id; + return this; + } + + /** + * ID + * @return id + */ + @ApiModelProperty(value = "ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FirmwareInfo name(String name) { + this.name = name; + return this; + } + + /** + * File name + * @return name + */ + @ApiModelProperty(value = "File name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public FirmwareInfo modelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + return this; + } + + /** + * Get modelTypeInfo + * @return modelTypeInfo + */ + @ApiModelProperty(value = "") + + @Valid + + public ModelTypeInfoOpenApiVo getModelTypeInfo() { + return modelTypeInfo; + } + + public void setModelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + } + + public FirmwareInfo uploadTime(Long uploadTime) { + this.uploadTime = uploadTime; + return this; + } + + /** + * Uploaded timestamp (ms) + * @return uploadTime + */ + @ApiModelProperty(value = "Uploaded timestamp (ms)") + + + public Long getUploadTime() { + return uploadTime; + } + + public void setUploadTime(Long uploadTime) { + this.uploadTime = uploadTime; + } + + public FirmwareInfo description(String description) { + this.description = description; + return this; + } + + /** + * Description of firmware + * @return description + */ + @ApiModelProperty(value = "Description of firmware") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FirmwareInfo firmwareInfo = (FirmwareInfo) o; + return Objects.equals(this.id, firmwareInfo.id) && + Objects.equals(this.name, firmwareInfo.name) && + Objects.equals(this.modelTypeInfo, firmwareInfo.modelTypeInfo) && + Objects.equals(this.uploadTime, firmwareInfo.uploadTime) && + Objects.equals(this.description, firmwareInfo.description); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, modelTypeInfo, uploadTime, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FirmwareInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" modelTypeInfo: ").append(toIndentedString(modelTypeInfo)).append("\n"); + sb.append(" uploadTime: ").append(toIndentedString(uploadTime)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayGeneralConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayGeneralConfig.java new file mode 100644 index 0000000..f591f25 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayGeneralConfig.java @@ -0,0 +1,165 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GatewayGeneralConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GatewayGeneralConfig { + @JsonProperty("name") + private String name; + + @JsonProperty("ledSetting") + private Integer ledSetting; + + @JsonProperty("tagIds") + @Valid + private List tagIds = null; + + @JsonProperty("location") + private DeviceLocationDetailVo location; + + public GatewayGeneralConfig name(String name) { + this.name = name; + return this; + } + + /** + * Device name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(value = "Device name should contain 1 to 128 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GatewayGeneralConfig ledSetting(Integer ledSetting) { + this.ledSetting = ledSetting; + return this; + } + + /** + * Led setting should be a value as follows: 0:off; 1:on; 2:Use Site Settings + * @return ledSetting + */ + @ApiModelProperty(value = "Led setting should be a value as follows: 0:off; 1:on; 2:Use Site Settings") + + + public Integer getLedSetting() { + return ledSetting; + } + + public void setLedSetting(Integer ledSetting) { + this.ledSetting = ledSetting; + } + + public GatewayGeneralConfig tagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + public GatewayGeneralConfig addTagIdsItem(String tagIdsItem) { + if (this.tagIds == null) { + this.tagIds = new ArrayList<>(); + } + this.tagIds.add(tagIdsItem); + return this; + } + + /** + * Tag IDs + * @return tagIds + */ + @ApiModelProperty(value = "Tag IDs") + + + public List getTagIds() { + return tagIds; + } + + public void setTagIds(List tagIds) { + this.tagIds = tagIds; + } + + public GatewayGeneralConfig location(DeviceLocationDetailVo location) { + this.location = location; + return this; + } + + /** + * Get location + * @return location + */ + @ApiModelProperty(value = "") + + @Valid + + public DeviceLocationDetailVo getLocation() { + return location; + } + + public void setLocation(DeviceLocationDetailVo location) { + this.location = location; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayGeneralConfig gatewayGeneralConfig = (GatewayGeneralConfig) o; + return Objects.equals(this.name, gatewayGeneralConfig.name) && + Objects.equals(this.ledSetting, gatewayGeneralConfig.ledSetting) && + Objects.equals(this.tagIds, gatewayGeneralConfig.tagIds) && + Objects.equals(this.location, gatewayGeneralConfig.location); + } + + @Override + public int hashCode() { + return Objects.hash(name, ledSetting, tagIds, location); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayGeneralConfig {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ledSetting: ").append(toIndentedString(ledSetting)).append("\n"); + sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); + sb.append(" location: ").append(toIndentedString(location)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayInfo.java new file mode 100644 index 0000000..fb267bb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayInfo.java @@ -0,0 +1,408 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GatewayInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GatewayInfo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("showModel") + private String showModel; + + @JsonProperty("firmwareVersion") + private String firmwareVersion; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("uptime") + private String uptime; + + @JsonProperty("temp") + private Integer temp; + + @JsonProperty("cpuUtil") + private Integer cpuUtil; + + @JsonProperty("memUtil") + private Integer memUtil; + + @JsonProperty("ipv6List") + @Valid + private List ipv6List = null; + + @JsonProperty("lastSeen") + private Long lastSeen; + + @JsonProperty("portConfigs") + @Valid + private List portConfigs = null; + + @JsonProperty("multiChipGateway") + private Boolean multiChipGateway; + + @JsonProperty("multiChipInfos") + @Valid + private List> multiChipInfos = null; + + public GatewayInfo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Gateway MAC address + * @return mac + */ + @ApiModelProperty(value = "Gateway MAC address") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public GatewayInfo showModel(String showModel) { + this.showModel = showModel; + return this; + } + + /** + * Gateway model description + * @return showModel + */ + @ApiModelProperty(value = "Gateway model description") + + + public String getShowModel() { + return showModel; + } + + public void setShowModel(String showModel) { + this.showModel = showModel; + } + + public GatewayInfo firmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + return this; + } + + /** + * Gateway software version + * @return firmwareVersion + */ + @ApiModelProperty(value = "Gateway software version") + + + public String getFirmwareVersion() { + return firmwareVersion; + } + + public void setFirmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + } + + public GatewayInfo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Gateway IPv4 + * @return ip + */ + @ApiModelProperty(value = "Gateway IPv4") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public GatewayInfo uptime(String uptime) { + this.uptime = uptime; + return this; + } + + /** + * Gateway uptime + * @return uptime + */ + @ApiModelProperty(value = "Gateway uptime") + + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public GatewayInfo temp(Integer temp) { + this.temp = temp; + return this; + } + + /** + * Gateway temperature + * @return temp + */ + @ApiModelProperty(value = "Gateway temperature") + + + public Integer getTemp() { + return temp; + } + + public void setTemp(Integer temp) { + this.temp = temp; + } + + public GatewayInfo cpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + return this; + } + + /** + * Gateway cpu utilization rate + * @return cpuUtil + */ + @ApiModelProperty(value = "Gateway cpu utilization rate") + + + public Integer getCpuUtil() { + return cpuUtil; + } + + public void setCpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + } + + public GatewayInfo memUtil(Integer memUtil) { + this.memUtil = memUtil; + return this; + } + + /** + * Gateway memory utilization rate + * @return memUtil + */ + @ApiModelProperty(value = "Gateway memory utilization rate") + + + public Integer getMemUtil() { + return memUtil; + } + + public void setMemUtil(Integer memUtil) { + this.memUtil = memUtil; + } + + public GatewayInfo ipv6List(List ipv6List) { + this.ipv6List = ipv6List; + return this; + } + + public GatewayInfo addIpv6ListItem(String ipv6ListItem) { + if (this.ipv6List == null) { + this.ipv6List = new ArrayList<>(); + } + this.ipv6List.add(ipv6ListItem); + return this; + } + + /** + * IPv6 address List + * @return ipv6List + */ + @ApiModelProperty(value = "IPv6 address List") + + + public List getIpv6List() { + return ipv6List; + } + + public void setIpv6List(List ipv6List) { + this.ipv6List = ipv6List; + } + + public GatewayInfo lastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + return this; + } + + /** + * Last seen time + * @return lastSeen + */ + @ApiModelProperty(value = "Last seen time") + + + public Long getLastSeen() { + return lastSeen; + } + + public void setLastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + } + + public GatewayInfo portConfigs(List portConfigs) { + this.portConfigs = portConfigs; + return this; + } + + public GatewayInfo addPortConfigsItem(GatewayPortConfig portConfigsItem) { + if (this.portConfigs == null) { + this.portConfigs = new ArrayList<>(); + } + this.portConfigs.add(portConfigsItem); + return this; + } + + /** + * Gateway port configs + * @return portConfigs + */ + @ApiModelProperty(value = "Gateway port configs") + + @Valid + + public List getPortConfigs() { + return portConfigs; + } + + public void setPortConfigs(List portConfigs) { + this.portConfigs = portConfigs; + } + + public GatewayInfo multiChipGateway(Boolean multiChipGateway) { + this.multiChipGateway = multiChipGateway; + return this; + } + + /** + * Whether this gateway is a multi-chip gateway + * @return multiChipGateway + */ + @ApiModelProperty(value = "Whether this gateway is a multi-chip gateway") + + + public Boolean getMultiChipGateway() { + return multiChipGateway; + } + + public void setMultiChipGateway(Boolean multiChipGateway) { + this.multiChipGateway = multiChipGateway; + } + + public GatewayInfo multiChipInfos(List> multiChipInfos) { + this.multiChipInfos = multiChipInfos; + return this; + } + + public GatewayInfo addMultiChipInfosItem(List multiChipInfosItem) { + if (this.multiChipInfos == null) { + this.multiChipInfos = new ArrayList<>(); + } + this.multiChipInfos.add(multiChipInfosItem); + return this; + } + + /** + * Only ports within the same group can be mirrored + * @return multiChipInfos + */ + @ApiModelProperty(value = "Only ports within the same group can be mirrored") + + @Valid + + public List> getMultiChipInfos() { + return multiChipInfos; + } + + public void setMultiChipInfos(List> multiChipInfos) { + this.multiChipInfos = multiChipInfos; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayInfo gatewayInfo = (GatewayInfo) o; + return Objects.equals(this.mac, gatewayInfo.mac) && + Objects.equals(this.showModel, gatewayInfo.showModel) && + Objects.equals(this.firmwareVersion, gatewayInfo.firmwareVersion) && + Objects.equals(this.ip, gatewayInfo.ip) && + Objects.equals(this.uptime, gatewayInfo.uptime) && + Objects.equals(this.temp, gatewayInfo.temp) && + Objects.equals(this.cpuUtil, gatewayInfo.cpuUtil) && + Objects.equals(this.memUtil, gatewayInfo.memUtil) && + Objects.equals(this.ipv6List, gatewayInfo.ipv6List) && + Objects.equals(this.lastSeen, gatewayInfo.lastSeen) && + Objects.equals(this.portConfigs, gatewayInfo.portConfigs) && + Objects.equals(this.multiChipGateway, gatewayInfo.multiChipGateway) && + Objects.equals(this.multiChipInfos, gatewayInfo.multiChipInfos); + } + + @Override + public int hashCode() { + return Objects.hash(mac, showModel, firmwareVersion, ip, uptime, temp, cpuUtil, memUtil, ipv6List, lastSeen, portConfigs, multiChipGateway, multiChipInfos); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayInfo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" showModel: ").append(toIndentedString(showModel)).append("\n"); + sb.append(" firmwareVersion: ").append(toIndentedString(firmwareVersion)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" temp: ").append(toIndentedString(temp)).append("\n"); + sb.append(" cpuUtil: ").append(toIndentedString(cpuUtil)).append("\n"); + sb.append(" memUtil: ").append(toIndentedString(memUtil)).append("\n"); + sb.append(" ipv6List: ").append(toIndentedString(ipv6List)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append(" portConfigs: ").append(toIndentedString(portConfigs)).append("\n"); + sb.append(" multiChipGateway: ").append(toIndentedString(multiChipGateway)).append("\n"); + sb.append(" multiChipInfos: ").append(toIndentedString(multiChipInfos)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortConfig.java new file mode 100644 index 0000000..70f288c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortConfig.java @@ -0,0 +1,318 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * gateway port config entity + */ +@ApiModel(description = "gateway port config entity") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GatewayPortConfig { + @JsonProperty("port") + private Integer port; + + @JsonProperty("linkSpeed") + private Integer linkSpeed; + + @JsonProperty("duplex") + private Integer duplex; + + @JsonProperty("mirrorEnable") + private Boolean mirrorEnable; + + @JsonProperty("mirroredPorts") + @Valid + private List mirroredPorts = null; + + @JsonProperty("mirrorMode") + private Integer mirrorMode; + + @JsonProperty("pvid") + private Integer pvid; + + @JsonProperty("flowControl") + private Boolean flowControl; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("dslSettings") + private DslSettings dslSettings; + + public GatewayPortConfig port(Integer port) { + this.port = port; + return this; + } + + /** + * Port serial number + * @return port + */ + @ApiModelProperty(required = true, value = "Port serial number") + @NotNull + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public GatewayPortConfig linkSpeed(Integer linkSpeed) { + this.linkSpeed = linkSpeed; + return this; + } + + /** + * Port link speed should be a value as follows: 0: Auto; 1: 10M; 2: 100M; 3: 1000M; 4: 2500M; 5: 10G; 6: 5G + * @return linkSpeed + */ + @ApiModelProperty(value = "Port link speed should be a value as follows: 0: Auto; 1: 10M; 2: 100M; 3: 1000M; 4: 2500M; 5: 10G; 6: 5G") + + + public Integer getLinkSpeed() { + return linkSpeed; + } + + public void setLinkSpeed(Integer linkSpeed) { + this.linkSpeed = linkSpeed; + } + + public GatewayPortConfig duplex(Integer duplex) { + this.duplex = duplex; + return this; + } + + /** + * Port duplex mode should be a value as follows: 0: Auto; 1: Half; 2: Full + * @return duplex + */ + @ApiModelProperty(value = "Port duplex mode should be a value as follows: 0: Auto; 1: Half; 2: Full") + + + public Integer getDuplex() { + return duplex; + } + + public void setDuplex(Integer duplex) { + this.duplex = duplex; + } + + public GatewayPortConfig mirrorEnable(Boolean mirrorEnable) { + this.mirrorEnable = mirrorEnable; + return this; + } + + /** + * Port enabled mirror or not + * @return mirrorEnable + */ + @ApiModelProperty(value = "Port enabled mirror or not") + + + public Boolean getMirrorEnable() { + return mirrorEnable; + } + + public void setMirrorEnable(Boolean mirrorEnable) { + this.mirrorEnable = mirrorEnable; + } + + public GatewayPortConfig mirroredPorts(List mirroredPorts) { + this.mirroredPorts = mirroredPorts; + return this; + } + + public GatewayPortConfig addMirroredPortsItem(Integer mirroredPortsItem) { + if (this.mirroredPorts == null) { + this.mirroredPorts = new ArrayList<>(); + } + this.mirroredPorts.add(mirroredPortsItem); + return this; + } + + /** + * Mirrored Ports Set + * @return mirroredPorts + */ + @ApiModelProperty(value = "Mirrored Ports Set") + + + public List getMirroredPorts() { + return mirroredPorts; + } + + public void setMirroredPorts(List mirroredPorts) { + this.mirroredPorts = mirroredPorts; + } + + public GatewayPortConfig mirrorMode(Integer mirrorMode) { + this.mirrorMode = mirrorMode; + return this; + } + + /** + * Port mirror mode should be a value as follows: 0: ingress; 1: egress; 2: ingress and egress + * @return mirrorMode + */ + @ApiModelProperty(value = "Port mirror mode should be a value as follows: 0: ingress; 1: egress; 2: ingress and egress") + + + public Integer getMirrorMode() { + return mirrorMode; + } + + public void setMirrorMode(Integer mirrorMode) { + this.mirrorMode = mirrorMode; + } + + public GatewayPortConfig pvid(Integer pvid) { + this.pvid = pvid; + return this; + } + + /** + * Pvid(only for lan port.) + * @return pvid + */ + @ApiModelProperty(value = "Pvid(only for lan port.)") + + + public Integer getPvid() { + return pvid; + } + + public void setPvid(Integer pvid) { + this.pvid = pvid; + } + + public GatewayPortConfig flowControl(Boolean flowControl) { + this.flowControl = flowControl; + return this; + } + + /** + * Enable flow control or not.(When the port supports flow control.) + * @return flowControl + */ + @ApiModelProperty(value = "Enable flow control or not.(When the port supports flow control.)") + + + public Boolean getFlowControl() { + return flowControl; + } + + public void setFlowControl(Boolean flowControl) { + this.flowControl = flowControl; + } + + public GatewayPortConfig status(Integer status) { + this.status = status; + return this; + } + + /** + * Enable port or not, status should be a value as follows: 0: disable; 1: enable.(When the port supports status.) + * @return status + */ + @ApiModelProperty(value = "Enable port or not, status should be a value as follows: 0: disable; 1: enable.(When the port supports status.)") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public GatewayPortConfig dslSettings(DslSettings dslSettings) { + this.dslSettings = dslSettings; + return this; + } + + /** + * Get dslSettings + * @return dslSettings + */ + @ApiModelProperty(value = "") + + @Valid + + public DslSettings getDslSettings() { + return dslSettings; + } + + public void setDslSettings(DslSettings dslSettings) { + this.dslSettings = dslSettings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayPortConfig gatewayPortConfig = (GatewayPortConfig) o; + return Objects.equals(this.port, gatewayPortConfig.port) && + Objects.equals(this.linkSpeed, gatewayPortConfig.linkSpeed) && + Objects.equals(this.duplex, gatewayPortConfig.duplex) && + Objects.equals(this.mirrorEnable, gatewayPortConfig.mirrorEnable) && + Objects.equals(this.mirroredPorts, gatewayPortConfig.mirroredPorts) && + Objects.equals(this.mirrorMode, gatewayPortConfig.mirrorMode) && + Objects.equals(this.pvid, gatewayPortConfig.pvid) && + Objects.equals(this.flowControl, gatewayPortConfig.flowControl) && + Objects.equals(this.status, gatewayPortConfig.status) && + Objects.equals(this.dslSettings, gatewayPortConfig.dslSettings); + } + + @Override + public int hashCode() { + return Objects.hash(port, linkSpeed, duplex, mirrorEnable, mirroredPorts, mirrorMode, pvid, flowControl, status, dslSettings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayPortConfig {\n"); + + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" linkSpeed: ").append(toIndentedString(linkSpeed)).append("\n"); + sb.append(" duplex: ").append(toIndentedString(duplex)).append("\n"); + sb.append(" mirrorEnable: ").append(toIndentedString(mirrorEnable)).append("\n"); + sb.append(" mirroredPorts: ").append(toIndentedString(mirroredPorts)).append("\n"); + sb.append(" mirrorMode: ").append(toIndentedString(mirrorMode)).append("\n"); + sb.append(" pvid: ").append(toIndentedString(pvid)).append("\n"); + sb.append(" flowControl: ").append(toIndentedString(flowControl)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" dslSettings: ").append(toIndentedString(dslSettings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortSettingConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortSettingConfig.java new file mode 100644 index 0000000..6908522 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortSettingConfig.java @@ -0,0 +1,314 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GatewayPortSettingConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GatewayPortSettingConfig { + @JsonProperty("linkSpeed") + private Integer linkSpeed; + + @JsonProperty("duplex") + private Integer duplex; + + @JsonProperty("mirrorEnable") + private Boolean mirrorEnable; + + @JsonProperty("mirroredPorts") + @Valid + private List mirroredPorts = null; + + @JsonProperty("mirrorMode") + private Integer mirrorMode; + + @JsonProperty("pvid") + private Integer pvid; + + @JsonProperty("flowControl") + private Boolean flowControl; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("poeMode") + private Integer poeMode; + + @JsonProperty("dslSettings") + private DslSettings dslSettings; + + public GatewayPortSettingConfig linkSpeed(Integer linkSpeed) { + this.linkSpeed = linkSpeed; + return this; + } + + /** + * Port link speed should be a value as follows: 0: Auto; 1: 10M; 2: 100M; 3: 1000M; 4: 2500M; 5: 10G; 6: 5G + * @return linkSpeed + */ + @ApiModelProperty(value = "Port link speed should be a value as follows: 0: Auto; 1: 10M; 2: 100M; 3: 1000M; 4: 2500M; 5: 10G; 6: 5G") + + + public Integer getLinkSpeed() { + return linkSpeed; + } + + public void setLinkSpeed(Integer linkSpeed) { + this.linkSpeed = linkSpeed; + } + + public GatewayPortSettingConfig duplex(Integer duplex) { + this.duplex = duplex; + return this; + } + + /** + * Port duplex mode should be a value as follows: 0: Auto; 1: Half; 2: Full + * @return duplex + */ + @ApiModelProperty(value = "Port duplex mode should be a value as follows: 0: Auto; 1: Half; 2: Full") + + + public Integer getDuplex() { + return duplex; + } + + public void setDuplex(Integer duplex) { + this.duplex = duplex; + } + + public GatewayPortSettingConfig mirrorEnable(Boolean mirrorEnable) { + this.mirrorEnable = mirrorEnable; + return this; + } + + /** + * Port enabled mirror or not + * @return mirrorEnable + */ + @ApiModelProperty(value = "Port enabled mirror or not") + + + public Boolean getMirrorEnable() { + return mirrorEnable; + } + + public void setMirrorEnable(Boolean mirrorEnable) { + this.mirrorEnable = mirrorEnable; + } + + public GatewayPortSettingConfig mirroredPorts(List mirroredPorts) { + this.mirroredPorts = mirroredPorts; + return this; + } + + public GatewayPortSettingConfig addMirroredPortsItem(Integer mirroredPortsItem) { + if (this.mirroredPorts == null) { + this.mirroredPorts = new ArrayList<>(); + } + this.mirroredPorts.add(mirroredPortsItem); + return this; + } + + /** + * Mirrored Ports Set + * @return mirroredPorts + */ + @ApiModelProperty(value = "Mirrored Ports Set") + + + public List getMirroredPorts() { + return mirroredPorts; + } + + public void setMirroredPorts(List mirroredPorts) { + this.mirroredPorts = mirroredPorts; + } + + public GatewayPortSettingConfig mirrorMode(Integer mirrorMode) { + this.mirrorMode = mirrorMode; + return this; + } + + /** + * Port mirror mode should be a value as follow: 0: ingress; 1: egress; 2: ingress and egress. + * @return mirrorMode + */ + @ApiModelProperty(value = "Port mirror mode should be a value as follow: 0: ingress; 1: egress; 2: ingress and egress.") + + + public Integer getMirrorMode() { + return mirrorMode; + } + + public void setMirrorMode(Integer mirrorMode) { + this.mirrorMode = mirrorMode; + } + + public GatewayPortSettingConfig pvid(Integer pvid) { + this.pvid = pvid; + return this; + } + + /** + * Pvid(only for lan port.) + * @return pvid + */ + @ApiModelProperty(value = "Pvid(only for lan port.)") + + + public Integer getPvid() { + return pvid; + } + + public void setPvid(Integer pvid) { + this.pvid = pvid; + } + + public GatewayPortSettingConfig flowControl(Boolean flowControl) { + this.flowControl = flowControl; + return this; + } + + /** + * Enable flow control or not.(When the port supports flow control.) + * @return flowControl + */ + @ApiModelProperty(value = "Enable flow control or not.(When the port supports flow control.)") + + + public Boolean getFlowControl() { + return flowControl; + } + + public void setFlowControl(Boolean flowControl) { + this.flowControl = flowControl; + } + + public GatewayPortSettingConfig status(Integer status) { + this.status = status; + return this; + } + + /** + * Enable port or not, status should be a value as follows: 0: disable; 1: enable.(When the port supports status.) + * @return status + */ + @ApiModelProperty(value = "Enable port or not, status should be a value as follows: 0: disable; 1: enable.(When the port supports status.)") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public GatewayPortSettingConfig poeMode(Integer poeMode) { + this.poeMode = poeMode; + return this; + } + + /** + * Enter a value as follows: 0: off; 1: 802.3at/af. + * @return poeMode + */ + @ApiModelProperty(value = "Enter a value as follows: 0: off; 1: 802.3at/af.") + + + public Integer getPoeMode() { + return poeMode; + } + + public void setPoeMode(Integer poeMode) { + this.poeMode = poeMode; + } + + public GatewayPortSettingConfig dslSettings(DslSettings dslSettings) { + this.dslSettings = dslSettings; + return this; + } + + /** + * Get dslSettings + * @return dslSettings + */ + @ApiModelProperty(value = "") + + @Valid + + public DslSettings getDslSettings() { + return dslSettings; + } + + public void setDslSettings(DslSettings dslSettings) { + this.dslSettings = dslSettings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayPortSettingConfig gatewayPortSettingConfig = (GatewayPortSettingConfig) o; + return Objects.equals(this.linkSpeed, gatewayPortSettingConfig.linkSpeed) && + Objects.equals(this.duplex, gatewayPortSettingConfig.duplex) && + Objects.equals(this.mirrorEnable, gatewayPortSettingConfig.mirrorEnable) && + Objects.equals(this.mirroredPorts, gatewayPortSettingConfig.mirroredPorts) && + Objects.equals(this.mirrorMode, gatewayPortSettingConfig.mirrorMode) && + Objects.equals(this.pvid, gatewayPortSettingConfig.pvid) && + Objects.equals(this.flowControl, gatewayPortSettingConfig.flowControl) && + Objects.equals(this.status, gatewayPortSettingConfig.status) && + Objects.equals(this.poeMode, gatewayPortSettingConfig.poeMode) && + Objects.equals(this.dslSettings, gatewayPortSettingConfig.dslSettings); + } + + @Override + public int hashCode() { + return Objects.hash(linkSpeed, duplex, mirrorEnable, mirroredPorts, mirrorMode, pvid, flowControl, status, poeMode, dslSettings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayPortSettingConfig {\n"); + + sb.append(" linkSpeed: ").append(toIndentedString(linkSpeed)).append("\n"); + sb.append(" duplex: ").append(toIndentedString(duplex)).append("\n"); + sb.append(" mirrorEnable: ").append(toIndentedString(mirrorEnable)).append("\n"); + sb.append(" mirroredPorts: ").append(toIndentedString(mirroredPorts)).append("\n"); + sb.append(" mirrorMode: ").append(toIndentedString(mirrorMode)).append("\n"); + sb.append(" pvid: ").append(toIndentedString(pvid)).append("\n"); + sb.append(" flowControl: ").append(toIndentedString(flowControl)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" poeMode: ").append(toIndentedString(poeMode)).append("\n"); + sb.append(" dslSettings: ").append(toIndentedString(dslSettings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortsConfigEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortsConfigEntity.java new file mode 100644 index 0000000..f84f4ed --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayPortsConfigEntity.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GatewayPortsConfigEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GatewayPortsConfigEntity { + @JsonProperty("portsConfig") + @Valid + private List portsConfig = null; + + public GatewayPortsConfigEntity portsConfig(List portsConfig) { + this.portsConfig = portsConfig; + return this; + } + + public GatewayPortsConfigEntity addPortsConfigItem(GatewayPortConfig portsConfigItem) { + if (this.portsConfig == null) { + this.portsConfig = new ArrayList<>(); + } + this.portsConfig.add(portsConfigItem); + return this; + } + + /** + * gateway port config entity + * @return portsConfig + */ + @ApiModelProperty(value = "gateway port config entity") + + @Valid + + public List getPortsConfig() { + return portsConfig; + } + + public void setPortsConfig(List portsConfig) { + this.portsConfig = portsConfig; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayPortsConfigEntity gatewayPortsConfigEntity = (GatewayPortsConfigEntity) o; + return Objects.equals(this.portsConfig, gatewayPortsConfigEntity.portsConfig); + } + + @Override + public int hashCode() { + return Objects.hash(portsConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayPortsConfigEntity {\n"); + + sb.append(" portsConfig: ").append(toIndentedString(portsConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayWanStatusEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayWanStatusEntity.java new file mode 100644 index 0000000..edb1518 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GatewayWanStatusEntity.java @@ -0,0 +1,354 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * GatewayWanStatusEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GatewayWanStatusEntity { + @JsonProperty("port") + private Integer port; + + @JsonProperty("name") + private String name; + + @JsonProperty("portDesc") + private String portDesc; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("internetState") + private Integer internetState; + + @JsonProperty("wanPortIpv6Config") + private OsgWanPortIpv6ConfigVo wanPortIpv6Config; + + @JsonProperty("wanPortIpv4Config") + private OsgWanPortIpv4ConfigVo wanPortIpv4Config; + + @JsonProperty("rxRate") + private Long rxRate; + + @JsonProperty("txRate") + private Long txRate; + + @JsonProperty("latency") + private Integer latency; + + @JsonProperty("loss") + private Double loss; + + @JsonProperty("onlineDetection") + private Integer onlineDetection; + + public GatewayWanStatusEntity port(Integer port) { + this.port = port; + return this; + } + + /** + * Port serial number + * @return port + */ + @ApiModelProperty(value = "Port serial number") + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public GatewayWanStatusEntity name(String name) { + this.name = name; + return this; + } + + /** + * Port name + * @return name + */ + @ApiModelProperty(value = "Port name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GatewayWanStatusEntity portDesc(String portDesc) { + this.portDesc = portDesc; + return this; + } + + /** + * Port description + * @return portDesc + */ + @ApiModelProperty(value = "Port description") + + + public String getPortDesc() { + return portDesc; + } + + public void setPortDesc(String portDesc) { + this.portDesc = portDesc; + } + + public GatewayWanStatusEntity status(Integer status) { + this.status = status; + return this; + } + + /** + * Port status should be a value as follows: 0: disconnected; 1: connected + * @return status + */ + @ApiModelProperty(value = "Port status should be a value as follows: 0: disconnected; 1: connected") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public GatewayWanStatusEntity internetState(Integer internetState) { + this.internetState = internetState; + return this; + } + + /** + * Wan internet state should be a value as follows: 0: disconnected; 1: connected + * @return internetState + */ + @ApiModelProperty(value = "Wan internet state should be a value as follows: 0: disconnected; 1: connected") + + + public Integer getInternetState() { + return internetState; + } + + public void setInternetState(Integer internetState) { + this.internetState = internetState; + } + + public GatewayWanStatusEntity wanPortIpv6Config(OsgWanPortIpv6ConfigVo wanPortIpv6Config) { + this.wanPortIpv6Config = wanPortIpv6Config; + return this; + } + + /** + * Get wanPortIpv6Config + * @return wanPortIpv6Config + */ + @ApiModelProperty(value = "") + + @Valid + + public OsgWanPortIpv6ConfigVo getWanPortIpv6Config() { + return wanPortIpv6Config; + } + + public void setWanPortIpv6Config(OsgWanPortIpv6ConfigVo wanPortIpv6Config) { + this.wanPortIpv6Config = wanPortIpv6Config; + } + + public GatewayWanStatusEntity wanPortIpv4Config(OsgWanPortIpv4ConfigVo wanPortIpv4Config) { + this.wanPortIpv4Config = wanPortIpv4Config; + return this; + } + + /** + * Get wanPortIpv4Config + * @return wanPortIpv4Config + */ + @ApiModelProperty(value = "") + + @Valid + + public OsgWanPortIpv4ConfigVo getWanPortIpv4Config() { + return wanPortIpv4Config; + } + + public void setWanPortIpv4Config(OsgWanPortIpv4ConfigVo wanPortIpv4Config) { + this.wanPortIpv4Config = wanPortIpv4Config; + } + + public GatewayWanStatusEntity rxRate(Long rxRate) { + this.rxRate = rxRate; + return this; + } + + /** + * Port rx rate, Unit: KB/s; + * @return rxRate + */ + @ApiModelProperty(value = "Port rx rate, Unit: KB/s;") + + + public Long getRxRate() { + return rxRate; + } + + public void setRxRate(Long rxRate) { + this.rxRate = rxRate; + } + + public GatewayWanStatusEntity txRate(Long txRate) { + this.txRate = txRate; + return this; + } + + /** + * Port tx rate, Unit: KB/s; + * @return txRate + */ + @ApiModelProperty(value = "Port tx rate, Unit: KB/s;") + + + public Long getTxRate() { + return txRate; + } + + public void setTxRate(Long txRate) { + this.txRate = txRate; + } + + public GatewayWanStatusEntity latency(Integer latency) { + this.latency = latency; + return this; + } + + /** + * Wan latency, when mode is wan and device is connected, Unit: ms + * @return latency + */ + @ApiModelProperty(value = "Wan latency, when mode is wan and device is connected, Unit: ms") + + + public Integer getLatency() { + return latency; + } + + public void setLatency(Integer latency) { + this.latency = latency; + } + + public GatewayWanStatusEntity loss(Double loss) { + this.loss = loss; + return this; + } + + /** + * Wan packet loss rate, Unit : % + * @return loss + */ + @ApiModelProperty(value = "Wan packet loss rate, Unit : %") + + + public Double getLoss() { + return loss; + } + + public void setLoss(Double loss) { + this.loss = loss; + } + + public GatewayWanStatusEntity onlineDetection(Integer onlineDetection) { + this.onlineDetection = onlineDetection; + return this; + } + + /** + * Wan port online status. 0:offline, 1:online + * @return onlineDetection + */ + @ApiModelProperty(value = "Wan port online status. 0:offline, 1:online") + + + public Integer getOnlineDetection() { + return onlineDetection; + } + + public void setOnlineDetection(Integer onlineDetection) { + this.onlineDetection = onlineDetection; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayWanStatusEntity gatewayWanStatusEntity = (GatewayWanStatusEntity) o; + return Objects.equals(this.port, gatewayWanStatusEntity.port) && + Objects.equals(this.name, gatewayWanStatusEntity.name) && + Objects.equals(this.portDesc, gatewayWanStatusEntity.portDesc) && + Objects.equals(this.status, gatewayWanStatusEntity.status) && + Objects.equals(this.internetState, gatewayWanStatusEntity.internetState) && + Objects.equals(this.wanPortIpv6Config, gatewayWanStatusEntity.wanPortIpv6Config) && + Objects.equals(this.wanPortIpv4Config, gatewayWanStatusEntity.wanPortIpv4Config) && + Objects.equals(this.rxRate, gatewayWanStatusEntity.rxRate) && + Objects.equals(this.txRate, gatewayWanStatusEntity.txRate) && + Objects.equals(this.latency, gatewayWanStatusEntity.latency) && + Objects.equals(this.loss, gatewayWanStatusEntity.loss) && + Objects.equals(this.onlineDetection, gatewayWanStatusEntity.onlineDetection); + } + + @Override + public int hashCode() { + return Objects.hash(port, name, portDesc, status, internetState, wanPortIpv6Config, wanPortIpv4Config, rxRate, txRate, latency, loss, onlineDetection); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayWanStatusEntity {\n"); + + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" portDesc: ").append(toIndentedString(portDesc)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" internetState: ").append(toIndentedString(internetState)).append("\n"); + sb.append(" wanPortIpv6Config: ").append(toIndentedString(wanPortIpv6Config)).append("\n"); + sb.append(" wanPortIpv4Config: ").append(toIndentedString(wanPortIpv4Config)).append("\n"); + sb.append(" rxRate: ").append(toIndentedString(rxRate)).append("\n"); + sb.append(" txRate: ").append(toIndentedString(txRate)).append("\n"); + sb.append(" latency: ").append(toIndentedString(latency)).append("\n"); + sb.append(" loss: ").append(toIndentedString(loss)).append("\n"); + sb.append(" onlineDetection: ").append(toIndentedString(onlineDetection)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GlobalKnownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GlobalKnownDeviceOpenApiVo.java new file mode 100644 index 0000000..4aadf2e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GlobalKnownDeviceOpenApiVo.java @@ -0,0 +1,513 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GlobalKnownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GlobalKnownDeviceOpenApiVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private String type; + + @JsonProperty("subtype") + private String subtype; + + @JsonProperty("deviceSeriesType") + private Integer deviceSeriesType; + + @JsonProperty("model") + private String model; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("ipv6") + @Valid + private List ipv6 = null; + + @JsonProperty("uptime") + private String uptime; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("lastSeen") + private Long lastSeen; + + @JsonProperty("cpuUtil") + private Integer cpuUtil; + + @JsonProperty("memUtil") + private Integer memUtil; + + @JsonProperty("sn") + private String sn; + + @JsonProperty("licenseStatus") + private Integer licenseStatus; + + @JsonProperty("needActive") + private Boolean needActive; + + @JsonProperty("siteName") + private String siteName; + + @JsonProperty("tagName") + private String tagName; + + public GlobalKnownDeviceOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC + * @return mac + */ + @ApiModelProperty(value = "Device MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public GlobalKnownDeviceOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Device name + * @return name + */ + @ApiModelProperty(value = "Device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GlobalKnownDeviceOpenApiVo type(String type) { + this.type = type; + return this; + } + + /** + * Device type + * @return type + */ + @ApiModelProperty(value = "Device type") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public GlobalKnownDeviceOpenApiVo subtype(String subtype) { + this.subtype = subtype; + return this; + } + + /** + * Switch subtype should be a value as follows: smart: Smart Switch; es: Easy Managed Switch. + * @return subtype + */ + @ApiModelProperty(value = "Switch subtype should be a value as follows: smart: Smart Switch; es: Easy Managed Switch.") + + + public String getSubtype() { + return subtype; + } + + public void setSubtype(String subtype) { + this.subtype = subtype; + } + + public GlobalKnownDeviceOpenApiVo deviceSeriesType(Integer deviceSeriesType) { + this.deviceSeriesType = deviceSeriesType; + return this; + } + + /** + * Device series type. 0 means basic, 1 means pro. + * @return deviceSeriesType + */ + @ApiModelProperty(value = "Device series type. 0 means basic, 1 means pro.") + + + public Integer getDeviceSeriesType() { + return deviceSeriesType; + } + + public void setDeviceSeriesType(Integer deviceSeriesType) { + this.deviceSeriesType = deviceSeriesType; + } + + public GlobalKnownDeviceOpenApiVo model(String model) { + this.model = model; + return this; + } + + /** + * Device model name + * @return model + */ + @ApiModelProperty(value = "Device model name") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public GlobalKnownDeviceOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Device IP + * @return ip + */ + @ApiModelProperty(value = "Device IP") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public GlobalKnownDeviceOpenApiVo ipv6(List ipv6) { + this.ipv6 = ipv6; + return this; + } + + public GlobalKnownDeviceOpenApiVo addIpv6Item(String ipv6Item) { + if (this.ipv6 == null) { + this.ipv6 = new ArrayList<>(); + } + this.ipv6.add(ipv6Item); + return this; + } + + /** + * Device IPv6 list + * @return ipv6 + */ + @ApiModelProperty(value = "Device IPv6 list") + + + public List getIpv6() { + return ipv6; + } + + public void setIpv6(List ipv6) { + this.ipv6 = ipv6; + } + + public GlobalKnownDeviceOpenApiVo uptime(String uptime) { + this.uptime = uptime; + return this; + } + + /** + * Device uptime + * @return uptime + */ + @ApiModelProperty(value = "Device uptime") + + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public GlobalKnownDeviceOpenApiVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Device status should be a value as follows: 0: Disconnected; 1: Connected; 2: Pending; 3: Heartbeat Missed; 4: Isolated + * @return status + */ + @ApiModelProperty(value = "Device status should be a value as follows: 0: Disconnected; 1: Connected; 2: Pending; 3: Heartbeat Missed; 4: Isolated") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public GlobalKnownDeviceOpenApiVo lastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + return this; + } + + /** + * Device lastSeen + * @return lastSeen + */ + @ApiModelProperty(value = "Device lastSeen") + + + public Long getLastSeen() { + return lastSeen; + } + + public void setLastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + } + + public GlobalKnownDeviceOpenApiVo cpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + return this; + } + + /** + * Device cpuUtil + * @return cpuUtil + */ + @ApiModelProperty(value = "Device cpuUtil") + + + public Integer getCpuUtil() { + return cpuUtil; + } + + public void setCpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + } + + public GlobalKnownDeviceOpenApiVo memUtil(Integer memUtil) { + this.memUtil = memUtil; + return this; + } + + /** + * Device memUtil + * @return memUtil + */ + @ApiModelProperty(value = "Device memUtil") + + + public Integer getMemUtil() { + return memUtil; + } + + public void setMemUtil(Integer memUtil) { + this.memUtil = memUtil; + } + + public GlobalKnownDeviceOpenApiVo sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Device serial number + * @return sn + */ + @ApiModelProperty(value = "Device serial number") + + + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public GlobalKnownDeviceOpenApiVo licenseStatus(Integer licenseStatus) { + this.licenseStatus = licenseStatus; + return this; + } + + /** + * Device license status(Only for cloud base) should be a value as follows: 0: unActive; 1: Unbind; 2: Expired; 3: active + * @return licenseStatus + */ + @ApiModelProperty(value = "Device license status(Only for cloud base) should be a value as follows: 0: unActive; 1: Unbind; 2: Expired; 3: active") + + + public Integer getLicenseStatus() { + return licenseStatus; + } + + public void setLicenseStatus(Integer licenseStatus) { + this.licenseStatus = licenseStatus; + } + + public GlobalKnownDeviceOpenApiVo needActive(Boolean needActive) { + this.needActive = needActive; + return this; + } + + /** + * Device license status(Only for cloud base).If the value is true, the device is ready to be activated;If the value is false, the device cannot be activated or has already been activated. + * @return needActive + */ + @ApiModelProperty(value = "Device license status(Only for cloud base).If the value is true, the device is ready to be activated;If the value is false, the device cannot be activated or has already been activated.") + + + public Boolean getNeedActive() { + return needActive; + } + + public void setNeedActive(Boolean needActive) { + this.needActive = needActive; + } + + public GlobalKnownDeviceOpenApiVo siteName(String siteName) { + this.siteName = siteName; + return this; + } + + /** + * The name of the site where the device is located + * @return siteName + */ + @ApiModelProperty(value = "The name of the site where the device is located") + + + public String getSiteName() { + return siteName; + } + + public void setSiteName(String siteName) { + this.siteName = siteName; + } + + public GlobalKnownDeviceOpenApiVo tagName(String tagName) { + this.tagName = tagName; + return this; + } + + /** + * Device tag name + * @return tagName + */ + @ApiModelProperty(value = "Device tag name") + + + public String getTagName() { + return tagName; + } + + public void setTagName(String tagName) { + this.tagName = tagName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GlobalKnownDeviceOpenApiVo globalKnownDeviceOpenApiVo = (GlobalKnownDeviceOpenApiVo) o; + return Objects.equals(this.mac, globalKnownDeviceOpenApiVo.mac) && + Objects.equals(this.name, globalKnownDeviceOpenApiVo.name) && + Objects.equals(this.type, globalKnownDeviceOpenApiVo.type) && + Objects.equals(this.subtype, globalKnownDeviceOpenApiVo.subtype) && + Objects.equals(this.deviceSeriesType, globalKnownDeviceOpenApiVo.deviceSeriesType) && + Objects.equals(this.model, globalKnownDeviceOpenApiVo.model) && + Objects.equals(this.ip, globalKnownDeviceOpenApiVo.ip) && + Objects.equals(this.ipv6, globalKnownDeviceOpenApiVo.ipv6) && + Objects.equals(this.uptime, globalKnownDeviceOpenApiVo.uptime) && + Objects.equals(this.status, globalKnownDeviceOpenApiVo.status) && + Objects.equals(this.lastSeen, globalKnownDeviceOpenApiVo.lastSeen) && + Objects.equals(this.cpuUtil, globalKnownDeviceOpenApiVo.cpuUtil) && + Objects.equals(this.memUtil, globalKnownDeviceOpenApiVo.memUtil) && + Objects.equals(this.sn, globalKnownDeviceOpenApiVo.sn) && + Objects.equals(this.licenseStatus, globalKnownDeviceOpenApiVo.licenseStatus) && + Objects.equals(this.needActive, globalKnownDeviceOpenApiVo.needActive) && + Objects.equals(this.siteName, globalKnownDeviceOpenApiVo.siteName) && + Objects.equals(this.tagName, globalKnownDeviceOpenApiVo.tagName); + } + + @Override + public int hashCode() { + return Objects.hash(mac, name, type, subtype, deviceSeriesType, model, ip, ipv6, uptime, status, lastSeen, cpuUtil, memUtil, sn, licenseStatus, needActive, siteName, tagName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GlobalKnownDeviceOpenApiVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" deviceSeriesType: ").append(toIndentedString(deviceSeriesType)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" ipv6: ").append(toIndentedString(ipv6)).append("\n"); + sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append(" cpuUtil: ").append(toIndentedString(cpuUtil)).append("\n"); + sb.append(" memUtil: ").append(toIndentedString(memUtil)).append("\n"); + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" licenseStatus: ").append(toIndentedString(licenseStatus)).append("\n"); + sb.append(" needActive: ").append(toIndentedString(needActive)).append("\n"); + sb.append(" siteName: ").append(toIndentedString(siteName)).append("\n"); + sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GlobalUnknownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GlobalUnknownDeviceOpenApiVo.java new file mode 100644 index 0000000..a819217 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GlobalUnknownDeviceOpenApiVo.java @@ -0,0 +1,301 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * GlobalUnknownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GlobalUnknownDeviceOpenApiVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private String type; + + @JsonProperty("subtype") + private String subtype; + + @JsonProperty("deviceSeriesType") + private Integer deviceSeriesType; + + @JsonProperty("model") + private String model; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("uptime") + private String uptime; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("lastSeen") + private Long lastSeen; + + public GlobalUnknownDeviceOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC + * @return mac + */ + @ApiModelProperty(value = "Device MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public GlobalUnknownDeviceOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Device name + * @return name + */ + @ApiModelProperty(value = "Device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GlobalUnknownDeviceOpenApiVo type(String type) { + this.type = type; + return this; + } + + /** + * Device type + * @return type + */ + @ApiModelProperty(value = "Device type") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public GlobalUnknownDeviceOpenApiVo subtype(String subtype) { + this.subtype = subtype; + return this; + } + + /** + * Switch subtype should be a value as follows: smart: Smart Switch; es: Easy Managed Switch. + * @return subtype + */ + @ApiModelProperty(value = "Switch subtype should be a value as follows: smart: Smart Switch; es: Easy Managed Switch.") + + + public String getSubtype() { + return subtype; + } + + public void setSubtype(String subtype) { + this.subtype = subtype; + } + + public GlobalUnknownDeviceOpenApiVo deviceSeriesType(Integer deviceSeriesType) { + this.deviceSeriesType = deviceSeriesType; + return this; + } + + /** + * Device series type. 0 means basic, 1 means pro. + * @return deviceSeriesType + */ + @ApiModelProperty(value = "Device series type. 0 means basic, 1 means pro.") + + + public Integer getDeviceSeriesType() { + return deviceSeriesType; + } + + public void setDeviceSeriesType(Integer deviceSeriesType) { + this.deviceSeriesType = deviceSeriesType; + } + + public GlobalUnknownDeviceOpenApiVo model(String model) { + this.model = model; + return this; + } + + /** + * Device model name + * @return model + */ + @ApiModelProperty(value = "Device model name") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public GlobalUnknownDeviceOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Device IP + * @return ip + */ + @ApiModelProperty(value = "Device IP") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public GlobalUnknownDeviceOpenApiVo uptime(String uptime) { + this.uptime = uptime; + return this; + } + + /** + * Device uptime + * @return uptime + */ + @ApiModelProperty(value = "Device uptime") + + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public GlobalUnknownDeviceOpenApiVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Device status should be a value as follows: 0: Disconnected; 1: Connected; 2: Pending; 3: Heartbeat Missed; 4: Isolated + * @return status + */ + @ApiModelProperty(value = "Device status should be a value as follows: 0: Disconnected; 1: Connected; 2: Pending; 3: Heartbeat Missed; 4: Isolated") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public GlobalUnknownDeviceOpenApiVo lastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + return this; + } + + /** + * Device lastSeen, unit: ms + * @return lastSeen + */ + @ApiModelProperty(value = "Device lastSeen, unit: ms") + + + public Long getLastSeen() { + return lastSeen; + } + + public void setLastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GlobalUnknownDeviceOpenApiVo globalUnknownDeviceOpenApiVo = (GlobalUnknownDeviceOpenApiVo) o; + return Objects.equals(this.mac, globalUnknownDeviceOpenApiVo.mac) && + Objects.equals(this.name, globalUnknownDeviceOpenApiVo.name) && + Objects.equals(this.type, globalUnknownDeviceOpenApiVo.type) && + Objects.equals(this.subtype, globalUnknownDeviceOpenApiVo.subtype) && + Objects.equals(this.deviceSeriesType, globalUnknownDeviceOpenApiVo.deviceSeriesType) && + Objects.equals(this.model, globalUnknownDeviceOpenApiVo.model) && + Objects.equals(this.ip, globalUnknownDeviceOpenApiVo.ip) && + Objects.equals(this.uptime, globalUnknownDeviceOpenApiVo.uptime) && + Objects.equals(this.status, globalUnknownDeviceOpenApiVo.status) && + Objects.equals(this.lastSeen, globalUnknownDeviceOpenApiVo.lastSeen); + } + + @Override + public int hashCode() { + return Objects.hash(mac, name, type, subtype, deviceSeriesType, model, ip, uptime, status, lastSeen); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GlobalUnknownDeviceOpenApiVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" deviceSeriesType: ").append(toIndentedString(deviceSeriesType)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoAutoCheckUpgradeInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoAutoCheckUpgradeInfo.java new file mode 100644 index 0000000..5c7bf4f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoAutoCheckUpgradeInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoAutoCheckUpgradeInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GridVoAutoCheckUpgradeInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoAutoCheckUpgradeInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoAutoCheckUpgradeInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoAutoCheckUpgradeInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoAutoCheckUpgradeInfo data(List data) { + this.data = data; + return this; + } + + public GridVoAutoCheckUpgradeInfo addDataItem(AutoCheckUpgradeInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoAutoCheckUpgradeInfo gridVoAutoCheckUpgradeInfo = (GridVoAutoCheckUpgradeInfo) o; + return Objects.equals(this.totalRows, gridVoAutoCheckUpgradeInfo.totalRows) && + Objects.equals(this.currentPage, gridVoAutoCheckUpgradeInfo.currentPage) && + Objects.equals(this.currentSize, gridVoAutoCheckUpgradeInfo.currentSize) && + Objects.equals(this.data, gridVoAutoCheckUpgradeInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoAutoCheckUpgradeInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoDeviceInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoDeviceInfo.java new file mode 100644 index 0000000..2d28fd5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoDeviceInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoDeviceInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GridVoDeviceInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoDeviceInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoDeviceInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoDeviceInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoDeviceInfo data(List data) { + this.data = data; + return this; + } + + public GridVoDeviceInfo addDataItem(DeviceInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoDeviceInfo gridVoDeviceInfo = (GridVoDeviceInfo) o; + return Objects.equals(this.totalRows, gridVoDeviceInfo.totalRows) && + Objects.equals(this.currentPage, gridVoDeviceInfo.currentPage) && + Objects.equals(this.currentSize, gridVoDeviceInfo.currentSize) && + Objects.equals(this.data, gridVoDeviceInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoDeviceInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoFirmwareInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoFirmwareInfo.java new file mode 100644 index 0000000..cd3a3cf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoFirmwareInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoFirmwareInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GridVoFirmwareInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoFirmwareInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoFirmwareInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoFirmwareInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoFirmwareInfo data(List data) { + this.data = data; + return this; + } + + public GridVoFirmwareInfo addDataItem(FirmwareInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoFirmwareInfo gridVoFirmwareInfo = (GridVoFirmwareInfo) o; + return Objects.equals(this.totalRows, gridVoFirmwareInfo.totalRows) && + Objects.equals(this.currentPage, gridVoFirmwareInfo.currentPage) && + Objects.equals(this.currentSize, gridVoFirmwareInfo.currentSize) && + Objects.equals(this.data, gridVoFirmwareInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoFirmwareInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoGlobalKnownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoGlobalKnownDeviceOpenApiVo.java new file mode 100644 index 0000000..0fd6c33 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoGlobalKnownDeviceOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoGlobalKnownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GridVoGlobalKnownDeviceOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoGlobalKnownDeviceOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoGlobalKnownDeviceOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoGlobalKnownDeviceOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoGlobalKnownDeviceOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoGlobalKnownDeviceOpenApiVo addDataItem(GlobalKnownDeviceOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoGlobalKnownDeviceOpenApiVo gridVoGlobalKnownDeviceOpenApiVo = (GridVoGlobalKnownDeviceOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoGlobalKnownDeviceOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoGlobalKnownDeviceOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoGlobalKnownDeviceOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoGlobalKnownDeviceOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoGlobalKnownDeviceOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoGlobalUnknownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoGlobalUnknownDeviceOpenApiVo.java new file mode 100644 index 0000000..b1bf58b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoGlobalUnknownDeviceOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoGlobalUnknownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GridVoGlobalUnknownDeviceOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoGlobalUnknownDeviceOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoGlobalUnknownDeviceOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoGlobalUnknownDeviceOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoGlobalUnknownDeviceOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoGlobalUnknownDeviceOpenApiVo addDataItem(GlobalUnknownDeviceOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoGlobalUnknownDeviceOpenApiVo gridVoGlobalUnknownDeviceOpenApiVo = (GridVoGlobalUnknownDeviceOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoGlobalUnknownDeviceOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoGlobalUnknownDeviceOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoGlobalUnknownDeviceOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoGlobalUnknownDeviceOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoGlobalUnknownDeviceOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoPlanUpgradeInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoPlanUpgradeInfo.java new file mode 100644 index 0000000..ebd989b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoPlanUpgradeInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoPlanUpgradeInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GridVoPlanUpgradeInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoPlanUpgradeInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoPlanUpgradeInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoPlanUpgradeInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoPlanUpgradeInfo data(List data) { + this.data = data; + return this; + } + + public GridVoPlanUpgradeInfo addDataItem(PlanUpgradeInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoPlanUpgradeInfo gridVoPlanUpgradeInfo = (GridVoPlanUpgradeInfo) o; + return Objects.equals(this.totalRows, gridVoPlanUpgradeInfo.totalRows) && + Objects.equals(this.currentPage, gridVoPlanUpgradeInfo.currentPage) && + Objects.equals(this.currentSize, gridVoPlanUpgradeInfo.currentSize) && + Objects.equals(this.data, gridVoPlanUpgradeInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoPlanUpgradeInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoPlanUpgradeModelList.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoPlanUpgradeModelList.java new file mode 100644 index 0000000..6cf45b7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoPlanUpgradeModelList.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoPlanUpgradeModelList + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GridVoPlanUpgradeModelList { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoPlanUpgradeModelList totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoPlanUpgradeModelList currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoPlanUpgradeModelList currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoPlanUpgradeModelList data(List data) { + this.data = data; + return this; + } + + public GridVoPlanUpgradeModelList addDataItem(PlanUpgradeModelList dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoPlanUpgradeModelList gridVoPlanUpgradeModelList = (GridVoPlanUpgradeModelList) o; + return Objects.equals(this.totalRows, gridVoPlanUpgradeModelList.totalRows) && + Objects.equals(this.currentPage, gridVoPlanUpgradeModelList.currentPage) && + Objects.equals(this.currentSize, gridVoPlanUpgradeModelList.currentSize) && + Objects.equals(this.data, gridVoPlanUpgradeModelList.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoPlanUpgradeModelList {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoUpgradeFailedDeviceInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoUpgradeFailedDeviceInfo.java new file mode 100644 index 0000000..b7c9cd9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoUpgradeFailedDeviceInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoUpgradeFailedDeviceInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GridVoUpgradeFailedDeviceInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoUpgradeFailedDeviceInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoUpgradeFailedDeviceInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoUpgradeFailedDeviceInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoUpgradeFailedDeviceInfo data(List data) { + this.data = data; + return this; + } + + public GridVoUpgradeFailedDeviceInfo addDataItem(UpgradeFailedDeviceInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoUpgradeFailedDeviceInfo gridVoUpgradeFailedDeviceInfo = (GridVoUpgradeFailedDeviceInfo) o; + return Objects.equals(this.totalRows, gridVoUpgradeFailedDeviceInfo.totalRows) && + Objects.equals(this.currentPage, gridVoUpgradeFailedDeviceInfo.currentPage) && + Objects.equals(this.currentSize, gridVoUpgradeFailedDeviceInfo.currentSize) && + Objects.equals(this.data, gridVoUpgradeFailedDeviceInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoUpgradeFailedDeviceInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoUpgradeLogOpenApiInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoUpgradeLogOpenApiInfo.java new file mode 100644 index 0000000..19a2a2b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/GridVoUpgradeLogOpenApiInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoUpgradeLogOpenApiInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class GridVoUpgradeLogOpenApiInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoUpgradeLogOpenApiInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoUpgradeLogOpenApiInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoUpgradeLogOpenApiInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoUpgradeLogOpenApiInfo data(List data) { + this.data = data; + return this; + } + + public GridVoUpgradeLogOpenApiInfo addDataItem(UpgradeLogOpenApiInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoUpgradeLogOpenApiInfo gridVoUpgradeLogOpenApiInfo = (GridVoUpgradeLogOpenApiInfo) o; + return Objects.equals(this.totalRows, gridVoUpgradeLogOpenApiInfo.totalRows) && + Objects.equals(this.currentPage, gridVoUpgradeLogOpenApiInfo.currentPage) && + Objects.equals(this.currentSize, gridVoUpgradeLogOpenApiInfo.currentSize) && + Objects.equals(this.data, gridVoUpgradeLogOpenApiInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoUpgradeLogOpenApiInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InlineObject.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InlineObject.java new file mode 100644 index 0000000..64e1a11 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InlineObject.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; +import org.springframework.core.io.Resource; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * InlineObject + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class InlineObject { + @JsonProperty("file") + private Resource file; + + public InlineObject file(Resource file) { + this.file = file; + return this; + } + + /** + * Firmware file. + * @return file + */ + @ApiModelProperty(value = "Firmware file.") + + @Valid + + public Resource getFile() { + return file; + } + + public void setFile(Resource file) { + this.file = file; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineObject inlineObject = (InlineObject) o; + return Objects.equals(this.file, inlineObject.file); + } + + @Override + public int hashCode() { + return Objects.hash(file); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineObject {\n"); + + sb.append(" file: ").append(toIndentedString(file)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InlineObject1.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InlineObject1.java new file mode 100644 index 0000000..7a87183 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InlineObject1.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; +import org.springframework.core.io.Resource; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * InlineObject1 + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class InlineObject1 { + @JsonProperty("file") + private Resource file; + + public InlineObject1 file(Resource file) { + this.file = file; + return this; + } + + /** + * Upload a file in request body. + * @return file + */ + @ApiModelProperty(value = "Upload a file in request body.") + + @Valid + + public Resource getFile() { + return file; + } + + public void setFile(Resource file) { + this.file = file; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineObject1 inlineObject1 = (InlineObject1) o; + return Objects.equals(this.file, inlineObject1.file); + } + + @Override + public int hashCode() { + return Objects.hash(file); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineObject1 {\n"); + + sb.append(" file: ").append(toIndentedString(file)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/Interference.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/Interference.java new file mode 100644 index 0000000..5d21a1f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/Interference.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * At most two types of interference data are reported in Inter, sorted in descending order of interference intensity + */ +@ApiModel(description = "At most two types of interference data are reported in Inter, sorted in descending order of interference intensity") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class Interference { + @JsonProperty("inf") + private Integer inf; + + @JsonProperty("infType") + private Integer infType; + + @JsonProperty("infData") + private InterferenceDataEntity infData; + + public Interference inf(Integer inf) { + this.inf = inf; + return this; + } + + /** + * Interference should be within the range of -96 ~ -48 + * @return inf + */ + @ApiModelProperty(value = "Interference should be within the range of -96 ~ -48") + + + public Integer getInf() { + return inf; + } + + public void setInf(Integer inf) { + this.inf = inf; + } + + public Interference infType(Integer infType) { + this.infType = infType; + return this; + } + + /** + * Interference Type should be a value as follows: 0: invalid parameter; 1: MWO; 2: CW; 3: WLAN; 4: FHSS. + * @return infType + */ + @ApiModelProperty(value = "Interference Type should be a value as follows: 0: invalid parameter; 1: MWO; 2: CW; 3: WLAN; 4: FHSS.") + + + public Integer getInfType() { + return infType; + } + + public void setInfType(Integer infType) { + this.infType = infType; + } + + public Interference infData(InterferenceDataEntity infData) { + this.infData = infData; + return this; + } + + /** + * Get infData + * @return infData + */ + @ApiModelProperty(value = "") + + @Valid + + public InterferenceDataEntity getInfData() { + return infData; + } + + public void setInfData(InterferenceDataEntity infData) { + this.infData = infData; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Interference interference = (Interference) o; + return Objects.equals(this.inf, interference.inf) && + Objects.equals(this.infType, interference.infType) && + Objects.equals(this.infData, interference.infData); + } + + @Override + public int hashCode() { + return Objects.hash(inf, infType, infData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Interference {\n"); + + sb.append(" inf: ").append(toIndentedString(inf)).append("\n"); + sb.append(" infType: ").append(toIndentedString(infType)).append("\n"); + sb.append(" infData: ").append(toIndentedString(infData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InterferenceDataEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InterferenceDataEntity.java new file mode 100644 index 0000000..13b2b62 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/InterferenceDataEntity.java @@ -0,0 +1,124 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Interference data, the data refer to the interference intensity and the times of interferences, and they are used to create histograms. + */ +@ApiModel(description = "Interference data, the data refer to the interference intensity and the times of interferences, and they are used to create histograms.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class InterferenceDataEntity { + @JsonProperty("str") + @Valid + private List str = null; + + @JsonProperty("cnt") + @Valid + private List cnt = null; + + public InterferenceDataEntity str(List str) { + this.str = str; + return this; + } + + public InterferenceDataEntity addStrItem(Integer strItem) { + if (this.str == null) { + this.str = new ArrayList<>(); + } + this.str.add(strItem); + return this; + } + + /** + * Interference strength, range [-91, -89, -87, …., -33, -31, -29] (up to 32 strength levels), for example: -91 means the range is -92-90. + * @return str + */ + @ApiModelProperty(value = "Interference strength, range [-91, -89, -87, …., -33, -31, -29] (up to 32 strength levels), for example: -91 means the range is -92-90.") + + + public List getStr() { + return str; + } + + public void setStr(List str) { + this.str = str; + } + + public InterferenceDataEntity cnt(List cnt) { + this.cnt = cnt; + return this; + } + + public InterferenceDataEntity addCntItem(Integer cntItem) { + if (this.cnt == null) { + this.cnt = new ArrayList<>(); + } + this.cnt.add(cntItem); + return this; + } + + /** + * interference counts, range [0, 200] + * @return cnt + */ + @ApiModelProperty(value = "interference counts, range [0, 200]") + + + public List getCnt() { + return cnt; + } + + public void setCnt(List cnt) { + this.cnt = cnt; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InterferenceDataEntity interferenceDataEntity = (InterferenceDataEntity) o; + return Objects.equals(this.str, interferenceDataEntity.str) && + Objects.equals(this.cnt, interferenceDataEntity.cnt); + } + + @Override + public int hashCode() { + return Objects.hash(str, cnt); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InterferenceDataEntity {\n"); + + sb.append(" str: ").append(toIndentedString(str)).append("\n"); + sb.append(" cnt: ").append(toIndentedString(cnt)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LanStatus.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LanStatus.java new file mode 100644 index 0000000..b96e8e3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LanStatus.java @@ -0,0 +1,228 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * LanStatus + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class LanStatus { + @JsonProperty("vlan") + private Integer vlan; + + @JsonProperty("lanName") + private String lanName; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("rx") + private Long rx; + + @JsonProperty("tx") + private Long tx; + + @JsonProperty("clientNum") + private Integer clientNum; + + @JsonProperty("lanPortIpv6Config") + private OsgLanPortIpv6ConfigVo lanPortIpv6Config; + + public LanStatus vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * vlan + * @return vlan + */ + @ApiModelProperty(value = "vlan") + + + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + public LanStatus lanName(String lanName) { + this.lanName = lanName; + return this; + } + + /** + * Lan name + * @return lanName + */ + @ApiModelProperty(value = "Lan name") + + + public String getLanName() { + return lanName; + } + + public void setLanName(String lanName) { + this.lanName = lanName; + } + + public LanStatus ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Ip + * @return ip + */ + @ApiModelProperty(value = "Ip") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public LanStatus rx(Long rx) { + this.rx = rx; + return this; + } + + /** + * Lan rx + * @return rx + */ + @ApiModelProperty(value = "Lan rx") + + + public Long getRx() { + return rx; + } + + public void setRx(Long rx) { + this.rx = rx; + } + + public LanStatus tx(Long tx) { + this.tx = tx; + return this; + } + + /** + * Lan tx + * @return tx + */ + @ApiModelProperty(value = "Lan tx") + + + public Long getTx() { + return tx; + } + + public void setTx(Long tx) { + this.tx = tx; + } + + public LanStatus clientNum(Integer clientNum) { + this.clientNum = clientNum; + return this; + } + + /** + * Lan client num + * @return clientNum + */ + @ApiModelProperty(value = "Lan client num") + + + public Integer getClientNum() { + return clientNum; + } + + public void setClientNum(Integer clientNum) { + this.clientNum = clientNum; + } + + public LanStatus lanPortIpv6Config(OsgLanPortIpv6ConfigVo lanPortIpv6Config) { + this.lanPortIpv6Config = lanPortIpv6Config; + return this; + } + + /** + * Get lanPortIpv6Config + * @return lanPortIpv6Config + */ + @ApiModelProperty(value = "") + + @Valid + + public OsgLanPortIpv6ConfigVo getLanPortIpv6Config() { + return lanPortIpv6Config; + } + + public void setLanPortIpv6Config(OsgLanPortIpv6ConfigVo lanPortIpv6Config) { + this.lanPortIpv6Config = lanPortIpv6Config; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanStatus lanStatus = (LanStatus) o; + return Objects.equals(this.vlan, lanStatus.vlan) && + Objects.equals(this.lanName, lanStatus.lanName) && + Objects.equals(this.ip, lanStatus.ip) && + Objects.equals(this.rx, lanStatus.rx) && + Objects.equals(this.tx, lanStatus.tx) && + Objects.equals(this.clientNum, lanStatus.clientNum) && + Objects.equals(this.lanPortIpv6Config, lanStatus.lanPortIpv6Config); + } + + @Override + public int hashCode() { + return Objects.hash(vlan, lanName, ip, rx, tx, clientNum, lanPortIpv6Config); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanStatus {\n"); + + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append(" lanName: ").append(toIndentedString(lanName)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" rx: ").append(toIndentedString(rx)).append("\n"); + sb.append(" tx: ").append(toIndentedString(tx)).append("\n"); + sb.append(" clientNum: ").append(toIndentedString(clientNum)).append("\n"); + sb.append(" lanPortIpv6Config: ").append(toIndentedString(lanPortIpv6Config)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LanTraffic.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LanTraffic.java new file mode 100644 index 0000000..3665669 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LanTraffic.java @@ -0,0 +1,253 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * LAN traffic info + */ +@ApiModel(description = "LAN traffic info") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class LanTraffic { + @JsonProperty("rxPkts") + private Long rxPkts; + + @JsonProperty("txPkts") + private Long txPkts; + + @JsonProperty("rx") + private Long rx; + + @JsonProperty("tx") + private Long tx; + + @JsonProperty("rxDropPkts") + private Long rxDropPkts; + + @JsonProperty("txDropPkts") + private Long txDropPkts; + + @JsonProperty("rxErrPkts") + private Long rxErrPkts; + + @JsonProperty("txErrPkts") + private Long txErrPkts; + + public LanTraffic rxPkts(Long rxPkts) { + this.rxPkts = rxPkts; + return this; + } + + /** + * Total RX packets + * @return rxPkts + */ + @ApiModelProperty(value = "Total RX packets") + + + public Long getRxPkts() { + return rxPkts; + } + + public void setRxPkts(Long rxPkts) { + this.rxPkts = rxPkts; + } + + public LanTraffic txPkts(Long txPkts) { + this.txPkts = txPkts; + return this; + } + + /** + * Total TX packets + * @return txPkts + */ + @ApiModelProperty(value = "Total TX packets") + + + public Long getTxPkts() { + return txPkts; + } + + public void setTxPkts(Long txPkts) { + this.txPkts = txPkts; + } + + public LanTraffic rx(Long rx) { + this.rx = rx; + return this; + } + + /** + * Total RX bytes, Unit: Byte + * @return rx + */ + @ApiModelProperty(value = "Total RX bytes, Unit: Byte") + + + public Long getRx() { + return rx; + } + + public void setRx(Long rx) { + this.rx = rx; + } + + public LanTraffic tx(Long tx) { + this.tx = tx; + return this; + } + + /** + * Total TX bytes, Unit: Byte + * @return tx + */ + @ApiModelProperty(value = "Total TX bytes, Unit: Byte") + + + public Long getTx() { + return tx; + } + + public void setTx(Long tx) { + this.tx = tx; + } + + public LanTraffic rxDropPkts(Long rxDropPkts) { + this.rxDropPkts = rxDropPkts; + return this; + } + + /** + * RX dropped packets + * @return rxDropPkts + */ + @ApiModelProperty(value = "RX dropped packets") + + + public Long getRxDropPkts() { + return rxDropPkts; + } + + public void setRxDropPkts(Long rxDropPkts) { + this.rxDropPkts = rxDropPkts; + } + + public LanTraffic txDropPkts(Long txDropPkts) { + this.txDropPkts = txDropPkts; + return this; + } + + /** + * TX dropped packets + * @return txDropPkts + */ + @ApiModelProperty(value = "TX dropped packets") + + + public Long getTxDropPkts() { + return txDropPkts; + } + + public void setTxDropPkts(Long txDropPkts) { + this.txDropPkts = txDropPkts; + } + + public LanTraffic rxErrPkts(Long rxErrPkts) { + this.rxErrPkts = rxErrPkts; + return this; + } + + /** + * RX error packets + * @return rxErrPkts + */ + @ApiModelProperty(value = "RX error packets") + + + public Long getRxErrPkts() { + return rxErrPkts; + } + + public void setRxErrPkts(Long rxErrPkts) { + this.rxErrPkts = rxErrPkts; + } + + public LanTraffic txErrPkts(Long txErrPkts) { + this.txErrPkts = txErrPkts; + return this; + } + + /** + * TX error packets + * @return txErrPkts + */ + @ApiModelProperty(value = "TX error packets") + + + public Long getTxErrPkts() { + return txErrPkts; + } + + public void setTxErrPkts(Long txErrPkts) { + this.txErrPkts = txErrPkts; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanTraffic lanTraffic = (LanTraffic) o; + return Objects.equals(this.rxPkts, lanTraffic.rxPkts) && + Objects.equals(this.txPkts, lanTraffic.txPkts) && + Objects.equals(this.rx, lanTraffic.rx) && + Objects.equals(this.tx, lanTraffic.tx) && + Objects.equals(this.rxDropPkts, lanTraffic.rxDropPkts) && + Objects.equals(this.txDropPkts, lanTraffic.txDropPkts) && + Objects.equals(this.rxErrPkts, lanTraffic.rxErrPkts) && + Objects.equals(this.txErrPkts, lanTraffic.txErrPkts); + } + + @Override + public int hashCode() { + return Objects.hash(rxPkts, txPkts, rx, tx, rxDropPkts, txDropPkts, rxErrPkts, txErrPkts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanTraffic {\n"); + + sb.append(" rxPkts: ").append(toIndentedString(rxPkts)).append("\n"); + sb.append(" txPkts: ").append(toIndentedString(txPkts)).append("\n"); + sb.append(" rx: ").append(toIndentedString(rx)).append("\n"); + sb.append(" tx: ").append(toIndentedString(tx)).append("\n"); + sb.append(" rxDropPkts: ").append(toIndentedString(rxDropPkts)).append("\n"); + sb.append(" txDropPkts: ").append(toIndentedString(txDropPkts)).append("\n"); + sb.append(" rxErrPkts: ").append(toIndentedString(rxErrPkts)).append("\n"); + sb.append(" txErrPkts: ").append(toIndentedString(txErrPkts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LocateDeviceRequest.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LocateDeviceRequest.java new file mode 100644 index 0000000..62577d0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/LocateDeviceRequest.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * LocateDeviceRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class LocateDeviceRequest { + @JsonProperty("locateEnable") + private Boolean locateEnable; + + public LocateDeviceRequest locateEnable(Boolean locateEnable) { + this.locateEnable = locateEnable; + return this; + } + + /** + * Get locateEnable + * @return locateEnable + */ + @ApiModelProperty(value = "") + + + public Boolean getLocateEnable() { + return locateEnable; + } + + public void setLocateEnable(Boolean locateEnable) { + this.locateEnable = locateEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LocateDeviceRequest locateDeviceRequest = (LocateDeviceRequest) o; + return Objects.equals(this.locateEnable, locateDeviceRequest.locateEnable); + } + + @Override + public int hashCode() { + return Objects.hash(locateEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LocateDeviceRequest {\n"); + + sb.append(" locateEnable: ").append(toIndentedString(locateEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelBaseInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelBaseInfo.java new file mode 100644 index 0000000..6b5cdef --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelBaseInfo.java @@ -0,0 +1,118 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Model base information list, include Model type information and currentVersion list + */ +@ApiModel(description = "Model base information list, include Model type information and currentVersion list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ModelBaseInfo { + @JsonProperty("modelTypeInfo") + private ModelTypeInfoOpenApiVo modelTypeInfo; + + @JsonProperty("currentVersion") + @Valid + private List currentVersion = null; + + public ModelBaseInfo modelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + return this; + } + + /** + * Get modelTypeInfo + * @return modelTypeInfo + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public ModelTypeInfoOpenApiVo getModelTypeInfo() { + return modelTypeInfo; + } + + public void setModelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + } + + public ModelBaseInfo currentVersion(List currentVersion) { + this.currentVersion = currentVersion; + return this; + } + + public ModelBaseInfo addCurrentVersionItem(String currentVersionItem) { + if (this.currentVersion == null) { + this.currentVersion = new ArrayList<>(); + } + this.currentVersion.add(currentVersionItem); + return this; + } + + /** + * Model version list, software version, such as \"2.5.0 Build 20190118 Rel. 64821\". + * @return currentVersion + */ + @ApiModelProperty(value = "Model version list, software version, such as \"2.5.0 Build 20190118 Rel. 64821\".") + + + public List getCurrentVersion() { + return currentVersion; + } + + public void setCurrentVersion(List currentVersion) { + this.currentVersion = currentVersion; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelBaseInfo modelBaseInfo = (ModelBaseInfo) o; + return Objects.equals(this.modelTypeInfo, modelBaseInfo.modelTypeInfo) && + Objects.equals(this.currentVersion, modelBaseInfo.currentVersion); + } + + @Override + public int hashCode() { + return Objects.hash(modelTypeInfo, currentVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelBaseInfo {\n"); + + sb.append(" modelTypeInfo: ").append(toIndentedString(modelTypeInfo)).append("\n"); + sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFirmwarePoolGridInfoModelLatestFwInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFirmwarePoolGridInfoModelLatestFwInfo.java new file mode 100644 index 0000000..75fe0f7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFirmwarePoolGridInfoModelLatestFwInfo.java @@ -0,0 +1,200 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * ModelFirmwarePoolGridInfoModelLatestFwInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ModelFirmwarePoolGridInfoModelLatestFwInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + @JsonProperty("fwNum") + @Valid + private Map fwNum = null; + + public ModelFirmwarePoolGridInfoModelLatestFwInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public ModelFirmwarePoolGridInfoModelLatestFwInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public ModelFirmwarePoolGridInfoModelLatestFwInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public ModelFirmwarePoolGridInfoModelLatestFwInfo data(List data) { + this.data = data; + return this; + } + + public ModelFirmwarePoolGridInfoModelLatestFwInfo addDataItem(ModelLatestFwInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public ModelFirmwarePoolGridInfoModelLatestFwInfo fwNum(Map fwNum) { + this.fwNum = fwNum; + return this; + } + + public ModelFirmwarePoolGridInfoModelLatestFwInfo putFwNumItem(String key, Integer fwNumItem) { + if (this.fwNum == null) { + this.fwNum = new HashMap<>(); + } + this.fwNum.put(key, fwNumItem); + return this; + } + + /** + * The firmware quantity map for each channel: The key is channel: (0: stable; 1: Release Candidate(RC); 2: Beta), The Value is the quantity + * @return fwNum + */ + @ApiModelProperty(value = "The firmware quantity map for each channel: The key is channel: (0: stable; 1: Release Candidate(RC); 2: Beta), The Value is the quantity") + + + public Map getFwNum() { + return fwNum; + } + + public void setFwNum(Map fwNum) { + this.fwNum = fwNum; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelFirmwarePoolGridInfoModelLatestFwInfo modelFirmwarePoolGridInfoModelLatestFwInfo = (ModelFirmwarePoolGridInfoModelLatestFwInfo) o; + return Objects.equals(this.totalRows, modelFirmwarePoolGridInfoModelLatestFwInfo.totalRows) && + Objects.equals(this.currentPage, modelFirmwarePoolGridInfoModelLatestFwInfo.currentPage) && + Objects.equals(this.currentSize, modelFirmwarePoolGridInfoModelLatestFwInfo.currentSize) && + Objects.equals(this.data, modelFirmwarePoolGridInfoModelLatestFwInfo.data) && + Objects.equals(this.fwNum, modelFirmwarePoolGridInfoModelLatestFwInfo.fwNum); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data, fwNum); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelFirmwarePoolGridInfoModelLatestFwInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" fwNum: ").append(toIndentedString(fwNum)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwOemReleaseNoteInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwOemReleaseNoteInfo.java new file mode 100644 index 0000000..9835d6b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwOemReleaseNoteInfo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ModelFwOemReleaseNoteInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ModelFwOemReleaseNoteInfo { + @JsonProperty("releaseNotes") + @Valid + private List releaseNotes = null; + + public ModelFwOemReleaseNoteInfo releaseNotes(List releaseNotes) { + this.releaseNotes = releaseNotes; + return this; + } + + public ModelFwOemReleaseNoteInfo addReleaseNotesItem(ModelFwVersionReleaseNoteInfo releaseNotesItem) { + if (this.releaseNotes == null) { + this.releaseNotes = new ArrayList<>(); + } + this.releaseNotes.add(releaseNotesItem); + return this; + } + + /** + * Release Notes information for a firmware series + * @return releaseNotes + */ + @ApiModelProperty(value = "Release Notes information for a firmware series") + + @Valid + + public List getReleaseNotes() { + return releaseNotes; + } + + public void setReleaseNotes(List releaseNotes) { + this.releaseNotes = releaseNotes; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelFwOemReleaseNoteInfo modelFwOemReleaseNoteInfo = (ModelFwOemReleaseNoteInfo) o; + return Objects.equals(this.releaseNotes, modelFwOemReleaseNoteInfo.releaseNotes); + } + + @Override + public int hashCode() { + return Objects.hash(releaseNotes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelFwOemReleaseNoteInfo {\n"); + + sb.append(" releaseNotes: ").append(toIndentedString(releaseNotes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwReleaseNoteReqInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwReleaseNoteReqInfo.java new file mode 100644 index 0000000..3a9f873 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwReleaseNoteReqInfo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ModelFwReleaseNoteReqInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ModelFwReleaseNoteReqInfo { + @JsonProperty("oemId") + private String oemId; + + public ModelFwReleaseNoteReqInfo oemId(String oemId) { + this.oemId = oemId; + return this; + } + + /** + * ID, you can also get this field throw: \"Get the firmware pool list\" + * @return oemId + */ + @ApiModelProperty(value = "ID, you can also get this field throw: \"Get the firmware pool list\"") + + + public String getOemId() { + return oemId; + } + + public void setOemId(String oemId) { + this.oemId = oemId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelFwReleaseNoteReqInfo modelFwReleaseNoteReqInfo = (ModelFwReleaseNoteReqInfo) o; + return Objects.equals(this.oemId, modelFwReleaseNoteReqInfo.oemId); + } + + @Override + public int hashCode() { + return Objects.hash(oemId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelFwReleaseNoteReqInfo {\n"); + + sb.append(" oemId: ").append(toIndentedString(oemId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwVersionReleaseNoteInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwVersionReleaseNoteInfo.java new file mode 100644 index 0000000..10426e7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelFwVersionReleaseNoteInfo.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Release Notes information for a firmware series + */ +@ApiModel(description = "Release Notes information for a firmware series") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ModelFwVersionReleaseNoteInfo { + @JsonProperty("currentVersion") + private String currentVersion; + + @JsonProperty("releaseNote") + private String releaseNote; + + @JsonProperty("previousVersion") + private String previousVersion; + + @JsonProperty("nextVersion") + private String nextVersion; + + public ModelFwVersionReleaseNoteInfo currentVersion(String currentVersion) { + this.currentVersion = currentVersion; + return this; + } + + /** + * Current version number, such as \"2.5.0 Build 20190118 Rel. 64821\" + * @return currentVersion + */ + @ApiModelProperty(value = "Current version number, such as \"2.5.0 Build 20190118 Rel. 64821\"") + + + public String getCurrentVersion() { + return currentVersion; + } + + public void setCurrentVersion(String currentVersion) { + this.currentVersion = currentVersion; + } + + public ModelFwVersionReleaseNoteInfo releaseNote(String releaseNote) { + this.releaseNote = releaseNote; + return this; + } + + /** + * Current version of releaseNote + * @return releaseNote + */ + @ApiModelProperty(value = "Current version of releaseNote") + + + public String getReleaseNote() { + return releaseNote; + } + + public void setReleaseNote(String releaseNote) { + this.releaseNote = releaseNote; + } + + public ModelFwVersionReleaseNoteInfo previousVersion(String previousVersion) { + this.previousVersion = previousVersion; + return this; + } + + /** + * Previous version number + * @return previousVersion + */ + @ApiModelProperty(value = "Previous version number") + + + public String getPreviousVersion() { + return previousVersion; + } + + public void setPreviousVersion(String previousVersion) { + this.previousVersion = previousVersion; + } + + public ModelFwVersionReleaseNoteInfo nextVersion(String nextVersion) { + this.nextVersion = nextVersion; + return this; + } + + /** + * The version number of the subsequent version + * @return nextVersion + */ + @ApiModelProperty(value = "The version number of the subsequent version") + + + public String getNextVersion() { + return nextVersion; + } + + public void setNextVersion(String nextVersion) { + this.nextVersion = nextVersion; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelFwVersionReleaseNoteInfo modelFwVersionReleaseNoteInfo = (ModelFwVersionReleaseNoteInfo) o; + return Objects.equals(this.currentVersion, modelFwVersionReleaseNoteInfo.currentVersion) && + Objects.equals(this.releaseNote, modelFwVersionReleaseNoteInfo.releaseNote) && + Objects.equals(this.previousVersion, modelFwVersionReleaseNoteInfo.previousVersion) && + Objects.equals(this.nextVersion, modelFwVersionReleaseNoteInfo.nextVersion); + } + + @Override + public int hashCode() { + return Objects.hash(currentVersion, releaseNote, previousVersion, nextVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelFwVersionReleaseNoteInfo {\n"); + + sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n"); + sb.append(" releaseNote: ").append(toIndentedString(releaseNote)).append("\n"); + sb.append(" previousVersion: ").append(toIndentedString(previousVersion)).append("\n"); + sb.append(" nextVersion: ").append(toIndentedString(nextVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelLatestFwInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelLatestFwInfo.java new file mode 100644 index 0000000..19ff929 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelLatestFwInfo.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * ModelLatestFwInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ModelLatestFwInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("modelTypeInfo") + private ModelTypeInfoOpenApiVo modelTypeInfo; + + @JsonProperty("latestVersion") + private String latestVersion; + + @JsonProperty("releaseTime") + private Long releaseTime; + + public ModelLatestFwInfo id(String id) { + this.id = id; + return this; + } + + /** + * ID + * @return id + */ + @ApiModelProperty(value = "ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ModelLatestFwInfo modelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + return this; + } + + /** + * Get modelTypeInfo + * @return modelTypeInfo + */ + @ApiModelProperty(value = "") + + @Valid + + public ModelTypeInfoOpenApiVo getModelTypeInfo() { + return modelTypeInfo; + } + + public void setModelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + } + + public ModelLatestFwInfo latestVersion(String latestVersion) { + this.latestVersion = latestVersion; + return this; + } + + /** + * Latest version + * @return latestVersion + */ + @ApiModelProperty(value = "Latest version") + + + public String getLatestVersion() { + return latestVersion; + } + + public void setLatestVersion(String latestVersion) { + this.latestVersion = latestVersion; + } + + public ModelLatestFwInfo releaseTime(Long releaseTime) { + this.releaseTime = releaseTime; + return this; + } + + /** + * Latest version release time, timestamp ms + * @return releaseTime + */ + @ApiModelProperty(value = "Latest version release time, timestamp ms") + + + public Long getReleaseTime() { + return releaseTime; + } + + public void setReleaseTime(Long releaseTime) { + this.releaseTime = releaseTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelLatestFwInfo modelLatestFwInfo = (ModelLatestFwInfo) o; + return Objects.equals(this.id, modelLatestFwInfo.id) && + Objects.equals(this.modelTypeInfo, modelLatestFwInfo.modelTypeInfo) && + Objects.equals(this.latestVersion, modelLatestFwInfo.latestVersion) && + Objects.equals(this.releaseTime, modelLatestFwInfo.releaseTime); + } + + @Override + public int hashCode() { + return Objects.hash(id, modelTypeInfo, latestVersion, releaseTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelLatestFwInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" modelTypeInfo: ").append(toIndentedString(modelTypeInfo)).append("\n"); + sb.append(" latestVersion: ").append(toIndentedString(latestVersion)).append("\n"); + sb.append(" releaseTime: ").append(toIndentedString(releaseTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelTypeInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelTypeInfoOpenApiVo.java new file mode 100644 index 0000000..2b1c7a1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelTypeInfoOpenApiVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Model type information. + */ +@ApiModel(description = "Model type information.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ModelTypeInfoOpenApiVo { + @JsonProperty("showModel") + private String showModel; + + @JsonProperty("compoundModel") + private String compoundModel; + + public ModelTypeInfoOpenApiVo showModel(String showModel) { + this.showModel = showModel; + return this; + } + + /** + * Model complex displayed on the front end, you can also get this field throw: \"Get the model of the specified site\" + * @return showModel + */ + @ApiModelProperty(required = true, value = "Model complex displayed on the front end, you can also get this field throw: \"Get the model of the specified site\"") + @NotNull + + + public String getShowModel() { + return showModel; + } + + public void setShowModel(String showModel) { + this.showModel = showModel; + } + + public ModelTypeInfoOpenApiVo compoundModel(String compoundModel) { + this.compoundModel = compoundModel; + return this; + } + + /** + * Model complex used on the backend, you can also get this field throw: \"Get the model of the specified site\" + * @return compoundModel + */ + @ApiModelProperty(required = true, value = "Model complex used on the backend, you can also get this field throw: \"Get the model of the specified site\"") + @NotNull + + + public String getCompoundModel() { + return compoundModel; + } + + public void setCompoundModel(String compoundModel) { + this.compoundModel = compoundModel; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelTypeInfoOpenApiVo modelTypeInfoOpenApiVo = (ModelTypeInfoOpenApiVo) o; + return Objects.equals(this.showModel, modelTypeInfoOpenApiVo.showModel) && + Objects.equals(this.compoundModel, modelTypeInfoOpenApiVo.compoundModel); + } + + @Override + public int hashCode() { + return Objects.hash(showModel, compoundModel); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelTypeInfoOpenApiVo {\n"); + + sb.append(" showModel: ").append(toIndentedString(showModel)).append("\n"); + sb.append(" compoundModel: ").append(toIndentedString(compoundModel)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeInfo.java new file mode 100644 index 0000000..9e88e47 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeInfo.java @@ -0,0 +1,113 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ModelUpgradeInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ModelUpgradeInfo { + @JsonProperty("modelList") + @Valid + private List modelList = new ArrayList<>(); + + @JsonProperty("selectType") + private String selectType; + + public ModelUpgradeInfo modelList(List modelList) { + this.modelList = modelList; + return this; + } + + public ModelUpgradeInfo addModelListItem(String modelListItem) { + this.modelList.add(modelListItem); + return this; + } + + /** + * The selected model list. + * @return modelList + */ + @ApiModelProperty(required = true, value = "The selected model list.") + @NotNull + + + public List getModelList() { + return modelList; + } + + public void setModelList(List modelList) { + this.modelList = modelList; + } + + public ModelUpgradeInfo selectType(String selectType) { + this.selectType = selectType; + return this; + } + + /** + * SelectType should be a value as follows: all: select all; include: include selected modelList; exclude: all but exclude selected modelList. + * @return selectType + */ + @ApiModelProperty(required = true, value = "SelectType should be a value as follows: all: select all; include: include selected modelList; exclude: all but exclude selected modelList.") + @NotNull + + + public String getSelectType() { + return selectType; + } + + public void setSelectType(String selectType) { + this.selectType = selectType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelUpgradeInfo modelUpgradeInfo = (ModelUpgradeInfo) o; + return Objects.equals(this.modelList, modelUpgradeInfo.modelList) && + Objects.equals(this.selectType, modelUpgradeInfo.selectType); + } + + @Override + public int hashCode() { + return Objects.hash(modelList, selectType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelUpgradeInfo {\n"); + + sb.append(" modelList: ").append(toIndentedString(modelList)).append("\n"); + sb.append(" selectType: ").append(toIndentedString(selectType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeSiteInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeSiteInfo.java new file mode 100644 index 0000000..87bc0c9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeSiteInfo.java @@ -0,0 +1,198 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ModelUpgradeSiteInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ModelUpgradeSiteInfo { + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentPageSize") + private Integer currentPageSize; + + @JsonProperty("totalRows") + private Integer totalRows; + + @JsonProperty("allSiteIds") + @Valid + private List allSiteIds = null; + + @JsonProperty("data") + @Valid + private List data = null; + + public ModelUpgradeSiteInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Start page number. Start from 1. + * @return currentPage + */ + @ApiModelProperty(value = "Start page number. Start from 1.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public ModelUpgradeSiteInfo currentPageSize(Integer currentPageSize) { + this.currentPageSize = currentPageSize; + return this; + } + + /** + * Number of entries per page. It should be within the range of 1–100. + * @return currentPageSize + */ + @ApiModelProperty(value = "Number of entries per page. It should be within the range of 1–100.") + + + public Integer getCurrentPageSize() { + return currentPageSize; + } + + public void setCurrentPageSize(Integer currentPageSize) { + this.currentPageSize = currentPageSize; + } + + public ModelUpgradeSiteInfo totalRows(Integer totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows.") + + + public Integer getTotalRows() { + return totalRows; + } + + public void setTotalRows(Integer totalRows) { + this.totalRows = totalRows; + } + + public ModelUpgradeSiteInfo allSiteIds(List allSiteIds) { + this.allSiteIds = allSiteIds; + return this; + } + + public ModelUpgradeSiteInfo addAllSiteIdsItem(String allSiteIdsItem) { + if (this.allSiteIds == null) { + this.allSiteIds = new ArrayList<>(); + } + this.allSiteIds.add(allSiteIdsItem); + return this; + } + + /** + * All siteIDs in the query result. + * @return allSiteIds + */ + @ApiModelProperty(value = "All siteIDs in the query result.") + + + public List getAllSiteIds() { + return allSiteIds; + } + + public void setAllSiteIds(List allSiteIds) { + this.allSiteIds = allSiteIds; + } + + public ModelUpgradeSiteInfo data(List data) { + this.data = data; + return this; + } + + public ModelUpgradeSiteInfo addDataItem(SiteBasicInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Site basic information on one page. + * @return data + */ + @ApiModelProperty(value = "Site basic information on one page.") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelUpgradeSiteInfo modelUpgradeSiteInfo = (ModelUpgradeSiteInfo) o; + return Objects.equals(this.currentPage, modelUpgradeSiteInfo.currentPage) && + Objects.equals(this.currentPageSize, modelUpgradeSiteInfo.currentPageSize) && + Objects.equals(this.totalRows, modelUpgradeSiteInfo.totalRows) && + Objects.equals(this.allSiteIds, modelUpgradeSiteInfo.allSiteIds) && + Objects.equals(this.data, modelUpgradeSiteInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(currentPage, currentPageSize, totalRows, allSiteIds, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelUpgradeSiteInfo {\n"); + + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentPageSize: ").append(toIndentedString(currentPageSize)).append("\n"); + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" allSiteIds: ").append(toIndentedString(allSiteIds)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeSiteReqInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeSiteReqInfo.java new file mode 100644 index 0000000..11330e4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModelUpgradeSiteReqInfo.java @@ -0,0 +1,140 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ModelUpgradeSiteReqInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ModelUpgradeSiteReqInfo { + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentPageSize") + private Integer currentPageSize; + + @JsonProperty("models") + @Valid + private List models = new ArrayList<>(); + + public ModelUpgradeSiteReqInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Start page number. Start from 1. + * @return currentPage + */ + @ApiModelProperty(required = true, value = "Start page number. Start from 1.") + @NotNull + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public ModelUpgradeSiteReqInfo currentPageSize(Integer currentPageSize) { + this.currentPageSize = currentPageSize; + return this; + } + + /** + * Number of entries per page. It should be within the range of 1–100. + * @return currentPageSize + */ + @ApiModelProperty(required = true, value = "Number of entries per page. It should be within the range of 1–100.") + @NotNull + + + public Integer getCurrentPageSize() { + return currentPageSize; + } + + public void setCurrentPageSize(Integer currentPageSize) { + this.currentPageSize = currentPageSize; + } + + public ModelUpgradeSiteReqInfo models(List models) { + this.models = models; + return this; + } + + public ModelUpgradeSiteReqInfo addModelsItem(ModelBaseInfo modelsItem) { + this.models.add(modelsItem); + return this; + } + + /** + * Model base information list, include Model type information and currentVersion list + * @return models + */ + @ApiModelProperty(required = true, value = "Model base information list, include Model type information and currentVersion list") + @NotNull + + @Valid + + public List getModels() { + return models; + } + + public void setModels(List models) { + this.models = models; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModelUpgradeSiteReqInfo modelUpgradeSiteReqInfo = (ModelUpgradeSiteReqInfo) o; + return Objects.equals(this.currentPage, modelUpgradeSiteReqInfo.currentPage) && + Objects.equals(this.currentPageSize, modelUpgradeSiteReqInfo.currentPageSize) && + Objects.equals(this.models, modelUpgradeSiteReqInfo.models); + } + + @Override + public int hashCode() { + return Objects.hash(currentPage, currentPageSize, models); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModelUpgradeSiteReqInfo {\n"); + + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentPageSize: ").append(toIndentedString(currentPageSize)).append("\n"); + sb.append(" models: ").append(toIndentedString(models)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModifyTagOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModifyTagOpenApiVo.java new file mode 100644 index 0000000..f509b8a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ModifyTagOpenApiVo.java @@ -0,0 +1,105 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ModifyTagOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ModifyTagOpenApiVo { + @JsonProperty("tagId") + private String tagId; + + @JsonProperty("name") + private String name; + + public ModifyTagOpenApiVo tagId(String tagId) { + this.tagId = tagId; + return this; + } + + /** + * Tag ID + * @return tagId + */ + @ApiModelProperty(required = true, value = "Tag ID") + @NotNull + + + public String getTagId() { + return tagId; + } + + public void setTagId(String tagId) { + this.tagId = tagId; + } + + public ModifyTagOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Tag name should contain 1 to 128 ASCII characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Tag name should contain 1 to 128 ASCII characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyTagOpenApiVo modifyTagOpenApiVo = (ModifyTagOpenApiVo) o; + return Objects.equals(this.tagId, modifyTagOpenApiVo.tagId) && + Objects.equals(this.name, modifyTagOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(tagId, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyTagOpenApiVo {\n"); + + sb.append(" tagId: ").append(toIndentedString(tagId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/NetworkPortsAssociationVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/NetworkPortsAssociationVo.java new file mode 100644 index 0000000..c51aa5c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/NetworkPortsAssociationVo.java @@ -0,0 +1,233 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * NetworkPortsAssociationVO + */ +@ApiModel(description = "NetworkPortsAssociationVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class NetworkPortsAssociationVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("vlan") + private Integer vlan; + + @JsonProperty("nativePorts") + @Valid + private List nativePorts = null; + + @JsonProperty("untaggedPorts") + @Valid + private List untaggedPorts = null; + + @JsonProperty("taggedPorts") + @Valid + private List taggedPorts = null; + + public NetworkPortsAssociationVo id(String id) { + this.id = id; + return this; + } + + /** + * Network's ID + * @return id + */ + @ApiModelProperty(value = "Network's ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public NetworkPortsAssociationVo name(String name) { + this.name = name; + return this; + } + + /** + * Network's name + * @return name + */ + @ApiModelProperty(value = "Network's name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public NetworkPortsAssociationVo vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * VLAN ID + * @return vlan + */ + @ApiModelProperty(value = "VLAN ID") + + + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + public NetworkPortsAssociationVo nativePorts(List nativePorts) { + this.nativePorts = nativePorts; + return this; + } + + public NetworkPortsAssociationVo addNativePortsItem(Integer nativePortsItem) { + if (this.nativePorts == null) { + this.nativePorts = new ArrayList<>(); + } + this.nativePorts.add(nativePortsItem); + return this; + } + + /** + * Native ports list + * @return nativePorts + */ + @ApiModelProperty(value = "Native ports list") + + + public List getNativePorts() { + return nativePorts; + } + + public void setNativePorts(List nativePorts) { + this.nativePorts = nativePorts; + } + + public NetworkPortsAssociationVo untaggedPorts(List untaggedPorts) { + this.untaggedPorts = untaggedPorts; + return this; + } + + public NetworkPortsAssociationVo addUntaggedPortsItem(Integer untaggedPortsItem) { + if (this.untaggedPorts == null) { + this.untaggedPorts = new ArrayList<>(); + } + this.untaggedPorts.add(untaggedPortsItem); + return this; + } + + /** + * Untagged ports list + * @return untaggedPorts + */ + @ApiModelProperty(value = "Untagged ports list") + + + public List getUntaggedPorts() { + return untaggedPorts; + } + + public void setUntaggedPorts(List untaggedPorts) { + this.untaggedPorts = untaggedPorts; + } + + public NetworkPortsAssociationVo taggedPorts(List taggedPorts) { + this.taggedPorts = taggedPorts; + return this; + } + + public NetworkPortsAssociationVo addTaggedPortsItem(Integer taggedPortsItem) { + if (this.taggedPorts == null) { + this.taggedPorts = new ArrayList<>(); + } + this.taggedPorts.add(taggedPortsItem); + return this; + } + + /** + * Tagged ports list + * @return taggedPorts + */ + @ApiModelProperty(value = "Tagged ports list") + + + public List getTaggedPorts() { + return taggedPorts; + } + + public void setTaggedPorts(List taggedPorts) { + this.taggedPorts = taggedPorts; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NetworkPortsAssociationVo networkPortsAssociationVo = (NetworkPortsAssociationVo) o; + return Objects.equals(this.id, networkPortsAssociationVo.id) && + Objects.equals(this.name, networkPortsAssociationVo.name) && + Objects.equals(this.vlan, networkPortsAssociationVo.vlan) && + Objects.equals(this.nativePorts, networkPortsAssociationVo.nativePorts) && + Objects.equals(this.untaggedPorts, networkPortsAssociationVo.untaggedPorts) && + Objects.equals(this.taggedPorts, networkPortsAssociationVo.taggedPorts); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, vlan, nativePorts, untaggedPorts, taggedPorts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NetworkPortsAssociationVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append(" nativePorts: ").append(toIndentedString(nativePorts)).append("\n"); + sb.append(" untaggedPorts: ").append(toIndentedString(untaggedPorts)).append("\n"); + sb.append(" taggedPorts: ").append(toIndentedString(taggedPorts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OnlineUpgradeRes.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OnlineUpgradeRes.java new file mode 100644 index 0000000..6595d40 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OnlineUpgradeRes.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OnlineUpgradeRes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OnlineUpgradeRes { + @JsonProperty("finished") + private Boolean finished; + + @JsonProperty("success") + private Boolean success; + + public OnlineUpgradeRes finished(Boolean finished) { + this.finished = finished; + return this; + } + + /** + * Whether the task is complete + * @return finished + */ + @ApiModelProperty(value = "Whether the task is complete") + + + public Boolean getFinished() { + return finished; + } + + public void setFinished(Boolean finished) { + this.finished = finished; + } + + public OnlineUpgradeRes success(Boolean success) { + this.success = success; + return this; + } + + /** + * Whether the task is successful + * @return success + */ + @ApiModelProperty(value = "Whether the task is successful") + + + public Boolean getSuccess() { + return success; + } + + public void setSuccess(Boolean success) { + this.success = success; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OnlineUpgradeRes onlineUpgradeRes = (OnlineUpgradeRes) o; + return Objects.equals(this.finished, onlineUpgradeRes.finished) && + Objects.equals(this.success, onlineUpgradeRes.success); + } + + @Override + public int hashCode() { + return Objects.hash(finished, success); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OnlineUpgradeRes {\n"); + + sb.append(" finished: ").append(toIndentedString(finished)).append("\n"); + sb.append(" success: ").append(toIndentedString(success)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseAdoptResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseAdoptResult.java new file mode 100644 index 0000000..dbcb495 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseAdoptResult.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseAdoptResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseAdoptResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private AdoptResult result; + + public OperationResponseAdoptResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseAdoptResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseAdoptResult result(AdoptResult result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public AdoptResult getResult() { + return result; + } + + public void setResult(AdoptResult result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseAdoptResult operationResponseAdoptResult = (OperationResponseAdoptResult) o; + return Objects.equals(this.errorCode, operationResponseAdoptResult.errorCode) && + Objects.equals(this.msg, operationResponseAdoptResult.msg) && + Objects.equals(this.result, operationResponseAdoptResult.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseAdoptResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApAvailableChannelOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApAvailableChannelOpenApiVo.java new file mode 100644 index 0000000..734c36f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApAvailableChannelOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApAvailableChannelOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApAvailableChannelOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApAvailableChannelOpenApiVo result; + + public OperationResponseApAvailableChannelOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApAvailableChannelOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApAvailableChannelOpenApiVo result(ApAvailableChannelOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApAvailableChannelOpenApiVo getResult() { + return result; + } + + public void setResult(ApAvailableChannelOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApAvailableChannelOpenApiVo operationResponseApAvailableChannelOpenApiVo = (OperationResponseApAvailableChannelOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseApAvailableChannelOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseApAvailableChannelOpenApiVo.msg) && + Objects.equals(this.result, operationResponseApAvailableChannelOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApAvailableChannelOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApBridgeConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApBridgeConfig.java new file mode 100644 index 0000000..3c82d8a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApBridgeConfig.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApBridgeConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApBridgeConfig { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApBridgeConfig result; + + public OperationResponseApBridgeConfig errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApBridgeConfig msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApBridgeConfig result(ApBridgeConfig result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApBridgeConfig getResult() { + return result; + } + + public void setResult(ApBridgeConfig result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApBridgeConfig operationResponseApBridgeConfig = (OperationResponseApBridgeConfig) o; + return Objects.equals(this.errorCode, operationResponseApBridgeConfig.errorCode) && + Objects.equals(this.msg, operationResponseApBridgeConfig.msg) && + Objects.equals(this.result, operationResponseApBridgeConfig.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApBridgeConfig {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApGeneralConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApGeneralConfig.java new file mode 100644 index 0000000..2fb222d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApGeneralConfig.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApGeneralConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApGeneralConfig { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApGeneralConfig result; + + public OperationResponseApGeneralConfig errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApGeneralConfig msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApGeneralConfig result(ApGeneralConfig result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApGeneralConfig getResult() { + return result; + } + + public void setResult(ApGeneralConfig result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApGeneralConfig operationResponseApGeneralConfig = (OperationResponseApGeneralConfig) o; + return Objects.equals(this.errorCode, operationResponseApGeneralConfig.errorCode) && + Objects.equals(this.msg, operationResponseApGeneralConfig.msg) && + Objects.equals(this.result, operationResponseApGeneralConfig.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApGeneralConfig {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApIpSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApIpSetting.java new file mode 100644 index 0000000..f402159 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApIpSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApIpSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApIpSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApIpSetting result; + + public OperationResponseApIpSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApIpSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApIpSetting result(ApIpSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApIpSetting getResult() { + return result; + } + + public void setResult(ApIpSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApIpSetting operationResponseApIpSetting = (OperationResponseApIpSetting) o; + return Objects.equals(this.errorCode, operationResponseApIpSetting.errorCode) && + Objects.equals(this.msg, operationResponseApIpSetting.msg) && + Objects.equals(this.result, operationResponseApIpSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApIpSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApLanTraffic.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApLanTraffic.java new file mode 100644 index 0000000..f3aa490 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApLanTraffic.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApLanTraffic + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApLanTraffic { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApLanTraffic result; + + public OperationResponseApLanTraffic errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApLanTraffic msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApLanTraffic result(ApLanTraffic result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApLanTraffic getResult() { + return result; + } + + public void setResult(ApLanTraffic result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApLanTraffic operationResponseApLanTraffic = (OperationResponseApLanTraffic) o; + return Objects.equals(this.errorCode, operationResponseApLanTraffic.errorCode) && + Objects.equals(this.msg, operationResponseApLanTraffic.msg) && + Objects.equals(this.result, operationResponseApLanTraffic.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApLanTraffic {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApOfdmaConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApOfdmaConfigOpenApiVo.java new file mode 100644 index 0000000..d7a9642 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApOfdmaConfigOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApOfdmaConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApOfdmaConfigOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApOfdmaConfigOpenApiVo result; + + public OperationResponseApOfdmaConfigOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApOfdmaConfigOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApOfdmaConfigOpenApiVo result(ApOfdmaConfigOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApOfdmaConfigOpenApiVo getResult() { + return result; + } + + public void setResult(ApOfdmaConfigOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApOfdmaConfigOpenApiVo operationResponseApOfdmaConfigOpenApiVo = (OperationResponseApOfdmaConfigOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseApOfdmaConfigOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseApOfdmaConfigOpenApiVo.msg) && + Objects.equals(this.result, operationResponseApOfdmaConfigOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApOfdmaConfigOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApOverviewInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApOverviewInfo.java new file mode 100644 index 0000000..f0fa6f0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApOverviewInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApOverviewInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApOverviewInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApOverviewInfo result; + + public OperationResponseApOverviewInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApOverviewInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApOverviewInfo result(ApOverviewInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApOverviewInfo getResult() { + return result; + } + + public void setResult(ApOverviewInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApOverviewInfo operationResponseApOverviewInfo = (OperationResponseApOverviewInfo) o; + return Objects.equals(this.errorCode, operationResponseApOverviewInfo.errorCode) && + Objects.equals(this.msg, operationResponseApOverviewInfo.msg) && + Objects.equals(this.result, operationResponseApOverviewInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApOverviewInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApPowerSavingConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApPowerSavingConfigOpenApiVo.java new file mode 100644 index 0000000..76d339d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApPowerSavingConfigOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApPowerSavingConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApPowerSavingConfigOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApPowerSavingConfigOpenApiVo result; + + public OperationResponseApPowerSavingConfigOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApPowerSavingConfigOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApPowerSavingConfigOpenApiVo result(ApPowerSavingConfigOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApPowerSavingConfigOpenApiVo getResult() { + return result; + } + + public void setResult(ApPowerSavingConfigOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApPowerSavingConfigOpenApiVo operationResponseApPowerSavingConfigOpenApiVo = (OperationResponseApPowerSavingConfigOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseApPowerSavingConfigOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseApPowerSavingConfigOpenApiVo.msg) && + Objects.equals(this.result, operationResponseApPowerSavingConfigOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApPowerSavingConfigOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRadiosConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRadiosConfig.java new file mode 100644 index 0000000..8a8969f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRadiosConfig.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApRadiosConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApRadiosConfig { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApRadiosConfig result; + + public OperationResponseApRadiosConfig errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApRadiosConfig msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApRadiosConfig result(ApRadiosConfig result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadiosConfig getResult() { + return result; + } + + public void setResult(ApRadiosConfig result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApRadiosConfig operationResponseApRadiosConfig = (OperationResponseApRadiosConfig) o; + return Objects.equals(this.errorCode, operationResponseApRadiosConfig.errorCode) && + Objects.equals(this.msg, operationResponseApRadiosConfig.msg) && + Objects.equals(this.result, operationResponseApRadiosConfig.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApRadiosConfig {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRadiosDetail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRadiosDetail.java new file mode 100644 index 0000000..3fa2664 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRadiosDetail.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApRadiosDetail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApRadiosDetail { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApRadiosDetail result; + + public OperationResponseApRadiosDetail errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApRadiosDetail msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApRadiosDetail result(ApRadiosDetail result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRadiosDetail getResult() { + return result; + } + + public void setResult(ApRadiosDetail result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApRadiosDetail operationResponseApRadiosDetail = (OperationResponseApRadiosDetail) o; + return Objects.equals(this.errorCode, operationResponseApRadiosDetail.errorCode) && + Objects.equals(this.msg, operationResponseApRadiosDetail.msg) && + Objects.equals(this.result, operationResponseApRadiosDetail.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApRadiosDetail {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRfScanInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRfScanInfo.java new file mode 100644 index 0000000..658e226 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRfScanInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApRfScanInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApRfScanInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApRfScanInfo result; + + public OperationResponseApRfScanInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApRfScanInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApRfScanInfo result(ApRfScanInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRfScanInfo getResult() { + return result; + } + + public void setResult(ApRfScanInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApRfScanInfo operationResponseApRfScanInfo = (OperationResponseApRfScanInfo) o; + return Objects.equals(this.errorCode, operationResponseApRfScanInfo.errorCode) && + Objects.equals(this.msg, operationResponseApRfScanInfo.msg) && + Objects.equals(this.result, operationResponseApRfScanInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApRfScanInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRfScanResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRfScanResult.java new file mode 100644 index 0000000..bdc8fb6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApRfScanResult.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApRfScanResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApRfScanResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApRfScanResult result; + + public OperationResponseApRfScanResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApRfScanResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApRfScanResult result(ApRfScanResult result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApRfScanResult getResult() { + return result; + } + + public void setResult(ApRfScanResult result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApRfScanResult operationResponseApRfScanResult = (OperationResponseApRfScanResult) o; + return Objects.equals(this.errorCode, operationResponseApRfScanResult.errorCode) && + Objects.equals(this.msg, operationResponseApRfScanResult.msg) && + Objects.equals(this.result, operationResponseApRfScanResult.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApRfScanResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApSsidWlansOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApSsidWlansOpenApiV2Vo.java new file mode 100644 index 0000000..03b65da --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApSsidWlansOpenApiV2Vo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApSsidWlansOpenApiV2Vo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApSsidWlansOpenApiV2Vo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApSsidWlansOpenApiV2Vo result; + + public OperationResponseApSsidWlansOpenApiV2Vo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApSsidWlansOpenApiV2Vo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApSsidWlansOpenApiV2Vo result(ApSsidWlansOpenApiV2Vo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApSsidWlansOpenApiV2Vo getResult() { + return result; + } + + public void setResult(ApSsidWlansOpenApiV2Vo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApSsidWlansOpenApiV2Vo operationResponseApSsidWlansOpenApiV2Vo = (OperationResponseApSsidWlansOpenApiV2Vo) o; + return Objects.equals(this.errorCode, operationResponseApSsidWlansOpenApiV2Vo.errorCode) && + Objects.equals(this.msg, operationResponseApSsidWlansOpenApiV2Vo.msg) && + Objects.equals(this.result, operationResponseApSsidWlansOpenApiV2Vo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApSsidWlansOpenApiV2Vo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApSsidWlansOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApSsidWlansOpenApiVo.java new file mode 100644 index 0000000..b9059e3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApSsidWlansOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApSsidWlansOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApSsidWlansOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApSsidWlansOpenApiVo result; + + public OperationResponseApSsidWlansOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApSsidWlansOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApSsidWlansOpenApiVo result(ApSsidWlansOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApSsidWlansOpenApiVo getResult() { + return result; + } + + public void setResult(ApSsidWlansOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApSsidWlansOpenApiVo operationResponseApSsidWlansOpenApiVo = (OperationResponseApSsidWlansOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseApSsidWlansOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseApSsidWlansOpenApiVo.msg) && + Objects.equals(this.result, operationResponseApSsidWlansOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApSsidWlansOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApWiredDownlink.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApWiredDownlink.java new file mode 100644 index 0000000..91c47d0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApWiredDownlink.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApWiredDownlink + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApWiredDownlink { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApWiredDownlink result; + + public OperationResponseApWiredDownlink errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApWiredDownlink msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApWiredDownlink result(ApWiredDownlink result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApWiredDownlink getResult() { + return result; + } + + public void setResult(ApWiredDownlink result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApWiredDownlink operationResponseApWiredDownlink = (OperationResponseApWiredDownlink) o; + return Objects.equals(this.errorCode, operationResponseApWiredDownlink.errorCode) && + Objects.equals(this.msg, operationResponseApWiredDownlink.msg) && + Objects.equals(this.result, operationResponseApWiredDownlink.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApWiredDownlink {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApWiredUplink.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApWiredUplink.java new file mode 100644 index 0000000..93f3da1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseApWiredUplink.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApWiredUplink + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseApWiredUplink { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApWiredUplink result; + + public OperationResponseApWiredUplink errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApWiredUplink msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApWiredUplink result(ApWiredUplink result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApWiredUplink getResult() { + return result; + } + + public void setResult(ApWiredUplink result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApWiredUplink operationResponseApWiredUplink = (OperationResponseApWiredUplink) o; + return Objects.equals(this.errorCode, operationResponseApWiredUplink.errorCode) && + Objects.equals(this.msg, operationResponseApWiredUplink.msg) && + Objects.equals(this.result, operationResponseApWiredUplink.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApWiredUplink {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCheckFirmwareRes.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCheckFirmwareRes.java new file mode 100644 index 0000000..69d1eb7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCheckFirmwareRes.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCheckFirmwareRes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseCheckFirmwareRes { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CheckFirmwareRes result; + + public OperationResponseCheckFirmwareRes errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCheckFirmwareRes msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCheckFirmwareRes result(CheckFirmwareRes result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CheckFirmwareRes getResult() { + return result; + } + + public void setResult(CheckFirmwareRes result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCheckFirmwareRes operationResponseCheckFirmwareRes = (OperationResponseCheckFirmwareRes) o; + return Objects.equals(this.errorCode, operationResponseCheckFirmwareRes.errorCode) && + Objects.equals(this.msg, operationResponseCheckFirmwareRes.msg) && + Objects.equals(this.result, operationResponseCheckFirmwareRes.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCheckFirmwareRes {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCreateAutoCheckResInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCreateAutoCheckResInfo.java new file mode 100644 index 0000000..0891736 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCreateAutoCheckResInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCreateAutoCheckResInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseCreateAutoCheckResInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CreateAutoCheckResInfo result; + + public OperationResponseCreateAutoCheckResInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCreateAutoCheckResInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCreateAutoCheckResInfo result(CreateAutoCheckResInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CreateAutoCheckResInfo getResult() { + return result; + } + + public void setResult(CreateAutoCheckResInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCreateAutoCheckResInfo operationResponseCreateAutoCheckResInfo = (OperationResponseCreateAutoCheckResInfo) o; + return Objects.equals(this.errorCode, operationResponseCreateAutoCheckResInfo.errorCode) && + Objects.equals(this.msg, operationResponseCreateAutoCheckResInfo.msg) && + Objects.equals(this.result, operationResponseCreateAutoCheckResInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCreateAutoCheckResInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCreateUpgradePlanResinfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCreateUpgradePlanResinfo.java new file mode 100644 index 0000000..8f34f58 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCreateUpgradePlanResinfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCreateUpgradePlanResinfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseCreateUpgradePlanResinfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CreateUpgradePlanResinfo result; + + public OperationResponseCreateUpgradePlanResinfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCreateUpgradePlanResinfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCreateUpgradePlanResinfo result(CreateUpgradePlanResinfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CreateUpgradePlanResinfo getResult() { + return result; + } + + public void setResult(CreateUpgradePlanResinfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCreateUpgradePlanResinfo operationResponseCreateUpgradePlanResinfo = (OperationResponseCreateUpgradePlanResinfo) o; + return Objects.equals(this.errorCode, operationResponseCreateUpgradePlanResinfo.errorCode) && + Objects.equals(this.msg, operationResponseCreateUpgradePlanResinfo.msg) && + Objects.equals(this.result, operationResponseCreateUpgradePlanResinfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCreateUpgradePlanResinfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCriticalModelNum.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCriticalModelNum.java new file mode 100644 index 0000000..316fa3c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseCriticalModelNum.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCriticalModelNum + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseCriticalModelNum { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CriticalModelNum result; + + public OperationResponseCriticalModelNum errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCriticalModelNum msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCriticalModelNum result(CriticalModelNum result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CriticalModelNum getResult() { + return result; + } + + public void setResult(CriticalModelNum result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCriticalModelNum operationResponseCriticalModelNum = (OperationResponseCriticalModelNum) o; + return Objects.equals(this.errorCode, operationResponseCriticalModelNum.errorCode) && + Objects.equals(this.msg, operationResponseCriticalModelNum.msg) && + Objects.equals(this.result, operationResponseCriticalModelNum.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCriticalModelNum {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceAddProcessRespVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceAddProcessRespVo.java new file mode 100644 index 0000000..8592502 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceAddProcessRespVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseDeviceAddProcessRespVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseDeviceAddProcessRespVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private DeviceAddProcessRespVo result; + + public OperationResponseDeviceAddProcessRespVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseDeviceAddProcessRespVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseDeviceAddProcessRespVo result(DeviceAddProcessRespVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public DeviceAddProcessRespVo getResult() { + return result; + } + + public void setResult(DeviceAddProcessRespVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseDeviceAddProcessRespVo operationResponseDeviceAddProcessRespVo = (OperationResponseDeviceAddProcessRespVo) o; + return Objects.equals(this.errorCode, operationResponseDeviceAddProcessRespVo.errorCode) && + Objects.equals(this.msg, operationResponseDeviceAddProcessRespVo.msg) && + Objects.equals(this.result, operationResponseDeviceAddProcessRespVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseDeviceAddProcessRespVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceAddRespOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceAddRespOpenApiVo.java new file mode 100644 index 0000000..72ab09d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceAddRespOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseDeviceAddRespOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseDeviceAddRespOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private DeviceAddRespOpenApiVo result; + + public OperationResponseDeviceAddRespOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseDeviceAddRespOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseDeviceAddRespOpenApiVo result(DeviceAddRespOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public DeviceAddRespOpenApiVo getResult() { + return result; + } + + public void setResult(DeviceAddRespOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseDeviceAddRespOpenApiVo operationResponseDeviceAddRespOpenApiVo = (OperationResponseDeviceAddRespOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseDeviceAddRespOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseDeviceAddRespOpenApiVo.msg) && + Objects.equals(this.result, operationResponseDeviceAddRespOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseDeviceAddRespOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceFirmwareInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceFirmwareInfo.java new file mode 100644 index 0000000..24a6f13 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseDeviceFirmwareInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseDeviceFirmwareInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseDeviceFirmwareInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private DeviceFirmwareInfo result; + + public OperationResponseDeviceFirmwareInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseDeviceFirmwareInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseDeviceFirmwareInfo result(DeviceFirmwareInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public DeviceFirmwareInfo getResult() { + return result; + } + + public void setResult(DeviceFirmwareInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseDeviceFirmwareInfo operationResponseDeviceFirmwareInfo = (OperationResponseDeviceFirmwareInfo) o; + return Objects.equals(this.errorCode, operationResponseDeviceFirmwareInfo.errorCode) && + Objects.equals(this.msg, operationResponseDeviceFirmwareInfo.msg) && + Objects.equals(this.result, operationResponseDeviceFirmwareInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseDeviceFirmwareInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseEasyManageOverviewInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseEasyManageOverviewInfo.java new file mode 100644 index 0000000..fcdae61 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseEasyManageOverviewInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseEasyManageOverviewInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseEasyManageOverviewInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private EasyManageOverviewInfo result; + + public OperationResponseEasyManageOverviewInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseEasyManageOverviewInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseEasyManageOverviewInfo result(EasyManageOverviewInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public EasyManageOverviewInfo getResult() { + return result; + } + + public void setResult(EasyManageOverviewInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseEasyManageOverviewInfo operationResponseEasyManageOverviewInfo = (OperationResponseEasyManageOverviewInfo) o; + return Objects.equals(this.errorCode, operationResponseEasyManageOverviewInfo.errorCode) && + Objects.equals(this.msg, operationResponseEasyManageOverviewInfo.msg) && + Objects.equals(this.result, operationResponseEasyManageOverviewInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseEasyManageOverviewInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseEasyManagedSwitchGeneralConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseEasyManagedSwitchGeneralConfig.java new file mode 100644 index 0000000..f867589 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseEasyManagedSwitchGeneralConfig.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseEasyManagedSwitchGeneralConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseEasyManagedSwitchGeneralConfig { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private EasyManagedSwitchGeneralConfig result; + + public OperationResponseEasyManagedSwitchGeneralConfig errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseEasyManagedSwitchGeneralConfig msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseEasyManagedSwitchGeneralConfig result(EasyManagedSwitchGeneralConfig result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public EasyManagedSwitchGeneralConfig getResult() { + return result; + } + + public void setResult(EasyManagedSwitchGeneralConfig result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseEasyManagedSwitchGeneralConfig operationResponseEasyManagedSwitchGeneralConfig = (OperationResponseEasyManagedSwitchGeneralConfig) o; + return Objects.equals(this.errorCode, operationResponseEasyManagedSwitchGeneralConfig.errorCode) && + Objects.equals(this.msg, operationResponseEasyManagedSwitchGeneralConfig.msg) && + Objects.equals(this.result, operationResponseEasyManagedSwitchGeneralConfig.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseEasyManagedSwitchGeneralConfig {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseFile.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseFile.java new file mode 100644 index 0000000..01157b9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseFile.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseFile + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseFile { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private java.io.File result; + + public OperationResponseFile errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseFile msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseFile result(java.io.File result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public java.io.File getResult() { + return result; + } + + public void setResult(java.io.File result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseFile operationResponseFile = (OperationResponseFile) o; + return Objects.equals(this.errorCode, operationResponseFile.errorCode) && + Objects.equals(this.msg, operationResponseFile.msg) && + Objects.equals(this.result, operationResponseFile.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseFile {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayGeneralConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayGeneralConfig.java new file mode 100644 index 0000000..e2c15ab --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayGeneralConfig.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGatewayGeneralConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGatewayGeneralConfig { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GatewayGeneralConfig result; + + public OperationResponseGatewayGeneralConfig errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGatewayGeneralConfig msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGatewayGeneralConfig result(GatewayGeneralConfig result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GatewayGeneralConfig getResult() { + return result; + } + + public void setResult(GatewayGeneralConfig result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGatewayGeneralConfig operationResponseGatewayGeneralConfig = (OperationResponseGatewayGeneralConfig) o; + return Objects.equals(this.errorCode, operationResponseGatewayGeneralConfig.errorCode) && + Objects.equals(this.msg, operationResponseGatewayGeneralConfig.msg) && + Objects.equals(this.result, operationResponseGatewayGeneralConfig.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGatewayGeneralConfig {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayInfo.java new file mode 100644 index 0000000..11c770a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGatewayInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGatewayInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GatewayInfo result; + + public OperationResponseGatewayInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGatewayInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGatewayInfo result(GatewayInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GatewayInfo getResult() { + return result; + } + + public void setResult(GatewayInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGatewayInfo operationResponseGatewayInfo = (OperationResponseGatewayInfo) o; + return Objects.equals(this.errorCode, operationResponseGatewayInfo.errorCode) && + Objects.equals(this.msg, operationResponseGatewayInfo.msg) && + Objects.equals(this.result, operationResponseGatewayInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGatewayInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayPortSettingConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayPortSettingConfig.java new file mode 100644 index 0000000..fcda545 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayPortSettingConfig.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGatewayPortSettingConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGatewayPortSettingConfig { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GatewayPortSettingConfig result; + + public OperationResponseGatewayPortSettingConfig errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGatewayPortSettingConfig msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGatewayPortSettingConfig result(GatewayPortSettingConfig result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GatewayPortSettingConfig getResult() { + return result; + } + + public void setResult(GatewayPortSettingConfig result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGatewayPortSettingConfig operationResponseGatewayPortSettingConfig = (OperationResponseGatewayPortSettingConfig) o; + return Objects.equals(this.errorCode, operationResponseGatewayPortSettingConfig.errorCode) && + Objects.equals(this.msg, operationResponseGatewayPortSettingConfig.msg) && + Objects.equals(this.result, operationResponseGatewayPortSettingConfig.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGatewayPortSettingConfig {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayPortsConfigEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayPortsConfigEntity.java new file mode 100644 index 0000000..629a833 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGatewayPortsConfigEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGatewayPortsConfigEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGatewayPortsConfigEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GatewayPortsConfigEntity result; + + public OperationResponseGatewayPortsConfigEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGatewayPortsConfigEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGatewayPortsConfigEntity result(GatewayPortsConfigEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GatewayPortsConfigEntity getResult() { + return result; + } + + public void setResult(GatewayPortsConfigEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGatewayPortsConfigEntity operationResponseGatewayPortsConfigEntity = (OperationResponseGatewayPortsConfigEntity) o; + return Objects.equals(this.errorCode, operationResponseGatewayPortsConfigEntity.errorCode) && + Objects.equals(this.msg, operationResponseGatewayPortsConfigEntity.msg) && + Objects.equals(this.result, operationResponseGatewayPortsConfigEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGatewayPortsConfigEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoAutoCheckUpgradeInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoAutoCheckUpgradeInfo.java new file mode 100644 index 0000000..60db1cf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoAutoCheckUpgradeInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoAutoCheckUpgradeInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoAutoCheckUpgradeInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoAutoCheckUpgradeInfo result; + + public OperationResponseGridVoAutoCheckUpgradeInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoAutoCheckUpgradeInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoAutoCheckUpgradeInfo result(GridVoAutoCheckUpgradeInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoAutoCheckUpgradeInfo getResult() { + return result; + } + + public void setResult(GridVoAutoCheckUpgradeInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoAutoCheckUpgradeInfo operationResponseGridVoAutoCheckUpgradeInfo = (OperationResponseGridVoAutoCheckUpgradeInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoAutoCheckUpgradeInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoAutoCheckUpgradeInfo.msg) && + Objects.equals(this.result, operationResponseGridVoAutoCheckUpgradeInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoAutoCheckUpgradeInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoDeviceInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoDeviceInfo.java new file mode 100644 index 0000000..3476989 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoDeviceInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoDeviceInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoDeviceInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoDeviceInfo result; + + public OperationResponseGridVoDeviceInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoDeviceInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoDeviceInfo result(GridVoDeviceInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoDeviceInfo getResult() { + return result; + } + + public void setResult(GridVoDeviceInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoDeviceInfo operationResponseGridVoDeviceInfo = (OperationResponseGridVoDeviceInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoDeviceInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoDeviceInfo.msg) && + Objects.equals(this.result, operationResponseGridVoDeviceInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoDeviceInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoFirmwareInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoFirmwareInfo.java new file mode 100644 index 0000000..93cbd7d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoFirmwareInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoFirmwareInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoFirmwareInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoFirmwareInfo result; + + public OperationResponseGridVoFirmwareInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoFirmwareInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoFirmwareInfo result(GridVoFirmwareInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoFirmwareInfo getResult() { + return result; + } + + public void setResult(GridVoFirmwareInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoFirmwareInfo operationResponseGridVoFirmwareInfo = (OperationResponseGridVoFirmwareInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoFirmwareInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoFirmwareInfo.msg) && + Objects.equals(this.result, operationResponseGridVoFirmwareInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoFirmwareInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoGlobalKnownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoGlobalKnownDeviceOpenApiVo.java new file mode 100644 index 0000000..2ce5344 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoGlobalKnownDeviceOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoGlobalKnownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoGlobalKnownDeviceOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoGlobalKnownDeviceOpenApiVo result; + + public OperationResponseGridVoGlobalKnownDeviceOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoGlobalKnownDeviceOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoGlobalKnownDeviceOpenApiVo result(GridVoGlobalKnownDeviceOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoGlobalKnownDeviceOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoGlobalKnownDeviceOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoGlobalKnownDeviceOpenApiVo operationResponseGridVoGlobalKnownDeviceOpenApiVo = (OperationResponseGridVoGlobalKnownDeviceOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoGlobalKnownDeviceOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoGlobalKnownDeviceOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoGlobalKnownDeviceOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoGlobalKnownDeviceOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoGlobalUnknownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoGlobalUnknownDeviceOpenApiVo.java new file mode 100644 index 0000000..1ef4cde --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoGlobalUnknownDeviceOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoGlobalUnknownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoGlobalUnknownDeviceOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoGlobalUnknownDeviceOpenApiVo result; + + public OperationResponseGridVoGlobalUnknownDeviceOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoGlobalUnknownDeviceOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoGlobalUnknownDeviceOpenApiVo result(GridVoGlobalUnknownDeviceOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoGlobalUnknownDeviceOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoGlobalUnknownDeviceOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoGlobalUnknownDeviceOpenApiVo operationResponseGridVoGlobalUnknownDeviceOpenApiVo = (OperationResponseGridVoGlobalUnknownDeviceOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoGlobalUnknownDeviceOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoGlobalUnknownDeviceOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoGlobalUnknownDeviceOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoGlobalUnknownDeviceOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoPlanUpgradeInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoPlanUpgradeInfo.java new file mode 100644 index 0000000..0e499c0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoPlanUpgradeInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoPlanUpgradeInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoPlanUpgradeInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoPlanUpgradeInfo result; + + public OperationResponseGridVoPlanUpgradeInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoPlanUpgradeInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoPlanUpgradeInfo result(GridVoPlanUpgradeInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoPlanUpgradeInfo getResult() { + return result; + } + + public void setResult(GridVoPlanUpgradeInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoPlanUpgradeInfo operationResponseGridVoPlanUpgradeInfo = (OperationResponseGridVoPlanUpgradeInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoPlanUpgradeInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoPlanUpgradeInfo.msg) && + Objects.equals(this.result, operationResponseGridVoPlanUpgradeInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoPlanUpgradeInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoPlanUpgradeModelList.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoPlanUpgradeModelList.java new file mode 100644 index 0000000..f82cff5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoPlanUpgradeModelList.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoPlanUpgradeModelList + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoPlanUpgradeModelList { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoPlanUpgradeModelList result; + + public OperationResponseGridVoPlanUpgradeModelList errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoPlanUpgradeModelList msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoPlanUpgradeModelList result(GridVoPlanUpgradeModelList result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoPlanUpgradeModelList getResult() { + return result; + } + + public void setResult(GridVoPlanUpgradeModelList result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoPlanUpgradeModelList operationResponseGridVoPlanUpgradeModelList = (OperationResponseGridVoPlanUpgradeModelList) o; + return Objects.equals(this.errorCode, operationResponseGridVoPlanUpgradeModelList.errorCode) && + Objects.equals(this.msg, operationResponseGridVoPlanUpgradeModelList.msg) && + Objects.equals(this.result, operationResponseGridVoPlanUpgradeModelList.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoPlanUpgradeModelList {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoUpgradeFailedDeviceInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoUpgradeFailedDeviceInfo.java new file mode 100644 index 0000000..939f140 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoUpgradeFailedDeviceInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoUpgradeFailedDeviceInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoUpgradeFailedDeviceInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoUpgradeFailedDeviceInfo result; + + public OperationResponseGridVoUpgradeFailedDeviceInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoUpgradeFailedDeviceInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoUpgradeFailedDeviceInfo result(GridVoUpgradeFailedDeviceInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoUpgradeFailedDeviceInfo getResult() { + return result; + } + + public void setResult(GridVoUpgradeFailedDeviceInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoUpgradeFailedDeviceInfo operationResponseGridVoUpgradeFailedDeviceInfo = (OperationResponseGridVoUpgradeFailedDeviceInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoUpgradeFailedDeviceInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoUpgradeFailedDeviceInfo.msg) && + Objects.equals(this.result, operationResponseGridVoUpgradeFailedDeviceInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoUpgradeFailedDeviceInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoUpgradeLogOpenApiInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoUpgradeLogOpenApiInfo.java new file mode 100644 index 0000000..9584403 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseGridVoUpgradeLogOpenApiInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoUpgradeLogOpenApiInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoUpgradeLogOpenApiInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoUpgradeLogOpenApiInfo result; + + public OperationResponseGridVoUpgradeLogOpenApiInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoUpgradeLogOpenApiInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoUpgradeLogOpenApiInfo result(GridVoUpgradeLogOpenApiInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoUpgradeLogOpenApiInfo getResult() { + return result; + } + + public void setResult(GridVoUpgradeLogOpenApiInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoUpgradeLogOpenApiInfo operationResponseGridVoUpgradeLogOpenApiInfo = (OperationResponseGridVoUpgradeLogOpenApiInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoUpgradeLogOpenApiInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoUpgradeLogOpenApiInfo.msg) && + Objects.equals(this.result, operationResponseGridVoUpgradeLogOpenApiInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoUpgradeLogOpenApiInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListGatewayWanStatusEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListGatewayWanStatusEntity.java new file mode 100644 index 0000000..a4a5c9c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListGatewayWanStatusEntity.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListGatewayWanStatusEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseListGatewayWanStatusEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListGatewayWanStatusEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListGatewayWanStatusEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListGatewayWanStatusEntity result(List result) { + this.result = result; + return this; + } + + public OperationResponseListGatewayWanStatusEntity addResultItem(GatewayWanStatusEntity resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListGatewayWanStatusEntity operationResponseListGatewayWanStatusEntity = (OperationResponseListGatewayWanStatusEntity) o; + return Objects.equals(this.errorCode, operationResponseListGatewayWanStatusEntity.errorCode) && + Objects.equals(this.msg, operationResponseListGatewayWanStatusEntity.msg) && + Objects.equals(this.result, operationResponseListGatewayWanStatusEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListGatewayWanStatusEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListLanStatus.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListLanStatus.java new file mode 100644 index 0000000..3fa8442 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListLanStatus.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListLanStatus + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseListLanStatus { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListLanStatus errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListLanStatus msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListLanStatus result(List result) { + this.result = result; + return this; + } + + public OperationResponseListLanStatus addResultItem(LanStatus resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListLanStatus operationResponseListLanStatus = (OperationResponseListLanStatus) o; + return Objects.equals(this.errorCode, operationResponseListLanStatus.errorCode) && + Objects.equals(this.msg, operationResponseListLanStatus.msg) && + Objects.equals(this.result, operationResponseListLanStatus.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListLanStatus {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListNetworkPortsAssociationVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListNetworkPortsAssociationVo.java new file mode 100644 index 0000000..5e86938 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseListNetworkPortsAssociationVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListNetworkPortsAssociationVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseListNetworkPortsAssociationVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListNetworkPortsAssociationVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListNetworkPortsAssociationVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListNetworkPortsAssociationVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListNetworkPortsAssociationVo addResultItem(NetworkPortsAssociationVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListNetworkPortsAssociationVo operationResponseListNetworkPortsAssociationVo = (OperationResponseListNetworkPortsAssociationVo) o; + return Objects.equals(this.errorCode, operationResponseListNetworkPortsAssociationVo.errorCode) && + Objects.equals(this.msg, operationResponseListNetworkPortsAssociationVo.msg) && + Objects.equals(this.result, operationResponseListNetworkPortsAssociationVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListNetworkPortsAssociationVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo.java new file mode 100644 index 0000000..3df885d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ModelFirmwarePoolGridInfoModelLatestFwInfo result; + + public OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo result(ModelFirmwarePoolGridInfoModelLatestFwInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ModelFirmwarePoolGridInfoModelLatestFwInfo getResult() { + return result; + } + + public void setResult(ModelFirmwarePoolGridInfoModelLatestFwInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo operationResponseModelFirmwarePoolGridInfoModelLatestFwInfo = (OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo) o; + return Objects.equals(this.errorCode, operationResponseModelFirmwarePoolGridInfoModelLatestFwInfo.errorCode) && + Objects.equals(this.msg, operationResponseModelFirmwarePoolGridInfoModelLatestFwInfo.msg) && + Objects.equals(this.result, operationResponseModelFirmwarePoolGridInfoModelLatestFwInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseModelFirmwarePoolGridInfoModelLatestFwInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelFwOemReleaseNoteInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelFwOemReleaseNoteInfo.java new file mode 100644 index 0000000..1aa7ca1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelFwOemReleaseNoteInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseModelFwOemReleaseNoteInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseModelFwOemReleaseNoteInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ModelFwOemReleaseNoteInfo result; + + public OperationResponseModelFwOemReleaseNoteInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseModelFwOemReleaseNoteInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseModelFwOemReleaseNoteInfo result(ModelFwOemReleaseNoteInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ModelFwOemReleaseNoteInfo getResult() { + return result; + } + + public void setResult(ModelFwOemReleaseNoteInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseModelFwOemReleaseNoteInfo operationResponseModelFwOemReleaseNoteInfo = (OperationResponseModelFwOemReleaseNoteInfo) o; + return Objects.equals(this.errorCode, operationResponseModelFwOemReleaseNoteInfo.errorCode) && + Objects.equals(this.msg, operationResponseModelFwOemReleaseNoteInfo.msg) && + Objects.equals(this.result, operationResponseModelFwOemReleaseNoteInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseModelFwOemReleaseNoteInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelUpgradeSiteInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelUpgradeSiteInfo.java new file mode 100644 index 0000000..13ca9aa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseModelUpgradeSiteInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseModelUpgradeSiteInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseModelUpgradeSiteInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ModelUpgradeSiteInfo result; + + public OperationResponseModelUpgradeSiteInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseModelUpgradeSiteInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseModelUpgradeSiteInfo result(ModelUpgradeSiteInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ModelUpgradeSiteInfo getResult() { + return result; + } + + public void setResult(ModelUpgradeSiteInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseModelUpgradeSiteInfo operationResponseModelUpgradeSiteInfo = (OperationResponseModelUpgradeSiteInfo) o; + return Objects.equals(this.errorCode, operationResponseModelUpgradeSiteInfo.errorCode) && + Objects.equals(this.msg, operationResponseModelUpgradeSiteInfo.msg) && + Objects.equals(this.result, operationResponseModelUpgradeSiteInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseModelUpgradeSiteInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseOnlineUpgradeRes.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseOnlineUpgradeRes.java new file mode 100644 index 0000000..3eb2053 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseOnlineUpgradeRes.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseOnlineUpgradeRes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseOnlineUpgradeRes { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private OnlineUpgradeRes result; + + public OperationResponseOnlineUpgradeRes errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseOnlineUpgradeRes msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseOnlineUpgradeRes result(OnlineUpgradeRes result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public OnlineUpgradeRes getResult() { + return result; + } + + public void setResult(OnlineUpgradeRes result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseOnlineUpgradeRes operationResponseOnlineUpgradeRes = (OperationResponseOnlineUpgradeRes) o; + return Objects.equals(this.errorCode, operationResponseOnlineUpgradeRes.errorCode) && + Objects.equals(this.msg, operationResponseOnlineUpgradeRes.msg) && + Objects.equals(this.result, operationResponseOnlineUpgradeRes.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseOnlineUpgradeRes {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseOperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseOperationResponseWithoutResult.java new file mode 100644 index 0000000..e0f99dc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseOperationResponseWithoutResult.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseOperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseOperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private OperationResponseWithoutResult result; + + public OperationResponseOperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseOperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseOperationResponseWithoutResult result(OperationResponseWithoutResult result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public OperationResponseWithoutResult getResult() { + return result; + } + + public void setResult(OperationResponseWithoutResult result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseOperationResponseWithoutResult operationResponseOperationResponseWithoutResult = (OperationResponseOperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseOperationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseOperationResponseWithoutResult.msg) && + Objects.equals(this.result, operationResponseOperationResponseWithoutResult.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseOperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponsePlanUpgradeModelInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponsePlanUpgradeModelInfo.java new file mode 100644 index 0000000..cccdc03 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponsePlanUpgradeModelInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponsePlanUpgradeModelInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponsePlanUpgradeModelInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private PlanUpgradeModelInfo result; + + public OperationResponsePlanUpgradeModelInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponsePlanUpgradeModelInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponsePlanUpgradeModelInfo result(PlanUpgradeModelInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public PlanUpgradeModelInfo getResult() { + return result; + } + + public void setResult(PlanUpgradeModelInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponsePlanUpgradeModelInfo operationResponsePlanUpgradeModelInfo = (OperationResponsePlanUpgradeModelInfo) o; + return Objects.equals(this.errorCode, operationResponsePlanUpgradeModelInfo.errorCode) && + Objects.equals(this.msg, operationResponsePlanUpgradeModelInfo.msg) && + Objects.equals(this.result, operationResponsePlanUpgradeModelInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponsePlanUpgradeModelInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseRetryAddDeviceRespOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseRetryAddDeviceRespOpenApiVo.java new file mode 100644 index 0000000..335d649 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseRetryAddDeviceRespOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseRetryAddDeviceRespOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseRetryAddDeviceRespOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private RetryAddDeviceRespOpenApiVo result; + + public OperationResponseRetryAddDeviceRespOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseRetryAddDeviceRespOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseRetryAddDeviceRespOpenApiVo result(RetryAddDeviceRespOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public RetryAddDeviceRespOpenApiVo getResult() { + return result; + } + + public void setResult(RetryAddDeviceRespOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseRetryAddDeviceRespOpenApiVo operationResponseRetryAddDeviceRespOpenApiVo = (OperationResponseRetryAddDeviceRespOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseRetryAddDeviceRespOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseRetryAddDeviceRespOpenApiVo.msg) && + Objects.equals(this.result, operationResponseRetryAddDeviceRespOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseRetryAddDeviceRespOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseRollingUpgradeRes.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseRollingUpgradeRes.java new file mode 100644 index 0000000..cd3ef22 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseRollingUpgradeRes.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseRollingUpgradeRes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseRollingUpgradeRes { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private RollingUpgradeRes result; + + public OperationResponseRollingUpgradeRes errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseRollingUpgradeRes msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseRollingUpgradeRes result(RollingUpgradeRes result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public RollingUpgradeRes getResult() { + return result; + } + + public void setResult(RollingUpgradeRes result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseRollingUpgradeRes operationResponseRollingUpgradeRes = (OperationResponseRollingUpgradeRes) o; + return Objects.equals(this.errorCode, operationResponseRollingUpgradeRes.errorCode) && + Objects.equals(this.msg, operationResponseRollingUpgradeRes.msg) && + Objects.equals(this.result, operationResponseRollingUpgradeRes.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseRollingUpgradeRes {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseSwitchGeneralConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseSwitchGeneralConfig.java new file mode 100644 index 0000000..c53d5ef --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseSwitchGeneralConfig.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSwitchGeneralConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseSwitchGeneralConfig { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SwitchGeneralConfig result; + + public OperationResponseSwitchGeneralConfig errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSwitchGeneralConfig msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSwitchGeneralConfig result(SwitchGeneralConfig result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SwitchGeneralConfig getResult() { + return result; + } + + public void setResult(SwitchGeneralConfig result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSwitchGeneralConfig operationResponseSwitchGeneralConfig = (OperationResponseSwitchGeneralConfig) o; + return Objects.equals(this.errorCode, operationResponseSwitchGeneralConfig.errorCode) && + Objects.equals(this.msg, operationResponseSwitchGeneralConfig.msg) && + Objects.equals(this.result, operationResponseSwitchGeneralConfig.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSwitchGeneralConfig {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseSwitchOverviewInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseSwitchOverviewInfo.java new file mode 100644 index 0000000..323d6ea --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseSwitchOverviewInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSwitchOverviewInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseSwitchOverviewInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SwitchOverviewInfo result; + + public OperationResponseSwitchOverviewInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSwitchOverviewInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSwitchOverviewInfo result(SwitchOverviewInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SwitchOverviewInfo getResult() { + return result; + } + + public void setResult(SwitchOverviewInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSwitchOverviewInfo operationResponseSwitchOverviewInfo = (OperationResponseSwitchOverviewInfo) o; + return Objects.equals(this.errorCode, operationResponseSwitchOverviewInfo.errorCode) && + Objects.equals(this.msg, operationResponseSwitchOverviewInfo.msg) && + Objects.equals(this.result, operationResponseSwitchOverviewInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSwitchOverviewInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeRes.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeRes.java new file mode 100644 index 0000000..485f181 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeRes.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseUpgradeRes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseUpgradeRes { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private UpgradeRes result; + + public OperationResponseUpgradeRes errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseUpgradeRes msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseUpgradeRes result(UpgradeRes result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public UpgradeRes getResult() { + return result; + } + + public void setResult(UpgradeRes result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseUpgradeRes operationResponseUpgradeRes = (OperationResponseUpgradeRes) o; + return Objects.equals(this.errorCode, operationResponseUpgradeRes.errorCode) && + Objects.equals(this.msg, operationResponseUpgradeRes.msg) && + Objects.equals(this.result, operationResponseUpgradeRes.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseUpgradeRes {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeSettingTryBeta.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeSettingTryBeta.java new file mode 100644 index 0000000..1bc1cec --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeSettingTryBeta.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseUpgradeSettingTryBeta + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseUpgradeSettingTryBeta { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private UpgradeSettingTryBeta result; + + public OperationResponseUpgradeSettingTryBeta errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseUpgradeSettingTryBeta msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseUpgradeSettingTryBeta result(UpgradeSettingTryBeta result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public UpgradeSettingTryBeta getResult() { + return result; + } + + public void setResult(UpgradeSettingTryBeta result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseUpgradeSettingTryBeta operationResponseUpgradeSettingTryBeta = (OperationResponseUpgradeSettingTryBeta) o; + return Objects.equals(this.errorCode, operationResponseUpgradeSettingTryBeta.errorCode) && + Objects.equals(this.msg, operationResponseUpgradeSettingTryBeta.msg) && + Objects.equals(this.result, operationResponseUpgradeSettingTryBeta.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseUpgradeSettingTryBeta {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeSiteModelInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeSiteModelInfo.java new file mode 100644 index 0000000..15bf404 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeSiteModelInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseUpgradeSiteModelInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseUpgradeSiteModelInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private UpgradeSiteModelInfo result; + + public OperationResponseUpgradeSiteModelInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseUpgradeSiteModelInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseUpgradeSiteModelInfo result(UpgradeSiteModelInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public UpgradeSiteModelInfo getResult() { + return result; + } + + public void setResult(UpgradeSiteModelInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseUpgradeSiteModelInfo operationResponseUpgradeSiteModelInfo = (OperationResponseUpgradeSiteModelInfo) o; + return Objects.equals(this.errorCode, operationResponseUpgradeSiteModelInfo.errorCode) && + Objects.equals(this.msg, operationResponseUpgradeSiteModelInfo.msg) && + Objects.equals(this.result, operationResponseUpgradeSiteModelInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseUpgradeSiteModelInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeTask.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeTask.java new file mode 100644 index 0000000..1af8868 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUpgradeTask.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseUpgradeTask + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseUpgradeTask { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private UpgradeTask result; + + public OperationResponseUpgradeTask errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseUpgradeTask msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseUpgradeTask result(UpgradeTask result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public UpgradeTask getResult() { + return result; + } + + public void setResult(UpgradeTask result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseUpgradeTask operationResponseUpgradeTask = (OperationResponseUpgradeTask) o; + return Objects.equals(this.errorCode, operationResponseUpgradeTask.errorCode) && + Objects.equals(this.msg, operationResponseUpgradeTask.msg) && + Objects.equals(this.result, operationResponseUpgradeTask.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseUpgradeTask {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUploadFirmwareResInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUploadFirmwareResInfo.java new file mode 100644 index 0000000..47a214c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseUploadFirmwareResInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseUploadFirmwareResInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseUploadFirmwareResInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private UploadFirmwareResInfo result; + + public OperationResponseUploadFirmwareResInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseUploadFirmwareResInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseUploadFirmwareResInfo result(UploadFirmwareResInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public UploadFirmwareResInfo getResult() { + return result; + } + + public void setResult(UploadFirmwareResInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseUploadFirmwareResInfo operationResponseUploadFirmwareResInfo = (OperationResponseUploadFirmwareResInfo) o; + return Objects.equals(this.errorCode, operationResponseUploadFirmwareResInfo.errorCode) && + Objects.equals(this.msg, operationResponseUploadFirmwareResInfo.msg) && + Objects.equals(this.result, operationResponseUploadFirmwareResInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseUploadFirmwareResInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseWithoutResult.java new file mode 100644 index 0000000..52a3ea7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OperationResponseWithoutResult.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public OperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseWithoutResult.msg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgLanPortIpv6ConfigVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgLanPortIpv6ConfigVo.java new file mode 100644 index 0000000..ebeeea2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgLanPortIpv6ConfigVo.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Lan ipv6 config + */ +@ApiModel(description = "Lan ipv6 config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OsgLanPortIpv6ConfigVo { + @JsonProperty("addr") + private String addr; + + @JsonProperty("gw") + private String gw; + + @JsonProperty("priDns") + private String priDns; + + @JsonProperty("sndDns") + private String sndDns; + + public OsgLanPortIpv6ConfigVo addr(String addr) { + this.addr = addr; + return this; + } + + /** + * LAN IPv6 address + * @return addr + */ + @ApiModelProperty(value = "LAN IPv6 address") + + + public String getAddr() { + return addr; + } + + public void setAddr(String addr) { + this.addr = addr; + } + + public OsgLanPortIpv6ConfigVo gw(String gw) { + this.gw = gw; + return this; + } + + /** + * Gateway + * @return gw + */ + @ApiModelProperty(value = "Gateway") + + + public String getGw() { + return gw; + } + + public void setGw(String gw) { + this.gw = gw; + } + + public OsgLanPortIpv6ConfigVo priDns(String priDns) { + this.priDns = priDns; + return this; + } + + /** + * Primary DNS + * @return priDns + */ + @ApiModelProperty(value = "Primary DNS") + + + public String getPriDns() { + return priDns; + } + + public void setPriDns(String priDns) { + this.priDns = priDns; + } + + public OsgLanPortIpv6ConfigVo sndDns(String sndDns) { + this.sndDns = sndDns; + return this; + } + + /** + * Secondary DNS + * @return sndDns + */ + @ApiModelProperty(value = "Secondary DNS") + + + public String getSndDns() { + return sndDns; + } + + public void setSndDns(String sndDns) { + this.sndDns = sndDns; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OsgLanPortIpv6ConfigVo osgLanPortIpv6ConfigVo = (OsgLanPortIpv6ConfigVo) o; + return Objects.equals(this.addr, osgLanPortIpv6ConfigVo.addr) && + Objects.equals(this.gw, osgLanPortIpv6ConfigVo.gw) && + Objects.equals(this.priDns, osgLanPortIpv6ConfigVo.priDns) && + Objects.equals(this.sndDns, osgLanPortIpv6ConfigVo.sndDns); + } + + @Override + public int hashCode() { + return Objects.hash(addr, gw, priDns, sndDns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OsgLanPortIpv6ConfigVo {\n"); + + sb.append(" addr: ").append(toIndentedString(addr)).append("\n"); + sb.append(" gw: ").append(toIndentedString(gw)).append("\n"); + sb.append(" priDns: ").append(toIndentedString(priDns)).append("\n"); + sb.append(" sndDns: ").append(toIndentedString(sndDns)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgWanPortIpv4ConfigVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgWanPortIpv4ConfigVo.java new file mode 100644 index 0000000..ceb2b45 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgWanPortIpv4ConfigVo.java @@ -0,0 +1,278 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Wan IPv4 config + */ +@ApiModel(description = "Wan IPv4 config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OsgWanPortIpv4ConfigVo { + @JsonProperty("ip") + private String ip; + + @JsonProperty("ip2") + private String ip2; + + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("gateway2") + private String gateway2; + + @JsonProperty("priDns") + private String priDns; + + @JsonProperty("sndDns") + private String sndDns; + + @JsonProperty("priDns2") + private String priDns2; + + @JsonProperty("sndDns2") + private String sndDns2; + + @JsonProperty("mac") + private String mac; + + public OsgWanPortIpv4ConfigVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Get ip + * @return ip + */ + @ApiModelProperty(value = "") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public OsgWanPortIpv4ConfigVo ip2(String ip2) { + this.ip2 = ip2; + return this; + } + + /** + * Get ip2 + * @return ip2 + */ + @ApiModelProperty(value = "") + + + public String getIp2() { + return ip2; + } + + public void setIp2(String ip2) { + this.ip2 = ip2; + } + + public OsgWanPortIpv4ConfigVo gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Get gateway + * @return gateway + */ + @ApiModelProperty(value = "") + + + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public OsgWanPortIpv4ConfigVo gateway2(String gateway2) { + this.gateway2 = gateway2; + return this; + } + + /** + * Get gateway2 + * @return gateway2 + */ + @ApiModelProperty(value = "") + + + public String getGateway2() { + return gateway2; + } + + public void setGateway2(String gateway2) { + this.gateway2 = gateway2; + } + + public OsgWanPortIpv4ConfigVo priDns(String priDns) { + this.priDns = priDns; + return this; + } + + /** + * Get priDns + * @return priDns + */ + @ApiModelProperty(value = "") + + + public String getPriDns() { + return priDns; + } + + public void setPriDns(String priDns) { + this.priDns = priDns; + } + + public OsgWanPortIpv4ConfigVo sndDns(String sndDns) { + this.sndDns = sndDns; + return this; + } + + /** + * Get sndDns + * @return sndDns + */ + @ApiModelProperty(value = "") + + + public String getSndDns() { + return sndDns; + } + + public void setSndDns(String sndDns) { + this.sndDns = sndDns; + } + + public OsgWanPortIpv4ConfigVo priDns2(String priDns2) { + this.priDns2 = priDns2; + return this; + } + + /** + * Get priDns2 + * @return priDns2 + */ + @ApiModelProperty(value = "") + + + public String getPriDns2() { + return priDns2; + } + + public void setPriDns2(String priDns2) { + this.priDns2 = priDns2; + } + + public OsgWanPortIpv4ConfigVo sndDns2(String sndDns2) { + this.sndDns2 = sndDns2; + return this; + } + + /** + * Get sndDns2 + * @return sndDns2 + */ + @ApiModelProperty(value = "") + + + public String getSndDns2() { + return sndDns2; + } + + public void setSndDns2(String sndDns2) { + this.sndDns2 = sndDns2; + } + + public OsgWanPortIpv4ConfigVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Get mac + * @return mac + */ + @ApiModelProperty(value = "") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OsgWanPortIpv4ConfigVo osgWanPortIpv4ConfigVo = (OsgWanPortIpv4ConfigVo) o; + return Objects.equals(this.ip, osgWanPortIpv4ConfigVo.ip) && + Objects.equals(this.ip2, osgWanPortIpv4ConfigVo.ip2) && + Objects.equals(this.gateway, osgWanPortIpv4ConfigVo.gateway) && + Objects.equals(this.gateway2, osgWanPortIpv4ConfigVo.gateway2) && + Objects.equals(this.priDns, osgWanPortIpv4ConfigVo.priDns) && + Objects.equals(this.sndDns, osgWanPortIpv4ConfigVo.sndDns) && + Objects.equals(this.priDns2, osgWanPortIpv4ConfigVo.priDns2) && + Objects.equals(this.sndDns2, osgWanPortIpv4ConfigVo.sndDns2) && + Objects.equals(this.mac, osgWanPortIpv4ConfigVo.mac); + } + + @Override + public int hashCode() { + return Objects.hash(ip, ip2, gateway, gateway2, priDns, sndDns, priDns2, sndDns2, mac); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OsgWanPortIpv4ConfigVo {\n"); + + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" ip2: ").append(toIndentedString(ip2)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" gateway2: ").append(toIndentedString(gateway2)).append("\n"); + sb.append(" priDns: ").append(toIndentedString(priDns)).append("\n"); + sb.append(" sndDns: ").append(toIndentedString(sndDns)).append("\n"); + sb.append(" priDns2: ").append(toIndentedString(priDns2)).append("\n"); + sb.append(" sndDns2: ").append(toIndentedString(sndDns2)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgWanPortIpv6ConfigVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgWanPortIpv6ConfigVo.java new file mode 100644 index 0000000..a8abbe4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/OsgWanPortIpv6ConfigVo.java @@ -0,0 +1,253 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Wan IPv6 config + */ +@ApiModel(description = "Wan IPv6 config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class OsgWanPortIpv6ConfigVo { + @JsonProperty("enable") + private Integer enable; + + @JsonProperty("proto") + private String proto; + + @JsonProperty("addr") + private String addr; + + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("priDns") + private String priDns; + + @JsonProperty("sndDns") + private String sndDns; + + @JsonProperty("internetState") + private Integer internetState; + + @JsonProperty("mac") + private String mac; + + public OsgWanPortIpv6ConfigVo enable(Integer enable) { + this.enable = enable; + return this; + } + + /** + * IPv6 enable should be a value as follows: 0: disconnected; 1: connected + * @return enable + */ + @ApiModelProperty(value = "IPv6 enable should be a value as follows: 0: disconnected; 1: connected") + + + public Integer getEnable() { + return enable; + } + + public void setEnable(Integer enable) { + this.enable = enable; + } + + public OsgWanPortIpv6ConfigVo proto(String proto) { + this.proto = proto; + return this; + } + + /** + * Get proto + * @return proto + */ + @ApiModelProperty(value = "") + + + public String getProto() { + return proto; + } + + public void setProto(String proto) { + this.proto = proto; + } + + public OsgWanPortIpv6ConfigVo addr(String addr) { + this.addr = addr; + return this; + } + + /** + * Get addr + * @return addr + */ + @ApiModelProperty(value = "") + + + public String getAddr() { + return addr; + } + + public void setAddr(String addr) { + this.addr = addr; + } + + public OsgWanPortIpv6ConfigVo gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Get gateway + * @return gateway + */ + @ApiModelProperty(value = "") + + + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public OsgWanPortIpv6ConfigVo priDns(String priDns) { + this.priDns = priDns; + return this; + } + + /** + * Get priDns + * @return priDns + */ + @ApiModelProperty(value = "") + + + public String getPriDns() { + return priDns; + } + + public void setPriDns(String priDns) { + this.priDns = priDns; + } + + public OsgWanPortIpv6ConfigVo sndDns(String sndDns) { + this.sndDns = sndDns; + return this; + } + + /** + * Get sndDns + * @return sndDns + */ + @ApiModelProperty(value = "") + + + public String getSndDns() { + return sndDns; + } + + public void setSndDns(String sndDns) { + this.sndDns = sndDns; + } + + public OsgWanPortIpv6ConfigVo internetState(Integer internetState) { + this.internetState = internetState; + return this; + } + + /** + * It should be a value as follows: 0: disconnected; 1: connected + * @return internetState + */ + @ApiModelProperty(value = "It should be a value as follows: 0: disconnected; 1: connected") + + + public Integer getInternetState() { + return internetState; + } + + public void setInternetState(Integer internetState) { + this.internetState = internetState; + } + + public OsgWanPortIpv6ConfigVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Get mac + * @return mac + */ + @ApiModelProperty(value = "") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OsgWanPortIpv6ConfigVo osgWanPortIpv6ConfigVo = (OsgWanPortIpv6ConfigVo) o; + return Objects.equals(this.enable, osgWanPortIpv6ConfigVo.enable) && + Objects.equals(this.proto, osgWanPortIpv6ConfigVo.proto) && + Objects.equals(this.addr, osgWanPortIpv6ConfigVo.addr) && + Objects.equals(this.gateway, osgWanPortIpv6ConfigVo.gateway) && + Objects.equals(this.priDns, osgWanPortIpv6ConfigVo.priDns) && + Objects.equals(this.sndDns, osgWanPortIpv6ConfigVo.sndDns) && + Objects.equals(this.internetState, osgWanPortIpv6ConfigVo.internetState) && + Objects.equals(this.mac, osgWanPortIpv6ConfigVo.mac); + } + + @Override + public int hashCode() { + return Objects.hash(enable, proto, addr, gateway, priDns, sndDns, internetState, mac); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OsgWanPortIpv6ConfigVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" proto: ").append(toIndentedString(proto)).append("\n"); + sb.append(" addr: ").append(toIndentedString(addr)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" priDns: ").append(toIndentedString(priDns)).append("\n"); + sb.append(" sndDns: ").append(toIndentedString(sndDns)).append("\n"); + sb.append(" internetState: ").append(toIndentedString(internetState)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanFirmwareUpgradeCreateInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanFirmwareUpgradeCreateInfo.java new file mode 100644 index 0000000..4e6ed91 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanFirmwareUpgradeCreateInfo.java @@ -0,0 +1,238 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PlanFirmwareUpgradeCreateInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class PlanFirmwareUpgradeCreateInfo { + @JsonProperty("sites") + @Valid + private List sites = new ArrayList<>(); + + @JsonProperty("year") + private Integer year; + + @JsonProperty("monthOfYear") + private Integer monthOfYear; + + @JsonProperty("dayOfMonth") + private Integer dayOfMonth; + + @JsonProperty("hour") + private Integer hour; + + @JsonProperty("minute") + private Integer minute; + + @JsonProperty("scheduleType") + private Integer scheduleType; + + public PlanFirmwareUpgradeCreateInfo sites(List sites) { + this.sites = sites; + return this; + } + + public PlanFirmwareUpgradeCreateInfo addSitesItem(String sitesItem) { + this.sites.add(sitesItem); + return this; + } + + /** + * List of site ID selected by the user + * @return sites + */ + @ApiModelProperty(required = true, value = "List of site ID selected by the user") + @NotNull + + + public List getSites() { + return sites; + } + + public void setSites(List sites) { + this.sites = sites; + } + + public PlanFirmwareUpgradeCreateInfo year(Integer year) { + this.year = year; + return this; + } + + /** + * The year selected by the user + * @return year + */ + @ApiModelProperty(value = "The year selected by the user") + + + public Integer getYear() { + return year; + } + + public void setYear(Integer year) { + this.year = year; + } + + public PlanFirmwareUpgradeCreateInfo monthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + return this; + } + + /** + * The month of the year selected by the user, It should be within the range of 1-12 + * @return monthOfYear + */ + @ApiModelProperty(value = "The month of the year selected by the user, It should be within the range of 1-12") + + + public Integer getMonthOfYear() { + return monthOfYear; + } + + public void setMonthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + } + + public PlanFirmwareUpgradeCreateInfo dayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + return this; + } + + /** + * The day of the month selected by the user, It should be within the range of 1-31 + * @return dayOfMonth + */ + @ApiModelProperty(value = "The day of the month selected by the user, It should be within the range of 1-31") + + + public Integer getDayOfMonth() { + return dayOfMonth; + } + + public void setDayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + } + + public PlanFirmwareUpgradeCreateInfo hour(Integer hour) { + this.hour = hour; + return this; + } + + /** + * The hour of the day selected by the user, It should be within the range of 0-23 + * @return hour + */ + @ApiModelProperty(value = "The hour of the day selected by the user, It should be within the range of 0-23") + + + public Integer getHour() { + return hour; + } + + public void setHour(Integer hour) { + this.hour = hour; + } + + public PlanFirmwareUpgradeCreateInfo minute(Integer minute) { + this.minute = minute; + return this; + } + + /** + * The minute in the hour selected by the user, It should be within the range of 0-59 + * @return minute + */ + @ApiModelProperty(value = "The minute in the hour selected by the user, It should be within the range of 0-59") + + + public Integer getMinute() { + return minute; + } + + public void setMinute(Integer minute) { + this.minute = minute; + } + + public PlanFirmwareUpgradeCreateInfo scheduleType(Integer scheduleType) { + this.scheduleType = scheduleType; + return this; + } + + /** + * The type of upgrade execution time, where 0 represents now and 1 represents the specified time + * @return scheduleType + */ + @ApiModelProperty(required = true, value = "The type of upgrade execution time, where 0 represents now and 1 represents the specified time") + @NotNull + + + public Integer getScheduleType() { + return scheduleType; + } + + public void setScheduleType(Integer scheduleType) { + this.scheduleType = scheduleType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlanFirmwareUpgradeCreateInfo planFirmwareUpgradeCreateInfo = (PlanFirmwareUpgradeCreateInfo) o; + return Objects.equals(this.sites, planFirmwareUpgradeCreateInfo.sites) && + Objects.equals(this.year, planFirmwareUpgradeCreateInfo.year) && + Objects.equals(this.monthOfYear, planFirmwareUpgradeCreateInfo.monthOfYear) && + Objects.equals(this.dayOfMonth, planFirmwareUpgradeCreateInfo.dayOfMonth) && + Objects.equals(this.hour, planFirmwareUpgradeCreateInfo.hour) && + Objects.equals(this.minute, planFirmwareUpgradeCreateInfo.minute) && + Objects.equals(this.scheduleType, planFirmwareUpgradeCreateInfo.scheduleType); + } + + @Override + public int hashCode() { + return Objects.hash(sites, year, monthOfYear, dayOfMonth, hour, minute, scheduleType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PlanFirmwareUpgradeCreateInfo {\n"); + + sb.append(" sites: ").append(toIndentedString(sites)).append("\n"); + sb.append(" year: ").append(toIndentedString(year)).append("\n"); + sb.append(" monthOfYear: ").append(toIndentedString(monthOfYear)).append("\n"); + sb.append(" dayOfMonth: ").append(toIndentedString(dayOfMonth)).append("\n"); + sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); + sb.append(" minute: ").append(toIndentedString(minute)).append("\n"); + sb.append(" scheduleType: ").append(toIndentedString(scheduleType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeCreateInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeCreateInfo.java new file mode 100644 index 0000000..81c7ede --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeCreateInfo.java @@ -0,0 +1,271 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PlanUpgradeCreateInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class PlanUpgradeCreateInfo { + @JsonProperty("sites") + @Valid + private List sites = new ArrayList<>(); + + @JsonProperty("year") + private Integer year; + + @JsonProperty("monthOfYear") + private Integer monthOfYear; + + @JsonProperty("dayOfMonth") + private Integer dayOfMonth; + + @JsonProperty("hour") + private Integer hour; + + @JsonProperty("minute") + private Integer minute; + + @JsonProperty("modelList") + @Valid + private List modelList = new ArrayList<>(); + + @JsonProperty("scheduleType") + private Integer scheduleType; + + public PlanUpgradeCreateInfo sites(List sites) { + this.sites = sites; + return this; + } + + public PlanUpgradeCreateInfo addSitesItem(String sitesItem) { + this.sites.add(sitesItem); + return this; + } + + /** + * List of site ID selected by the user + * @return sites + */ + @ApiModelProperty(required = true, value = "List of site ID selected by the user") + @NotNull + + + public List getSites() { + return sites; + } + + public void setSites(List sites) { + this.sites = sites; + } + + public PlanUpgradeCreateInfo year(Integer year) { + this.year = year; + return this; + } + + /** + * The year selected by the user + * @return year + */ + @ApiModelProperty(value = "The year selected by the user") + + + public Integer getYear() { + return year; + } + + public void setYear(Integer year) { + this.year = year; + } + + public PlanUpgradeCreateInfo monthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + return this; + } + + /** + * The month of the year selected by the user, It should be within the range of 1-12 + * @return monthOfYear + */ + @ApiModelProperty(value = "The month of the year selected by the user, It should be within the range of 1-12") + + + public Integer getMonthOfYear() { + return monthOfYear; + } + + public void setMonthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + } + + public PlanUpgradeCreateInfo dayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + return this; + } + + /** + * The day of the month selected by the user, It should be within the range of 1-31 + * @return dayOfMonth + */ + @ApiModelProperty(value = "The day of the month selected by the user, It should be within the range of 1-31") + + + public Integer getDayOfMonth() { + return dayOfMonth; + } + + public void setDayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + } + + public PlanUpgradeCreateInfo hour(Integer hour) { + this.hour = hour; + return this; + } + + /** + * The hour of the day selected by the user, It should be within the range of 0-23 + * @return hour + */ + @ApiModelProperty(value = "The hour of the day selected by the user, It should be within the range of 0-23") + + + public Integer getHour() { + return hour; + } + + public void setHour(Integer hour) { + this.hour = hour; + } + + public PlanUpgradeCreateInfo minute(Integer minute) { + this.minute = minute; + return this; + } + + /** + * The minute in the hour selected by the user, It should be within the range of 0-59 + * @return minute + */ + @ApiModelProperty(value = "The minute in the hour selected by the user, It should be within the range of 0-59") + + + public Integer getMinute() { + return minute; + } + + public void setMinute(Integer minute) { + this.minute = minute; + } + + public PlanUpgradeCreateInfo modelList(List modelList) { + this.modelList = modelList; + return this; + } + + public PlanUpgradeCreateInfo addModelListItem(PlanUpgradeSelectedModel modelListItem) { + this.modelList.add(modelListItem); + return this; + } + + /** + * List of model selected for planned upgrade + * @return modelList + */ + @ApiModelProperty(required = true, value = "List of model selected for planned upgrade") + @NotNull + + @Valid + + public List getModelList() { + return modelList; + } + + public void setModelList(List modelList) { + this.modelList = modelList; + } + + public PlanUpgradeCreateInfo scheduleType(Integer scheduleType) { + this.scheduleType = scheduleType; + return this; + } + + /** + * The type of upgrade execution time, where 0 represents now and 1 represents the specified time + * @return scheduleType + */ + @ApiModelProperty(required = true, value = "The type of upgrade execution time, where 0 represents now and 1 represents the specified time") + @NotNull + + + public Integer getScheduleType() { + return scheduleType; + } + + public void setScheduleType(Integer scheduleType) { + this.scheduleType = scheduleType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlanUpgradeCreateInfo planUpgradeCreateInfo = (PlanUpgradeCreateInfo) o; + return Objects.equals(this.sites, planUpgradeCreateInfo.sites) && + Objects.equals(this.year, planUpgradeCreateInfo.year) && + Objects.equals(this.monthOfYear, planUpgradeCreateInfo.monthOfYear) && + Objects.equals(this.dayOfMonth, planUpgradeCreateInfo.dayOfMonth) && + Objects.equals(this.hour, planUpgradeCreateInfo.hour) && + Objects.equals(this.minute, planUpgradeCreateInfo.minute) && + Objects.equals(this.modelList, planUpgradeCreateInfo.modelList) && + Objects.equals(this.scheduleType, planUpgradeCreateInfo.scheduleType); + } + + @Override + public int hashCode() { + return Objects.hash(sites, year, monthOfYear, dayOfMonth, hour, minute, modelList, scheduleType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PlanUpgradeCreateInfo {\n"); + + sb.append(" sites: ").append(toIndentedString(sites)).append("\n"); + sb.append(" year: ").append(toIndentedString(year)).append("\n"); + sb.append(" monthOfYear: ").append(toIndentedString(monthOfYear)).append("\n"); + sb.append(" dayOfMonth: ").append(toIndentedString(dayOfMonth)).append("\n"); + sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); + sb.append(" minute: ").append(toIndentedString(minute)).append("\n"); + sb.append(" modelList: ").append(toIndentedString(modelList)).append("\n"); + sb.append(" scheduleType: ").append(toIndentedString(scheduleType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeEditInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeEditInfo.java new file mode 100644 index 0000000..b80916d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeEditInfo.java @@ -0,0 +1,238 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PlanUpgradeEditInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class PlanUpgradeEditInfo { + @JsonProperty("sites") + @Valid + private List sites = new ArrayList<>(); + + @JsonProperty("year") + private Integer year; + + @JsonProperty("monthOfYear") + private Integer monthOfYear; + + @JsonProperty("dayOfMonth") + private Integer dayOfMonth; + + @JsonProperty("hour") + private Integer hour; + + @JsonProperty("minute") + private Integer minute; + + @JsonProperty("scheduleType") + private Integer scheduleType; + + public PlanUpgradeEditInfo sites(List sites) { + this.sites = sites; + return this; + } + + public PlanUpgradeEditInfo addSitesItem(String sitesItem) { + this.sites.add(sitesItem); + return this; + } + + /** + * List of site IDs selected by the user + * @return sites + */ + @ApiModelProperty(required = true, value = "List of site IDs selected by the user") + @NotNull + + + public List getSites() { + return sites; + } + + public void setSites(List sites) { + this.sites = sites; + } + + public PlanUpgradeEditInfo year(Integer year) { + this.year = year; + return this; + } + + /** + * User selected year + * @return year + */ + @ApiModelProperty(value = "User selected year") + + + public Integer getYear() { + return year; + } + + public void setYear(Integer year) { + this.year = year; + } + + public PlanUpgradeEditInfo monthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + return this; + } + + /** + * The month of the year selected by the user, It should be within the range of 1-12 + * @return monthOfYear + */ + @ApiModelProperty(value = "The month of the year selected by the user, It should be within the range of 1-12") + + + public Integer getMonthOfYear() { + return monthOfYear; + } + + public void setMonthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + } + + public PlanUpgradeEditInfo dayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + return this; + } + + /** + * The day of the month selected by the user, It should be within the range of 1-31 + * @return dayOfMonth + */ + @ApiModelProperty(value = "The day of the month selected by the user, It should be within the range of 1-31") + + + public Integer getDayOfMonth() { + return dayOfMonth; + } + + public void setDayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + } + + public PlanUpgradeEditInfo hour(Integer hour) { + this.hour = hour; + return this; + } + + /** + * The hour selected by the user, It should be within the range of 0-23 + * @return hour + */ + @ApiModelProperty(value = "The hour selected by the user, It should be within the range of 0-23") + + + public Integer getHour() { + return hour; + } + + public void setHour(Integer hour) { + this.hour = hour; + } + + public PlanUpgradeEditInfo minute(Integer minute) { + this.minute = minute; + return this; + } + + /** + * The minute selected by the user, It should be within the range of 0-59 + * @return minute + */ + @ApiModelProperty(value = "The minute selected by the user, It should be within the range of 0-59") + + + public Integer getMinute() { + return minute; + } + + public void setMinute(Integer minute) { + this.minute = minute; + } + + public PlanUpgradeEditInfo scheduleType(Integer scheduleType) { + this.scheduleType = scheduleType; + return this; + } + + /** + * The type of execution time for the upgrade, where 0 represents now and 1 represents the specified time + * @return scheduleType + */ + @ApiModelProperty(required = true, value = "The type of execution time for the upgrade, where 0 represents now and 1 represents the specified time") + @NotNull + + + public Integer getScheduleType() { + return scheduleType; + } + + public void setScheduleType(Integer scheduleType) { + this.scheduleType = scheduleType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlanUpgradeEditInfo planUpgradeEditInfo = (PlanUpgradeEditInfo) o; + return Objects.equals(this.sites, planUpgradeEditInfo.sites) && + Objects.equals(this.year, planUpgradeEditInfo.year) && + Objects.equals(this.monthOfYear, planUpgradeEditInfo.monthOfYear) && + Objects.equals(this.dayOfMonth, planUpgradeEditInfo.dayOfMonth) && + Objects.equals(this.hour, planUpgradeEditInfo.hour) && + Objects.equals(this.minute, planUpgradeEditInfo.minute) && + Objects.equals(this.scheduleType, planUpgradeEditInfo.scheduleType); + } + + @Override + public int hashCode() { + return Objects.hash(sites, year, monthOfYear, dayOfMonth, hour, minute, scheduleType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PlanUpgradeEditInfo {\n"); + + sb.append(" sites: ").append(toIndentedString(sites)).append("\n"); + sb.append(" year: ").append(toIndentedString(year)).append("\n"); + sb.append(" monthOfYear: ").append(toIndentedString(monthOfYear)).append("\n"); + sb.append(" dayOfMonth: ").append(toIndentedString(dayOfMonth)).append("\n"); + sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); + sb.append(" minute: ").append(toIndentedString(minute)).append("\n"); + sb.append(" scheduleType: ").append(toIndentedString(scheduleType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeInfo.java new file mode 100644 index 0000000..ec800d1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeInfo.java @@ -0,0 +1,298 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PlanUpgradeInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class PlanUpgradeInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("modelTypeInfo") + private ModelTypeInfoOpenApiVo modelTypeInfo; + + @JsonProperty("siteNames") + @Valid + private List siteNames = null; + + @JsonProperty("siteNum") + private Integer siteNum; + + @JsonProperty("currentVersion") + @Valid + private List currentVersion = null; + + @JsonProperty("targetVersion") + private String targetVersion; + + @JsonProperty("scheduledUpgradeTime") + private String scheduledUpgradeTime; + + @JsonProperty("operator") + private String operator; + + @JsonProperty("fromRollback") + private Boolean fromRollback; + + public PlanUpgradeInfo id(String id) { + this.id = id; + return this; + } + + /** + * ID. + * @return id + */ + @ApiModelProperty(value = "ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PlanUpgradeInfo modelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + return this; + } + + /** + * Get modelTypeInfo + * @return modelTypeInfo + */ + @ApiModelProperty(value = "") + + @Valid + + public ModelTypeInfoOpenApiVo getModelTypeInfo() { + return modelTypeInfo; + } + + public void setModelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + } + + public PlanUpgradeInfo siteNames(List siteNames) { + this.siteNames = siteNames; + return this; + } + + public PlanUpgradeInfo addSiteNamesItem(String siteNamesItem) { + if (this.siteNames == null) { + this.siteNames = new ArrayList<>(); + } + this.siteNames.add(siteNamesItem); + return this; + } + + /** + * Site names where the model is located. + * @return siteNames + */ + @ApiModelProperty(value = "Site names where the model is located.") + + + public List getSiteNames() { + return siteNames; + } + + public void setSiteNames(List siteNames) { + this.siteNames = siteNames; + } + + public PlanUpgradeInfo siteNum(Integer siteNum) { + this.siteNum = siteNum; + return this; + } + + /** + * Number of sites where the model is located. + * @return siteNum + */ + @ApiModelProperty(value = "Number of sites where the model is located.") + + + public Integer getSiteNum() { + return siteNum; + } + + public void setSiteNum(Integer siteNum) { + this.siteNum = siteNum; + } + + public PlanUpgradeInfo currentVersion(List currentVersion) { + this.currentVersion = currentVersion; + return this; + } + + public PlanUpgradeInfo addCurrentVersionItem(String currentVersionItem) { + if (this.currentVersion == null) { + this.currentVersion = new ArrayList<>(); + } + this.currentVersion.add(currentVersionItem); + return this; + } + + /** + * Current version number. + * @return currentVersion + */ + @ApiModelProperty(value = "Current version number.") + + + public List getCurrentVersion() { + return currentVersion; + } + + public void setCurrentVersion(List currentVersion) { + this.currentVersion = currentVersion; + } + + public PlanUpgradeInfo targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + return this; + } + + /** + * Target upgrade version. + * @return targetVersion + */ + @ApiModelProperty(value = "Target upgrade version.") + + + public String getTargetVersion() { + return targetVersion; + } + + public void setTargetVersion(String targetVersion) { + this.targetVersion = targetVersion; + } + + public PlanUpgradeInfo scheduledUpgradeTime(String scheduledUpgradeTime) { + this.scheduledUpgradeTime = scheduledUpgradeTime; + return this; + } + + /** + * Plan upgrade time. + * @return scheduledUpgradeTime + */ + @ApiModelProperty(value = "Plan upgrade time.") + + + public String getScheduledUpgradeTime() { + return scheduledUpgradeTime; + } + + public void setScheduledUpgradeTime(String scheduledUpgradeTime) { + this.scheduledUpgradeTime = scheduledUpgradeTime; + } + + public PlanUpgradeInfo operator(String operator) { + this.operator = operator; + return this; + } + + /** + * operator. + * @return operator + */ + @ApiModelProperty(value = "operator.") + + + public String getOperator() { + return operator; + } + + public void setOperator(String operator) { + this.operator = operator; + } + + public PlanUpgradeInfo fromRollback(Boolean fromRollback) { + this.fromRollback = fromRollback; + return this; + } + + /** + * Is it from rollback? + * @return fromRollback + */ + @ApiModelProperty(value = "Is it from rollback?") + + + public Boolean getFromRollback() { + return fromRollback; + } + + public void setFromRollback(Boolean fromRollback) { + this.fromRollback = fromRollback; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlanUpgradeInfo planUpgradeInfo = (PlanUpgradeInfo) o; + return Objects.equals(this.id, planUpgradeInfo.id) && + Objects.equals(this.modelTypeInfo, planUpgradeInfo.modelTypeInfo) && + Objects.equals(this.siteNames, planUpgradeInfo.siteNames) && + Objects.equals(this.siteNum, planUpgradeInfo.siteNum) && + Objects.equals(this.currentVersion, planUpgradeInfo.currentVersion) && + Objects.equals(this.targetVersion, planUpgradeInfo.targetVersion) && + Objects.equals(this.scheduledUpgradeTime, planUpgradeInfo.scheduledUpgradeTime) && + Objects.equals(this.operator, planUpgradeInfo.operator) && + Objects.equals(this.fromRollback, planUpgradeInfo.fromRollback); + } + + @Override + public int hashCode() { + return Objects.hash(id, modelTypeInfo, siteNames, siteNum, currentVersion, targetVersion, scheduledUpgradeTime, operator, fromRollback); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PlanUpgradeInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" modelTypeInfo: ").append(toIndentedString(modelTypeInfo)).append("\n"); + sb.append(" siteNames: ").append(toIndentedString(siteNames)).append("\n"); + sb.append(" siteNum: ").append(toIndentedString(siteNum)).append("\n"); + sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n"); + sb.append(" targetVersion: ").append(toIndentedString(targetVersion)).append("\n"); + sb.append(" scheduledUpgradeTime: ").append(toIndentedString(scheduledUpgradeTime)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" fromRollback: ").append(toIndentedString(fromRollback)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeModelInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeModelInfo.java new file mode 100644 index 0000000..9528aac --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeModelInfo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PlanUpgradeModelInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class PlanUpgradeModelInfo { + @JsonProperty("modelList") + @Valid + private List modelList = null; + + public PlanUpgradeModelInfo modelList(List modelList) { + this.modelList = modelList; + return this; + } + + public PlanUpgradeModelInfo addModelListItem(ModelUpgradeInfo modelListItem) { + if (this.modelList == null) { + this.modelList = new ArrayList<>(); + } + this.modelList.add(modelListItem); + return this; + } + + /** + * Get modelList + * @return modelList + */ + @ApiModelProperty(value = "") + + @Valid + + public List getModelList() { + return modelList; + } + + public void setModelList(List modelList) { + this.modelList = modelList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlanUpgradeModelInfo planUpgradeModelInfo = (PlanUpgradeModelInfo) o; + return Objects.equals(this.modelList, planUpgradeModelInfo.modelList); + } + + @Override + public int hashCode() { + return Objects.hash(modelList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PlanUpgradeModelInfo {\n"); + + sb.append(" modelList: ").append(toIndentedString(modelList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeModelList.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeModelList.java new file mode 100644 index 0000000..291e8cf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeModelList.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PlanUpgradeModelList + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class PlanUpgradeModelList { + @JsonProperty("modelTypeInfo") + private ModelTypeInfoOpenApiVo modelTypeInfo; + + @JsonProperty("currentVersion") + @Valid + private List currentVersion = null; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("upgradeStatus") + private Integer upgradeStatus; + + public PlanUpgradeModelList modelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + return this; + } + + /** + * Get modelTypeInfo + * @return modelTypeInfo + */ + @ApiModelProperty(value = "") + + @Valid + + public ModelTypeInfoOpenApiVo getModelTypeInfo() { + return modelTypeInfo; + } + + public void setModelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + } + + public PlanUpgradeModelList currentVersion(List currentVersion) { + this.currentVersion = currentVersion; + return this; + } + + public PlanUpgradeModelList addCurrentVersionItem(String currentVersionItem) { + if (this.currentVersion == null) { + this.currentVersion = new ArrayList<>(); + } + this.currentVersion.add(currentVersionItem); + return this; + } + + /** + * Model version list, software version, such as \"2.5.0 Build 20190118 Rel. 64821\" + * @return currentVersion + */ + @ApiModelProperty(value = "Model version list, software version, such as \"2.5.0 Build 20190118 Rel. 64821\"") + + + public List getCurrentVersion() { + return currentVersion; + } + + public void setCurrentVersion(List currentVersion) { + this.currentVersion = currentVersion; + } + + public PlanUpgradeModelList status(Integer status) { + this.status = status; + return this; + } + + /** + * Model critical status should be a value as follows: 0: good; 1: critical + * @return status + */ + @ApiModelProperty(value = "Model critical status should be a value as follows: 0: good; 1: critical") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public PlanUpgradeModelList upgradeStatus(Integer upgradeStatus) { + this.upgradeStatus = upgradeStatus; + return this; + } + + /** + * Model upgrade status should be a value as follows: 0: up-to-date; 1: new Version Available + * @return upgradeStatus + */ + @ApiModelProperty(value = "Model upgrade status should be a value as follows: 0: up-to-date; 1: new Version Available") + + + public Integer getUpgradeStatus() { + return upgradeStatus; + } + + public void setUpgradeStatus(Integer upgradeStatus) { + this.upgradeStatus = upgradeStatus; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlanUpgradeModelList planUpgradeModelList = (PlanUpgradeModelList) o; + return Objects.equals(this.modelTypeInfo, planUpgradeModelList.modelTypeInfo) && + Objects.equals(this.currentVersion, planUpgradeModelList.currentVersion) && + Objects.equals(this.status, planUpgradeModelList.status) && + Objects.equals(this.upgradeStatus, planUpgradeModelList.upgradeStatus); + } + + @Override + public int hashCode() { + return Objects.hash(modelTypeInfo, currentVersion, status, upgradeStatus); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PlanUpgradeModelList {\n"); + + sb.append(" modelTypeInfo: ").append(toIndentedString(modelTypeInfo)).append("\n"); + sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" upgradeStatus: ").append(toIndentedString(upgradeStatus)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeSelectedModel.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeSelectedModel.java new file mode 100644 index 0000000..c173f1d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PlanUpgradeSelectedModel.java @@ -0,0 +1,142 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * List of model selected for planned upgrade + */ +@ApiModel(description = "List of model selected for planned upgrade") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class PlanUpgradeSelectedModel { + @JsonProperty("modelTypeInfo") + private ModelTypeInfoOpenApiVo modelTypeInfo; + + @JsonProperty("currentVersion") + @Valid + private List currentVersion = new ArrayList<>(); + + @JsonProperty("targetVersion") + private String targetVersion; + + public PlanUpgradeSelectedModel modelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + return this; + } + + /** + * Get modelTypeInfo + * @return modelTypeInfo + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public ModelTypeInfoOpenApiVo getModelTypeInfo() { + return modelTypeInfo; + } + + public void setModelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + } + + public PlanUpgradeSelectedModel currentVersion(List currentVersion) { + this.currentVersion = currentVersion; + return this; + } + + public PlanUpgradeSelectedModel addCurrentVersionItem(String currentVersionItem) { + this.currentVersion.add(currentVersionItem); + return this; + } + + /** + * Selected model version list, software version, such as \"2.5.0 Build 20190118 Rel. 64821\". + * @return currentVersion + */ + @ApiModelProperty(required = true, value = "Selected model version list, software version, such as \"2.5.0 Build 20190118 Rel. 64821\".") + @NotNull + + + public List getCurrentVersion() { + return currentVersion; + } + + public void setCurrentVersion(List currentVersion) { + this.currentVersion = currentVersion; + } + + public PlanUpgradeSelectedModel targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + return this; + } + + /** + * Target version. + * @return targetVersion + */ + @ApiModelProperty(required = true, value = "Target version.") + @NotNull + + + public String getTargetVersion() { + return targetVersion; + } + + public void setTargetVersion(String targetVersion) { + this.targetVersion = targetVersion; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PlanUpgradeSelectedModel planUpgradeSelectedModel = (PlanUpgradeSelectedModel) o; + return Objects.equals(this.modelTypeInfo, planUpgradeSelectedModel.modelTypeInfo) && + Objects.equals(this.currentVersion, planUpgradeSelectedModel.currentVersion) && + Objects.equals(this.targetVersion, planUpgradeSelectedModel.targetVersion); + } + + @Override + public int hashCode() { + return Objects.hash(modelTypeInfo, currentVersion, targetVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PlanUpgradeSelectedModel {\n"); + + sb.append(" modelTypeInfo: ").append(toIndentedString(modelTypeInfo)).append("\n"); + sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n"); + sb.append(" targetVersion: ").append(toIndentedString(targetVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PortInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PortInfo.java new file mode 100644 index 0000000..0c1eddf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PortInfo.java @@ -0,0 +1,263 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Port List + */ +@ApiModel(description = "Port List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class PortInfo { + @JsonProperty("port") + private Integer port; + + @JsonProperty("name") + private String name; + + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("profileOverrideEnable") + private Boolean profileOverrideEnable; + + @JsonProperty("poeMode") + private Integer poeMode; + + @JsonProperty("lagPort") + private Boolean lagPort; + + @JsonProperty("status") + private Integer status; + + public PortInfo port(Integer port) { + this.port = port; + return this; + } + + /** + * Port ID + * @return port + */ + @ApiModelProperty(required = true, value = "Port ID") + @NotNull + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public PortInfo name(String name) { + this.name = name; + return this; + } + + /** + * Port name + * @return name + */ + @ApiModelProperty(required = true, value = "Port name") + @NotNull + +@Pattern(regexp="^[^ ?\"]$|^[^ ?\"][^?\"]{0,126}[^ ?\"]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PortInfo profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Profile ID + * @return profileId + */ + @ApiModelProperty(required = true, value = "Profile ID") + @NotNull + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public PortInfo profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Profile Name + * @return profileName + */ + @ApiModelProperty(required = true, value = "Profile Name") + @NotNull + + + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public PortInfo profileOverrideEnable(Boolean profileOverrideEnable) { + this.profileOverrideEnable = profileOverrideEnable; + return this; + } + + /** + * Profile Override Enable + * @return profileOverrideEnable + */ + @ApiModelProperty(required = true, value = "Profile Override Enable") + @NotNull + + + public Boolean getProfileOverrideEnable() { + return profileOverrideEnable; + } + + public void setProfileOverrideEnable(Boolean profileOverrideEnable) { + this.profileOverrideEnable = profileOverrideEnable; + } + + public PortInfo poeMode(Integer poeMode) { + this.poeMode = poeMode; + return this; + } + + /** + * PoE mode should be a value as follows: 1: on(802.3at/af); 0: off. + * @return poeMode + */ + @ApiModelProperty(required = true, value = "PoE mode should be a value as follows: 1: on(802.3at/af); 0: off.") + @NotNull + + + public Integer getPoeMode() { + return poeMode; + } + + public void setPoeMode(Integer poeMode) { + this.poeMode = poeMode; + } + + public PortInfo lagPort(Boolean lagPort) { + this.lagPort = lagPort; + return this; + } + + /** + * Whether this port exists in a LAG + * @return lagPort + */ + @ApiModelProperty(required = true, value = "Whether this port exists in a LAG") + @NotNull + + + public Boolean getLagPort() { + return lagPort; + } + + public void setLagPort(Boolean lagPort) { + this.lagPort = lagPort; + } + + public PortInfo status(Integer status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: off; 1: on, only when lagPort is false + * @return status + */ + @ApiModelProperty(required = true, value = "Status should be a value as follows: 0: off; 1: on, only when lagPort is false") + @NotNull + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortInfo portInfo = (PortInfo) o; + return Objects.equals(this.port, portInfo.port) && + Objects.equals(this.name, portInfo.name) && + Objects.equals(this.profileId, portInfo.profileId) && + Objects.equals(this.profileName, portInfo.profileName) && + Objects.equals(this.profileOverrideEnable, portInfo.profileOverrideEnable) && + Objects.equals(this.poeMode, portInfo.poeMode) && + Objects.equals(this.lagPort, portInfo.lagPort) && + Objects.equals(this.status, portInfo.status); + } + + @Override + public int hashCode() { + return Objects.hash(port, name, profileId, profileName, profileOverrideEnable, poeMode, lagPort, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortInfo {\n"); + + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" profileOverrideEnable: ").append(toIndentedString(profileOverrideEnable)).append("\n"); + sb.append(" poeMode: ").append(toIndentedString(poeMode)).append("\n"); + sb.append(" lagPort: ").append(toIndentedString(lagPort)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PortNameList.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PortNameList.java new file mode 100644 index 0000000..b676e05 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/PortNameList.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PortNameList + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class PortNameList { + @JsonProperty("portNameList") + @Valid + private List portNameList = new ArrayList<>(); + + public PortNameList portNameList(List portNameList) { + this.portNameList = portNameList; + return this; + } + + public PortNameList addPortNameListItem(SwitchMultiPortName portNameListItem) { + this.portNameList.add(portNameListItem); + return this; + } + + /** + * Port name list + * @return portNameList + */ + @ApiModelProperty(required = true, value = "Port name list") + @NotNull + + @Valid +@Size(min=1,max=2147483647) + public List getPortNameList() { + return portNameList; + } + + public void setPortNameList(List portNameList) { + this.portNameList = portNameList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortNameList portNameList = (PortNameList) o; + return Objects.equals(this.portNameList, portNameList.portNameList); + } + + @Override + public int hashCode() { + return Objects.hash(portNameList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortNameList {\n"); + + sb.append(" portNameList: ").append(toIndentedString(portNameList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ProfileOverride.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ProfileOverride.java new file mode 100644 index 0000000..65d5483 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/ProfileOverride.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ProfileOverride + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class ProfileOverride { + @JsonProperty("profileOverrideEnable") + private Boolean profileOverrideEnable; + + public ProfileOverride profileOverrideEnable(Boolean profileOverrideEnable) { + this.profileOverrideEnable = profileOverrideEnable; + return this; + } + + /** + * Profile Override Enable + * @return profileOverrideEnable + */ + @ApiModelProperty(required = true, value = "Profile Override Enable") + @NotNull + + + public Boolean getProfileOverrideEnable() { + return profileOverrideEnable; + } + + public void setProfileOverrideEnable(Boolean profileOverrideEnable) { + this.profileOverrideEnable = profileOverrideEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProfileOverride profileOverride = (ProfileOverride) o; + return Objects.equals(this.profileOverrideEnable, profileOverride.profileOverrideEnable); + } + + @Override + public int hashCode() { + return Objects.hash(profileOverrideEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProfileOverride {\n"); + + sb.append(" profileOverrideEnable: ").append(toIndentedString(profileOverrideEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RetryAddDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RetryAddDeviceOpenApiVo.java new file mode 100644 index 0000000..c6047e9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RetryAddDeviceOpenApiVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * RetryAddDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class RetryAddDeviceOpenApiVo { + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + public RetryAddDeviceOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * retry add device username + * @return username + */ + @ApiModelProperty(value = "retry add device username") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public RetryAddDeviceOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * retry add device password + * @return password + */ + @ApiModelProperty(value = "retry add device password") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetryAddDeviceOpenApiVo retryAddDeviceOpenApiVo = (RetryAddDeviceOpenApiVo) o; + return Objects.equals(this.username, retryAddDeviceOpenApiVo.username) && + Objects.equals(this.password, retryAddDeviceOpenApiVo.password); + } + + @Override + public int hashCode() { + return Objects.hash(username, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetryAddDeviceOpenApiVo {\n"); + + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RetryAddDeviceRespOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RetryAddDeviceRespOpenApiVo.java new file mode 100644 index 0000000..ca40b5c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RetryAddDeviceRespOpenApiVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * RetryAddDeviceRespOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class RetryAddDeviceRespOpenApiVo { + @JsonProperty("preConfigRetryType") + private Integer preConfigRetryType; + + public RetryAddDeviceRespOpenApiVo preConfigRetryType(Integer preConfigRetryType) { + this.preConfigRetryType = preConfigRetryType; + return this; + } + + /** + * 1: need username and pwd; 2: don't need need username and pwd + * @return preConfigRetryType + */ + @ApiModelProperty(value = "1: need username and pwd; 2: don't need need username and pwd") + + + public Integer getPreConfigRetryType() { + return preConfigRetryType; + } + + public void setPreConfigRetryType(Integer preConfigRetryType) { + this.preConfigRetryType = preConfigRetryType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetryAddDeviceRespOpenApiVo retryAddDeviceRespOpenApiVo = (RetryAddDeviceRespOpenApiVo) o; + return Objects.equals(this.preConfigRetryType, retryAddDeviceRespOpenApiVo.preConfigRetryType); + } + + @Override + public int hashCode() { + return Objects.hash(preConfigRetryType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetryAddDeviceRespOpenApiVo {\n"); + + sb.append(" preConfigRetryType: ").append(toIndentedString(preConfigRetryType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanCommand.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanCommand.java new file mode 100644 index 0000000..a4fd414 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanCommand.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * RfScanCommand + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class RfScanCommand { + @JsonProperty("radioIdList") + @Valid + private List radioIdList = null; + + public RfScanCommand radioIdList(List radioIdList) { + this.radioIdList = radioIdList; + return this; + } + + public RfScanCommand addRadioIdListItem(Integer radioIdListItem) { + if (this.radioIdList == null) { + this.radioIdList = new ArrayList<>(); + } + this.radioIdList.add(radioIdListItem); + return this; + } + + /** + * Parameter [radioIdList] indicates the set of frequency bands for radio frequency scan. The value range of each element in the list should be between 0 and 3. 0: 2.4GHz, 1: 5GHz, 2: 5GHz-2, 3: 6GHz. This parameter takes effect only when the device supports selecting bands for radio frequency scan; If the device does not support selecting bands, or if this parameter is not passed or is an empty list, the device will perform radio frequency scan for all its frequency bands. + * @return radioIdList + */ + @ApiModelProperty(value = "Parameter [radioIdList] indicates the set of frequency bands for radio frequency scan. The value range of each element in the list should be between 0 and 3. 0: 2.4GHz, 1: 5GHz, 2: 5GHz-2, 3: 6GHz. This parameter takes effect only when the device supports selecting bands for radio frequency scan; If the device does not support selecting bands, or if this parameter is not passed or is an empty list, the device will perform radio frequency scan for all its frequency bands.") + + + public List getRadioIdList() { + return radioIdList; + } + + public void setRadioIdList(List radioIdList) { + this.radioIdList = radioIdList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RfScanCommand rfScanCommand = (RfScanCommand) o; + return Objects.equals(this.radioIdList, rfScanCommand.radioIdList); + } + + @Override + public int hashCode() { + return Objects.hash(radioIdList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RfScanCommand {\n"); + + sb.append(" radioIdList: ").append(toIndentedString(radioIdList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio.java new file mode 100644 index 0000000..2715b2a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio.java @@ -0,0 +1,166 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Channel 6g + */ +@ApiModel(description = "Channel 6g") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class RfScanRadio { + @JsonProperty("chan") + private Integer chan; + + @JsonProperty("chanWidth") + private Integer chanWidth; + + @JsonProperty("util") + private Integer util; + + @JsonProperty("inter") + @Valid + private List inter = null; + + public RfScanRadio chan(Integer chan) { + this.chan = chan; + return this; + } + + /** + * Channel number + * @return chan + */ + @ApiModelProperty(value = "Channel number") + + + public Integer getChan() { + return chan; + } + + public void setChan(Integer chan) { + this.chan = chan; + } + + public RfScanRadio chanWidth(Integer chanWidth) { + this.chanWidth = chanWidth; + return this; + } + + /** + * ChanWidth should be a value as follows: 2: 20MHz, 3: 40MHz, 5: 80MHz + * @return chanWidth + */ + @ApiModelProperty(value = "ChanWidth should be a value as follows: 2: 20MHz, 3: 40MHz, 5: 80MHz") + + + public Integer getChanWidth() { + return chanWidth; + } + + public void setChanWidth(Integer chanWidth) { + this.chanWidth = chanWidth; + } + + public RfScanRadio util(Integer util) { + this.util = util; + return this; + } + + /** + * Channel utilization should be within the range of 0–100. + * @return util + */ + @ApiModelProperty(value = "Channel utilization should be within the range of 0–100.") + + + public Integer getUtil() { + return util; + } + + public void setUtil(Integer util) { + this.util = util; + } + + public RfScanRadio inter(List inter) { + this.inter = inter; + return this; + } + + public RfScanRadio addInterItem(Interference interItem) { + if (this.inter == null) { + this.inter = new ArrayList<>(); + } + this.inter.add(interItem); + return this; + } + + /** + * At most two types of interference data are reported in Inter, sorted in descending order of interference intensity + * @return inter + */ + @ApiModelProperty(value = "At most two types of interference data are reported in Inter, sorted in descending order of interference intensity") + + @Valid + + public List getInter() { + return inter; + } + + public void setInter(List inter) { + this.inter = inter; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RfScanRadio rfScanRadio = (RfScanRadio) o; + return Objects.equals(this.chan, rfScanRadio.chan) && + Objects.equals(this.chanWidth, rfScanRadio.chanWidth) && + Objects.equals(this.util, rfScanRadio.util) && + Objects.equals(this.inter, rfScanRadio.inter); + } + + @Override + public int hashCode() { + return Objects.hash(chan, chanWidth, util, inter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RfScanRadio {\n"); + + sb.append(" chan: ").append(toIndentedString(chan)).append("\n"); + sb.append(" chanWidth: ").append(toIndentedString(chanWidth)).append("\n"); + sb.append(" util: ").append(toIndentedString(util)).append("\n"); + sb.append(" inter: ").append(toIndentedString(inter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio2g.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio2g.java new file mode 100644 index 0000000..57d57fc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio2g.java @@ -0,0 +1,166 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Channel 2g + */ +@ApiModel(description = "Channel 2g") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class RfScanRadio2g { + @JsonProperty("chan") + private Integer chan; + + @JsonProperty("chanWidth") + private Integer chanWidth; + + @JsonProperty("util") + private Integer util; + + @JsonProperty("inter") + @Valid + private List inter = null; + + public RfScanRadio2g chan(Integer chan) { + this.chan = chan; + return this; + } + + /** + * Channel number + * @return chan + */ + @ApiModelProperty(value = "Channel number") + + + public Integer getChan() { + return chan; + } + + public void setChan(Integer chan) { + this.chan = chan; + } + + public RfScanRadio2g chanWidth(Integer chanWidth) { + this.chanWidth = chanWidth; + return this; + } + + /** + * ChanWidth should be a value as follows: 2: 20MHz, 3: 40MHz, 5: 80MHz + * @return chanWidth + */ + @ApiModelProperty(value = "ChanWidth should be a value as follows: 2: 20MHz, 3: 40MHz, 5: 80MHz") + + + public Integer getChanWidth() { + return chanWidth; + } + + public void setChanWidth(Integer chanWidth) { + this.chanWidth = chanWidth; + } + + public RfScanRadio2g util(Integer util) { + this.util = util; + return this; + } + + /** + * Channel utilization should be within the range of 0–100. + * @return util + */ + @ApiModelProperty(value = "Channel utilization should be within the range of 0–100.") + + + public Integer getUtil() { + return util; + } + + public void setUtil(Integer util) { + this.util = util; + } + + public RfScanRadio2g inter(List inter) { + this.inter = inter; + return this; + } + + public RfScanRadio2g addInterItem(Interference interItem) { + if (this.inter == null) { + this.inter = new ArrayList<>(); + } + this.inter.add(interItem); + return this; + } + + /** + * At most two types of interference data are reported in Inter, sorted in descending order of interference intensity + * @return inter + */ + @ApiModelProperty(value = "At most two types of interference data are reported in Inter, sorted in descending order of interference intensity") + + @Valid + + public List getInter() { + return inter; + } + + public void setInter(List inter) { + this.inter = inter; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RfScanRadio2g rfScanRadio2g = (RfScanRadio2g) o; + return Objects.equals(this.chan, rfScanRadio2g.chan) && + Objects.equals(this.chanWidth, rfScanRadio2g.chanWidth) && + Objects.equals(this.util, rfScanRadio2g.util) && + Objects.equals(this.inter, rfScanRadio2g.inter); + } + + @Override + public int hashCode() { + return Objects.hash(chan, chanWidth, util, inter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RfScanRadio2g {\n"); + + sb.append(" chan: ").append(toIndentedString(chan)).append("\n"); + sb.append(" chanWidth: ").append(toIndentedString(chanWidth)).append("\n"); + sb.append(" util: ").append(toIndentedString(util)).append("\n"); + sb.append(" inter: ").append(toIndentedString(inter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio5g.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio5g.java new file mode 100644 index 0000000..0759e54 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio5g.java @@ -0,0 +1,166 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Channel 5g + */ +@ApiModel(description = "Channel 5g") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class RfScanRadio5g { + @JsonProperty("chan") + private Integer chan; + + @JsonProperty("chanWidth") + private Integer chanWidth; + + @JsonProperty("util") + private Integer util; + + @JsonProperty("inter") + @Valid + private List inter = null; + + public RfScanRadio5g chan(Integer chan) { + this.chan = chan; + return this; + } + + /** + * Channel number + * @return chan + */ + @ApiModelProperty(value = "Channel number") + + + public Integer getChan() { + return chan; + } + + public void setChan(Integer chan) { + this.chan = chan; + } + + public RfScanRadio5g chanWidth(Integer chanWidth) { + this.chanWidth = chanWidth; + return this; + } + + /** + * ChanWidth should be a value as follows: 2: 20MHz, 3: 40MHz, 5: 80MHz + * @return chanWidth + */ + @ApiModelProperty(value = "ChanWidth should be a value as follows: 2: 20MHz, 3: 40MHz, 5: 80MHz") + + + public Integer getChanWidth() { + return chanWidth; + } + + public void setChanWidth(Integer chanWidth) { + this.chanWidth = chanWidth; + } + + public RfScanRadio5g util(Integer util) { + this.util = util; + return this; + } + + /** + * Channel utilization should be within the range of 0–100. + * @return util + */ + @ApiModelProperty(value = "Channel utilization should be within the range of 0–100.") + + + public Integer getUtil() { + return util; + } + + public void setUtil(Integer util) { + this.util = util; + } + + public RfScanRadio5g inter(List inter) { + this.inter = inter; + return this; + } + + public RfScanRadio5g addInterItem(Interference interItem) { + if (this.inter == null) { + this.inter = new ArrayList<>(); + } + this.inter.add(interItem); + return this; + } + + /** + * At most two types of interference data are reported in Inter, sorted in descending order of interference intensity + * @return inter + */ + @ApiModelProperty(value = "At most two types of interference data are reported in Inter, sorted in descending order of interference intensity") + + @Valid + + public List getInter() { + return inter; + } + + public void setInter(List inter) { + this.inter = inter; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RfScanRadio5g rfScanRadio5g = (RfScanRadio5g) o; + return Objects.equals(this.chan, rfScanRadio5g.chan) && + Objects.equals(this.chanWidth, rfScanRadio5g.chanWidth) && + Objects.equals(this.util, rfScanRadio5g.util) && + Objects.equals(this.inter, rfScanRadio5g.inter); + } + + @Override + public int hashCode() { + return Objects.hash(chan, chanWidth, util, inter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RfScanRadio5g {\n"); + + sb.append(" chan: ").append(toIndentedString(chan)).append("\n"); + sb.append(" chanWidth: ").append(toIndentedString(chanWidth)).append("\n"); + sb.append(" util: ").append(toIndentedString(util)).append("\n"); + sb.append(" inter: ").append(toIndentedString(inter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio5g2.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio5g2.java new file mode 100644 index 0000000..0aead0f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio5g2.java @@ -0,0 +1,166 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Channel 5g2 + */ +@ApiModel(description = "Channel 5g2") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class RfScanRadio5g2 { + @JsonProperty("chan") + private Integer chan; + + @JsonProperty("chanWidth") + private Integer chanWidth; + + @JsonProperty("util") + private Integer util; + + @JsonProperty("inter") + @Valid + private List inter = null; + + public RfScanRadio5g2 chan(Integer chan) { + this.chan = chan; + return this; + } + + /** + * Channel number + * @return chan + */ + @ApiModelProperty(value = "Channel number") + + + public Integer getChan() { + return chan; + } + + public void setChan(Integer chan) { + this.chan = chan; + } + + public RfScanRadio5g2 chanWidth(Integer chanWidth) { + this.chanWidth = chanWidth; + return this; + } + + /** + * ChanWidth should be a value as follows: 2: 20MHz, 3: 40MHz, 5: 80MHz + * @return chanWidth + */ + @ApiModelProperty(value = "ChanWidth should be a value as follows: 2: 20MHz, 3: 40MHz, 5: 80MHz") + + + public Integer getChanWidth() { + return chanWidth; + } + + public void setChanWidth(Integer chanWidth) { + this.chanWidth = chanWidth; + } + + public RfScanRadio5g2 util(Integer util) { + this.util = util; + return this; + } + + /** + * Channel utilization should be within the range of 0–100. + * @return util + */ + @ApiModelProperty(value = "Channel utilization should be within the range of 0–100.") + + + public Integer getUtil() { + return util; + } + + public void setUtil(Integer util) { + this.util = util; + } + + public RfScanRadio5g2 inter(List inter) { + this.inter = inter; + return this; + } + + public RfScanRadio5g2 addInterItem(Interference interItem) { + if (this.inter == null) { + this.inter = new ArrayList<>(); + } + this.inter.add(interItem); + return this; + } + + /** + * At most two types of interference data are reported in Inter, sorted in descending order of interference intensity + * @return inter + */ + @ApiModelProperty(value = "At most two types of interference data are reported in Inter, sorted in descending order of interference intensity") + + @Valid + + public List getInter() { + return inter; + } + + public void setInter(List inter) { + this.inter = inter; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RfScanRadio5g2 rfScanRadio5g2 = (RfScanRadio5g2) o; + return Objects.equals(this.chan, rfScanRadio5g2.chan) && + Objects.equals(this.chanWidth, rfScanRadio5g2.chanWidth) && + Objects.equals(this.util, rfScanRadio5g2.util) && + Objects.equals(this.inter, rfScanRadio5g2.inter); + } + + @Override + public int hashCode() { + return Objects.hash(chan, chanWidth, util, inter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RfScanRadio5g2 {\n"); + + sb.append(" chan: ").append(toIndentedString(chan)).append("\n"); + sb.append(" chanWidth: ").append(toIndentedString(chanWidth)).append("\n"); + sb.append(" util: ").append(toIndentedString(util)).append("\n"); + sb.append(" inter: ").append(toIndentedString(inter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio6g.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio6g.java new file mode 100644 index 0000000..f97a7fd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RfScanRadio6g.java @@ -0,0 +1,166 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Channel 6g + */ +@ApiModel(description = "Channel 6g") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class RfScanRadio6g { + @JsonProperty("chan") + private Integer chan; + + @JsonProperty("chanWidth") + private Integer chanWidth; + + @JsonProperty("util") + private Integer util; + + @JsonProperty("inter") + @Valid + private List inter = null; + + public RfScanRadio6g chan(Integer chan) { + this.chan = chan; + return this; + } + + /** + * Channel number + * @return chan + */ + @ApiModelProperty(value = "Channel number") + + + public Integer getChan() { + return chan; + } + + public void setChan(Integer chan) { + this.chan = chan; + } + + public RfScanRadio6g chanWidth(Integer chanWidth) { + this.chanWidth = chanWidth; + return this; + } + + /** + * ChanWidth should be a value as follows: 2: 20MHz, 3: 40MHz, 5: 80MHz + * @return chanWidth + */ + @ApiModelProperty(value = "ChanWidth should be a value as follows: 2: 20MHz, 3: 40MHz, 5: 80MHz") + + + public Integer getChanWidth() { + return chanWidth; + } + + public void setChanWidth(Integer chanWidth) { + this.chanWidth = chanWidth; + } + + public RfScanRadio6g util(Integer util) { + this.util = util; + return this; + } + + /** + * Channel utilization should be within the range of 0–100. + * @return util + */ + @ApiModelProperty(value = "Channel utilization should be within the range of 0–100.") + + + public Integer getUtil() { + return util; + } + + public void setUtil(Integer util) { + this.util = util; + } + + public RfScanRadio6g inter(List inter) { + this.inter = inter; + return this; + } + + public RfScanRadio6g addInterItem(Interference interItem) { + if (this.inter == null) { + this.inter = new ArrayList<>(); + } + this.inter.add(interItem); + return this; + } + + /** + * At most two types of interference data are reported in Inter, sorted in descending order of interference intensity + * @return inter + */ + @ApiModelProperty(value = "At most two types of interference data are reported in Inter, sorted in descending order of interference intensity") + + @Valid + + public List getInter() { + return inter; + } + + public void setInter(List inter) { + this.inter = inter; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RfScanRadio6g rfScanRadio6g = (RfScanRadio6g) o; + return Objects.equals(this.chan, rfScanRadio6g.chan) && + Objects.equals(this.chanWidth, rfScanRadio6g.chanWidth) && + Objects.equals(this.util, rfScanRadio6g.util) && + Objects.equals(this.inter, rfScanRadio6g.inter); + } + + @Override + public int hashCode() { + return Objects.hash(chan, chanWidth, util, inter); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RfScanRadio6g {\n"); + + sb.append(" chan: ").append(toIndentedString(chan)).append("\n"); + sb.append(" chanWidth: ").append(toIndentedString(chanWidth)).append("\n"); + sb.append(" util: ").append(toIndentedString(util)).append("\n"); + sb.append(" inter: ").append(toIndentedString(inter)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollbackCreateInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollbackCreateInfo.java new file mode 100644 index 0000000..bcb2127 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollbackCreateInfo.java @@ -0,0 +1,229 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * RollbackCreateInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class RollbackCreateInfo { + @JsonProperty("year") + private Integer year; + + @JsonProperty("monthOfYear") + private Integer monthOfYear; + + @JsonProperty("dayOfMonth") + private Integer dayOfMonth; + + @JsonProperty("hour") + private Integer hour; + + @JsonProperty("minute") + private Integer minute; + + @JsonProperty("scheduleType") + private Integer scheduleType; + + @JsonProperty("targetVersion") + private String targetVersion; + + public RollbackCreateInfo year(Integer year) { + this.year = year; + return this; + } + + /** + * User selected year + * @return year + */ + @ApiModelProperty(value = "User selected year") + + + public Integer getYear() { + return year; + } + + public void setYear(Integer year) { + this.year = year; + } + + public RollbackCreateInfo monthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + return this; + } + + /** + * The month of the year selected by the user, It should be within the range of 1-12 + * @return monthOfYear + */ + @ApiModelProperty(value = "The month of the year selected by the user, It should be within the range of 1-12") + + + public Integer getMonthOfYear() { + return monthOfYear; + } + + public void setMonthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + } + + public RollbackCreateInfo dayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + return this; + } + + /** + * The day of the month selected by the user, It should be within the range of 1-31 + * @return dayOfMonth + */ + @ApiModelProperty(value = "The day of the month selected by the user, It should be within the range of 1-31") + + + public Integer getDayOfMonth() { + return dayOfMonth; + } + + public void setDayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + } + + public RollbackCreateInfo hour(Integer hour) { + this.hour = hour; + return this; + } + + /** + * The hour selected by the user, It should be within the range of 0-23 + * @return hour + */ + @ApiModelProperty(value = "The hour selected by the user, It should be within the range of 0-23") + + + public Integer getHour() { + return hour; + } + + public void setHour(Integer hour) { + this.hour = hour; + } + + public RollbackCreateInfo minute(Integer minute) { + this.minute = minute; + return this; + } + + /** + * The minute selected by the user, It should be within the range of 0-59 + * @return minute + */ + @ApiModelProperty(value = "The minute selected by the user, It should be within the range of 0-59") + + + public Integer getMinute() { + return minute; + } + + public void setMinute(Integer minute) { + this.minute = minute; + } + + public RollbackCreateInfo scheduleType(Integer scheduleType) { + this.scheduleType = scheduleType; + return this; + } + + /** + * The type of execution time for the upgrade, where 0 represents now and 1 represents the specified time + * @return scheduleType + */ + @ApiModelProperty(required = true, value = "The type of execution time for the upgrade, where 0 represents now and 1 represents the specified time") + @NotNull + + + public Integer getScheduleType() { + return scheduleType; + } + + public void setScheduleType(Integer scheduleType) { + this.scheduleType = scheduleType; + } + + public RollbackCreateInfo targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + return this; + } + + /** + * User selected rollback version, It should not be null + * @return targetVersion + */ + @ApiModelProperty(required = true, value = "User selected rollback version, It should not be null") + @NotNull + + + public String getTargetVersion() { + return targetVersion; + } + + public void setTargetVersion(String targetVersion) { + this.targetVersion = targetVersion; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RollbackCreateInfo rollbackCreateInfo = (RollbackCreateInfo) o; + return Objects.equals(this.year, rollbackCreateInfo.year) && + Objects.equals(this.monthOfYear, rollbackCreateInfo.monthOfYear) && + Objects.equals(this.dayOfMonth, rollbackCreateInfo.dayOfMonth) && + Objects.equals(this.hour, rollbackCreateInfo.hour) && + Objects.equals(this.minute, rollbackCreateInfo.minute) && + Objects.equals(this.scheduleType, rollbackCreateInfo.scheduleType) && + Objects.equals(this.targetVersion, rollbackCreateInfo.targetVersion); + } + + @Override + public int hashCode() { + return Objects.hash(year, monthOfYear, dayOfMonth, hour, minute, scheduleType, targetVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RollbackCreateInfo {\n"); + + sb.append(" year: ").append(toIndentedString(year)).append("\n"); + sb.append(" monthOfYear: ").append(toIndentedString(monthOfYear)).append("\n"); + sb.append(" dayOfMonth: ").append(toIndentedString(dayOfMonth)).append("\n"); + sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); + sb.append(" minute: ").append(toIndentedString(minute)).append("\n"); + sb.append(" scheduleType: ").append(toIndentedString(scheduleType)).append("\n"); + sb.append(" targetVersion: ").append(toIndentedString(targetVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollingUpgradeRequest.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollingUpgradeRequest.java new file mode 100644 index 0000000..0215cb2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollingUpgradeRequest.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * RollingUpgradeRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class RollingUpgradeRequest { + @JsonProperty("macs") + @Valid + private List macs = null; + + public RollingUpgradeRequest macs(List macs) { + this.macs = macs; + return this; + } + + public RollingUpgradeRequest addMacsItem(String macsItem) { + if (this.macs == null) { + this.macs = new ArrayList<>(); + } + this.macs.add(macsItem); + return this; + } + + /** + * MAC list of devices. E.g. AA-BB-CC-DD-11-22 + * @return macs + */ + @ApiModelProperty(value = "MAC list of devices. E.g. AA-BB-CC-DD-11-22") + + + public List getMacs() { + return macs; + } + + public void setMacs(List macs) { + this.macs = macs; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RollingUpgradeRequest rollingUpgradeRequest = (RollingUpgradeRequest) o; + return Objects.equals(this.macs, rollingUpgradeRequest.macs); + } + + @Override + public int hashCode() { + return Objects.hash(macs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RollingUpgradeRequest {\n"); + + sb.append(" macs: ").append(toIndentedString(macs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollingUpgradeRes.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollingUpgradeRes.java new file mode 100644 index 0000000..f9eb81d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/RollingUpgradeRes.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * RollingUpgradeRes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class RollingUpgradeRes { + @JsonProperty("finished") + private Boolean finished; + + @JsonProperty("unfinishedCount") + private Integer unfinishedCount; + + public RollingUpgradeRes finished(Boolean finished) { + this.finished = finished; + return this; + } + + /** + * Whether the task is complete + * @return finished + */ + @ApiModelProperty(value = "Whether the task is complete") + + + public Boolean getFinished() { + return finished; + } + + public void setFinished(Boolean finished) { + this.finished = finished; + } + + public RollingUpgradeRes unfinishedCount(Integer unfinishedCount) { + this.unfinishedCount = unfinishedCount; + return this; + } + + /** + * Total number of devices that have not been upgraded + * @return unfinishedCount + */ + @ApiModelProperty(value = "Total number of devices that have not been upgraded") + + + public Integer getUnfinishedCount() { + return unfinishedCount; + } + + public void setUnfinishedCount(Integer unfinishedCount) { + this.unfinishedCount = unfinishedCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RollingUpgradeRes rollingUpgradeRes = (RollingUpgradeRes) o; + return Objects.equals(this.finished, rollingUpgradeRes.finished) && + Objects.equals(this.unfinishedCount, rollingUpgradeRes.unfinishedCount); + } + + @Override + public int hashCode() { + return Objects.hash(finished, unfinishedCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RollingUpgradeRes {\n"); + + sb.append(" finished: ").append(toIndentedString(finished)).append("\n"); + sb.append(" unfinishedCount: ").append(toIndentedString(unfinishedCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SetTagOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SetTagOpenApiVo.java new file mode 100644 index 0000000..a768b6c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SetTagOpenApiVo.java @@ -0,0 +1,121 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SetTagOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SetTagOpenApiVo { + @JsonProperty("macs") + @Valid + private List macs = null; + + @JsonProperty("tagIds") + @Valid + private List tagIds = new ArrayList<>(); + + public SetTagOpenApiVo macs(List macs) { + this.macs = macs; + return this; + } + + public SetTagOpenApiVo addMacsItem(String macsItem) { + if (this.macs == null) { + this.macs = new ArrayList<>(); + } + this.macs.add(macsItem); + return this; + } + + /** + * Device MAC list, like AA-BB-CC-DD-EE-FF + * @return macs + */ + @ApiModelProperty(value = "Device MAC list, like AA-BB-CC-DD-EE-FF") + + + public List getMacs() { + return macs; + } + + public void setMacs(List macs) { + this.macs = macs; + } + + public SetTagOpenApiVo tagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + public SetTagOpenApiVo addTagIdsItem(String tagIdsItem) { + this.tagIds.add(tagIdsItem); + return this; + } + + /** + * Tag ID list + * @return tagIds + */ + @ApiModelProperty(required = true, value = "Tag ID list") + @NotNull + + + public List getTagIds() { + return tagIds; + } + + public void setTagIds(List tagIds) { + this.tagIds = tagIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetTagOpenApiVo setTagOpenApiVo = (SetTagOpenApiVo) o; + return Objects.equals(this.macs, setTagOpenApiVo.macs) && + Objects.equals(this.tagIds, setTagOpenApiVo.tagIds); + } + + @Override + public int hashCode() { + return Objects.hash(macs, tagIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetTagOpenApiVo {\n"); + + sb.append(" macs: ").append(toIndentedString(macs)).append("\n"); + sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SetTagResultOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SetTagResultOpenApiVo.java new file mode 100644 index 0000000..9b69113 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SetTagResultOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * batch set tag result + */ +@ApiModel(description = "batch set tag result") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SetTagResultOpenApiVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("status") + private Integer status; + + public SetTagResultOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Get mac + * @return mac + */ + @ApiModelProperty(value = "") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public SetTagResultOpenApiVo status(Integer status) { + this.status = status; + return this; + } + + /** + * 0: success, 1: failed + * @return status + */ + @ApiModelProperty(value = "0: success, 1: failed") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SetTagResultOpenApiVo setTagResultOpenApiVo = (SetTagResultOpenApiVo) o; + return Objects.equals(this.mac, setTagResultOpenApiVo.mac) && + Objects.equals(this.status, setTagResultOpenApiVo.status); + } + + @Override + public int hashCode() { + return Objects.hash(mac, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SetTagResultOpenApiVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SiteBasicInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SiteBasicInfo.java new file mode 100644 index 0000000..e1fc4d6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SiteBasicInfo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Site basic information on one page. + */ +@ApiModel(description = "Site basic information on one page.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SiteBasicInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + public SiteBasicInfo id(String id) { + this.id = id; + return this; + } + + /** + * Site ID + * @return id + */ + @ApiModelProperty(value = "Site ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SiteBasicInfo name(String name) { + this.name = name; + return this; + } + + /** + * Site name + * @return name + */ + @ApiModelProperty(value = "Site name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteBasicInfo siteBasicInfo = (SiteBasicInfo) o; + return Objects.equals(this.id, siteBasicInfo.id) && + Objects.equals(this.name, siteBasicInfo.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteBasicInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SnAddResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SnAddResultVo.java new file mode 100644 index 0000000..7c76c88 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SnAddResultVo.java @@ -0,0 +1,203 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Devices add result + */ +@ApiModel(description = "Devices add result") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SnAddResultVo { + @JsonProperty("sn") + private String sn; + + @JsonProperty("deviceKey") + private String deviceKey; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("siteName") + private String siteName; + + @JsonProperty("online") + private Boolean online; + + public SnAddResultVo sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Serial number + * @return sn + */ + @ApiModelProperty(value = "Serial number") + + + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public SnAddResultVo deviceKey(String deviceKey) { + this.deviceKey = deviceKey; + return this; + } + + /** + * Device key(QR code) + * @return deviceKey + */ + @ApiModelProperty(value = "Device key(QR code)") + + + public String getDeviceKey() { + return deviceKey; + } + + public void setDeviceKey(String deviceKey) { + this.deviceKey = deviceKey; + } + + public SnAddResultVo name(String name) { + this.name = name; + return this; + } + + /** + * Device name + * @return name + */ + @ApiModelProperty(value = "Device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SnAddResultVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Device add status should be a value as follows: 0: success; 1: waiting to do; 2:importing; -51451:Device ID not found; -52201:Device is offline; -52202:Device is already bounded; -52208:Device is offline during processing; -52200:Device not exit; -53100:Invalid SN code; -53101:SN code already exists; -53102:Incorrect local Username/Password; -53103:Device error; -53113: Too many PRECONFIGURED devices in this account. Available licenses are not enough; -53114: This device has been added by another Controller; -53118: Omada Pro devices can only be added on the Omada Pro Controller; -53119: Omada devices can only be added on the Omada Controller; -39045: Failed to add the device due to duplicate SN codes. Please contact our TP-Link Support. + * @return status + */ + @ApiModelProperty(value = "Device add status should be a value as follows: 0: success; 1: waiting to do; 2:importing; -51451:Device ID not found; -52201:Device is offline; -52202:Device is already bounded; -52208:Device is offline during processing; -52200:Device not exit; -53100:Invalid SN code; -53101:SN code already exists; -53102:Incorrect local Username/Password; -53103:Device error; -53113: Too many PRECONFIGURED devices in this account. Available licenses are not enough; -53114: This device has been added by another Controller; -53118: Omada Pro devices can only be added on the Omada Pro Controller; -53119: Omada devices can only be added on the Omada Controller; -39045: Failed to add the device due to duplicate SN codes. Please contact our TP-Link Support.") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public SnAddResultVo siteName(String siteName) { + this.siteName = siteName; + return this; + } + + /** + * If device management records exist when adding devices by SN, you need to forget devices in this site. Otherwise this field will have no value. + * @return siteName + */ + @ApiModelProperty(value = "If device management records exist when adding devices by SN, you need to forget devices in this site. Otherwise this field will have no value.") + + + public String getSiteName() { + return siteName; + } + + public void setSiteName(String siteName) { + this.siteName = siteName; + } + + public SnAddResultVo online(Boolean online) { + this.online = online; + return this; + } + + /** + * Device online or offline + * @return online + */ + @ApiModelProperty(value = "Device online or offline") + + + public Boolean getOnline() { + return online; + } + + public void setOnline(Boolean online) { + this.online = online; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SnAddResultVo snAddResultVo = (SnAddResultVo) o; + return Objects.equals(this.sn, snAddResultVo.sn) && + Objects.equals(this.deviceKey, snAddResultVo.deviceKey) && + Objects.equals(this.name, snAddResultVo.name) && + Objects.equals(this.status, snAddResultVo.status) && + Objects.equals(this.siteName, snAddResultVo.siteName) && + Objects.equals(this.online, snAddResultVo.online); + } + + @Override + public int hashCode() { + return Objects.hash(sn, deviceKey, name, status, siteName, online); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SnAddResultVo {\n"); + + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" deviceKey: ").append(toIndentedString(deviceKey)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" siteName: ").append(toIndentedString(siteName)).append("\n"); + sb.append(" online: ").append(toIndentedString(online)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideConfigOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideConfigOpenApiV2Vo.java new file mode 100644 index 0000000..bcf0ace --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideConfigOpenApiV2Vo.java @@ -0,0 +1,293 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SsidOverride Config List + */ +@ApiModel(description = "SsidOverride Config List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SsidOverrideConfigOpenApiV2Vo { + @JsonProperty("ssidId") + private String ssidId; + + @JsonProperty("ssidEntryId") + private Integer ssidEntryId; + + @JsonProperty("ssidName") + private String ssidName; + + @JsonProperty("ssidPassword") + private String ssidPassword; + + @JsonProperty("band") + @Valid + private List band = null; + + @JsonProperty("security") + private Integer security; + + @JsonProperty("vlanEnable") + private Boolean vlanEnable; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("ssidEnable") + private Boolean ssidEnable; + + public SsidOverrideConfigOpenApiV2Vo ssidId(String ssidId) { + this.ssidId = ssidId; + return this; + } + + /** + * SSID ID + * @return ssidId + */ + @ApiModelProperty(required = true, value = "SSID ID") + @NotNull + + + public String getSsidId() { + return ssidId; + } + + public void setSsidId(String ssidId) { + this.ssidId = ssidId; + } + + public SsidOverrideConfigOpenApiV2Vo ssidEntryId(Integer ssidEntryId) { + this.ssidEntryId = ssidEntryId; + return this; + } + + /** + * SSID Entry ID + * @return ssidEntryId + */ + @ApiModelProperty(value = "SSID Entry ID") + + + public Integer getSsidEntryId() { + return ssidEntryId; + } + + public void setSsidEntryId(Integer ssidEntryId) { + this.ssidEntryId = ssidEntryId; + } + + public SsidOverrideConfigOpenApiV2Vo ssidName(String ssidName) { + this.ssidName = ssidName; + return this; + } + + /** + * SSID name. It should contain 1 to 32 UTF-8 characters. + * @return ssidName + */ + @ApiModelProperty(required = true, value = "SSID name. It should contain 1 to 32 UTF-8 characters.") + @NotNull + + + public String getSsidName() { + return ssidName; + } + + public void setSsidName(String ssidName) { + this.ssidName = ssidName; + } + + public SsidOverrideConfigOpenApiV2Vo ssidPassword(String ssidPassword) { + this.ssidPassword = ssidPassword; + return this; + } + + /** + * SSID password. It should contain 8-63 printable ASCII characters or 8-63 hexadecimal digits. + * @return ssidPassword + */ + @ApiModelProperty(value = "SSID password. It should contain 8-63 printable ASCII characters or 8-63 hexadecimal digits.") + + + public String getSsidPassword() { + return ssidPassword; + } + + public void setSsidPassword(String ssidPassword) { + this.ssidPassword = ssidPassword; + } + + public SsidOverrideConfigOpenApiV2Vo band(List band) { + this.band = band; + return this; + } + + public SsidOverrideConfigOpenApiV2Vo addBandItem(Integer bandItem) { + if (this.band == null) { + this.band = new ArrayList<>(); + } + this.band.add(bandItem); + return this; + } + + /** + * SSID band should be a value as follows: 0: 2.4GHz; 1: 5GHz; 2: 6GHz + * @return band + */ + @ApiModelProperty(value = "SSID band should be a value as follows: 0: 2.4GHz; 1: 5GHz; 2: 6GHz") + + + public List getBand() { + return band; + } + + public void setBand(List band) { + this.band = band; + } + + public SsidOverrideConfigOpenApiV2Vo security(Integer security) { + this.security = security; + return this; + } + + /** + * SSID security mode should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal;4: PPSK without RADIUS; 5: PPSK with RADIUS. + * @return security + */ + @ApiModelProperty(value = "SSID security mode should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal;4: PPSK without RADIUS; 5: PPSK with RADIUS.") + + + public Integer getSecurity() { + return security; + } + + public void setSecurity(Integer security) { + this.security = security; + } + + public SsidOverrideConfigOpenApiV2Vo vlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + return this; + } + + /** + * Enable/disable VLAN + * @return vlanEnable + */ + @ApiModelProperty(value = "Enable/disable VLAN") + + + public Boolean getVlanEnable() { + return vlanEnable; + } + + public void setVlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + } + + public SsidOverrideConfigOpenApiV2Vo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * VLAN ID + * @return vlanId + */ + @ApiModelProperty(value = "VLAN ID") + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public SsidOverrideConfigOpenApiV2Vo ssidEnable(Boolean ssidEnable) { + this.ssidEnable = ssidEnable; + return this; + } + + /** + * Enable/disable SSID + * @return ssidEnable + */ + @ApiModelProperty(value = "Enable/disable SSID") + + + public Boolean getSsidEnable() { + return ssidEnable; + } + + public void setSsidEnable(Boolean ssidEnable) { + this.ssidEnable = ssidEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidOverrideConfigOpenApiV2Vo ssidOverrideConfigOpenApiV2Vo = (SsidOverrideConfigOpenApiV2Vo) o; + return Objects.equals(this.ssidId, ssidOverrideConfigOpenApiV2Vo.ssidId) && + Objects.equals(this.ssidEntryId, ssidOverrideConfigOpenApiV2Vo.ssidEntryId) && + Objects.equals(this.ssidName, ssidOverrideConfigOpenApiV2Vo.ssidName) && + Objects.equals(this.ssidPassword, ssidOverrideConfigOpenApiV2Vo.ssidPassword) && + Objects.equals(this.band, ssidOverrideConfigOpenApiV2Vo.band) && + Objects.equals(this.security, ssidOverrideConfigOpenApiV2Vo.security) && + Objects.equals(this.vlanEnable, ssidOverrideConfigOpenApiV2Vo.vlanEnable) && + Objects.equals(this.vlanId, ssidOverrideConfigOpenApiV2Vo.vlanId) && + Objects.equals(this.ssidEnable, ssidOverrideConfigOpenApiV2Vo.ssidEnable); + } + + @Override + public int hashCode() { + return Objects.hash(ssidId, ssidEntryId, ssidName, ssidPassword, band, security, vlanEnable, vlanId, ssidEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidOverrideConfigOpenApiV2Vo {\n"); + + sb.append(" ssidId: ").append(toIndentedString(ssidId)).append("\n"); + sb.append(" ssidEntryId: ").append(toIndentedString(ssidEntryId)).append("\n"); + sb.append(" ssidName: ").append(toIndentedString(ssidName)).append("\n"); + sb.append(" ssidPassword: ").append(toIndentedString(ssidPassword)).append("\n"); + sb.append(" band: ").append(toIndentedString(band)).append("\n"); + sb.append(" security: ").append(toIndentedString(security)).append("\n"); + sb.append(" vlanEnable: ").append(toIndentedString(vlanEnable)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" ssidEnable: ").append(toIndentedString(ssidEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideConfigOpenApiVo.java new file mode 100644 index 0000000..91208fc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideConfigOpenApiVo.java @@ -0,0 +1,266 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SsidOverrideConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SsidOverrideConfigOpenApiVo { + @JsonProperty("ssidId") + private Integer ssidId; + + @JsonProperty("ssidName") + private String ssidName; + + @JsonProperty("ssidPassword") + private String ssidPassword; + + @JsonProperty("band") + @Valid + private List band = null; + + @JsonProperty("security") + private Integer security; + + @JsonProperty("vlanEnable") + private Boolean vlanEnable; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("ssidEnable") + private Boolean ssidEnable; + + public SsidOverrideConfigOpenApiVo ssidId(Integer ssidId) { + this.ssidId = ssidId; + return this; + } + + /** + * SSID Entry ID + * @return ssidId + */ + @ApiModelProperty(required = true, value = "SSID Entry ID") + @NotNull + + + public Integer getSsidId() { + return ssidId; + } + + public void setSsidId(Integer ssidId) { + this.ssidId = ssidId; + } + + public SsidOverrideConfigOpenApiVo ssidName(String ssidName) { + this.ssidName = ssidName; + return this; + } + + /** + * SSID name + * @return ssidName + */ + @ApiModelProperty(required = true, value = "SSID name") + @NotNull + + + public String getSsidName() { + return ssidName; + } + + public void setSsidName(String ssidName) { + this.ssidName = ssidName; + } + + public SsidOverrideConfigOpenApiVo ssidPassword(String ssidPassword) { + this.ssidPassword = ssidPassword; + return this; + } + + /** + * SSID password + * @return ssidPassword + */ + @ApiModelProperty(value = "SSID password") + + + public String getSsidPassword() { + return ssidPassword; + } + + public void setSsidPassword(String ssidPassword) { + this.ssidPassword = ssidPassword; + } + + public SsidOverrideConfigOpenApiVo band(List band) { + this.band = band; + return this; + } + + public SsidOverrideConfigOpenApiVo addBandItem(Integer bandItem) { + if (this.band == null) { + this.band = new ArrayList<>(); + } + this.band.add(bandItem); + return this; + } + + /** + * SSID band should be a value as follows: 0: 2.4GHz; 1: 5GHz; 2: 6GHz + * @return band + */ + @ApiModelProperty(value = "SSID band should be a value as follows: 0: 2.4GHz; 1: 5GHz; 2: 6GHz") + + + public List getBand() { + return band; + } + + public void setBand(List band) { + this.band = band; + } + + public SsidOverrideConfigOpenApiVo security(Integer security) { + this.security = security; + return this; + } + + /** + * SSID security mode should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal;4: PPSK without RADIUS; 5: PPSK with RADIUS. + * @return security + */ + @ApiModelProperty(value = "SSID security mode should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal;4: PPSK without RADIUS; 5: PPSK with RADIUS.") + + + public Integer getSecurity() { + return security; + } + + public void setSecurity(Integer security) { + this.security = security; + } + + public SsidOverrideConfigOpenApiVo vlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + return this; + } + + /** + * Enable/disable VLAN + * @return vlanEnable + */ + @ApiModelProperty(value = "Enable/disable VLAN") + + + public Boolean getVlanEnable() { + return vlanEnable; + } + + public void setVlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + } + + public SsidOverrideConfigOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * VLAN ID + * @return vlanId + */ + @ApiModelProperty(value = "VLAN ID") + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public SsidOverrideConfigOpenApiVo ssidEnable(Boolean ssidEnable) { + this.ssidEnable = ssidEnable; + return this; + } + + /** + * Enable/disable SSID + * @return ssidEnable + */ + @ApiModelProperty(value = "Enable/disable SSID") + + + public Boolean getSsidEnable() { + return ssidEnable; + } + + public void setSsidEnable(Boolean ssidEnable) { + this.ssidEnable = ssidEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidOverrideConfigOpenApiVo ssidOverrideConfigOpenApiVo = (SsidOverrideConfigOpenApiVo) o; + return Objects.equals(this.ssidId, ssidOverrideConfigOpenApiVo.ssidId) && + Objects.equals(this.ssidName, ssidOverrideConfigOpenApiVo.ssidName) && + Objects.equals(this.ssidPassword, ssidOverrideConfigOpenApiVo.ssidPassword) && + Objects.equals(this.band, ssidOverrideConfigOpenApiVo.band) && + Objects.equals(this.security, ssidOverrideConfigOpenApiVo.security) && + Objects.equals(this.vlanEnable, ssidOverrideConfigOpenApiVo.vlanEnable) && + Objects.equals(this.vlanId, ssidOverrideConfigOpenApiVo.vlanId) && + Objects.equals(this.ssidEnable, ssidOverrideConfigOpenApiVo.ssidEnable); + } + + @Override + public int hashCode() { + return Objects.hash(ssidId, ssidName, ssidPassword, band, security, vlanEnable, vlanId, ssidEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidOverrideConfigOpenApiVo {\n"); + + sb.append(" ssidId: ").append(toIndentedString(ssidId)).append("\n"); + sb.append(" ssidName: ").append(toIndentedString(ssidName)).append("\n"); + sb.append(" ssidPassword: ").append(toIndentedString(ssidPassword)).append("\n"); + sb.append(" band: ").append(toIndentedString(band)).append("\n"); + sb.append(" security: ").append(toIndentedString(security)).append("\n"); + sb.append(" vlanEnable: ").append(toIndentedString(vlanEnable)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" ssidEnable: ").append(toIndentedString(ssidEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideOpenApiV2Vo.java new file mode 100644 index 0000000..edeb853 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideOpenApiV2Vo.java @@ -0,0 +1,232 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * SsidOverride Config List + */ +@ApiModel(description = "SsidOverride Config List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SsidOverrideOpenApiV2Vo { + @JsonProperty("ssidEntryId") + private Integer ssidEntryId; + + @JsonProperty("overrideSsidName") + private String overrideSsidName; + + @JsonProperty("overrideSsidPassword") + private String overrideSsidPassword; + + @JsonProperty("overrideSsidEnable") + private Boolean overrideSsidEnable; + + @JsonProperty("overrideVlanEnable") + private Boolean overrideVlanEnable; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("ssidEnable") + private Boolean ssidEnable; + + public SsidOverrideOpenApiV2Vo ssidEntryId(Integer ssidEntryId) { + this.ssidEntryId = ssidEntryId; + return this; + } + + /** + * This field represents SSID Entry ID.SSID Entry ID can be obtained from 'Get ap WLANs override config' interface. + * @return ssidEntryId + */ + @ApiModelProperty(required = true, value = "This field represents SSID Entry ID.SSID Entry ID can be obtained from 'Get ap WLANs override config' interface.") + @NotNull + + + public Integer getSsidEntryId() { + return ssidEntryId; + } + + public void setSsidEntryId(Integer ssidEntryId) { + this.ssidEntryId = ssidEntryId; + } + + public SsidOverrideOpenApiV2Vo overrideSsidName(String overrideSsidName) { + this.overrideSsidName = overrideSsidName; + return this; + } + + /** + * Override SSID name. It should contain 1 to 32 UTF-8 characters. + * @return overrideSsidName + */ + @ApiModelProperty(value = "Override SSID name. It should contain 1 to 32 UTF-8 characters.") + + + public String getOverrideSsidName() { + return overrideSsidName; + } + + public void setOverrideSsidName(String overrideSsidName) { + this.overrideSsidName = overrideSsidName; + } + + public SsidOverrideOpenApiV2Vo overrideSsidPassword(String overrideSsidPassword) { + this.overrideSsidPassword = overrideSsidPassword; + return this; + } + + /** + * Override SSID password(when security is WPA-Personal need fill).It should contain 8-63 printable ASCII characters or 8-63 hexadecimal digits. + * @return overrideSsidPassword + */ + @ApiModelProperty(value = "Override SSID password(when security is WPA-Personal need fill).It should contain 8-63 printable ASCII characters or 8-63 hexadecimal digits.") + + + public String getOverrideSsidPassword() { + return overrideSsidPassword; + } + + public void setOverrideSsidPassword(String overrideSsidPassword) { + this.overrideSsidPassword = overrideSsidPassword; + } + + public SsidOverrideOpenApiV2Vo overrideSsidEnable(Boolean overrideSsidEnable) { + this.overrideSsidEnable = overrideSsidEnable; + return this; + } + + /** + * Enable/disable SSID override + * @return overrideSsidEnable + */ + @ApiModelProperty(required = true, value = "Enable/disable SSID override") + @NotNull + + + public Boolean getOverrideSsidEnable() { + return overrideSsidEnable; + } + + public void setOverrideSsidEnable(Boolean overrideSsidEnable) { + this.overrideSsidEnable = overrideSsidEnable; + } + + public SsidOverrideOpenApiV2Vo overrideVlanEnable(Boolean overrideVlanEnable) { + this.overrideVlanEnable = overrideVlanEnable; + return this; + } + + /** + * Enable/disable VLAN override + * @return overrideVlanEnable + */ + @ApiModelProperty(required = true, value = "Enable/disable VLAN override") + @NotNull + + + public Boolean getOverrideVlanEnable() { + return overrideVlanEnable; + } + + public void setOverrideVlanEnable(Boolean overrideVlanEnable) { + this.overrideVlanEnable = overrideVlanEnable; + } + + public SsidOverrideOpenApiV2Vo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * VLAN ID + * @return vlanId + */ + @ApiModelProperty(value = "VLAN ID") + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public SsidOverrideOpenApiV2Vo ssidEnable(Boolean ssidEnable) { + this.ssidEnable = ssidEnable; + return this; + } + + /** + * Enable/disable SSID + * @return ssidEnable + */ + @ApiModelProperty(value = "Enable/disable SSID") + + + public Boolean getSsidEnable() { + return ssidEnable; + } + + public void setSsidEnable(Boolean ssidEnable) { + this.ssidEnable = ssidEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidOverrideOpenApiV2Vo ssidOverrideOpenApiV2Vo = (SsidOverrideOpenApiV2Vo) o; + return Objects.equals(this.ssidEntryId, ssidOverrideOpenApiV2Vo.ssidEntryId) && + Objects.equals(this.overrideSsidName, ssidOverrideOpenApiV2Vo.overrideSsidName) && + Objects.equals(this.overrideSsidPassword, ssidOverrideOpenApiV2Vo.overrideSsidPassword) && + Objects.equals(this.overrideSsidEnable, ssidOverrideOpenApiV2Vo.overrideSsidEnable) && + Objects.equals(this.overrideVlanEnable, ssidOverrideOpenApiV2Vo.overrideVlanEnable) && + Objects.equals(this.vlanId, ssidOverrideOpenApiV2Vo.vlanId) && + Objects.equals(this.ssidEnable, ssidOverrideOpenApiV2Vo.ssidEnable); + } + + @Override + public int hashCode() { + return Objects.hash(ssidEntryId, overrideSsidName, overrideSsidPassword, overrideSsidEnable, overrideVlanEnable, vlanId, ssidEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidOverrideOpenApiV2Vo {\n"); + + sb.append(" ssidEntryId: ").append(toIndentedString(ssidEntryId)).append("\n"); + sb.append(" overrideSsidName: ").append(toIndentedString(overrideSsidName)).append("\n"); + sb.append(" overrideSsidPassword: ").append(toIndentedString(overrideSsidPassword)).append("\n"); + sb.append(" overrideSsidEnable: ").append(toIndentedString(overrideSsidEnable)).append("\n"); + sb.append(" overrideVlanEnable: ").append(toIndentedString(overrideVlanEnable)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" ssidEnable: ").append(toIndentedString(ssidEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideOpenApiVo.java new file mode 100644 index 0000000..c24ad1d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SsidOverrideOpenApiVo.java @@ -0,0 +1,230 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * SsidOverrideOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SsidOverrideOpenApiVo { + @JsonProperty("ssidId") + private Integer ssidId; + + @JsonProperty("overrideSsidName") + private String overrideSsidName; + + @JsonProperty("overrideSsidPassword") + private String overrideSsidPassword; + + @JsonProperty("overrideSsidEnable") + private Boolean overrideSsidEnable; + + @JsonProperty("overrideVlanEnable") + private Boolean overrideVlanEnable; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("ssidEnable") + private Boolean ssidEnable; + + public SsidOverrideOpenApiVo ssidId(Integer ssidId) { + this.ssidId = ssidId; + return this; + } + + /** + * SSID Entry ID + * @return ssidId + */ + @ApiModelProperty(required = true, value = "SSID Entry ID") + @NotNull + + + public Integer getSsidId() { + return ssidId; + } + + public void setSsidId(Integer ssidId) { + this.ssidId = ssidId; + } + + public SsidOverrideOpenApiVo overrideSsidName(String overrideSsidName) { + this.overrideSsidName = overrideSsidName; + return this; + } + + /** + * Override SSID name + * @return overrideSsidName + */ + @ApiModelProperty(value = "Override SSID name") + + + public String getOverrideSsidName() { + return overrideSsidName; + } + + public void setOverrideSsidName(String overrideSsidName) { + this.overrideSsidName = overrideSsidName; + } + + public SsidOverrideOpenApiVo overrideSsidPassword(String overrideSsidPassword) { + this.overrideSsidPassword = overrideSsidPassword; + return this; + } + + /** + * Override SSID password(when security is WPA-Personal need fill) + * @return overrideSsidPassword + */ + @ApiModelProperty(value = "Override SSID password(when security is WPA-Personal need fill)") + + + public String getOverrideSsidPassword() { + return overrideSsidPassword; + } + + public void setOverrideSsidPassword(String overrideSsidPassword) { + this.overrideSsidPassword = overrideSsidPassword; + } + + public SsidOverrideOpenApiVo overrideSsidEnable(Boolean overrideSsidEnable) { + this.overrideSsidEnable = overrideSsidEnable; + return this; + } + + /** + * Enable/disable SSID override + * @return overrideSsidEnable + */ + @ApiModelProperty(required = true, value = "Enable/disable SSID override") + @NotNull + + + public Boolean getOverrideSsidEnable() { + return overrideSsidEnable; + } + + public void setOverrideSsidEnable(Boolean overrideSsidEnable) { + this.overrideSsidEnable = overrideSsidEnable; + } + + public SsidOverrideOpenApiVo overrideVlanEnable(Boolean overrideVlanEnable) { + this.overrideVlanEnable = overrideVlanEnable; + return this; + } + + /** + * Enable/disable VLAN override + * @return overrideVlanEnable + */ + @ApiModelProperty(required = true, value = "Enable/disable VLAN override") + @NotNull + + + public Boolean getOverrideVlanEnable() { + return overrideVlanEnable; + } + + public void setOverrideVlanEnable(Boolean overrideVlanEnable) { + this.overrideVlanEnable = overrideVlanEnable; + } + + public SsidOverrideOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * VLAN ID + * @return vlanId + */ + @ApiModelProperty(value = "VLAN ID") + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public SsidOverrideOpenApiVo ssidEnable(Boolean ssidEnable) { + this.ssidEnable = ssidEnable; + return this; + } + + /** + * Enable/disable SSID + * @return ssidEnable + */ + @ApiModelProperty(value = "Enable/disable SSID") + + + public Boolean getSsidEnable() { + return ssidEnable; + } + + public void setSsidEnable(Boolean ssidEnable) { + this.ssidEnable = ssidEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidOverrideOpenApiVo ssidOverrideOpenApiVo = (SsidOverrideOpenApiVo) o; + return Objects.equals(this.ssidId, ssidOverrideOpenApiVo.ssidId) && + Objects.equals(this.overrideSsidName, ssidOverrideOpenApiVo.overrideSsidName) && + Objects.equals(this.overrideSsidPassword, ssidOverrideOpenApiVo.overrideSsidPassword) && + Objects.equals(this.overrideSsidEnable, ssidOverrideOpenApiVo.overrideSsidEnable) && + Objects.equals(this.overrideVlanEnable, ssidOverrideOpenApiVo.overrideVlanEnable) && + Objects.equals(this.vlanId, ssidOverrideOpenApiVo.vlanId) && + Objects.equals(this.ssidEnable, ssidOverrideOpenApiVo.ssidEnable); + } + + @Override + public int hashCode() { + return Objects.hash(ssidId, overrideSsidName, overrideSsidPassword, overrideSsidEnable, overrideVlanEnable, vlanId, ssidEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidOverrideOpenApiVo {\n"); + + sb.append(" ssidId: ").append(toIndentedString(ssidId)).append("\n"); + sb.append(" overrideSsidName: ").append(toIndentedString(overrideSsidName)).append("\n"); + sb.append(" overrideSsidPassword: ").append(toIndentedString(overrideSsidPassword)).append("\n"); + sb.append(" overrideSsidEnable: ").append(toIndentedString(overrideSsidEnable)).append("\n"); + sb.append(" overrideVlanEnable: ").append(toIndentedString(overrideVlanEnable)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" ssidEnable: ").append(toIndentedString(ssidEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/StaticIpSettingEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/StaticIpSettingEntity.java new file mode 100644 index 0000000..998f87c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/StaticIpSettingEntity.java @@ -0,0 +1,179 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Static IP setting + */ +@ApiModel(description = "Static IP setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class StaticIpSettingEntity { + @JsonProperty("configIp") + private String configIp; + + @JsonProperty("configMask") + private String configMask; + + @JsonProperty("configGate") + private String configGate; + + @JsonProperty("preferredDNS") + private String preferredDNS; + + @JsonProperty("alternateDNS") + private String alternateDNS; + + public StaticIpSettingEntity configIp(String configIp) { + this.configIp = configIp; + return this; + } + + /** + * Static IP address + * @return configIp + */ + @ApiModelProperty(value = "Static IP address") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getConfigIp() { + return configIp; + } + + public void setConfigIp(String configIp) { + this.configIp = configIp; + } + + public StaticIpSettingEntity configMask(String configMask) { + this.configMask = configMask; + return this; + } + + /** + * Subnet mask + * @return configMask + */ + @ApiModelProperty(value = "Subnet mask") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getConfigMask() { + return configMask; + } + + public void setConfigMask(String configMask) { + this.configMask = configMask; + } + + public StaticIpSettingEntity configGate(String configGate) { + this.configGate = configGate; + return this; + } + + /** + * Gateway IP address + * @return configGate + */ + @ApiModelProperty(value = "Gateway IP address") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getConfigGate() { + return configGate; + } + + public void setConfigGate(String configGate) { + this.configGate = configGate; + } + + public StaticIpSettingEntity preferredDNS(String preferredDNS) { + this.preferredDNS = preferredDNS; + return this; + } + + /** + * Primary DNS server + * @return preferredDNS + */ + @ApiModelProperty(value = "Primary DNS server") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPreferredDNS() { + return preferredDNS; + } + + public void setPreferredDNS(String preferredDNS) { + this.preferredDNS = preferredDNS; + } + + public StaticIpSettingEntity alternateDNS(String alternateDNS) { + this.alternateDNS = alternateDNS; + return this; + } + + /** + * Secondary DNS server + * @return alternateDNS + */ + @ApiModelProperty(value = "Secondary DNS server") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getAlternateDNS() { + return alternateDNS; + } + + public void setAlternateDNS(String alternateDNS) { + this.alternateDNS = alternateDNS; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StaticIpSettingEntity staticIpSettingEntity = (StaticIpSettingEntity) o; + return Objects.equals(this.configIp, staticIpSettingEntity.configIp) && + Objects.equals(this.configMask, staticIpSettingEntity.configMask) && + Objects.equals(this.configGate, staticIpSettingEntity.configGate) && + Objects.equals(this.preferredDNS, staticIpSettingEntity.preferredDNS) && + Objects.equals(this.alternateDNS, staticIpSettingEntity.alternateDNS); + } + + @Override + public int hashCode() { + return Objects.hash(configIp, configMask, configGate, preferredDNS, alternateDNS); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StaticIpSettingEntity {\n"); + + sb.append(" configIp: ").append(toIndentedString(configIp)).append("\n"); + sb.append(" configMask: ").append(toIndentedString(configMask)).append("\n"); + sb.append(" configGate: ").append(toIndentedString(configGate)).append("\n"); + sb.append(" preferredDNS: ").append(toIndentedString(preferredDNS)).append("\n"); + sb.append(" alternateDNS: ").append(toIndentedString(alternateDNS)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchGeneralConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchGeneralConfig.java new file mode 100644 index 0000000..17fae8d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchGeneralConfig.java @@ -0,0 +1,217 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * After the device is added to the stack group, the interface can only modify the device name. + */ +@ApiModel(description = "After the device is added to the stack group, the interface can only modify the device name.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SwitchGeneralConfig { + @JsonProperty("name") + private String name; + + @JsonProperty("ledSetting") + private Integer ledSetting; + + @JsonProperty("tagIds") + @Valid + private List tagIds = null; + + @JsonProperty("location") + private DeviceLocationDetailVo location; + + @JsonProperty("jumbo") + private Integer jumbo; + + @JsonProperty("lagHashAlg") + private Integer lagHashAlg; + + public SwitchGeneralConfig name(String name) { + this.name = name; + return this; + } + + /** + * Device name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(value = "Device name should contain 1 to 128 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SwitchGeneralConfig ledSetting(Integer ledSetting) { + this.ledSetting = ledSetting; + return this; + } + + /** + * Led setting should be a value as follows: 0:off; 1:on; 2:Use Site Settings + * @return ledSetting + */ + @ApiModelProperty(value = "Led setting should be a value as follows: 0:off; 1:on; 2:Use Site Settings") + + + public Integer getLedSetting() { + return ledSetting; + } + + public void setLedSetting(Integer ledSetting) { + this.ledSetting = ledSetting; + } + + public SwitchGeneralConfig tagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + public SwitchGeneralConfig addTagIdsItem(String tagIdsItem) { + if (this.tagIds == null) { + this.tagIds = new ArrayList<>(); + } + this.tagIds.add(tagIdsItem); + return this; + } + + /** + * Tag IDs + * @return tagIds + */ + @ApiModelProperty(value = "Tag IDs") + + + public List getTagIds() { + return tagIds; + } + + public void setTagIds(List tagIds) { + this.tagIds = tagIds; + } + + public SwitchGeneralConfig location(DeviceLocationDetailVo location) { + this.location = location; + return this; + } + + /** + * Get location + * @return location + */ + @ApiModelProperty(value = "") + + @Valid + + public DeviceLocationDetailVo getLocation() { + return location; + } + + public void setLocation(DeviceLocationDetailVo location) { + this.location = location; + } + + public SwitchGeneralConfig jumbo(Integer jumbo) { + this.jumbo = jumbo; + return this; + } + + /** + * It should be within the range of 1518–9216 Bytes. + * @return jumbo + */ + @ApiModelProperty(value = "It should be within the range of 1518–9216 Bytes.") + + + public Integer getJumbo() { + return jumbo; + } + + public void setJumbo(Integer jumbo) { + this.jumbo = jumbo; + } + + public SwitchGeneralConfig lagHashAlg(Integer lagHashAlg) { + this.lagHashAlg = lagHashAlg; + return this; + } + + /** + * It should be a value as follows: 0: SRC MAC; 1: DST MAC; 2: SRC MAC + DST MAC; 3: SRC IP; 4: DST IP; 5: SRC IP + DST IP + * @return lagHashAlg + */ + @ApiModelProperty(value = "It should be a value as follows: 0: SRC MAC; 1: DST MAC; 2: SRC MAC + DST MAC; 3: SRC IP; 4: DST IP; 5: SRC IP + DST IP") + + + public Integer getLagHashAlg() { + return lagHashAlg; + } + + public void setLagHashAlg(Integer lagHashAlg) { + this.lagHashAlg = lagHashAlg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchGeneralConfig switchGeneralConfig = (SwitchGeneralConfig) o; + return Objects.equals(this.name, switchGeneralConfig.name) && + Objects.equals(this.ledSetting, switchGeneralConfig.ledSetting) && + Objects.equals(this.tagIds, switchGeneralConfig.tagIds) && + Objects.equals(this.location, switchGeneralConfig.location) && + Objects.equals(this.jumbo, switchGeneralConfig.jumbo) && + Objects.equals(this.lagHashAlg, switchGeneralConfig.lagHashAlg); + } + + @Override + public int hashCode() { + return Objects.hash(name, ledSetting, tagIds, location, jumbo, lagHashAlg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchGeneralConfig {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ledSetting: ").append(toIndentedString(ledSetting)).append("\n"); + sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); + sb.append(" location: ").append(toIndentedString(location)).append("\n"); + sb.append(" jumbo: ").append(toIndentedString(jumbo)).append("\n"); + sb.append(" lagHashAlg: ").append(toIndentedString(lagHashAlg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchMultiPortName.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchMultiPortName.java new file mode 100644 index 0000000..37633f6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchMultiPortName.java @@ -0,0 +1,107 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Port name list + */ +@ApiModel(description = "Port name list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SwitchMultiPortName { + @JsonProperty("port") + private Integer port; + + @JsonProperty("name") + private String name; + + public SwitchMultiPortName port(Integer port) { + this.port = port; + return this; + } + + /** + * Port ID + * @return port + */ + @ApiModelProperty(required = true, value = "Port ID") + @NotNull + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public SwitchMultiPortName name(String name) { + this.name = name; + return this; + } + + /** + * Port name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Port name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ?\"]$|^[^ ?\"][^?\"]{0,126}[^ ?\"]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchMultiPortName switchMultiPortName = (SwitchMultiPortName) o; + return Objects.equals(this.port, switchMultiPortName.port) && + Objects.equals(this.name, switchMultiPortName.name); + } + + @Override + public int hashCode() { + return Objects.hash(port, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchMultiPortName {\n"); + + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchOverviewInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchOverviewInfo.java new file mode 100644 index 0000000..b569389 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchOverviewInfo.java @@ -0,0 +1,348 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SwitchOverviewInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SwitchOverviewInfo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("ipv6List") + @Valid + private List ipv6List = null; + + @JsonProperty("model") + private String model; + + @JsonProperty("firmwareVersion") + private String firmwareVersion; + + @JsonProperty("version") + private String version; + + @JsonProperty("hwVersion") + private String hwVersion; + + @JsonProperty("cpuUtil") + private Integer cpuUtil; + + @JsonProperty("memUtil") + private Integer memUtil; + + @JsonProperty("uptime") + private String uptime; + + @JsonProperty("portList") + @Valid + private List portList = null; + + public SwitchOverviewInfo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Switch MAC address + * @return mac + */ + @ApiModelProperty(value = "Switch MAC address") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public SwitchOverviewInfo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Switch IP address + * @return ip + */ + @ApiModelProperty(value = "Switch IP address") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public SwitchOverviewInfo ipv6List(List ipv6List) { + this.ipv6List = ipv6List; + return this; + } + + public SwitchOverviewInfo addIpv6ListItem(String ipv6ListItem) { + if (this.ipv6List == null) { + this.ipv6List = new ArrayList<>(); + } + this.ipv6List.add(ipv6ListItem); + return this; + } + + /** + * Switch IPv6 list + * @return ipv6List + */ + @ApiModelProperty(value = "Switch IPv6 list") + + + public List getIpv6List() { + return ipv6List; + } + + public void setIpv6List(List ipv6List) { + this.ipv6List = ipv6List; + } + + public SwitchOverviewInfo model(String model) { + this.model = model; + return this; + } + + /** + * Model + * @return model + */ + @ApiModelProperty(value = "Model") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public SwitchOverviewInfo firmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + return this; + } + + /** + * Firmware Version e.g:2.5.0 Build 20190118 Rel. 64821 + * @return firmwareVersion + */ + @ApiModelProperty(value = "Firmware Version e.g:2.5.0 Build 20190118 Rel. 64821") + + + public String getFirmwareVersion() { + return firmwareVersion; + } + + public void setFirmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + } + + public SwitchOverviewInfo version(String version) { + this.version = version; + return this; + } + + /** + * Firmware Version e.g:2.5.0 + * @return version + */ + @ApiModelProperty(value = "Firmware Version e.g:2.5.0") + + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public SwitchOverviewInfo hwVersion(String hwVersion) { + this.hwVersion = hwVersion; + return this; + } + + /** + * Hardware Version + * @return hwVersion + */ + @ApiModelProperty(value = "Hardware Version") + + + public String getHwVersion() { + return hwVersion; + } + + public void setHwVersion(String hwVersion) { + this.hwVersion = hwVersion; + } + + public SwitchOverviewInfo cpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + return this; + } + + /** + * CpuUtil + * @return cpuUtil + */ + @ApiModelProperty(value = "CpuUtil") + + + public Integer getCpuUtil() { + return cpuUtil; + } + + public void setCpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + } + + public SwitchOverviewInfo memUtil(Integer memUtil) { + this.memUtil = memUtil; + return this; + } + + /** + * MemUtil + * @return memUtil + */ + @ApiModelProperty(value = "MemUtil") + + + public Integer getMemUtil() { + return memUtil; + } + + public void setMemUtil(Integer memUtil) { + this.memUtil = memUtil; + } + + public SwitchOverviewInfo uptime(String uptime) { + this.uptime = uptime; + return this; + } + + /** + * Uptime + * @return uptime + */ + @ApiModelProperty(value = "Uptime") + + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public SwitchOverviewInfo portList(List portList) { + this.portList = portList; + return this; + } + + public SwitchOverviewInfo addPortListItem(PortInfo portListItem) { + if (this.portList == null) { + this.portList = new ArrayList<>(); + } + this.portList.add(portListItem); + return this; + } + + /** + * Port List + * @return portList + */ + @ApiModelProperty(value = "Port List") + + @Valid + + public List getPortList() { + return portList; + } + + public void setPortList(List portList) { + this.portList = portList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchOverviewInfo switchOverviewInfo = (SwitchOverviewInfo) o; + return Objects.equals(this.mac, switchOverviewInfo.mac) && + Objects.equals(this.ip, switchOverviewInfo.ip) && + Objects.equals(this.ipv6List, switchOverviewInfo.ipv6List) && + Objects.equals(this.model, switchOverviewInfo.model) && + Objects.equals(this.firmwareVersion, switchOverviewInfo.firmwareVersion) && + Objects.equals(this.version, switchOverviewInfo.version) && + Objects.equals(this.hwVersion, switchOverviewInfo.hwVersion) && + Objects.equals(this.cpuUtil, switchOverviewInfo.cpuUtil) && + Objects.equals(this.memUtil, switchOverviewInfo.memUtil) && + Objects.equals(this.uptime, switchOverviewInfo.uptime) && + Objects.equals(this.portList, switchOverviewInfo.portList); + } + + @Override + public int hashCode() { + return Objects.hash(mac, ip, ipv6List, model, firmwareVersion, version, hwVersion, cpuUtil, memUtil, uptime, portList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchOverviewInfo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" ipv6List: ").append(toIndentedString(ipv6List)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" firmwareVersion: ").append(toIndentedString(firmwareVersion)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" hwVersion: ").append(toIndentedString(hwVersion)).append("\n"); + sb.append(" cpuUtil: ").append(toIndentedString(cpuUtil)).append("\n"); + sb.append(" memUtil: ").append(toIndentedString(memUtil)).append("\n"); + sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" portList: ").append(toIndentedString(portList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortName.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortName.java new file mode 100644 index 0000000..00a0fb6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortName.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SwitchPortName + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SwitchPortName { + @JsonProperty("name") + private String name; + + public SwitchPortName name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ?\"]$|^[^ ?\"][^?\"]{0,126}[^ ?\"]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchPortName switchPortName = (SwitchPortName) o; + return Objects.equals(this.name, switchPortName.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchPortName {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortPoe.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortPoe.java new file mode 100644 index 0000000..c70bbf3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortPoe.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * SwitchPortPoe + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SwitchPortPoe { + @JsonProperty("poeMode") + private Integer poeMode; + + public SwitchPortPoe poeMode(Integer poeMode) { + this.poeMode = poeMode; + return this; + } + + /** + * Poe mode should be a value as follows: 1: on(802.3at/af); 0: off. + * @return poeMode + */ + @ApiModelProperty(required = true, value = "Poe mode should be a value as follows: 1: on(802.3at/af); 0: off.") + @NotNull + + + public Integer getPoeMode() { + return poeMode; + } + + public void setPoeMode(Integer poeMode) { + this.poeMode = poeMode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchPortPoe switchPortPoe = (SwitchPortPoe) o; + return Objects.equals(this.poeMode, switchPortPoe.poeMode); + } + + @Override + public int hashCode() { + return Objects.hash(poeMode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchPortPoe {\n"); + + sb.append(" poeMode: ").append(toIndentedString(poeMode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortStatus.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortStatus.java new file mode 100644 index 0000000..fa94351 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortStatus.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * SwitchPortStatus + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SwitchPortStatus { + @JsonProperty("status") + private Integer status; + + public SwitchPortStatus status(Integer status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: off; 1: on + * @return status + */ + @ApiModelProperty(required = true, value = "Status should be a value as follows: 0: off; 1: on") + @NotNull + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchPortStatus switchPortStatus = (SwitchPortStatus) o; + return Objects.equals(this.status, switchPortStatus.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchPortStatus {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortsPoe.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortsPoe.java new file mode 100644 index 0000000..d35de8d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortsPoe.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SwitchPortsPoe + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SwitchPortsPoe { + @JsonProperty("portList") + @Valid + private List portList = new ArrayList<>(); + + @JsonProperty("poeMode") + private Integer poeMode; + + public SwitchPortsPoe portList(List portList) { + this.portList = portList; + return this; + } + + public SwitchPortsPoe addPortListItem(Integer portListItem) { + this.portList.add(portListItem); + return this; + } + + /** + * Port ID List. + * @return portList + */ + @ApiModelProperty(required = true, value = "Port ID List.") + @NotNull + +@Size(min=1,max=2147483647) + public List getPortList() { + return portList; + } + + public void setPortList(List portList) { + this.portList = portList; + } + + public SwitchPortsPoe poeMode(Integer poeMode) { + this.poeMode = poeMode; + return this; + } + + /** + * Poe mode should be a value as follows: 1: on(802.3at/af); 0: off. + * @return poeMode + */ + @ApiModelProperty(required = true, value = "Poe mode should be a value as follows: 1: on(802.3at/af); 0: off.") + @NotNull + + + public Integer getPoeMode() { + return poeMode; + } + + public void setPoeMode(Integer poeMode) { + this.poeMode = poeMode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchPortsPoe switchPortsPoe = (SwitchPortsPoe) o; + return Objects.equals(this.portList, switchPortsPoe.portList) && + Objects.equals(this.poeMode, switchPortsPoe.poeMode); + } + + @Override + public int hashCode() { + return Objects.hash(portList, poeMode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchPortsPoe {\n"); + + sb.append(" portList: ").append(toIndentedString(portList)).append("\n"); + sb.append(" poeMode: ").append(toIndentedString(poeMode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortsStatus.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortsStatus.java new file mode 100644 index 0000000..ec58f01 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchPortsStatus.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SwitchPortsStatus + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SwitchPortsStatus { + @JsonProperty("portList") + @Valid + private List portList = new ArrayList<>(); + + @JsonProperty("status") + private Integer status; + + public SwitchPortsStatus portList(List portList) { + this.portList = portList; + return this; + } + + public SwitchPortsStatus addPortListItem(Integer portListItem) { + this.portList.add(portListItem); + return this; + } + + /** + * Port list + * @return portList + */ + @ApiModelProperty(required = true, value = "Port list") + @NotNull + +@Size(min=1,max=2147483647) + public List getPortList() { + return portList; + } + + public void setPortList(List portList) { + this.portList = portList; + } + + public SwitchPortsStatus status(Integer status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: off; 1: on + * @return status + */ + @ApiModelProperty(required = true, value = "Status should be a value as follows: 0: off; 1: on") + @NotNull + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchPortsStatus switchPortsStatus = (SwitchPortsStatus) o; + return Objects.equals(this.portList, switchPortsStatus.portList) && + Objects.equals(this.status, switchPortsStatus.status); + } + + @Override + public int hashCode() { + return Objects.hash(portList, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchPortsStatus {\n"); + + sb.append(" portList: ").append(toIndentedString(portList)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchProfileId.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchProfileId.java new file mode 100644 index 0000000..426d665 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/SwitchProfileId.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * SwitchProfileId + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class SwitchProfileId { + @JsonProperty("profileId") + private String profileId; + + public SwitchProfileId profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Profile ID. + * @return profileId + */ + @ApiModelProperty(required = true, value = "Profile ID. ") + @NotNull + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchProfileId switchProfileId = (SwitchProfileId) o; + return Objects.equals(this.profileId, switchProfileId.profileId); + } + + @Override + public int hashCode() { + return Objects.hash(profileId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchProfileId {\n"); + + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/TagOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/TagOpenApiVo.java new file mode 100644 index 0000000..0927af7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/TagOpenApiVo.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * TagOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class TagOpenApiVo { + @JsonProperty("name") + private String name; + + public TagOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Tag name should contain 1 to 128 ASCII characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Tag name should contain 1 to 128 ASCII characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagOpenApiVo tagOpenApiVo = (TagOpenApiVo) o; + return Objects.equals(this.name, tagOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/TagRespOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/TagRespOpenApiVo.java new file mode 100644 index 0000000..5e5ced5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/TagRespOpenApiVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * TagRespOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class TagRespOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("tagId") + private String tagId; + + public TagRespOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Tag name + * @return name + */ + @ApiModelProperty(value = "Tag name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TagRespOpenApiVo tagId(String tagId) { + this.tagId = tagId; + return this; + } + + /** + * Tag ID + * @return tagId + */ + @ApiModelProperty(value = "Tag ID") + + + public String getTagId() { + return tagId; + } + + public void setTagId(String tagId) { + this.tagId = tagId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagRespOpenApiVo tagRespOpenApiVo = (TagRespOpenApiVo) o; + return Objects.equals(this.name, tagRespOpenApiVo.name) && + Objects.equals(this.tagId, tagRespOpenApiVo.tagId); + } + + @Override + public int hashCode() { + return Objects.hash(name, tagId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagRespOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" tagId: ").append(toIndentedString(tagId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindActiveDeviceSnOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindActiveDeviceSnOpenApiVo.java new file mode 100644 index 0000000..7bccc07 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindActiveDeviceSnOpenApiVo.java @@ -0,0 +1,105 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * UnbindActiveDeviceSnOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UnbindActiveDeviceSnOpenApiVo { + @JsonProperty("oldSn") + private String oldSn; + + @JsonProperty("newSn") + private String newSn; + + public UnbindActiveDeviceSnOpenApiVo oldSn(String oldSn) { + this.oldSn = oldSn; + return this; + } + + /** + * Old serial number. It should contains 13 characters + * @return oldSn + */ + @ApiModelProperty(required = true, value = "Old serial number. It should contains 13 characters") + @NotNull + +@Pattern(regexp="^[A-Z0-9]{13}$") + public String getOldSn() { + return oldSn; + } + + public void setOldSn(String oldSn) { + this.oldSn = oldSn; + } + + public UnbindActiveDeviceSnOpenApiVo newSn(String newSn) { + this.newSn = newSn; + return this; + } + + /** + * New serial number. It should contains 13 characters + * @return newSn + */ + @ApiModelProperty(required = true, value = "New serial number. It should contains 13 characters") + @NotNull + +@Pattern(regexp="^[A-Z0-9]{13}$") + public String getNewSn() { + return newSn; + } + + public void setNewSn(String newSn) { + this.newSn = newSn; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnbindActiveDeviceSnOpenApiVo unbindActiveDeviceSnOpenApiVo = (UnbindActiveDeviceSnOpenApiVo) o; + return Objects.equals(this.oldSn, unbindActiveDeviceSnOpenApiVo.oldSn) && + Objects.equals(this.newSn, unbindActiveDeviceSnOpenApiVo.newSn); + } + + @Override + public int hashCode() { + return Objects.hash(oldSn, newSn); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnbindActiveDeviceSnOpenApiVo {\n"); + + sb.append(" oldSn: ").append(toIndentedString(oldSn)).append("\n"); + sb.append(" newSn: ").append(toIndentedString(newSn)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceOpenApiVo.java new file mode 100644 index 0000000..078fe38 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceOpenApiVo.java @@ -0,0 +1,87 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UnbindDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UnbindDeviceOpenApiVo { + @JsonProperty("deviceMacs") + @Valid + private List deviceMacs = new ArrayList<>(); + + public UnbindDeviceOpenApiVo deviceMacs(List deviceMacs) { + this.deviceMacs = deviceMacs; + return this; + } + + public UnbindDeviceOpenApiVo addDeviceMacsItem(String deviceMacsItem) { + this.deviceMacs.add(deviceMacsItem); + return this; + } + + /** + * Unbind device mac list, like AA-BB-CC-DD-EE-FF + * @return deviceMacs + */ + @ApiModelProperty(required = true, value = "Unbind device mac list, like AA-BB-CC-DD-EE-FF") + @NotNull + + + public List getDeviceMacs() { + return deviceMacs; + } + + public void setDeviceMacs(List deviceMacs) { + this.deviceMacs = deviceMacs; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnbindDeviceOpenApiVo unbindDeviceOpenApiVo = (UnbindDeviceOpenApiVo) o; + return Objects.equals(this.deviceMacs, unbindDeviceOpenApiVo.deviceMacs); + } + + @Override + public int hashCode() { + return Objects.hash(deviceMacs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnbindDeviceOpenApiVo {\n"); + + sb.append(" deviceMacs: ").append(toIndentedString(deviceMacs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceRespVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceRespVo.java new file mode 100644 index 0000000..708731d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceRespVo.java @@ -0,0 +1,176 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * UnbindDeviceRespVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UnbindDeviceRespVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("licenseId") + private String licenseId; + + @JsonProperty("licenseType") + private String licenseType; + + @JsonProperty("category") + private String category; + + public UnbindDeviceRespVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Get mac + * @return mac + */ + @ApiModelProperty(value = "") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public UnbindDeviceRespVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Unbind device status should be a value as follows: 0: success;-1: failed + * @return status + */ + @ApiModelProperty(value = "Unbind device status should be a value as follows: 0: success;-1: failed") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public UnbindDeviceRespVo licenseId(String licenseId) { + this.licenseId = licenseId; + return this; + } + + /** + * License ID + * @return licenseId + */ + @ApiModelProperty(value = "License ID") + + + public String getLicenseId() { + return licenseId; + } + + public void setLicenseId(String licenseId) { + this.licenseId = licenseId; + } + + public UnbindDeviceRespVo licenseType(String licenseType) { + this.licenseType = licenseType; + return this; + } + + /** + * License type should be a value as follows: 1year; 2years; 3years; 4years; 5years; others; trial(Cloud Based Controller), permanent; trial(Local Controller) + * @return licenseType + */ + @ApiModelProperty(value = "License type should be a value as follows: 1year; 2years; 3years; 4years; 5years; others; trial(Cloud Based Controller), permanent; trial(Local Controller)") + + + public String getLicenseType() { + return licenseType; + } + + public void setLicenseType(String licenseType) { + this.licenseType = licenseType; + } + + public UnbindDeviceRespVo category(String category) { + this.category = category; + return this; + } + + /** + * Category should be a value as follows: ap; l2Switch; l3Switch; gateway + * @return category + */ + @ApiModelProperty(value = "Category should be a value as follows: ap; l2Switch; l3Switch; gateway") + + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnbindDeviceRespVo unbindDeviceRespVo = (UnbindDeviceRespVo) o; + return Objects.equals(this.mac, unbindDeviceRespVo.mac) && + Objects.equals(this.status, unbindDeviceRespVo.status) && + Objects.equals(this.licenseId, unbindDeviceRespVo.licenseId) && + Objects.equals(this.licenseType, unbindDeviceRespVo.licenseType) && + Objects.equals(this.category, unbindDeviceRespVo.category); + } + + @Override + public int hashCode() { + return Objects.hash(mac, status, licenseId, licenseType, category); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnbindDeviceRespVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); + sb.append(" licenseType: ").append(toIndentedString(licenseType)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceSnOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceSnOpenApiVo.java new file mode 100644 index 0000000..385acbe --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceSnOpenApiVo.java @@ -0,0 +1,87 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UnbindDeviceSnOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UnbindDeviceSnOpenApiVo { + @JsonProperty("sns") + @Valid + private List sns = new ArrayList<>(); + + public UnbindDeviceSnOpenApiVo sns(List sns) { + this.sns = sns; + return this; + } + + public UnbindDeviceSnOpenApiVo addSnsItem(String snsItem) { + this.sns.add(snsItem); + return this; + } + + /** + * Unbind device serial number list, serial number should contains 13 characters. + * @return sns + */ + @ApiModelProperty(required = true, value = "Unbind device serial number list, serial number should contains 13 characters.") + @NotNull + + + public List getSns() { + return sns; + } + + public void setSns(List sns) { + this.sns = sns; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnbindDeviceSnOpenApiVo unbindDeviceSnOpenApiVo = (UnbindDeviceSnOpenApiVo) o; + return Objects.equals(this.sns, unbindDeviceSnOpenApiVo.sns); + } + + @Override + public int hashCode() { + return Objects.hash(sns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnbindDeviceSnOpenApiVo {\n"); + + sb.append(" sns: ").append(toIndentedString(sns)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceSnRespVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceSnRespVo.java new file mode 100644 index 0000000..ae4f8a5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UnbindDeviceSnRespVo.java @@ -0,0 +1,176 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * UnbindDeviceSnRespVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UnbindDeviceSnRespVo { + @JsonProperty("sn") + private String sn; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("licenseId") + private String licenseId; + + @JsonProperty("licenseType") + private String licenseType; + + @JsonProperty("category") + private String category; + + public UnbindDeviceSnRespVo sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Get sn + * @return sn + */ + @ApiModelProperty(value = "") + + + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public UnbindDeviceSnRespVo status(Integer status) { + this.status = status; + return this; + } + + /** + * unbind device status(0: success;-1: failed;) + * @return status + */ + @ApiModelProperty(value = "unbind device status(0: success;-1: failed;)") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public UnbindDeviceSnRespVo licenseId(String licenseId) { + this.licenseId = licenseId; + return this; + } + + /** + * License ID + * @return licenseId + */ + @ApiModelProperty(value = "License ID") + + + public String getLicenseId() { + return licenseId; + } + + public void setLicenseId(String licenseId) { + this.licenseId = licenseId; + } + + public UnbindDeviceSnRespVo licenseType(String licenseType) { + this.licenseType = licenseType; + return this; + } + + /** + * 1year, 2years, 3years, 4years, 5years, others, trial + * @return licenseType + */ + @ApiModelProperty(value = "1year, 2years, 3years, 4years, 5years, others, trial") + + + public String getLicenseType() { + return licenseType; + } + + public void setLicenseType(String licenseType) { + this.licenseType = licenseType; + } + + public UnbindDeviceSnRespVo category(String category) { + this.category = category; + return this; + } + + /** + * ap, l2Switch, l3Switch, gateway + * @return category + */ + @ApiModelProperty(value = "ap, l2Switch, l3Switch, gateway") + + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UnbindDeviceSnRespVo unbindDeviceSnRespVo = (UnbindDeviceSnRespVo) o; + return Objects.equals(this.sn, unbindDeviceSnRespVo.sn) && + Objects.equals(this.status, unbindDeviceSnRespVo.status) && + Objects.equals(this.licenseId, unbindDeviceSnRespVo.licenseId) && + Objects.equals(this.licenseType, unbindDeviceSnRespVo.licenseType) && + Objects.equals(this.category, unbindDeviceSnRespVo.category); + } + + @Override + public int hashCode() { + return Objects.hash(sn, status, licenseId, licenseType, category); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UnbindDeviceSnRespVo {\n"); + + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); + sb.append(" licenseType: ").append(toIndentedString(licenseType)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApChannelConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApChannelConfigOpenApiVo.java new file mode 100644 index 0000000..4ae1c97 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApChannelConfigOpenApiVo.java @@ -0,0 +1,154 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * UpdateApChannelConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpdateApChannelConfigOpenApiVo { + @JsonProperty("radioId") + private Integer radioId; + + @JsonProperty("radioEnable") + private Boolean radioEnable; + + @JsonProperty("channel") + private Integer channel; + + @JsonProperty("channelWidth") + private Integer channelWidth; + + public UpdateApChannelConfigOpenApiVo radioId(Integer radioId) { + this.radioId = radioId; + return this; + } + + /** + * (Wireless) Radio ID should be a value as follows: 0: 2.4GHz; 1: 5GHz(5GHz-1); 2: 5GHz-2; 3: 6GHz. + * @return radioId + */ + @ApiModelProperty(required = true, value = "(Wireless) Radio ID should be a value as follows: 0: 2.4GHz; 1: 5GHz(5GHz-1); 2: 5GHz-2; 3: 6GHz.") + @NotNull + + + public Integer getRadioId() { + return radioId; + } + + public void setRadioId(Integer radioId) { + this.radioId = radioId; + } + + public UpdateApChannelConfigOpenApiVo radioEnable(Boolean radioEnable) { + this.radioEnable = radioEnable; + return this; + } + + /** + * Enable/Disable radio setting(if false, other params is not required) + * @return radioEnable + */ + @ApiModelProperty(required = true, value = "Enable/Disable radio setting(if false, other params is not required)") + @NotNull + + + public Boolean getRadioEnable() { + return radioEnable; + } + + public void setRadioEnable(Boolean radioEnable) { + this.radioEnable = radioEnable; + } + + public UpdateApChannelConfigOpenApiVo channel(Integer channel) { + this.channel = channel; + return this; + } + + /** + * Radios-Channel config; The channel list supported by device can be obtained from interface : Get available channel list of ap; If select auto configuration need to enter 0. + * @return channel + */ + @ApiModelProperty(value = "Radios-Channel config; The channel list supported by device can be obtained from interface : Get available channel list of ap; If select auto configuration need to enter 0.") + + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + public UpdateApChannelConfigOpenApiVo channelWidth(Integer channelWidth) { + this.channelWidth = channelWidth; + return this; + } + + /** + * Radios-Channel width config; The channelWidth list supported by device can be obtained from interface : Get available channel list of ap; If select auto configuration need to enter 0. + * @return channelWidth + */ + @ApiModelProperty(value = "Radios-Channel width config; The channelWidth list supported by device can be obtained from interface : Get available channel list of ap; If select auto configuration need to enter 0.") + + + public Integer getChannelWidth() { + return channelWidth; + } + + public void setChannelWidth(Integer channelWidth) { + this.channelWidth = channelWidth; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateApChannelConfigOpenApiVo updateApChannelConfigOpenApiVo = (UpdateApChannelConfigOpenApiVo) o; + return Objects.equals(this.radioId, updateApChannelConfigOpenApiVo.radioId) && + Objects.equals(this.radioEnable, updateApChannelConfigOpenApiVo.radioEnable) && + Objects.equals(this.channel, updateApChannelConfigOpenApiVo.channel) && + Objects.equals(this.channelWidth, updateApChannelConfigOpenApiVo.channelWidth); + } + + @Override + public int hashCode() { + return Objects.hash(radioId, radioEnable, channel, channelWidth); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateApChannelConfigOpenApiVo {\n"); + + sb.append(" radioId: ").append(toIndentedString(radioId)).append("\n"); + sb.append(" radioEnable: ").append(toIndentedString(radioEnable)).append("\n"); + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" channelWidth: ").append(toIndentedString(channelWidth)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApOfdmaConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApOfdmaConfigOpenApiVo.java new file mode 100644 index 0000000..a75639b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApOfdmaConfigOpenApiVo.java @@ -0,0 +1,151 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * UpdateApOfdmaConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpdateApOfdmaConfigOpenApiVo { + @JsonProperty("ofdmaEnable2g") + private Boolean ofdmaEnable2g; + + @JsonProperty("ofdmaEnable5g") + private Boolean ofdmaEnable5g; + + @JsonProperty("ofdmaEnable5g2") + private Boolean ofdmaEnable5g2; + + @JsonProperty("ofdmaEnable6g") + private Boolean ofdmaEnable6g; + + public UpdateApOfdmaConfigOpenApiVo ofdmaEnable2g(Boolean ofdmaEnable2g) { + this.ofdmaEnable2g = ofdmaEnable2g; + return this; + } + + /** + * Advanced feature OFDMA 2G config status. True: enable, false: disable. + * @return ofdmaEnable2g + */ + @ApiModelProperty(value = "Advanced feature OFDMA 2G config status. True: enable, false: disable.") + + + public Boolean getOfdmaEnable2g() { + return ofdmaEnable2g; + } + + public void setOfdmaEnable2g(Boolean ofdmaEnable2g) { + this.ofdmaEnable2g = ofdmaEnable2g; + } + + public UpdateApOfdmaConfigOpenApiVo ofdmaEnable5g(Boolean ofdmaEnable5g) { + this.ofdmaEnable5g = ofdmaEnable5g; + return this; + } + + /** + * Advanced feature OFDMA 5G1 config status. True: enable, false: disable. + * @return ofdmaEnable5g + */ + @ApiModelProperty(value = "Advanced feature OFDMA 5G1 config status. True: enable, false: disable.") + + + public Boolean getOfdmaEnable5g() { + return ofdmaEnable5g; + } + + public void setOfdmaEnable5g(Boolean ofdmaEnable5g) { + this.ofdmaEnable5g = ofdmaEnable5g; + } + + public UpdateApOfdmaConfigOpenApiVo ofdmaEnable5g2(Boolean ofdmaEnable5g2) { + this.ofdmaEnable5g2 = ofdmaEnable5g2; + return this; + } + + /** + * Advanced feature OFDMA 5G2 config status. True: enable, false: disable. + * @return ofdmaEnable5g2 + */ + @ApiModelProperty(value = "Advanced feature OFDMA 5G2 config status. True: enable, false: disable.") + + + public Boolean getOfdmaEnable5g2() { + return ofdmaEnable5g2; + } + + public void setOfdmaEnable5g2(Boolean ofdmaEnable5g2) { + this.ofdmaEnable5g2 = ofdmaEnable5g2; + } + + public UpdateApOfdmaConfigOpenApiVo ofdmaEnable6g(Boolean ofdmaEnable6g) { + this.ofdmaEnable6g = ofdmaEnable6g; + return this; + } + + /** + * Advanced feature OFDMA 6G config status. True: enable, false: disable. + * @return ofdmaEnable6g + */ + @ApiModelProperty(value = "Advanced feature OFDMA 6G config status. True: enable, false: disable.") + + + public Boolean getOfdmaEnable6g() { + return ofdmaEnable6g; + } + + public void setOfdmaEnable6g(Boolean ofdmaEnable6g) { + this.ofdmaEnable6g = ofdmaEnable6g; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateApOfdmaConfigOpenApiVo updateApOfdmaConfigOpenApiVo = (UpdateApOfdmaConfigOpenApiVo) o; + return Objects.equals(this.ofdmaEnable2g, updateApOfdmaConfigOpenApiVo.ofdmaEnable2g) && + Objects.equals(this.ofdmaEnable5g, updateApOfdmaConfigOpenApiVo.ofdmaEnable5g) && + Objects.equals(this.ofdmaEnable5g2, updateApOfdmaConfigOpenApiVo.ofdmaEnable5g2) && + Objects.equals(this.ofdmaEnable6g, updateApOfdmaConfigOpenApiVo.ofdmaEnable6g); + } + + @Override + public int hashCode() { + return Objects.hash(ofdmaEnable2g, ofdmaEnable5g, ofdmaEnable5g2, ofdmaEnable6g); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateApOfdmaConfigOpenApiVo {\n"); + + sb.append(" ofdmaEnable2g: ").append(toIndentedString(ofdmaEnable2g)).append("\n"); + sb.append(" ofdmaEnable5g: ").append(toIndentedString(ofdmaEnable5g)).append("\n"); + sb.append(" ofdmaEnable5g2: ").append(toIndentedString(ofdmaEnable5g2)).append("\n"); + sb.append(" ofdmaEnable6g: ").append(toIndentedString(ofdmaEnable6g)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApPowerSavingConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApPowerSavingConfigOpenApiVo.java new file mode 100644 index 0000000..0642b08 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpdateApPowerSavingConfigOpenApiVo.java @@ -0,0 +1,267 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpdateApPowerSavingConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpdateApPowerSavingConfigOpenApiVo { + @JsonProperty("timeEnable") + private Boolean timeEnable; + + @JsonProperty("startTimeH") + private Integer startTimeH; + + @JsonProperty("startTimeM") + private Integer startTimeM; + + @JsonProperty("endTimeH") + private Integer endTimeH; + + @JsonProperty("endTimeM") + private Integer endTimeM; + + @JsonProperty("bandEnable") + private Boolean bandEnable; + + @JsonProperty("bands") + @Valid + private List bands = null; + + @JsonProperty("idleDuration") + private Integer idleDuration; + + public UpdateApPowerSavingConfigOpenApiVo timeEnable(Boolean timeEnable) { + this.timeEnable = timeEnable; + return this; + } + + /** + * Power Saving trigger by time config status. True: enable, false: disable. + * @return timeEnable + */ + @ApiModelProperty(required = true, value = "Power Saving trigger by time config status. True: enable, false: disable.") + @NotNull + + + public Boolean getTimeEnable() { + return timeEnable; + } + + public void setTimeEnable(Boolean timeEnable) { + this.timeEnable = timeEnable; + } + + public UpdateApPowerSavingConfigOpenApiVo startTimeH(Integer startTimeH) { + this.startTimeH = startTimeH; + return this; + } + + /** + * Start time of trigger by time(unit: hour); It should be within the range of 0–23; This field is required when Parameter [timeEnable] is true. + * @return startTimeH + */ + @ApiModelProperty(value = "Start time of trigger by time(unit: hour); It should be within the range of 0–23; This field is required when Parameter [timeEnable] is true.") + + + public Integer getStartTimeH() { + return startTimeH; + } + + public void setStartTimeH(Integer startTimeH) { + this.startTimeH = startTimeH; + } + + public UpdateApPowerSavingConfigOpenApiVo startTimeM(Integer startTimeM) { + this.startTimeM = startTimeM; + return this; + } + + /** + * Start time of trigger by time(unit: minute); It should be within the range of 0–59; This field is required when Parameter [timeEnable] is true. + * @return startTimeM + */ + @ApiModelProperty(value = "Start time of trigger by time(unit: minute); It should be within the range of 0–59; This field is required when Parameter [timeEnable] is true.") + + + public Integer getStartTimeM() { + return startTimeM; + } + + public void setStartTimeM(Integer startTimeM) { + this.startTimeM = startTimeM; + } + + public UpdateApPowerSavingConfigOpenApiVo endTimeH(Integer endTimeH) { + this.endTimeH = endTimeH; + return this; + } + + /** + * End time of trigger by time(unit: hour); It should be within the range of 0–23; This field is required when Parameter [timeEnable] is true. + * @return endTimeH + */ + @ApiModelProperty(value = "End time of trigger by time(unit: hour); It should be within the range of 0–23; This field is required when Parameter [timeEnable] is true.") + + + public Integer getEndTimeH() { + return endTimeH; + } + + public void setEndTimeH(Integer endTimeH) { + this.endTimeH = endTimeH; + } + + public UpdateApPowerSavingConfigOpenApiVo endTimeM(Integer endTimeM) { + this.endTimeM = endTimeM; + return this; + } + + /** + * End time of trigger by time(unit: minute); It should be within the range of 0–59; This field is required when Parameter [timeEnable] is true. + * @return endTimeM + */ + @ApiModelProperty(value = "End time of trigger by time(unit: minute); It should be within the range of 0–59; This field is required when Parameter [timeEnable] is true.") + + + public Integer getEndTimeM() { + return endTimeM; + } + + public void setEndTimeM(Integer endTimeM) { + this.endTimeM = endTimeM; + } + + public UpdateApPowerSavingConfigOpenApiVo bandEnable(Boolean bandEnable) { + this.bandEnable = bandEnable; + return this; + } + + /** + * Power Saving trigger by band config status. True: enable, false: disable. + * @return bandEnable + */ + @ApiModelProperty(required = true, value = "Power Saving trigger by band config status. True: enable, false: disable.") + @NotNull + + + public Boolean getBandEnable() { + return bandEnable; + } + + public void setBandEnable(Boolean bandEnable) { + this.bandEnable = bandEnable; + } + + public UpdateApPowerSavingConfigOpenApiVo bands(List bands) { + this.bands = bands; + return this; + } + + public UpdateApPowerSavingConfigOpenApiVo addBandsItem(Integer bandsItem) { + if (this.bands == null) { + this.bands = new ArrayList<>(); + } + this.bands.add(bandsItem); + return this; + } + + /** + * Select bands list config of trigger by band;It should be a value as follows: 0: 2.4GHz; 1: 5GHz; 2: 5G2Hz; 3: 6GHz;This field is required when Parameter [bandEnable] is true;Please note that the band filled in must be supported by the device, otherwise the modified configuration will not take effect properly + * @return bands + */ + @ApiModelProperty(value = "Select bands list config of trigger by band;It should be a value as follows: 0: 2.4GHz; 1: 5GHz; 2: 5G2Hz; 3: 6GHz;This field is required when Parameter [bandEnable] is true;Please note that the band filled in must be supported by the device, otherwise the modified configuration will not take effect properly") + +@Size(min=1,max=2147483647) + public List getBands() { + return bands; + } + + public void setBands(List bands) { + this.bands = bands; + } + + public UpdateApPowerSavingConfigOpenApiVo idleDuration(Integer idleDuration) { + this.idleDuration = idleDuration; + return this; + } + + /** + * Idle duration config of trigger by band(unit: minute); It should be within the range of 60–1440; This field is required when Parameter [bandEnable] is true. + * @return idleDuration + */ + @ApiModelProperty(value = "Idle duration config of trigger by band(unit: minute); It should be within the range of 60–1440; This field is required when Parameter [bandEnable] is true.") + + + public Integer getIdleDuration() { + return idleDuration; + } + + public void setIdleDuration(Integer idleDuration) { + this.idleDuration = idleDuration; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateApPowerSavingConfigOpenApiVo updateApPowerSavingConfigOpenApiVo = (UpdateApPowerSavingConfigOpenApiVo) o; + return Objects.equals(this.timeEnable, updateApPowerSavingConfigOpenApiVo.timeEnable) && + Objects.equals(this.startTimeH, updateApPowerSavingConfigOpenApiVo.startTimeH) && + Objects.equals(this.startTimeM, updateApPowerSavingConfigOpenApiVo.startTimeM) && + Objects.equals(this.endTimeH, updateApPowerSavingConfigOpenApiVo.endTimeH) && + Objects.equals(this.endTimeM, updateApPowerSavingConfigOpenApiVo.endTimeM) && + Objects.equals(this.bandEnable, updateApPowerSavingConfigOpenApiVo.bandEnable) && + Objects.equals(this.bands, updateApPowerSavingConfigOpenApiVo.bands) && + Objects.equals(this.idleDuration, updateApPowerSavingConfigOpenApiVo.idleDuration); + } + + @Override + public int hashCode() { + return Objects.hash(timeEnable, startTimeH, startTimeM, endTimeH, endTimeM, bandEnable, bands, idleDuration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateApPowerSavingConfigOpenApiVo {\n"); + + sb.append(" timeEnable: ").append(toIndentedString(timeEnable)).append("\n"); + sb.append(" startTimeH: ").append(toIndentedString(startTimeH)).append("\n"); + sb.append(" startTimeM: ").append(toIndentedString(startTimeM)).append("\n"); + sb.append(" endTimeH: ").append(toIndentedString(endTimeH)).append("\n"); + sb.append(" endTimeM: ").append(toIndentedString(endTimeM)).append("\n"); + sb.append(" bandEnable: ").append(toIndentedString(bandEnable)).append("\n"); + sb.append(" bands: ").append(toIndentedString(bands)).append("\n"); + sb.append(" idleDuration: ").append(toIndentedString(idleDuration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeBaseScheduleTimeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeBaseScheduleTimeOpenApiVo.java new file mode 100644 index 0000000..8807f99 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeBaseScheduleTimeOpenApiVo.java @@ -0,0 +1,207 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Periodic execution time, and it should not be null + */ +@ApiModel(description = "Periodic execution time, and it should not be null") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpgradeBaseScheduleTimeOpenApiVo { + @JsonProperty("timingType") + private Integer timingType; + + @JsonProperty("dayOfWeek") + private Integer dayOfWeek; + + @JsonProperty("dayOfMonth") + private Integer dayOfMonth; + + @JsonProperty("monthOfYear") + private Integer monthOfYear; + + @JsonProperty("hour") + private Integer hour; + + @JsonProperty("minute") + private Integer minute; + + public UpgradeBaseScheduleTimeOpenApiVo timingType(Integer timingType) { + this.timingType = timingType; + return this; + } + + /** + * Time type should be a value as follows: 1:Daily; 2:Weekly; 3:Monthly; 4:yearly + * @return timingType + */ + @ApiModelProperty(required = true, value = "Time type should be a value as follows: 1:Daily; 2:Weekly; 3:Monthly; 4:yearly") + @NotNull + + + public Integer getTimingType() { + return timingType; + } + + public void setTimingType(Integer timingType) { + this.timingType = timingType; + } + + public UpgradeBaseScheduleTimeOpenApiVo dayOfWeek(Integer dayOfWeek) { + this.dayOfWeek = dayOfWeek; + return this; + } + + /** + * It should be within the range of 0(Sunday)~6(Saturday). Required when parameter [timingType] is 2. + * @return dayOfWeek + */ + @ApiModelProperty(value = "It should be within the range of 0(Sunday)~6(Saturday). Required when parameter [timingType] is 2.") + + + public Integer getDayOfWeek() { + return dayOfWeek; + } + + public void setDayOfWeek(Integer dayOfWeek) { + this.dayOfWeek = dayOfWeek; + } + + public UpgradeBaseScheduleTimeOpenApiVo dayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + return this; + } + + /** + * It should be within the range of 1~31. Required when parameter [timingType] is 3 or 4. + * @return dayOfMonth + */ + @ApiModelProperty(value = "It should be within the range of 1~31. Required when parameter [timingType] is 3 or 4.") + + + public Integer getDayOfMonth() { + return dayOfMonth; + } + + public void setDayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + } + + public UpgradeBaseScheduleTimeOpenApiVo monthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + return this; + } + + /** + * It should be within the range of 1~12. Required when parameter [timingType] is 4. + * @return monthOfYear + */ + @ApiModelProperty(value = "It should be within the range of 1~12. Required when parameter [timingType] is 4.") + + + public Integer getMonthOfYear() { + return monthOfYear; + } + + public void setMonthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + } + + public UpgradeBaseScheduleTimeOpenApiVo hour(Integer hour) { + this.hour = hour; + return this; + } + + /** + * It should be within the range of 0~23 + * @return hour + */ + @ApiModelProperty(required = true, value = "It should be within the range of 0~23") + @NotNull + + + public Integer getHour() { + return hour; + } + + public void setHour(Integer hour) { + this.hour = hour; + } + + public UpgradeBaseScheduleTimeOpenApiVo minute(Integer minute) { + this.minute = minute; + return this; + } + + /** + * It should be within the range of 0~59 + * @return minute + */ + @ApiModelProperty(required = true, value = "It should be within the range of 0~59") + @NotNull + + + public Integer getMinute() { + return minute; + } + + public void setMinute(Integer minute) { + this.minute = minute; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpgradeBaseScheduleTimeOpenApiVo upgradeBaseScheduleTimeOpenApiVo = (UpgradeBaseScheduleTimeOpenApiVo) o; + return Objects.equals(this.timingType, upgradeBaseScheduleTimeOpenApiVo.timingType) && + Objects.equals(this.dayOfWeek, upgradeBaseScheduleTimeOpenApiVo.dayOfWeek) && + Objects.equals(this.dayOfMonth, upgradeBaseScheduleTimeOpenApiVo.dayOfMonth) && + Objects.equals(this.monthOfYear, upgradeBaseScheduleTimeOpenApiVo.monthOfYear) && + Objects.equals(this.hour, upgradeBaseScheduleTimeOpenApiVo.hour) && + Objects.equals(this.minute, upgradeBaseScheduleTimeOpenApiVo.minute); + } + + @Override + public int hashCode() { + return Objects.hash(timingType, dayOfWeek, dayOfMonth, monthOfYear, hour, minute); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeBaseScheduleTimeOpenApiVo {\n"); + + sb.append(" timingType: ").append(toIndentedString(timingType)).append("\n"); + sb.append(" dayOfWeek: ").append(toIndentedString(dayOfWeek)).append("\n"); + sb.append(" dayOfMonth: ").append(toIndentedString(dayOfMonth)).append("\n"); + sb.append(" monthOfYear: ").append(toIndentedString(monthOfYear)).append("\n"); + sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); + sb.append(" minute: ").append(toIndentedString(minute)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeFailedDeviceInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeFailedDeviceInfo.java new file mode 100644 index 0000000..06698e8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeFailedDeviceInfo.java @@ -0,0 +1,203 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * UpgradeFailedDeviceInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpgradeFailedDeviceInfo { + @JsonProperty("modelTypeInfo") + private ModelTypeInfoOpenApiVo modelTypeInfo; + + @JsonProperty("deviceName") + private String deviceName; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("currentVersion") + private String currentVersion; + + @JsonProperty("siteName") + private String siteName; + + @JsonProperty("type") + private String type; + + public UpgradeFailedDeviceInfo modelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + return this; + } + + /** + * Get modelTypeInfo + * @return modelTypeInfo + */ + @ApiModelProperty(value = "") + + @Valid + + public ModelTypeInfoOpenApiVo getModelTypeInfo() { + return modelTypeInfo; + } + + public void setModelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + } + + public UpgradeFailedDeviceInfo deviceName(String deviceName) { + this.deviceName = deviceName; + return this; + } + + /** + * Name of the device which failed to upgrade. + * @return deviceName + */ + @ApiModelProperty(value = "Name of the device which failed to upgrade.") + + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public UpgradeFailedDeviceInfo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Mac address of device which upgrade failed. + * @return mac + */ + @ApiModelProperty(value = "Mac address of device which upgrade failed.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public UpgradeFailedDeviceInfo currentVersion(String currentVersion) { + this.currentVersion = currentVersion; + return this; + } + + /** + * The current firmware version of the device which upgrade failed. + * @return currentVersion + */ + @ApiModelProperty(value = "The current firmware version of the device which upgrade failed.") + + + public String getCurrentVersion() { + return currentVersion; + } + + public void setCurrentVersion(String currentVersion) { + this.currentVersion = currentVersion; + } + + public UpgradeFailedDeviceInfo siteName(String siteName) { + this.siteName = siteName; + return this; + } + + /** + * The siteName of the device which upgrade failed. + * @return siteName + */ + @ApiModelProperty(value = "The siteName of the device which upgrade failed.") + + + public String getSiteName() { + return siteName; + } + + public void setSiteName(String siteName) { + this.siteName = siteName; + } + + public UpgradeFailedDeviceInfo type(String type) { + this.type = type; + return this; + } + + /** + * Device type should be a value as follows: gateway, switch, ap. + * @return type + */ + @ApiModelProperty(value = "Device type should be a value as follows: gateway, switch, ap.") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpgradeFailedDeviceInfo upgradeFailedDeviceInfo = (UpgradeFailedDeviceInfo) o; + return Objects.equals(this.modelTypeInfo, upgradeFailedDeviceInfo.modelTypeInfo) && + Objects.equals(this.deviceName, upgradeFailedDeviceInfo.deviceName) && + Objects.equals(this.mac, upgradeFailedDeviceInfo.mac) && + Objects.equals(this.currentVersion, upgradeFailedDeviceInfo.currentVersion) && + Objects.equals(this.siteName, upgradeFailedDeviceInfo.siteName) && + Objects.equals(this.type, upgradeFailedDeviceInfo.type); + } + + @Override + public int hashCode() { + return Objects.hash(modelTypeInfo, deviceName, mac, currentVersion, siteName, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeFailedDeviceInfo {\n"); + + sb.append(" modelTypeInfo: ").append(toIndentedString(modelTypeInfo)).append("\n"); + sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n"); + sb.append(" siteName: ").append(toIndentedString(siteName)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeLogOpenApiInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeLogOpenApiInfo.java new file mode 100644 index 0000000..5f156a7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeLogOpenApiInfo.java @@ -0,0 +1,298 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpgradeLogOpenApiInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpgradeLogOpenApiInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("modelTypeInfo") + private ModelTypeInfoOpenApiVo modelTypeInfo; + + @JsonProperty("siteNames") + @Valid + private List siteNames = null; + + @JsonProperty("siteNum") + private Integer siteNum; + + @JsonProperty("currentVersion") + @Valid + private List currentVersion = null; + + @JsonProperty("targetVersion") + private String targetVersion; + + @JsonProperty("upgradeTime") + private String upgradeTime; + + @JsonProperty("operator") + private String operator; + + @JsonProperty("rollbacked") + private Boolean rollbacked; + + public UpgradeLogOpenApiInfo id(String id) { + this.id = id; + return this; + } + + /** + * Upgrade log ID. + * @return id + */ + @ApiModelProperty(value = "Upgrade log ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public UpgradeLogOpenApiInfo modelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + return this; + } + + /** + * Get modelTypeInfo + * @return modelTypeInfo + */ + @ApiModelProperty(value = "") + + @Valid + + public ModelTypeInfoOpenApiVo getModelTypeInfo() { + return modelTypeInfo; + } + + public void setModelTypeInfo(ModelTypeInfoOpenApiVo modelTypeInfo) { + this.modelTypeInfo = modelTypeInfo; + } + + public UpgradeLogOpenApiInfo siteNames(List siteNames) { + this.siteNames = siteNames; + return this; + } + + public UpgradeLogOpenApiInfo addSiteNamesItem(String siteNamesItem) { + if (this.siteNames == null) { + this.siteNames = new ArrayList<>(); + } + this.siteNames.add(siteNamesItem); + return this; + } + + /** + * The siteName lists where the model belongs. + * @return siteNames + */ + @ApiModelProperty(value = "The siteName lists where the model belongs.") + + + public List getSiteNames() { + return siteNames; + } + + public void setSiteNames(List siteNames) { + this.siteNames = siteNames; + } + + public UpgradeLogOpenApiInfo siteNum(Integer siteNum) { + this.siteNum = siteNum; + return this; + } + + /** + * Number of sites where the model belongs. + * @return siteNum + */ + @ApiModelProperty(value = "Number of sites where the model belongs.") + + + public Integer getSiteNum() { + return siteNum; + } + + public void setSiteNum(Integer siteNum) { + this.siteNum = siteNum; + } + + public UpgradeLogOpenApiInfo currentVersion(List currentVersion) { + this.currentVersion = currentVersion; + return this; + } + + public UpgradeLogOpenApiInfo addCurrentVersionItem(String currentVersionItem) { + if (this.currentVersion == null) { + this.currentVersion = new ArrayList<>(); + } + this.currentVersion.add(currentVersionItem); + return this; + } + + /** + * Model version list, software version, such as \"2.5.0 Build 20190118 Rel. 64821\". + * @return currentVersion + */ + @ApiModelProperty(value = "Model version list, software version, such as \"2.5.0 Build 20190118 Rel. 64821\".") + + + public List getCurrentVersion() { + return currentVersion; + } + + public void setCurrentVersion(List currentVersion) { + this.currentVersion = currentVersion; + } + + public UpgradeLogOpenApiInfo targetVersion(String targetVersion) { + this.targetVersion = targetVersion; + return this; + } + + /** + * Target upgrade version. + * @return targetVersion + */ + @ApiModelProperty(value = "Target upgrade version.") + + + public String getTargetVersion() { + return targetVersion; + } + + public void setTargetVersion(String targetVersion) { + this.targetVersion = targetVersion; + } + + public UpgradeLogOpenApiInfo upgradeTime(String upgradeTime) { + this.upgradeTime = upgradeTime; + return this; + } + + /** + * The time when the upgrade is complete. + * @return upgradeTime + */ + @ApiModelProperty(value = "The time when the upgrade is complete.") + + + public String getUpgradeTime() { + return upgradeTime; + } + + public void setUpgradeTime(String upgradeTime) { + this.upgradeTime = upgradeTime; + } + + public UpgradeLogOpenApiInfo operator(String operator) { + this.operator = operator; + return this; + } + + /** + * Operator. + * @return operator + */ + @ApiModelProperty(value = "Operator.") + + + public String getOperator() { + return operator; + } + + public void setOperator(String operator) { + this.operator = operator; + } + + public UpgradeLogOpenApiInfo rollbacked(Boolean rollbacked) { + this.rollbacked = rollbacked; + return this; + } + + /** + * Whether the log is rolled back or not. The logs that are rolled back cannot be rolled back repeatedly. + * @return rollbacked + */ + @ApiModelProperty(value = "Whether the log is rolled back or not. The logs that are rolled back cannot be rolled back repeatedly.") + + + public Boolean getRollbacked() { + return rollbacked; + } + + public void setRollbacked(Boolean rollbacked) { + this.rollbacked = rollbacked; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpgradeLogOpenApiInfo upgradeLogOpenApiInfo = (UpgradeLogOpenApiInfo) o; + return Objects.equals(this.id, upgradeLogOpenApiInfo.id) && + Objects.equals(this.modelTypeInfo, upgradeLogOpenApiInfo.modelTypeInfo) && + Objects.equals(this.siteNames, upgradeLogOpenApiInfo.siteNames) && + Objects.equals(this.siteNum, upgradeLogOpenApiInfo.siteNum) && + Objects.equals(this.currentVersion, upgradeLogOpenApiInfo.currentVersion) && + Objects.equals(this.targetVersion, upgradeLogOpenApiInfo.targetVersion) && + Objects.equals(this.upgradeTime, upgradeLogOpenApiInfo.upgradeTime) && + Objects.equals(this.operator, upgradeLogOpenApiInfo.operator) && + Objects.equals(this.rollbacked, upgradeLogOpenApiInfo.rollbacked); + } + + @Override + public int hashCode() { + return Objects.hash(id, modelTypeInfo, siteNames, siteNum, currentVersion, targetVersion, upgradeTime, operator, rollbacked); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeLogOpenApiInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" modelTypeInfo: ").append(toIndentedString(modelTypeInfo)).append("\n"); + sb.append(" siteNames: ").append(toIndentedString(siteNames)).append("\n"); + sb.append(" siteNum: ").append(toIndentedString(siteNum)).append("\n"); + sb.append(" currentVersion: ").append(toIndentedString(currentVersion)).append("\n"); + sb.append(" targetVersion: ").append(toIndentedString(targetVersion)).append("\n"); + sb.append(" upgradeTime: ").append(toIndentedString(upgradeTime)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" rollbacked: ").append(toIndentedString(rollbacked)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeRequest.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeRequest.java new file mode 100644 index 0000000..6e31393 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeRequest.java @@ -0,0 +1,113 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpgradeRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpgradeRequest { + @JsonProperty("macs") + @Valid + private List macs = null; + + @JsonProperty("fileId") + private String fileId; + + public UpgradeRequest macs(List macs) { + this.macs = macs; + return this; + } + + public UpgradeRequest addMacsItem(String macsItem) { + if (this.macs == null) { + this.macs = new ArrayList<>(); + } + this.macs.add(macsItem); + return this; + } + + /** + * MAC list of devices + * @return macs + */ + @ApiModelProperty(value = "MAC list of devices") + + + public List getMacs() { + return macs; + } + + public void setMacs(List macs) { + this.macs = macs; + } + + public UpgradeRequest fileId(String fileId) { + this.fileId = fileId; + return this; + } + + /** + * Firmware ID for upgrade + * @return fileId + */ + @ApiModelProperty(value = "Firmware ID for upgrade") + + + public String getFileId() { + return fileId; + } + + public void setFileId(String fileId) { + this.fileId = fileId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpgradeRequest upgradeRequest = (UpgradeRequest) o; + return Objects.equals(this.macs, upgradeRequest.macs) && + Objects.equals(this.fileId, upgradeRequest.fileId); + } + + @Override + public int hashCode() { + return Objects.hash(macs, fileId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeRequest {\n"); + + sb.append(" macs: ").append(toIndentedString(macs)).append("\n"); + sb.append(" fileId: ").append(toIndentedString(fileId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeRes.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeRes.java new file mode 100644 index 0000000..fb91848 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeRes.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * UpgradeRes + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpgradeRes { + @JsonProperty("finished") + private Boolean finished; + + @JsonProperty("unfinishedCount") + private Integer unfinishedCount; + + public UpgradeRes finished(Boolean finished) { + this.finished = finished; + return this; + } + + /** + * Whether the task is complete + * @return finished + */ + @ApiModelProperty(value = "Whether the task is complete") + + + public Boolean getFinished() { + return finished; + } + + public void setFinished(Boolean finished) { + this.finished = finished; + } + + public UpgradeRes unfinishedCount(Integer unfinishedCount) { + this.unfinishedCount = unfinishedCount; + return this; + } + + /** + * Total number of devices that have not been upgraded + * @return unfinishedCount + */ + @ApiModelProperty(value = "Total number of devices that have not been upgraded") + + + public Integer getUnfinishedCount() { + return unfinishedCount; + } + + public void setUnfinishedCount(Integer unfinishedCount) { + this.unfinishedCount = unfinishedCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpgradeRes upgradeRes = (UpgradeRes) o; + return Objects.equals(this.finished, upgradeRes.finished) && + Objects.equals(this.unfinishedCount, upgradeRes.unfinishedCount); + } + + @Override + public int hashCode() { + return Objects.hash(finished, unfinishedCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeRes {\n"); + + sb.append(" finished: ").append(toIndentedString(finished)).append("\n"); + sb.append(" unfinishedCount: ").append(toIndentedString(unfinishedCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSettingTryBeta.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSettingTryBeta.java new file mode 100644 index 0000000..e7a01cc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSettingTryBeta.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * UpgradeSettingTryBeta + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpgradeSettingTryBeta { + @JsonProperty("enable") + private Boolean enable; + + public UpgradeSettingTryBeta enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Try beta switch status + * @return enable + */ + @ApiModelProperty(required = true, value = "Try beta switch status") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpgradeSettingTryBeta upgradeSettingTryBeta = (UpgradeSettingTryBeta) o; + return Objects.equals(this.enable, upgradeSettingTryBeta.enable); + } + + @Override + public int hashCode() { + return Objects.hash(enable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeSettingTryBeta {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSiteModelInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSiteModelInfo.java new file mode 100644 index 0000000..df26bff --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSiteModelInfo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpgradeSiteModelInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpgradeSiteModelInfo { + @JsonProperty("modelTypeInfos") + @Valid + private List modelTypeInfos = null; + + public UpgradeSiteModelInfo modelTypeInfos(List modelTypeInfos) { + this.modelTypeInfos = modelTypeInfos; + return this; + } + + public UpgradeSiteModelInfo addModelTypeInfosItem(ModelTypeInfoOpenApiVo modelTypeInfosItem) { + if (this.modelTypeInfos == null) { + this.modelTypeInfos = new ArrayList<>(); + } + this.modelTypeInfos.add(modelTypeInfosItem); + return this; + } + + /** + * List of model type selected by the user + * @return modelTypeInfos + */ + @ApiModelProperty(value = "List of model type selected by the user") + + @Valid + + public List getModelTypeInfos() { + return modelTypeInfos; + } + + public void setModelTypeInfos(List modelTypeInfos) { + this.modelTypeInfos = modelTypeInfos; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpgradeSiteModelInfo upgradeSiteModelInfo = (UpgradeSiteModelInfo) o; + return Objects.equals(this.modelTypeInfos, upgradeSiteModelInfo.modelTypeInfos); + } + + @Override + public int hashCode() { + return Objects.hash(modelTypeInfos); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeSiteModelInfo {\n"); + + sb.append(" modelTypeInfos: ").append(toIndentedString(modelTypeInfos)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSiteModelReqInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSiteModelReqInfo.java new file mode 100644 index 0000000..9f7b833 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeSiteModelReqInfo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpgradeSiteModelReqInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpgradeSiteModelReqInfo { + @JsonProperty("siteIds") + @Valid + private List siteIds = null; + + public UpgradeSiteModelReqInfo siteIds(List siteIds) { + this.siteIds = siteIds; + return this; + } + + public UpgradeSiteModelReqInfo addSiteIdsItem(String siteIdsItem) { + if (this.siteIds == null) { + this.siteIds = new ArrayList<>(); + } + this.siteIds.add(siteIdsItem); + return this; + } + + /** + * List collection of siteID + * @return siteIds + */ + @ApiModelProperty(value = "List collection of siteID") + + + public List getSiteIds() { + return siteIds; + } + + public void setSiteIds(List siteIds) { + this.siteIds = siteIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpgradeSiteModelReqInfo upgradeSiteModelReqInfo = (UpgradeSiteModelReqInfo) o; + return Objects.equals(this.siteIds, upgradeSiteModelReqInfo.siteIds); + } + + @Override + public int hashCode() { + return Objects.hash(siteIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeSiteModelReqInfo {\n"); + + sb.append(" siteIds: ").append(toIndentedString(siteIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeTask.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeTask.java new file mode 100644 index 0000000..e2979bd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UpgradeTask.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * UpgradeTask + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UpgradeTask { + @JsonProperty("taskId") + private String taskId; + + public UpgradeTask taskId(String taskId) { + this.taskId = taskId; + return this; + } + + /** + * Task ID + * @return taskId + */ + @ApiModelProperty(value = "Task ID") + + + public String getTaskId() { + return taskId; + } + + public void setTaskId(String taskId) { + this.taskId = taskId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpgradeTask upgradeTask = (UpgradeTask) o; + return Objects.equals(this.taskId, upgradeTask.taskId); + } + + @Override + public int hashCode() { + return Objects.hash(taskId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeTask {\n"); + + sb.append(" taskId: ").append(toIndentedString(taskId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UploadFirmwareResInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UploadFirmwareResInfo.java new file mode 100644 index 0000000..aee8be5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/device/model/UploadFirmwareResInfo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.device.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * UploadFirmwareResInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:26:25.576+08:00[Asia/Shanghai]") + +public class UploadFirmwareResInfo { + @JsonProperty("id") + private String id; + + public UploadFirmwareResInfo id(String id) { + this.id = id; + return this; + } + + /** + * The ID returned from uploading the upgrade file. + * @return id + */ + @ApiModelProperty(value = "The ID returned from uploading the upgrade file.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UploadFirmwareResInfo uploadFirmwareResInfo = (UploadFirmwareResInfo) o; + return Objects.equals(this.id, uploadFirmwareResInfo.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UploadFirmwareResInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaDeviceManagementSettingApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaDeviceManagementSettingApi.java new file mode 100644 index 0000000..a7f2f9a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaDeviceManagementSettingApi.java @@ -0,0 +1,62 @@ +package org.wfc.omada.api.globalsetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.globalsetting.model.DeviceAccessManagementSetting; +import org.wfc.omada.api.globalsetting.model.OperationResponseDeviceAccessManagementSetting; +import org.wfc.omada.api.globalsetting.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:47.026+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaDeviceManagementSetting", description = "the OmadaDeviceManagementSetting API") +@FeignClient(name="OmadaDeviceManagementSettingApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaDeviceManagementSettingApi { + + /** + * GET /openapi/v1/{omadacId}/device-mgmt : Get device access management setting + * Get device access management setting.<br/><br/>The interface requires one of the permissions: <br/>Global Other Setting View Only + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get device access management setting", nickname = "getDeviceAccessMgmtSetting", notes = "Get device access management setting.

The interface requires one of the permissions:
Global Other Setting View Only", response = OperationResponseDeviceAccessManagementSetting.class, tags={ "Omada/Device Management Setting","Device Management Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDeviceAccessManagementSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/device-mgmt", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getDeviceAccessMgmtSetting(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * PATCH /openapi/v1/{omadacId}/device-mgmt : Modify device access management setting + * Modify device access management setting.<br/><br/>The interface requires one of the permissions: <br/>Global Other Setting Modify + * + * @param omadacId Omada ID (required) + * @param deviceAccessManagementSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify device access management setting", nickname = "modifyDeviceAccessMgmtSetting", notes = "Modify device access management setting.

The interface requires one of the permissions:
Global Other Setting Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Device Management Setting","Device Management Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/device-mgmt", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyDeviceAccessMgmtSetting(@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeviceAccessManagementSetting deviceAccessManagementSetting); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaLicenseApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaLicenseApi.java new file mode 100644 index 0000000..dee713e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaLicenseApi.java @@ -0,0 +1,154 @@ +package org.wfc.omada.api.globalsetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.globalsetting.model.LicenseAutoActiveOpenApiVo; +import org.wfc.omada.api.globalsetting.model.LicenseAutoRenewOpenApiVo; +import org.wfc.omada.api.globalsetting.model.LicenseBindAvailableNumOpenApiVo; +import org.wfc.omada.api.globalsetting.model.OperationResponseLicenseAutoActiveOpenApiVo; +import org.wfc.omada.api.globalsetting.model.OperationResponseLicenseAutoRenewOpenApiVo; +import org.wfc.omada.api.globalsetting.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:47.026+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaLicense", description = "the OmadaLicense API") +@FeignClient(name="OmadaLicenseApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaLicenseApi { + + /** + * GET /openapi/v1/{omadacId}/license/auto-active : Get license auto active + * Get license auto active.<br/><br/>The interface requires one of the permissions: <br/>Global License Manager View Only + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get license auto active", nickname = "getAutoActive", notes = "Get license auto active.

The interface requires one of the permissions:
Global License Manager View Only", response = OperationResponseLicenseAutoActiveOpenApiVo.class, tags={ "Omada/License","License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLicenseAutoActiveOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/license/auto-active", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAutoActive(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/license/auto-renew : Get license auto renew + * Get license auto renew.<br/><br/>The interface requires one of the permissions: <br/>Global License Manager View Only + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get license auto renew", nickname = "getAutoRenew", notes = "Get license auto renew.

The interface requires one of the permissions:
Global License Manager View Only", response = OperationResponseLicenseAutoRenewOpenApiVo.class, tags={ "Omada/License","License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLicenseAutoRenewOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/license/auto-renew", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAutoRenew(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/licenses/available-license : Get available license num + * Get available license number of the specified device category<br/><br/>The interface requires one of the permissions: <br/>Global License Manager View Only<br/>Site Bind/Unbind License Manager View Only + * + * @param omadacId Omada ID (required) + * @param category It should be a value as follows: basic; ap; l2Switch; l3Switch; gateway (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get available license num", nickname = "getLicenseNumByCategory", notes = "Get available license number of the specified device category

The interface requires one of the permissions:
Global License Manager View Only
Site Bind/Unbind License Manager View Only", response = LicenseBindAvailableNumOpenApiVo.class, tags={ "Omada/License","License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = LicenseBindAvailableNumOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/licenses/available-license", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLicenseNumByCategory(@NotNull @ApiParam(value = "It should be a value as follows: basic; ap; l2Switch; l3Switch; gateway", required = true) @Valid @RequestParam(value = "category", required = true) String category); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/license/auto-renew : Get site license auto renew + * Get site license auto renew.<br/><br/>The interface requires one of the permissions: <br/>Global License Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site license auto renew", nickname = "getSiteAutoRenew", notes = "Get site license auto renew.

The interface requires one of the permissions:
Global License Manager View Only", response = OperationResponseLicenseAutoRenewOpenApiVo.class, tags={ "Omada/License","License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLicenseAutoRenewOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/license/auto-renew", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteAutoRenew(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * POST /openapi/v1/{omadacId}/license/auto-active : Modify license auto active + * Modify license auto active.<br/><br/>The interface requires one of the permissions: <br/>Site Bind/Unbind License Manager Modify + * + * @param omadacId Omada ID (required) + * @param licenseAutoActiveOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify license auto active", nickname = "modifyAutoActive", notes = "Modify license auto active.

The interface requires one of the permissions:
Site Bind/Unbind License Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/License","License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/license/auto-active", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity modifyAutoActive(@ApiParam(value = "" ) @Valid @RequestBody(required = false) LicenseAutoActiveOpenApiVo licenseAutoActiveOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/license/auto-renew : Modify license auto renew + * Modify license auto renew.<br/><br/>The interface requires one of the permissions: <br/>Site Bind/Unbind License Manager Modify + * + * @param omadacId Omada ID (required) + * @param licenseAutoRenewOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify license auto renew", nickname = "modifyAutoRenew", notes = "Modify license auto renew.

The interface requires one of the permissions:
Site Bind/Unbind License Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/License","License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/license/auto-renew", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity modifyAutoRenew(@ApiParam(value = "" ) @Valid @RequestBody(required = false) LicenseAutoRenewOpenApiVo licenseAutoRenewOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/license/auto-renew : Modify site license auto renew + * Modify site license auto renew.<br/><br/>The interface requires one of the permissions: <br/>Site Bind/Unbind License Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param licenseAutoRenewOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site license auto renew", nickname = "modifySiteAutoRenew", notes = "Modify site license auto renew.

The interface requires one of the permissions:
Site Bind/Unbind License Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/License","License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/license/auto-renew", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity modifySiteAutoRenew(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LicenseAutoRenewOpenApiVo licenseAutoRenewOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaWebhookSettingApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaWebhookSettingApi.java new file mode 100644 index 0000000..c14939c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/OmadaWebhookSettingApi.java @@ -0,0 +1,143 @@ +package org.wfc.omada.api.globalsetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.globalsetting.model.OpenApiWebhookSettingAddVo; +import org.wfc.omada.api.globalsetting.model.OpenApiWebhookSettingEditVo; +import org.wfc.omada.api.globalsetting.model.OpenApiWebhookSettingTestVo; +import org.wfc.omada.api.globalsetting.model.OperationResponseGridVoOpenApiWebhookDispatchLogVo; +import org.wfc.omada.api.globalsetting.model.OperationResponseListWebhookSetting; +import org.wfc.omada.api.globalsetting.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:47.026+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaWebhookSetting", description = "the OmadaWebhookSetting API") +@FeignClient(name="OmadaWebhookSettingApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaWebhookSettingApi { + + /** + * POST /openapi/v1/{omadacId}/webhook/settings : Create global webhook setting + * Create global webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.<br/><br/>The interface requires one of the permissions: <br/>Global Webhook Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44200 - The number of webhooks has reached the limit.<br/>-44201 - This webhook name already exists.<br/>-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated. + * + * @param omadacId Omada ID (required) + * @param openApiWebhookSettingAddVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create global webhook setting", nickname = "createWebhookForGlobal", notes = "Create global webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.

The interface requires one of the permissions:
Global Webhook Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44200 - The number of webhooks has reached the limit.
-44201 - This webhook name already exists.
-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated.", response = OperationResponseWithoutResult.class, tags={ "Omada/Webhook Setting","Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/webhook/settings", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createWebhookForGlobal(@ApiParam(value = "" ) @Valid @RequestBody(required = false) OpenApiWebhookSettingAddVo openApiWebhookSettingAddVo); + + + /** + * DELETE /openapi/v1/{omadacId}/webhook/settings/{webhookId} : Delete global webhook setting + * Delete global webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.<br/><br/>The interface requires one of the permissions: <br/>Global Webhook Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44202 - This webhook entry does not exist. + * + * @param omadacId Omada ID (required) + * @param webhookId webhook ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete global webhook setting", nickname = "deleteWebhookForGlobal", notes = "Delete global webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.

The interface requires one of the permissions:
Global Webhook Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44202 - This webhook entry does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Webhook Setting","Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/webhook/settings/{webhookId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteWebhookForGlobal(@ApiParam(value = "webhook ID",required=true) @PathVariable("webhookId") String webhookId); + + + /** + * GET /openapi/v1/{omadacId}/webhook/settings : Get global webhook setting list. + * Get all global webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.<br/><br/>The interface requires one of the permissions: <br/>Global Webhook Manager View Only + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get global webhook setting list.", nickname = "getWebhookForGlobal", notes = "Get all global webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.

The interface requires one of the permissions:
Global Webhook Manager View Only", response = OperationResponseListWebhookSetting.class, tags={ "Omada/Webhook Setting","Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListWebhookSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/webhook/settings", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWebhookForGlobal(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/webhook/settings/dispatch-logs : Get global webhook dispatch log list + * Get global webhook dispatch log list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.<br/><br/>The interface requires one of the permissions: <br/>Global Webhook Manager View Only + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param filtersWebhookId Filter query parameters, support field d66aed17ea7238154ba610710d9a2890 (required) + * @param filtersTimeStart Filter query parameters, support field 1679297710438 (required) + * @param filtersTimeEnd Filter query parameters, support field 1681889710438 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get global webhook dispatch log list", nickname = "getWebhookLogsForGlobal", notes = "Get global webhook dispatch log list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.

The interface requires one of the permissions:
Global Webhook Manager View Only", response = OperationResponseGridVoOpenApiWebhookDispatchLogVo.class, tags={ "Omada/Webhook Setting","Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoOpenApiWebhookDispatchLogVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/webhook/settings/dispatch-logs", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWebhookLogsForGlobal(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@NotNull @ApiParam(value = "Filter query parameters, support field d66aed17ea7238154ba610710d9a2890", required = true) @Valid @RequestParam(value = "filters.webhookId", required = true) String filtersWebhookId,@NotNull @ApiParam(value = "Filter query parameters, support field 1679297710438", required = true) @Valid @RequestParam(value = "filters.timeStart", required = true) Long filtersTimeStart,@NotNull @ApiParam(value = "Filter query parameters, support field 1681889710438", required = true) @Valid @RequestParam(value = "filters.timeEnd", required = true) Long filtersTimeEnd); + + + /** + * PATCH /openapi/v1/{omadacId}/webhook/settings/{webhookId} : Modify global webhook setting + * Modify global webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.<br/><br/>The interface requires one of the permissions: <br/>Global Webhook Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44202 - This webhook entry does not exist.<br/>-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated. + * + * @param omadacId Omada ID (required) + * @param webhookId webhook ID (required) + * @param openApiWebhookSettingEditVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify global webhook setting", nickname = "modifyWebhookForGlobal", notes = "Modify global webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.

The interface requires one of the permissions:
Global Webhook Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44202 - This webhook entry does not exist.
-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated.", response = OperationResponseWithoutResult.class, tags={ "Omada/Webhook Setting","Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/webhook/settings/{webhookId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyWebhookForGlobal(@ApiParam(value = "webhook ID",required=true) @PathVariable("webhookId") String webhookId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OpenApiWebhookSettingEditVo openApiWebhookSettingEditVo); + + + /** + * POST /openapi/v1/{omadacId}/webhook/settings/{webhookId} : Test global webhook setting + * Test global webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.<br/><br/>The interface requires one of the permissions: <br/>Global Webhook Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated. + * + * @param omadacId Omada ID (required) + * @param webhookId webhook ID (required) + * @param openApiWebhookSettingTestVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Test global webhook setting", nickname = "testWebhookForGlobal", notes = "Test global webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.The template of webhook message is display at Open API Access Guide#5.3.1 Webhook Message Template.

The interface requires one of the permissions:
Global Webhook Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated.", response = OperationResponseWithoutResult.class, tags={ "Omada/Webhook Setting","Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/webhook/settings/{webhookId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity testWebhookForGlobal(@ApiParam(value = "webhook ID",required=true) @PathVariable("webhookId") String webhookId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OpenApiWebhookSettingTestVo openApiWebhookSettingTestVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/DeviceAccessManagementSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/DeviceAccessManagementSetting.java new file mode 100644 index 0000000..7590005 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/DeviceAccessManagementSetting.java @@ -0,0 +1,132 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Device Access Management Setting. + */ +@ApiModel(description = "Device Access Management Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class DeviceAccessManagementSetting { + @JsonProperty("webControlHttp") + private Boolean webControlHttp; + + @JsonProperty("webControlHttps") + private Boolean webControlHttps; + + @JsonProperty("appDiscovery") + private Boolean appDiscovery; + + public DeviceAccessManagementSetting webControlHttp(Boolean webControlHttp) { + this.webControlHttp = webControlHttp; + return this; + } + + /** + * Control device web http accessing. + * @return webControlHttp + */ + @ApiModelProperty(required = true, value = "Control device web http accessing.") + @NotNull + + + public Boolean getWebControlHttp() { + return webControlHttp; + } + + public void setWebControlHttp(Boolean webControlHttp) { + this.webControlHttp = webControlHttp; + } + + public DeviceAccessManagementSetting webControlHttps(Boolean webControlHttps) { + this.webControlHttps = webControlHttps; + return this; + } + + /** + * Control device web https accessing. + * @return webControlHttps + */ + @ApiModelProperty(required = true, value = "Control device web https accessing.") + @NotNull + + + public Boolean getWebControlHttps() { + return webControlHttps; + } + + public void setWebControlHttps(Boolean webControlHttps) { + this.webControlHttps = webControlHttps; + } + + public DeviceAccessManagementSetting appDiscovery(Boolean appDiscovery) { + this.appDiscovery = appDiscovery; + return this; + } + + /** + * Control device app discovery, bind with device web https access, if appDiscvoery is enabled, webControlHttps must be enabled. + * @return appDiscovery + */ + @ApiModelProperty(required = true, value = "Control device app discovery, bind with device web https access, if appDiscvoery is enabled, webControlHttps must be enabled.") + @NotNull + + + public Boolean getAppDiscovery() { + return appDiscovery; + } + + public void setAppDiscovery(Boolean appDiscovery) { + this.appDiscovery = appDiscovery; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceAccessManagementSetting deviceAccessManagementSetting = (DeviceAccessManagementSetting) o; + return Objects.equals(this.webControlHttp, deviceAccessManagementSetting.webControlHttp) && + Objects.equals(this.webControlHttps, deviceAccessManagementSetting.webControlHttps) && + Objects.equals(this.appDiscovery, deviceAccessManagementSetting.appDiscovery); + } + + @Override + public int hashCode() { + return Objects.hash(webControlHttp, webControlHttps, appDiscovery); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceAccessManagementSetting {\n"); + + sb.append(" webControlHttp: ").append(toIndentedString(webControlHttp)).append("\n"); + sb.append(" webControlHttps: ").append(toIndentedString(webControlHttps)).append("\n"); + sb.append(" appDiscovery: ").append(toIndentedString(appDiscovery)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/GridVoOpenApiWebhookDispatchLogVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/GridVoOpenApiWebhookDispatchLogVo.java new file mode 100644 index 0000000..2c94430 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/GridVoOpenApiWebhookDispatchLogVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoOpenApiWebhookDispatchLogVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class GridVoOpenApiWebhookDispatchLogVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoOpenApiWebhookDispatchLogVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoOpenApiWebhookDispatchLogVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoOpenApiWebhookDispatchLogVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoOpenApiWebhookDispatchLogVo data(List data) { + this.data = data; + return this; + } + + public GridVoOpenApiWebhookDispatchLogVo addDataItem(OpenApiWebhookDispatchLogVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoOpenApiWebhookDispatchLogVo gridVoOpenApiWebhookDispatchLogVo = (GridVoOpenApiWebhookDispatchLogVo) o; + return Objects.equals(this.totalRows, gridVoOpenApiWebhookDispatchLogVo.totalRows) && + Objects.equals(this.currentPage, gridVoOpenApiWebhookDispatchLogVo.currentPage) && + Objects.equals(this.currentSize, gridVoOpenApiWebhookDispatchLogVo.currentSize) && + Objects.equals(this.data, gridVoOpenApiWebhookDispatchLogVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoOpenApiWebhookDispatchLogVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseAutoActiveOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseAutoActiveOpenApiVo.java new file mode 100644 index 0000000..3ce3774 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseAutoActiveOpenApiVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * LicenseAutoActiveOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class LicenseAutoActiveOpenApiVo { + @JsonProperty("autoActive") + private Boolean autoActive; + + public LicenseAutoActiveOpenApiVo autoActive(Boolean autoActive) { + this.autoActive = autoActive; + return this; + } + + /** + * Get autoActive + * @return autoActive + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getAutoActive() { + return autoActive; + } + + public void setAutoActive(Boolean autoActive) { + this.autoActive = autoActive; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseAutoActiveOpenApiVo licenseAutoActiveOpenApiVo = (LicenseAutoActiveOpenApiVo) o; + return Objects.equals(this.autoActive, licenseAutoActiveOpenApiVo.autoActive); + } + + @Override + public int hashCode() { + return Objects.hash(autoActive); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseAutoActiveOpenApiVo {\n"); + + sb.append(" autoActive: ").append(toIndentedString(autoActive)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseAutoRenewOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseAutoRenewOpenApiVo.java new file mode 100644 index 0000000..c0ddc63 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseAutoRenewOpenApiVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * LicenseAutoRenewOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class LicenseAutoRenewOpenApiVo { + @JsonProperty("autoRenew") + private Boolean autoRenew; + + public LicenseAutoRenewOpenApiVo autoRenew(Boolean autoRenew) { + this.autoRenew = autoRenew; + return this; + } + + /** + * Auto-Renewal,the licenses for active devices will be automatically renewed when they expire. + * @return autoRenew + */ + @ApiModelProperty(required = true, value = "Auto-Renewal,the licenses for active devices will be automatically renewed when they expire.") + @NotNull + + + public Boolean getAutoRenew() { + return autoRenew; + } + + public void setAutoRenew(Boolean autoRenew) { + this.autoRenew = autoRenew; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseAutoRenewOpenApiVo licenseAutoRenewOpenApiVo = (LicenseAutoRenewOpenApiVo) o; + return Objects.equals(this.autoRenew, licenseAutoRenewOpenApiVo.autoRenew); + } + + @Override + public int hashCode() { + return Objects.hash(autoRenew); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseAutoRenewOpenApiVo {\n"); + + sb.append(" autoRenew: ").append(toIndentedString(autoRenew)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseBindAvailableNumOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseBindAvailableNumOpenApiVo.java new file mode 100644 index 0000000..a8ff2bb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/LicenseBindAvailableNumOpenApiVo.java @@ -0,0 +1,251 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * LicenseBindAvailableNumOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class LicenseBindAvailableNumOpenApiVo { + @JsonProperty("trial") + private Integer trial; + + @JsonProperty("others") + private Integer others; + + @JsonProperty("permanent") + private Integer permanent; + + @JsonProperty("1year") + private Integer _1year; + + @JsonProperty("2years") + private Integer _2years; + + @JsonProperty("3years") + private Integer _3years; + + @JsonProperty("4years") + private Integer _4years; + + @JsonProperty("5years") + private Integer _5years; + + public LicenseBindAvailableNumOpenApiVo trial(Integer trial) { + this.trial = trial; + return this; + } + + /** + * trial license num + * @return trial + */ + @ApiModelProperty(value = "trial license num") + + + public Integer getTrial() { + return trial; + } + + public void setTrial(Integer trial) { + this.trial = trial; + } + + public LicenseBindAvailableNumOpenApiVo others(Integer others) { + this.others = others; + return this; + } + + /** + * Used license num + * @return others + */ + @ApiModelProperty(value = "Used license num") + + + public Integer getOthers() { + return others; + } + + public void setOthers(Integer others) { + this.others = others; + } + + public LicenseBindAvailableNumOpenApiVo permanent(Integer permanent) { + this.permanent = permanent; + return this; + } + + /** + * Get permanent + * @return permanent + */ + @ApiModelProperty(value = "") + + + public Integer getPermanent() { + return permanent; + } + + public void setPermanent(Integer permanent) { + this.permanent = permanent; + } + + public LicenseBindAvailableNumOpenApiVo _1year(Integer _1year) { + this._1year = _1year; + return this; + } + + /** + * 1year license num + * @return _1year + */ + @ApiModelProperty(value = "1year license num") + + + public Integer get1year() { + return _1year; + } + + public void set1year(Integer _1year) { + this._1year = _1year; + } + + public LicenseBindAvailableNumOpenApiVo _2years(Integer _2years) { + this._2years = _2years; + return this; + } + + /** + * 2years license num + * @return _2years + */ + @ApiModelProperty(value = "2years license num") + + + public Integer get2years() { + return _2years; + } + + public void set2years(Integer _2years) { + this._2years = _2years; + } + + public LicenseBindAvailableNumOpenApiVo _3years(Integer _3years) { + this._3years = _3years; + return this; + } + + /** + * 3years license num + * @return _3years + */ + @ApiModelProperty(value = "3years license num") + + + public Integer get3years() { + return _3years; + } + + public void set3years(Integer _3years) { + this._3years = _3years; + } + + public LicenseBindAvailableNumOpenApiVo _4years(Integer _4years) { + this._4years = _4years; + return this; + } + + /** + * 4years license num + * @return _4years + */ + @ApiModelProperty(value = "4years license num") + + + public Integer get4years() { + return _4years; + } + + public void set4years(Integer _4years) { + this._4years = _4years; + } + + public LicenseBindAvailableNumOpenApiVo _5years(Integer _5years) { + this._5years = _5years; + return this; + } + + /** + * 5years license num + * @return _5years + */ + @ApiModelProperty(value = "5years license num") + + + public Integer get5years() { + return _5years; + } + + public void set5years(Integer _5years) { + this._5years = _5years; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseBindAvailableNumOpenApiVo licenseBindAvailableNumOpenApiVo = (LicenseBindAvailableNumOpenApiVo) o; + return Objects.equals(this.trial, licenseBindAvailableNumOpenApiVo.trial) && + Objects.equals(this.others, licenseBindAvailableNumOpenApiVo.others) && + Objects.equals(this.permanent, licenseBindAvailableNumOpenApiVo.permanent) && + Objects.equals(this._1year, licenseBindAvailableNumOpenApiVo._1year) && + Objects.equals(this._2years, licenseBindAvailableNumOpenApiVo._2years) && + Objects.equals(this._3years, licenseBindAvailableNumOpenApiVo._3years) && + Objects.equals(this._4years, licenseBindAvailableNumOpenApiVo._4years) && + Objects.equals(this._5years, licenseBindAvailableNumOpenApiVo._5years); + } + + @Override + public int hashCode() { + return Objects.hash(trial, others, permanent, _1year, _2years, _3years, _4years, _5years); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseBindAvailableNumOpenApiVo {\n"); + + sb.append(" trial: ").append(toIndentedString(trial)).append("\n"); + sb.append(" others: ").append(toIndentedString(others)).append("\n"); + sb.append(" permanent: ").append(toIndentedString(permanent)).append("\n"); + sb.append(" _1year: ").append(toIndentedString(_1year)).append("\n"); + sb.append(" _2years: ").append(toIndentedString(_2years)).append("\n"); + sb.append(" _3years: ").append(toIndentedString(_3years)).append("\n"); + sb.append(" _4years: ").append(toIndentedString(_4years)).append("\n"); + sb.append(" _5years: ").append(toIndentedString(_5years)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiDispatchLogDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiDispatchLogDetailVo.java new file mode 100644 index 0000000..416bf62 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiDispatchLogDetailVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Dispatch Log Detail + */ +@ApiModel(description = "Dispatch Log Detail") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OpenApiDispatchLogDetailVo { + @JsonProperty("headers") + private String headers; + + @JsonProperty("content") + private String content; + + @JsonProperty("attemptNumber") + private Integer attemptNumber; + + public OpenApiDispatchLogDetailVo headers(String headers) { + this.headers = headers; + return this; + } + + /** + * Http Headers of Webhook Push + * @return headers + */ + @ApiModelProperty(value = "Http Headers of Webhook Push") + + + public String getHeaders() { + return headers; + } + + public void setHeaders(String headers) { + this.headers = headers; + } + + public OpenApiDispatchLogDetailVo content(String content) { + this.content = content; + return this; + } + + /** + * Webhook Push Content + * @return content + */ + @ApiModelProperty(value = "Webhook Push Content") + + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public OpenApiDispatchLogDetailVo attemptNumber(Integer attemptNumber) { + this.attemptNumber = attemptNumber; + return this; + } + + /** + * Webhook Attempt Number + * @return attemptNumber + */ + @ApiModelProperty(value = "Webhook Attempt Number") + + + public Integer getAttemptNumber() { + return attemptNumber; + } + + public void setAttemptNumber(Integer attemptNumber) { + this.attemptNumber = attemptNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiDispatchLogDetailVo openApiDispatchLogDetailVo = (OpenApiDispatchLogDetailVo) o; + return Objects.equals(this.headers, openApiDispatchLogDetailVo.headers) && + Objects.equals(this.content, openApiDispatchLogDetailVo.content) && + Objects.equals(this.attemptNumber, openApiDispatchLogDetailVo.attemptNumber); + } + + @Override + public int hashCode() { + return Objects.hash(headers, content, attemptNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiDispatchLogDetailVo {\n"); + + sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" attemptNumber: ").append(toIndentedString(attemptNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookAttemptMessageVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookAttemptMessageVo.java new file mode 100644 index 0000000..872cfad --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookAttemptMessageVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Attempt Message of Dispatch Log Detail + */ +@ApiModel(description = "Attempt Message of Dispatch Log Detail") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OpenApiWebhookAttemptMessageVo { + @JsonProperty("status") + private Integer status; + + @JsonProperty("messageCode") + private Integer messageCode; + + @JsonProperty("attemptTime") + private Long attemptTime; + + public OpenApiWebhookAttemptMessageVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Webhook Attempt Push Status: 0/1 (Success/Failed) + * @return status + */ + @ApiModelProperty(value = "Webhook Attempt Push Status: 0/1 (Success/Failed)") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public OpenApiWebhookAttemptMessageVo messageCode(Integer messageCode) { + this.messageCode = messageCode; + return this; + } + + /** + * Http Message Code of Webhook Attempt Push + * @return messageCode + */ + @ApiModelProperty(value = "Http Message Code of Webhook Attempt Push") + + + public Integer getMessageCode() { + return messageCode; + } + + public void setMessageCode(Integer messageCode) { + this.messageCode = messageCode; + } + + public OpenApiWebhookAttemptMessageVo attemptTime(Long attemptTime) { + this.attemptTime = attemptTime; + return this; + } + + /** + * Webhook Attempt Push Time, Unit (ms) + * @return attemptTime + */ + @ApiModelProperty(value = "Webhook Attempt Push Time, Unit (ms)") + + + public Long getAttemptTime() { + return attemptTime; + } + + public void setAttemptTime(Long attemptTime) { + this.attemptTime = attemptTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookAttemptMessageVo openApiWebhookAttemptMessageVo = (OpenApiWebhookAttemptMessageVo) o; + return Objects.equals(this.status, openApiWebhookAttemptMessageVo.status) && + Objects.equals(this.messageCode, openApiWebhookAttemptMessageVo.messageCode) && + Objects.equals(this.attemptTime, openApiWebhookAttemptMessageVo.attemptTime); + } + + @Override + public int hashCode() { + return Objects.hash(status, messageCode, attemptTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookAttemptMessageVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" messageCode: ").append(toIndentedString(messageCode)).append("\n"); + sb.append(" attemptTime: ").append(toIndentedString(attemptTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookDispatchLogVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookDispatchLogVo.java new file mode 100644 index 0000000..2f7a960 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookDispatchLogVo.java @@ -0,0 +1,141 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OpenApiWebhookDispatchLogVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OpenApiWebhookDispatchLogVo { + @JsonProperty("dispatchMessage") + private OpenApiWebhookLogMessageVo dispatchMessage; + + @JsonProperty("dispatchDetail") + private OpenApiDispatchLogDetailVo dispatchDetail; + + @JsonProperty("attemptMessages") + @Valid + private List attemptMessages = null; + + public OpenApiWebhookDispatchLogVo dispatchMessage(OpenApiWebhookLogMessageVo dispatchMessage) { + this.dispatchMessage = dispatchMessage; + return this; + } + + /** + * Get dispatchMessage + * @return dispatchMessage + */ + @ApiModelProperty(value = "") + + @Valid + + public OpenApiWebhookLogMessageVo getDispatchMessage() { + return dispatchMessage; + } + + public void setDispatchMessage(OpenApiWebhookLogMessageVo dispatchMessage) { + this.dispatchMessage = dispatchMessage; + } + + public OpenApiWebhookDispatchLogVo dispatchDetail(OpenApiDispatchLogDetailVo dispatchDetail) { + this.dispatchDetail = dispatchDetail; + return this; + } + + /** + * Get dispatchDetail + * @return dispatchDetail + */ + @ApiModelProperty(value = "") + + @Valid + + public OpenApiDispatchLogDetailVo getDispatchDetail() { + return dispatchDetail; + } + + public void setDispatchDetail(OpenApiDispatchLogDetailVo dispatchDetail) { + this.dispatchDetail = dispatchDetail; + } + + public OpenApiWebhookDispatchLogVo attemptMessages(List attemptMessages) { + this.attemptMessages = attemptMessages; + return this; + } + + public OpenApiWebhookDispatchLogVo addAttemptMessagesItem(OpenApiWebhookAttemptMessageVo attemptMessagesItem) { + if (this.attemptMessages == null) { + this.attemptMessages = new ArrayList<>(); + } + this.attemptMessages.add(attemptMessagesItem); + return this; + } + + /** + * Attempt Message of Dispatch Log Detail + * @return attemptMessages + */ + @ApiModelProperty(value = "Attempt Message of Dispatch Log Detail") + + @Valid + + public List getAttemptMessages() { + return attemptMessages; + } + + public void setAttemptMessages(List attemptMessages) { + this.attemptMessages = attemptMessages; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookDispatchLogVo openApiWebhookDispatchLogVo = (OpenApiWebhookDispatchLogVo) o; + return Objects.equals(this.dispatchMessage, openApiWebhookDispatchLogVo.dispatchMessage) && + Objects.equals(this.dispatchDetail, openApiWebhookDispatchLogVo.dispatchDetail) && + Objects.equals(this.attemptMessages, openApiWebhookDispatchLogVo.attemptMessages); + } + + @Override + public int hashCode() { + return Objects.hash(dispatchMessage, dispatchDetail, attemptMessages); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookDispatchLogVo {\n"); + + sb.append(" dispatchMessage: ").append(toIndentedString(dispatchMessage)).append("\n"); + sb.append(" dispatchDetail: ").append(toIndentedString(dispatchDetail)).append("\n"); + sb.append(" attemptMessages: ").append(toIndentedString(attemptMessages)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookLogMessageVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookLogMessageVo.java new file mode 100644 index 0000000..4e40055 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookLogMessageVo.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Dispatch Log Message + */ +@ApiModel(description = "Dispatch Log Message") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OpenApiWebhookLogMessageVo { + @JsonProperty("url") + private String url; + + @JsonProperty("webhookMessage") + private OpenApiWebhookMessageVo webhookMessage; + + @JsonProperty("dispatchTime") + private Long dispatchTime; + + public OpenApiWebhookLogMessageVo url(String url) { + this.url = url; + return this; + } + + /** + * Webhook URL + * @return url + */ + @ApiModelProperty(value = "Webhook URL") + + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public OpenApiWebhookLogMessageVo webhookMessage(OpenApiWebhookMessageVo webhookMessage) { + this.webhookMessage = webhookMessage; + return this; + } + + /** + * Get webhookMessage + * @return webhookMessage + */ + @ApiModelProperty(value = "") + + @Valid + + public OpenApiWebhookMessageVo getWebhookMessage() { + return webhookMessage; + } + + public void setWebhookMessage(OpenApiWebhookMessageVo webhookMessage) { + this.webhookMessage = webhookMessage; + } + + public OpenApiWebhookLogMessageVo dispatchTime(Long dispatchTime) { + this.dispatchTime = dispatchTime; + return this; + } + + /** + * Webhook Dispatch Log Time, Unit (ms) + * @return dispatchTime + */ + @ApiModelProperty(value = "Webhook Dispatch Log Time, Unit (ms)") + + + public Long getDispatchTime() { + return dispatchTime; + } + + public void setDispatchTime(Long dispatchTime) { + this.dispatchTime = dispatchTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookLogMessageVo openApiWebhookLogMessageVo = (OpenApiWebhookLogMessageVo) o; + return Objects.equals(this.url, openApiWebhookLogMessageVo.url) && + Objects.equals(this.webhookMessage, openApiWebhookLogMessageVo.webhookMessage) && + Objects.equals(this.dispatchTime, openApiWebhookLogMessageVo.dispatchTime); + } + + @Override + public int hashCode() { + return Objects.hash(url, webhookMessage, dispatchTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookLogMessageVo {\n"); + + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" webhookMessage: ").append(toIndentedString(webhookMessage)).append("\n"); + sb.append(" dispatchTime: ").append(toIndentedString(dispatchTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookMessageVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookMessageVo.java new file mode 100644 index 0000000..994e223 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookMessageVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Webhook Message + */ +@ApiModel(description = "Webhook Message") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OpenApiWebhookMessageVo { + @JsonProperty("status") + private Integer status; + + @JsonProperty("messageCode") + private Integer messageCode; + + public OpenApiWebhookMessageVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Webhook Push Status. It should be a value as follows: 0: Success; 1: Failed + * @return status + */ + @ApiModelProperty(value = "Webhook Push Status. It should be a value as follows: 0: Success; 1: Failed") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public OpenApiWebhookMessageVo messageCode(Integer messageCode) { + this.messageCode = messageCode; + return this; + } + + /** + * Http Message Code of Webhook Push + * @return messageCode + */ + @ApiModelProperty(value = "Http Message Code of Webhook Push") + + + public Integer getMessageCode() { + return messageCode; + } + + public void setMessageCode(Integer messageCode) { + this.messageCode = messageCode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookMessageVo openApiWebhookMessageVo = (OpenApiWebhookMessageVo) o; + return Objects.equals(this.status, openApiWebhookMessageVo.status) && + Objects.equals(this.messageCode, openApiWebhookMessageVo.messageCode); + } + + @Override + public int hashCode() { + return Objects.hash(status, messageCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookMessageVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" messageCode: ").append(toIndentedString(messageCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingAddVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingAddVo.java new file mode 100644 index 0000000..365cd23 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingAddVo.java @@ -0,0 +1,189 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OpenApiWebhookSettingAddVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OpenApiWebhookSettingAddVo { + @JsonProperty("name") + private String name; + + @JsonProperty("urlList") + @Valid + private List urlList = new ArrayList<>(); + + @JsonProperty("retryPolicy") + private Integer retryPolicy; + + @JsonProperty("shardedSecret") + private String shardedSecret; + + @JsonProperty("template") + private Integer template; + + public OpenApiWebhookSettingAddVo name(String name) { + this.name = name; + return this; + } + + /** + * Webhook name. It should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Webhook name. It should contain 1 to 128 characters.") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OpenApiWebhookSettingAddVo urlList(List urlList) { + this.urlList = urlList; + return this; + } + + public OpenApiWebhookSettingAddVo addUrlListItem(String urlListItem) { + this.urlList.add(urlListItem); + return this; + } + + /** + * Webhook URL List. Up to 3 entries are allowed for the URL list + * @return urlList + */ + @ApiModelProperty(required = true, value = "Webhook URL List. Up to 3 entries are allowed for the URL list") + @NotNull + + + public List getUrlList() { + return urlList; + } + + public void setUrlList(List urlList) { + this.urlList = urlList; + } + + public OpenApiWebhookSettingAddVo retryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours) + * @return retryPolicy + */ + @ApiModelProperty(required = true, value = "Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours)") + @NotNull + + + public Integer getRetryPolicy() { + return retryPolicy; + } + + public void setRetryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + } + + public OpenApiWebhookSettingAddVo shardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + return this; + } + + /** + * Webhook Sharded Secret. It should contain 0 to 128 characters. + * @return shardedSecret + */ + @ApiModelProperty(value = "Webhook Sharded Secret. It should contain 0 to 128 characters.") + + + public String getShardedSecret() { + return shardedSecret; + } + + public void setShardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + } + + public OpenApiWebhookSettingAddVo template(Integer template) { + this.template = template; + return this; + } + + /** + * Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. + * @return template + */ + @ApiModelProperty(value = "Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. ") + + + public Integer getTemplate() { + return template; + } + + public void setTemplate(Integer template) { + this.template = template; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookSettingAddVo openApiWebhookSettingAddVo = (OpenApiWebhookSettingAddVo) o; + return Objects.equals(this.name, openApiWebhookSettingAddVo.name) && + Objects.equals(this.urlList, openApiWebhookSettingAddVo.urlList) && + Objects.equals(this.retryPolicy, openApiWebhookSettingAddVo.retryPolicy) && + Objects.equals(this.shardedSecret, openApiWebhookSettingAddVo.shardedSecret) && + Objects.equals(this.template, openApiWebhookSettingAddVo.template); + } + + @Override + public int hashCode() { + return Objects.hash(name, urlList, retryPolicy, shardedSecret, template); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookSettingAddVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" urlList: ").append(toIndentedString(urlList)).append("\n"); + sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n"); + sb.append(" shardedSecret: ").append(toIndentedString(shardedSecret)).append("\n"); + sb.append(" template: ").append(toIndentedString(template)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingEditVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingEditVo.java new file mode 100644 index 0000000..18fee17 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingEditVo.java @@ -0,0 +1,163 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OpenApiWebhookSettingEditVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OpenApiWebhookSettingEditVo { + @JsonProperty("urlList") + @Valid + private List urlList = new ArrayList<>(); + + @JsonProperty("retryPolicy") + private Integer retryPolicy; + + @JsonProperty("shardedSecret") + private String shardedSecret; + + @JsonProperty("template") + private Integer template; + + public OpenApiWebhookSettingEditVo urlList(List urlList) { + this.urlList = urlList; + return this; + } + + public OpenApiWebhookSettingEditVo addUrlListItem(String urlListItem) { + this.urlList.add(urlListItem); + return this; + } + + /** + * Webhook URL List. Up to 3 entries are allowed for the URL list + * @return urlList + */ + @ApiModelProperty(required = true, value = "Webhook URL List. Up to 3 entries are allowed for the URL list ") + @NotNull + + + public List getUrlList() { + return urlList; + } + + public void setUrlList(List urlList) { + this.urlList = urlList; + } + + public OpenApiWebhookSettingEditVo retryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours) + * @return retryPolicy + */ + @ApiModelProperty(required = true, value = "Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours)") + @NotNull + + + public Integer getRetryPolicy() { + return retryPolicy; + } + + public void setRetryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + } + + public OpenApiWebhookSettingEditVo shardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + return this; + } + + /** + * Webhook Sharded Secret. It should contain 0 to 128 characters. + * @return shardedSecret + */ + @ApiModelProperty(value = "Webhook Sharded Secret. It should contain 0 to 128 characters.") + + + public String getShardedSecret() { + return shardedSecret; + } + + public void setShardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + } + + public OpenApiWebhookSettingEditVo template(Integer template) { + this.template = template; + return this; + } + + /** + * Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. + * @return template + */ + @ApiModelProperty(value = "Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. ") + + + public Integer getTemplate() { + return template; + } + + public void setTemplate(Integer template) { + this.template = template; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookSettingEditVo openApiWebhookSettingEditVo = (OpenApiWebhookSettingEditVo) o; + return Objects.equals(this.urlList, openApiWebhookSettingEditVo.urlList) && + Objects.equals(this.retryPolicy, openApiWebhookSettingEditVo.retryPolicy) && + Objects.equals(this.shardedSecret, openApiWebhookSettingEditVo.shardedSecret) && + Objects.equals(this.template, openApiWebhookSettingEditVo.template); + } + + @Override + public int hashCode() { + return Objects.hash(urlList, retryPolicy, shardedSecret, template); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookSettingEditVo {\n"); + + sb.append(" urlList: ").append(toIndentedString(urlList)).append("\n"); + sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n"); + sb.append(" shardedSecret: ").append(toIndentedString(shardedSecret)).append("\n"); + sb.append(" template: ").append(toIndentedString(template)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingTestVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingTestVo.java new file mode 100644 index 0000000..c4b660a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OpenApiWebhookSettingTestVo.java @@ -0,0 +1,163 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OpenApiWebhookSettingTestVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OpenApiWebhookSettingTestVo { + @JsonProperty("name") + private String name; + + @JsonProperty("shardedSecret") + private String shardedSecret; + + @JsonProperty("urlList") + @Valid + private List urlList = new ArrayList<>(); + + @JsonProperty("template") + private Integer template; + + public OpenApiWebhookSettingTestVo name(String name) { + this.name = name; + return this; + } + + /** + * Webhook name. It should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Webhook name. It should contain 1 to 128 characters.") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OpenApiWebhookSettingTestVo shardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + return this; + } + + /** + * Webhook Sharded Secret. It should contain 0 to 128 characters. + * @return shardedSecret + */ + @ApiModelProperty(value = "Webhook Sharded Secret. It should contain 0 to 128 characters.") + + + public String getShardedSecret() { + return shardedSecret; + } + + public void setShardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + } + + public OpenApiWebhookSettingTestVo urlList(List urlList) { + this.urlList = urlList; + return this; + } + + public OpenApiWebhookSettingTestVo addUrlListItem(String urlListItem) { + this.urlList.add(urlListItem); + return this; + } + + /** + * Webhook URL List. Up to 3 entries are allowed for the URL list + * @return urlList + */ + @ApiModelProperty(required = true, value = "Webhook URL List. Up to 3 entries are allowed for the URL list") + @NotNull + + + public List getUrlList() { + return urlList; + } + + public void setUrlList(List urlList) { + this.urlList = urlList; + } + + public OpenApiWebhookSettingTestVo template(Integer template) { + this.template = template; + return this; + } + + /** + * Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. + * @return template + */ + @ApiModelProperty(value = "Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. ") + + + public Integer getTemplate() { + return template; + } + + public void setTemplate(Integer template) { + this.template = template; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookSettingTestVo openApiWebhookSettingTestVo = (OpenApiWebhookSettingTestVo) o; + return Objects.equals(this.name, openApiWebhookSettingTestVo.name) && + Objects.equals(this.shardedSecret, openApiWebhookSettingTestVo.shardedSecret) && + Objects.equals(this.urlList, openApiWebhookSettingTestVo.urlList) && + Objects.equals(this.template, openApiWebhookSettingTestVo.template); + } + + @Override + public int hashCode() { + return Objects.hash(name, shardedSecret, urlList, template); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookSettingTestVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" shardedSecret: ").append(toIndentedString(shardedSecret)).append("\n"); + sb.append(" urlList: ").append(toIndentedString(urlList)).append("\n"); + sb.append(" template: ").append(toIndentedString(template)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseDeviceAccessManagementSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseDeviceAccessManagementSetting.java new file mode 100644 index 0000000..a4f65e2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseDeviceAccessManagementSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseDeviceAccessManagementSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OperationResponseDeviceAccessManagementSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private DeviceAccessManagementSetting result; + + public OperationResponseDeviceAccessManagementSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseDeviceAccessManagementSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseDeviceAccessManagementSetting result(DeviceAccessManagementSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public DeviceAccessManagementSetting getResult() { + return result; + } + + public void setResult(DeviceAccessManagementSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseDeviceAccessManagementSetting operationResponseDeviceAccessManagementSetting = (OperationResponseDeviceAccessManagementSetting) o; + return Objects.equals(this.errorCode, operationResponseDeviceAccessManagementSetting.errorCode) && + Objects.equals(this.msg, operationResponseDeviceAccessManagementSetting.msg) && + Objects.equals(this.result, operationResponseDeviceAccessManagementSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseDeviceAccessManagementSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseGridVoOpenApiWebhookDispatchLogVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseGridVoOpenApiWebhookDispatchLogVo.java new file mode 100644 index 0000000..d174695 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseGridVoOpenApiWebhookDispatchLogVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoOpenApiWebhookDispatchLogVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoOpenApiWebhookDispatchLogVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoOpenApiWebhookDispatchLogVo result; + + public OperationResponseGridVoOpenApiWebhookDispatchLogVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoOpenApiWebhookDispatchLogVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoOpenApiWebhookDispatchLogVo result(GridVoOpenApiWebhookDispatchLogVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoOpenApiWebhookDispatchLogVo getResult() { + return result; + } + + public void setResult(GridVoOpenApiWebhookDispatchLogVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoOpenApiWebhookDispatchLogVo operationResponseGridVoOpenApiWebhookDispatchLogVo = (OperationResponseGridVoOpenApiWebhookDispatchLogVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoOpenApiWebhookDispatchLogVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoOpenApiWebhookDispatchLogVo.msg) && + Objects.equals(this.result, operationResponseGridVoOpenApiWebhookDispatchLogVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoOpenApiWebhookDispatchLogVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseLicenseAutoActiveOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseLicenseAutoActiveOpenApiVo.java new file mode 100644 index 0000000..a1fe3e7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseLicenseAutoActiveOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseLicenseAutoActiveOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OperationResponseLicenseAutoActiveOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private LicenseAutoActiveOpenApiVo result; + + public OperationResponseLicenseAutoActiveOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseLicenseAutoActiveOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseLicenseAutoActiveOpenApiVo result(LicenseAutoActiveOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public LicenseAutoActiveOpenApiVo getResult() { + return result; + } + + public void setResult(LicenseAutoActiveOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseLicenseAutoActiveOpenApiVo operationResponseLicenseAutoActiveOpenApiVo = (OperationResponseLicenseAutoActiveOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseLicenseAutoActiveOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseLicenseAutoActiveOpenApiVo.msg) && + Objects.equals(this.result, operationResponseLicenseAutoActiveOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseLicenseAutoActiveOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseLicenseAutoRenewOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseLicenseAutoRenewOpenApiVo.java new file mode 100644 index 0000000..7d23032 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseLicenseAutoRenewOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseLicenseAutoRenewOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OperationResponseLicenseAutoRenewOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private LicenseAutoRenewOpenApiVo result; + + public OperationResponseLicenseAutoRenewOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseLicenseAutoRenewOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseLicenseAutoRenewOpenApiVo result(LicenseAutoRenewOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public LicenseAutoRenewOpenApiVo getResult() { + return result; + } + + public void setResult(LicenseAutoRenewOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseLicenseAutoRenewOpenApiVo operationResponseLicenseAutoRenewOpenApiVo = (OperationResponseLicenseAutoRenewOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseLicenseAutoRenewOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseLicenseAutoRenewOpenApiVo.msg) && + Objects.equals(this.result, operationResponseLicenseAutoRenewOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseLicenseAutoRenewOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseListWebhookSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseListWebhookSetting.java new file mode 100644 index 0000000..ca544fe --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseListWebhookSetting.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListWebhookSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OperationResponseListWebhookSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListWebhookSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListWebhookSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListWebhookSetting result(List result) { + this.result = result; + return this; + } + + public OperationResponseListWebhookSetting addResultItem(WebhookSetting resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListWebhookSetting operationResponseListWebhookSetting = (OperationResponseListWebhookSetting) o; + return Objects.equals(this.errorCode, operationResponseListWebhookSetting.errorCode) && + Objects.equals(this.msg, operationResponseListWebhookSetting.msg) && + Objects.equals(this.result, operationResponseListWebhookSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListWebhookSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseWithoutResult.java new file mode 100644 index 0000000..4a65273 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/OperationResponseWithoutResult.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class OperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public OperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseWithoutResult.msg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/WebhookSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/WebhookSetting.java new file mode 100644 index 0000000..1345c24 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/globalsetting/model/WebhookSetting.java @@ -0,0 +1,263 @@ +package org.wfc.omada.api.globalsetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * WebhookSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:48:54.878+08:00[Asia/Shanghai]") + +public class WebhookSetting { + @JsonProperty("name") + private String name; + + @JsonProperty("urlNum") + private Integer urlNum; + + @JsonProperty("urlList") + @Valid + private List urlList = null; + + @JsonProperty("webhookId") + private String webhookId; + + @JsonProperty("shardedSecret") + private String shardedSecret; + + @JsonProperty("lastTime") + private Long lastTime; + + @JsonProperty("retryPolicy") + private Integer retryPolicy; + + @JsonProperty("template") + private Integer template; + + public WebhookSetting name(String name) { + this.name = name; + return this; + } + + /** + * Webhook Name + * @return name + */ + @ApiModelProperty(value = "Webhook Name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public WebhookSetting urlNum(Integer urlNum) { + this.urlNum = urlNum; + return this; + } + + /** + * Webhook URL Number + * @return urlNum + */ + @ApiModelProperty(value = "Webhook URL Number") + + + public Integer getUrlNum() { + return urlNum; + } + + public void setUrlNum(Integer urlNum) { + this.urlNum = urlNum; + } + + public WebhookSetting urlList(List urlList) { + this.urlList = urlList; + return this; + } + + public WebhookSetting addUrlListItem(String urlListItem) { + if (this.urlList == null) { + this.urlList = new ArrayList<>(); + } + this.urlList.add(urlListItem); + return this; + } + + /** + * Webhook URL List + * @return urlList + */ + @ApiModelProperty(value = "Webhook URL List") + + + public List getUrlList() { + return urlList; + } + + public void setUrlList(List urlList) { + this.urlList = urlList; + } + + public WebhookSetting webhookId(String webhookId) { + this.webhookId = webhookId; + return this; + } + + /** + * Webhook ID + * @return webhookId + */ + @ApiModelProperty(value = "Webhook ID") + + + public String getWebhookId() { + return webhookId; + } + + public void setWebhookId(String webhookId) { + this.webhookId = webhookId; + } + + public WebhookSetting shardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + return this; + } + + /** + * Webhook Sharded Secret (old token) + * @return shardedSecret + */ + @ApiModelProperty(value = "Webhook Sharded Secret (old token)") + + + public String getShardedSecret() { + return shardedSecret; + } + + public void setShardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + } + + public WebhookSetting lastTime(Long lastTime) { + this.lastTime = lastTime; + return this; + } + + /** + * Webhook setting last update time (ms) + * @return lastTime + */ + @ApiModelProperty(value = "Webhook setting last update time (ms)") + + + public Long getLastTime() { + return lastTime; + } + + public void setLastTime(Long lastTime) { + this.lastTime = lastTime; + } + + public WebhookSetting retryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours) + * @return retryPolicy + */ + @ApiModelProperty(value = "Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours)") + + + public Integer getRetryPolicy() { + return retryPolicy; + } + + public void setRetryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + } + + public WebhookSetting template(Integer template) { + this.template = template; + return this; + } + + /** + * Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. + * @return template + */ + @ApiModelProperty(value = "Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. ") + + + public Integer getTemplate() { + return template; + } + + public void setTemplate(Integer template) { + this.template = template; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookSetting webhookSetting = (WebhookSetting) o; + return Objects.equals(this.name, webhookSetting.name) && + Objects.equals(this.urlNum, webhookSetting.urlNum) && + Objects.equals(this.urlList, webhookSetting.urlList) && + Objects.equals(this.webhookId, webhookSetting.webhookId) && + Objects.equals(this.shardedSecret, webhookSetting.shardedSecret) && + Objects.equals(this.lastTime, webhookSetting.lastTime) && + Objects.equals(this.retryPolicy, webhookSetting.retryPolicy) && + Objects.equals(this.template, webhookSetting.template); + } + + @Override + public int hashCode() { + return Objects.hash(name, urlNum, urlList, webhookId, shardedSecret, lastTime, retryPolicy, template); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookSetting {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" urlNum: ").append(toIndentedString(urlNum)).append("\n"); + sb.append(" urlList: ").append(toIndentedString(urlList)).append("\n"); + sb.append(" webhookId: ").append(toIndentedString(webhookId)).append("\n"); + sb.append(" shardedSecret: ").append(toIndentedString(shardedSecret)).append("\n"); + sb.append(" lastTime: ").append(toIndentedString(lastTime)).append("\n"); + sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n"); + sb.append(" template: ").append(toIndentedString(template)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaAuthorizedClientApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaAuthorizedClientApi.java new file mode 100644 index 0000000..4bfe0a1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaAuthorizedClientApi.java @@ -0,0 +1,117 @@ +package org.wfc.omada.api.hotspot; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.hotspot.model.ExtendOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseGridVoAuthClientOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:26.787+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaAuthorizedClient", description = "the OmadaAuthorizedClient API") +@FeignClient(name="OmadaAuthorizedClientApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaAuthorizedClientApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/hotspot/clients/{clientMac}/auth : Authentication the given client + * Authentication this client with the given omadacId, siteId, clientMac<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1005 - Operation forbidden.<br/>-1200 - You have been logged out of the controller. This may have been caused by data restore, reboot, session timeout or disabled cloud access. Please try to log in again later.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-41009 - Failed to authorize this client.<br/>-41010 - This client does not exist.<br/>-42003 - This operator does not exist.<br/>-42006 - Failed to log in.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.<br/>-7131 - Controller ID not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clientMac Client MAC, format: AA-BB-CC-DD-EE-FF. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Authentication the given client", nickname = "authClient", notes = "Authentication this client with the given omadacId, siteId, clientMac

The interface requires one of the permissions:
Site Clients Manager Modify
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1005 - Operation forbidden.
-1200 - You have been logged out of the controller. This may have been caused by data restore, reboot, session timeout or disabled cloud access. Please try to log in again later.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-41009 - Failed to authorize this client.
-41010 - This client does not exist.
-42003 - This operator does not exist.
-42006 - Failed to log in.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.
-7131 - Controller ID not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Authorized Client","Authorized Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/clients/{clientMac}/auth", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity authClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC, format: AA-BB-CC-DD-EE-FF.",required=true) @PathVariable("clientMac") String clientMac); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/hotspot/clients/{clientMac}/unauth : Cancel authentication the given client + * Cancel the authentication of this client with the given omadacId, siteId, clientMac.<br/><br/>The interface requires one of the permissions: <br/>Site Clients Manager Modify<br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1005 - Operation forbidden.<br/>-1200 - You have been logged out of the controller. This may have been caused by data restore, reboot, session timeout or disabled cloud access. Please try to log in again later.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-41006 - This client does not exist.<br/>-41017 - Unauth failed because gateway not existed or disconnected.<br/>-41018 - Unauth failed, try again when network recover.<br/>-41019 - The client is being disconnected, please wait...<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.<br/>-7131 - Controller ID not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clientMac Client MAC (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Cancel authentication the given client", nickname = "cancelAuthClient", notes = "Cancel the authentication of this client with the given omadacId, siteId, clientMac.

The interface requires one of the permissions:
Site Clients Manager Modify
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1005 - Operation forbidden.
-1200 - You have been logged out of the controller. This may have been caused by data restore, reboot, session timeout or disabled cloud access. Please try to log in again later.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-41006 - This client does not exist.
-41017 - Unauth failed because gateway not existed or disconnected.
-41018 - Unauth failed, try again when network recover.
-41019 - The client is being disconnected, please wait...
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.
-7131 - Controller ID not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Authorized Client","Authorized Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/clients/{clientMac}/unauth", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity cancelAuthClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Client MAC",required=true) @PathVariable("clientMac") String clientMac); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/hotspot/authed-records/{id}/period : Modify period for given authed record + * Extend the valid time of the authentication record with the given omadacId, siteId, authClientId.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1005 - Operation forbidden.<br/>-1200 - You have been logged out of the controller. This may have been caused by data restore, reboot, session timeout or disabled cloud access. Please try to log in again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.<br/>-7131 - Controller ID not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Authed record ID (required) + * @param extendOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify period for given authed record", nickname = "extendHotspotAuthedClient", notes = "Extend the valid time of the authentication record with the given omadacId, siteId, authClientId.

The interface requires one of the permissions:
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1005 - Operation forbidden.
-1200 - You have been logged out of the controller. This may have been caused by data restore, reboot, session timeout or disabled cloud access. Please try to log in again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.
-7131 - Controller ID not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Authorized Client","Authorized Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/authed-records/{id}/period", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity extendHotspotAuthedClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Authed record ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ExtendOpenApiVo extendOpenApiVo); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/authed-records : Get authentication record list + * Get all authentication records in a site with the given omadacId, siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/>Site Insight Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1005 - Operation forbidden. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsMac Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsIp Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsAuthType Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsSsidOrNetwork Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsDownload Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsUpload Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsStatus Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsStart Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsEnd Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsDuration Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field client_mac,client_name,voucher.code,local_user.user_name,form_name,auth_admin,ssid_name,network_name (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get authentication record list", nickname = "getHotspotAuthedClients", notes = "Get all authentication records in a site with the given omadacId, siteId.

The interface requires one of the permissions:
Site Hotspot Manager View Only
Site Insight Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1005 - Operation forbidden.", response = OperationResponseGridVoAuthClientOpenApiVo.class, tags={ "Omada/Authorized Client","Authorized Client", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoAuthClientOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/authed-records", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getHotspotAuthedClients(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.mac", required = false) String sortsMac,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.ip", required = false) String sortsIp,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.authType", required = false) String sortsAuthType,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.ssidOrNetwork", required = false) String sortsSsidOrNetwork,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.download", required = false) String sortsDownload,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.upload", required = false) String sortsUpload,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.status", required = false) String sortsStatus,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.start", required = false) String sortsStart,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.end", required = false) String sortsEnd,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.duration", required = false) String sortsDuration,@ApiParam(value = "Fuzzy query parameters, support field client_mac,client_name,voucher.code,local_user.user_name,form_name,auth_admin,ssid_name,network_name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaFormAuthDataApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaFormAuthDataApi.java new file mode 100644 index 0000000..e0bac3c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaFormAuthDataApi.java @@ -0,0 +1,148 @@ +package org.wfc.omada.api.hotspot; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.hotspot.model.CreateFormAuthOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseCreatedResIdOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseFormAuthOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseFormAuthResultOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseGridVoFormAuthResultOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseListFormAuthOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:26.787+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaFormAuthData", description = "the OmadaFormAuthData API") +@FeignClient(name="OmadaFormAuthDataApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaFormAuthDataApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/hotspot/surveys : Create a new authentication survey + * Create a authentication survey in a site with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-42050 - The number of created surveys is up to the limit.<br/>-42051 - The survey name already exists.<br/>-42052 - The number of questions in this survey is up to the limit.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createFormAuthOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create a new authentication survey", nickname = "createAuthForm", notes = "Create a authentication survey in a site with the given params.

The interface requires one of the permissions:
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-42050 - The number of created surveys is up to the limit.
-42051 - The survey name already exists.
-42052 - The number of questions in this survey is up to the limit.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseCreatedResIdOpenApiVo.class, tags={ "Omada/Form Auth Data","Form Auth Data", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCreatedResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/surveys", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createAuthForm(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateFormAuthOpenApiVo createFormAuthOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/hotspot/surveys/{surveyId} : Delete an existing authentication survey + * Delete an existing authentication survey by the given omadacId, siteId, surveyId.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-42054 - The survey does not exist.<br/>-42057 - The survey is in use, and you cannot edit or delete it.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param surveyId Auth survey ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing authentication survey", nickname = "deleteAuthForm", notes = "Delete an existing authentication survey by the given omadacId, siteId, surveyId.

The interface requires one of the permissions:
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-42054 - The survey does not exist.
-42057 - The survey is in use, and you cannot edit or delete it.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseWithoutResult.class, tags={ "Omada/Form Auth Data","Form Auth Data", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/surveys/{surveyId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteAuthForm(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Auth survey ID",required=true) @PathVariable("surveyId") String surveyId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/surveys/{surveyId} : Get an authentication survey for given surveyId + * Get an authentication survey by the given omadacId, siteId, surveyId.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param surveyId Auth survey ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get an authentication survey for given surveyId", nickname = "getAuthForm", notes = "Get an authentication survey by the given omadacId, siteId, surveyId.

The interface requires one of the permissions:
Site Hotspot Manager View Only", response = OperationResponseFormAuthOpenApiVo.class, tags={ "Omada/Form Auth Data","Form Auth Data", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseFormAuthOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/surveys/{surveyId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAuthForm(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Auth survey ID",required=true) @PathVariable("surveyId") String surveyId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/surveys : Get authentication survey list + * Get authentication survey list in a site by the given omadacId, siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsCreateTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsAnswerNum Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get authentication survey list", nickname = "getAuthForms", notes = "Get authentication survey list in a site by the given omadacId, siteId.

The interface requires one of the permissions:
Site Hotspot Manager View Only", response = OperationResponseListFormAuthOpenApiVo.class, tags={ "Omada/Form Auth Data","Form Auth Data", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListFormAuthOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/surveys", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAuthForms(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.createTime", required = false) String sortsCreateTime,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.answerNum", required = false) String sortsAnswerNum); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/surveys/auth-results/{surveyResultId} : Get an authentication survey result for given surveyResultId + * Get an authentication survey's result in a site with given omadacId, siteId, surveyResultId.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param surveyResultId Survey authentication result ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get an authentication survey result for given surveyResultId", nickname = "getFormAuthResult", notes = "Get an authentication survey's result in a site with given omadacId, siteId, surveyResultId.

The interface requires one of the permissions:
Site Hotspot Manager View Only", response = OperationResponseFormAuthResultOpenApiVo.class, tags={ "Omada/Form Auth Data","Form Auth Data", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseFormAuthResultOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/surveys/auth-results/{surveyResultId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getFormAuthResult(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Survey authentication result ID",required=true) @PathVariable("surveyResultId") String surveyResultId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/surveys/{surveyId}/auth-results : Get authentication result lists for given survey + * Get an authentication survey's result list with given omadacId, siteId, surveyId.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param surveyId Auth survey ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsFormAuth Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get authentication result lists for given survey", nickname = "getFormAuthResults", notes = "Get an authentication survey's result list with given omadacId, siteId, surveyId.

The interface requires one of the permissions:
Site Hotspot Manager View Only", response = OperationResponseGridVoFormAuthResultOpenApiVo.class, tags={ "Omada/Form Auth Data","Form Auth Data", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoFormAuthResultOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/surveys/{surveyId}/auth-results", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getFormAuthResults(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Auth survey ID",required=true) @PathVariable("surveyId") String surveyId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.formAuth", required = false) String sortsFormAuth); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaLocalUserApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaLocalUserApi.java new file mode 100644 index 0000000..c8f1474 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaLocalUserApi.java @@ -0,0 +1,108 @@ +package org.wfc.omada.api.hotspot; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.hotspot.model.CreateLocalUserOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseCreatedResIdOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseGridVoLocalUserOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseLocalUserOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:26.787+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaLocalUser", description = "the OmadaLocalUser API") +@FeignClient(name="OmadaLocalUserApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaLocalUserApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/hotspot/localusers : Create a new local user + * Create a local user with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-42012 - The number of local users has reached the limit. New local users cannot be created.<br/>-42013 - Local user already exists.<br/>-42020 - The MAC address that is bound to the local user account is invalid.<br/>-42037 - Please select at least one portal before creating local users.<br/>-42039 - Failed to bind to the portals. Please select the portals with local user authentication enabled.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createLocalUserOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create a new local user", nickname = "createLocalUser", notes = "Create a local user with the given params.

The interface requires one of the permissions:
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-42012 - The number of local users has reached the limit. New local users cannot be created.
-42013 - Local user already exists.
-42020 - The MAC address that is bound to the local user account is invalid.
-42037 - Please select at least one portal before creating local users.
-42039 - Failed to bind to the portals. Please select the portals with local user authentication enabled.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseCreatedResIdOpenApiVo.class, tags={ "Omada/Local User","Local User", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCreatedResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/localusers", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createLocalUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateLocalUserOpenApiVo createLocalUserOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/hotspot/localusers/{id} : Delete an existing localuser + * Delete an existing local user with the given omadacId, siteId, localuserId.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Local user ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing localuser", nickname = "deleteLocalUser", notes = "Delete an existing local user with the given omadacId, siteId, localuserId.

The interface requires one of the permissions:
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseWithoutResult.class, tags={ "Omada/Local User","Local User", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/localusers/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteLocalUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Local user ID",required=true) @PathVariable("id") String id); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/localusers/{id} : Get a local user for given localuserId + * Get a local user with the given omadacId, siteId, local user ID.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id local user ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get a local user for given localuserId", nickname = "getLocalUser", notes = "Get a local user with the given omadacId, siteId, local user ID.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.", response = OperationResponseLocalUserOpenApiVo.class, tags={ "Omada/Local User","Local User", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLocalUserOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/localusers/{id}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLocalUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "local user ID",required=true) @PathVariable("id") String id); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/localusers : Get local user list + * Get local user list in a site with the given omadacId, siteId, params.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field user_name (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get local user list", nickname = "getLocalUsers", notes = "Get local user list in a site with the given omadacId, siteId, params.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.", response = OperationResponseGridVoLocalUserOpenApiVo.class, tags={ "Omada/Local User","Local User", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoLocalUserOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/localusers", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLocalUsers(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Fuzzy query parameters, support field user_name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaVoucherApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaVoucherApi.java new file mode 100644 index 0000000..c57d6b9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/OmadaVoucherApi.java @@ -0,0 +1,366 @@ +package org.wfc.omada.api.hotspot; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.hotspot.model.CreateVoucherGroupOpenApiVo; +import org.wfc.omada.api.hotspot.model.HotspotSiteSettingOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseAllTimeVoucherSummaryOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseCreatedResIdOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseCurrencyCandidatesOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseGridVoVoucherDurationDistributionOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseGridVoVoucherGroupOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseListVoucherBriefOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseVoucherGroupGridOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseVoucherOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseVoucherStatisticsHistoryOpenApiVo; +import org.wfc.omada.api.hotspot.model.OperationResponseWithoutResult; +import org.wfc.omada.api.hotspot.model.SelectIdsOpenApiVo; +import org.wfc.omada.api.hotspot.model.SelectVoucherGroupOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:26.787+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaVoucher", description = "the OmadaVoucher API") +@FeignClient(name="OmadaVoucherApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaVoucherApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/hotspot/voucher-groups : Create a new Voucher Group + * Create a Voucher Group with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-33732 - The Rate Limit profile does not exist.<br/>-42010 - The number of vouchers has reached the limit. New vouchers cannot be created.<br/>-42036 - Please select at least one portal before creating vouchers.<br/>-42059 - Duplicated voucher group name.<br/>-42060 - Currency is not supported.<br/>-42061 - You are creating voucher groups with different currency in same site, this will prevent collecting incoming amount of vouchers.<br/>-42062 - One or more portals may not exist.<br/>-42063 - The expiration time cannot exceed 1000 days.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createVoucherGroupOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create a new Voucher Group", nickname = "createVoucherGroup", notes = "Create a Voucher Group with the given params.

The interface requires one of the permissions:
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-33732 - The Rate Limit profile does not exist.
-42010 - The number of vouchers has reached the limit. New vouchers cannot be created.
-42036 - Please select at least one portal before creating vouchers.
-42059 - Duplicated voucher group name.
-42060 - Currency is not supported.
-42061 - You are creating voucher groups with different currency in same site, this will prevent collecting incoming amount of vouchers.
-42062 - One or more portals may not exist.
-42063 - The expiration time cannot exceed 1000 days.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseCreatedResIdOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCreatedResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/voucher-groups", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createVoucherGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateVoucherGroupOpenApiVo createVoucherGroupOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/hotspot/voucher-groups/batch/delete : Delete selected Voucher Groups + * Delete selected Voucher Groups with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param selectVoucherGroupOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete selected Voucher Groups", nickname = "deleteSelectedVoucherGroups", notes = "Delete selected Voucher Groups with the given params.

The interface requires one of the permissions:
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseWithoutResult.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/voucher-groups/batch/delete", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity deleteSelectedVoucherGroups(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SelectVoucherGroupOpenApiVo selectVoucherGroupOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/hotspot/vouchers/{id} : Delete an existing voucher + * Delete an existing voucher with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Voucher ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing voucher", nickname = "deleteVoucher", notes = "Delete an existing voucher with the given params.

The interface requires one of the permissions:
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseWithoutResult.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/vouchers/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteVoucher(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Voucher ID",required=true) @PathVariable("id") String id); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/hotspot/voucher-groups/{groupId} : Delete an existing Voucher Group + * Delete an existing Voucher Group with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param groupId Voucher Group ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing Voucher Group", nickname = "deleteVoucherGroup", notes = "Delete an existing Voucher Group with the given params.

The interface requires one of the permissions:
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseWithoutResult.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/voucher-groups/{groupId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteVoucherGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Voucher Group ID",required=true) @PathVariable("groupId") String groupId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/hotspot/vouchers/batch/delete : Delete selected vouchers + * Delete selected vouchers with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param selectIdsOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete selected vouchers", nickname = "deleteVouchers", notes = "Delete selected vouchers with the given params.

The interface requires one of the permissions:
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseVoucherOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVoucherOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/vouchers/batch/delete", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity deleteVouchers(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SelectIdsOpenApiVo selectIdsOpenApiVo); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/vouchers/statistics/summary : Get voucher summary + * Get voucher summary of all time in the site.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get voucher summary", nickname = "getAllTimeVoucherSummary", notes = "Get voucher summary of all time in the site.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseAllTimeVoucherSummaryOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseAllTimeVoucherSummaryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/vouchers/statistics/summary", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAllTimeVoucherSummary(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/voucher-groups : Get Voucher Group List + * Get Voucher Group List with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsCreateTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param filtersTimeStart Filter query parameters, support field time range: start timestamp (ms). (optional) + * @param filtersTimeEnd Filter query parameters, support field time range: end timestamp (ms). (optional) + * @param searchKey Fuzzy query parameters, support field name (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Voucher Group List", nickname = "getGridVoucherGroups", notes = "Get Voucher Group List with the given params.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseGridVoVoucherGroupOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoVoucherGroupOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/voucher-groups", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridVoucherGroups(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.createTime", required = false) String sortsCreateTime,@ApiParam(value = "Filter query parameters, support field time range: start timestamp (ms).") @Valid @RequestParam(value = "filters.timeStart", required = false) Long filtersTimeStart,@ApiParam(value = "Filter query parameters, support field time range: end timestamp (ms).") @Valid @RequestParam(value = "filters.timeEnd", required = false) Long filtersTimeEnd,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/vouchers/{id} : Get a voucher + * Get a voucher with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Voucher ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get a voucher", nickname = "getVoucher", notes = "Get a voucher with the given params.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseVoucherOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVoucherOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/vouchers/{id}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoucher(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Voucher ID",required=true) @PathVariable("id") String id); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/voucher-groups/currency-list : Get voucher currency candidates + * Get voucher currency candidates.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get voucher currency candidates", nickname = "getVoucherCurrencyCandidates", notes = "Get voucher currency candidates.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseCurrencyCandidatesOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCurrencyCandidatesOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/voucher-groups/currency-list", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoucherCurrencyCandidates(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/vouchers/statistics/history/distribution/duration : Get voucher distribution by duration + * Get voucher distribution by duration.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param filtersTimeStart Filter query parameters, support field time range: start timestamp (second). (required) + * @param filtersTimeEnd Filter query parameters, support field time range: end timestamp (second). (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get voucher distribution by duration", nickname = "getVoucherDistributionByDuration", notes = "Get voucher distribution by duration.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseGridVoVoucherDurationDistributionOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoVoucherDurationDistributionOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/vouchers/statistics/history/distribution/duration", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoucherDistributionByDuration(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Filter query parameters, support field time range: start timestamp (second).", required = true) @Valid @RequestParam(value = "filters.timeStart", required = true) Long filtersTimeStart,@NotNull @ApiParam(value = "Filter query parameters, support field time range: end timestamp (second).", required = true) @Valid @RequestParam(value = "filters.timeEnd", required = true) Long filtersTimeEnd); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/vouchers/statistics/history/distribution/unit-price : Get voucher distribution by price + * Get voucher distribution by price.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param filtersTimeStart Filter query parameters, support field time range: start timestamp (second). (required) + * @param filtersTimeEnd Filter query parameters, support field time range: end timestamp (second). (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get voucher distribution by price", nickname = "getVoucherDistributionByPrice", notes = "Get voucher distribution by price.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/vouchers/statistics/history/distribution/unit-price", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoucherDistributionByPrice(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Filter query parameters, support field time range: start timestamp (second).", required = true) @Valid @RequestParam(value = "filters.timeStart", required = true) Long filtersTimeStart,@NotNull @ApiParam(value = "Filter query parameters, support field time range: end timestamp (second).", required = true) @Valid @RequestParam(value = "filters.timeEnd", required = true) Long filtersTimeEnd); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/voucher-groups/{groupId} : Get Voucher Group Detail + * Get Voucher Group Detail with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param groupId Voucher Group ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsCode Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param filtersStatus Filter query parameters, support field status for vouchers in the voucher group: 0: unused vouchers, 1: in-use vouchers, 2: expired vouchers (optional) + * @param searchKey Fuzzy query parameters, support field code (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Voucher Group Detail", nickname = "getVoucherGroupDetail", notes = "Get Voucher Group Detail with the given params.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseVoucherGroupGridOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVoucherGroupGridOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/voucher-groups/{groupId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoucherGroupDetail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Voucher Group ID",required=true) @PathVariable("groupId") String groupId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.code", required = false) String sortsCode,@ApiParam(value = "Filter query parameters, support field status for vouchers in the voucher group: 0: unused vouchers, 1: in-use vouchers, 2: expired vouchers") @Valid @RequestParam(value = "filters.status", required = false) Long filtersStatus,@ApiParam(value = "Fuzzy query parameters, support field code") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/vouchers/statistics/history : Get voucher history statistics + * Get voucher history statistics.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param filtersTimeStart Filter query parameters, support field time range: start timestamp (second). (required) + * @param filtersTimeEnd Filter query parameters, support field time range: end timestamp (second). (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get voucher history statistics", nickname = "getVoucherHistoryStatistics", notes = "Get voucher history statistics.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseVoucherStatisticsHistoryOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVoucherStatisticsHistoryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/vouchers/statistics/history", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoucherHistoryStatistics(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Filter query parameters, support field time range: start timestamp (second).", required = true) @Valid @RequestParam(value = "filters.timeStart", required = true) Long filtersTimeStart,@NotNull @ApiParam(value = "Filter query parameters, support field time range: end timestamp (second).", required = true) @Valid @RequestParam(value = "filters.timeEnd", required = true) Long filtersTimeEnd); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/hotspot/setting : Modify voucher currency + * Modify voucher currency of the site.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param hotspotSiteSettingOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify voucher currency", nickname = "modifyHotspotSetting", notes = "Modify voucher currency of the site.

The interface requires one of the permissions:
Site Hotspot Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseWithoutResult.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/setting", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyHotspotSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) HotspotSiteSettingOpenApiVo hotspotSiteSettingOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/hotspot/voucher-groups/batch/print-unused : Get unused vouchers in selected voucher groups + * Get unused vouchers brief information in selected voucher groups.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param selectVoucherGroupOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get unused vouchers in selected voucher groups", nickname = "printSelectedVoucherGroups", notes = "Get unused vouchers brief information in selected voucher groups.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseListVoucherBriefOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListVoucherBriefOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/voucher-groups/batch/print-unused", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity printSelectedVoucherGroups(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SelectVoucherGroupOpenApiVo selectVoucherGroupOpenApiVo); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/hotspot/voucher-groups/{groupId}/print-unused : Get unused vouchers in voucher group + * Get unused vouchers brief information in a voucher group.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param groupId Voucher Group ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get unused vouchers in voucher group", nickname = "printVoucherGroup", notes = "Get unused vouchers brief information in a voucher group.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseListVoucherBriefOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListVoucherBriefOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/voucher-groups/{groupId}/print-unused", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity printVoucherGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Voucher Group ID",required=true) @PathVariable("groupId") String groupId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/hotspot/vouchers/batch/print : Get selected vouchers in a voucher group + * Get selected vouchers brief in a voucher group.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-44111 - The Grant Type is Invalid.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param selectIdsOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get selected vouchers in a voucher group", nickname = "printVouchers", notes = "Get selected vouchers brief in a voucher group.

The interface requires one of the permissions:
Site Hotspot Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-44111 - The Grant Type is Invalid.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.", response = OperationResponseListVoucherBriefOpenApiVo.class, tags={ "Omada/Voucher","Voucher", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListVoucherBriefOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/hotspot/vouchers/batch/print", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity printVouchers(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SelectIdsOpenApiVo selectIdsOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AllTimeVoucherSummaryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AllTimeVoucherSummaryOpenApiVo.java new file mode 100644 index 0000000..3956538 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AllTimeVoucherSummaryOpenApiVo.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * AllTimeVoucherSummaryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class AllTimeVoucherSummaryOpenApiVo { + @JsonProperty("current") + private Object current; + + @JsonProperty("unused") + private Object unused; + + @JsonProperty("created") + private Object created; + + public AllTimeVoucherSummaryOpenApiVo current(Object current) { + this.current = current; + return this; + } + + /** + * Get current + * @return current + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getCurrent() { + return current; + } + + public void setCurrent(Object current) { + this.current = current; + } + + public AllTimeVoucherSummaryOpenApiVo unused(Object unused) { + this.unused = unused; + return this; + } + + /** + * Get unused + * @return unused + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getUnused() { + return unused; + } + + public void setUnused(Object unused) { + this.unused = unused; + } + + public AllTimeVoucherSummaryOpenApiVo created(Object created) { + this.created = created; + return this; + } + + /** + * Get created + * @return created + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getCreated() { + return created; + } + + public void setCreated(Object created) { + this.created = created; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AllTimeVoucherSummaryOpenApiVo allTimeVoucherSummaryOpenApiVo = (AllTimeVoucherSummaryOpenApiVo) o; + return Objects.equals(this.current, allTimeVoucherSummaryOpenApiVo.current) && + Objects.equals(this.unused, allTimeVoucherSummaryOpenApiVo.unused) && + Objects.equals(this.created, allTimeVoucherSummaryOpenApiVo.created); + } + + @Override + public int hashCode() { + return Objects.hash(current, unused, created); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AllTimeVoucherSummaryOpenApiVo {\n"); + + sb.append(" current: ").append(toIndentedString(current)).append("\n"); + sb.append(" unused: ").append(toIndentedString(unused)).append("\n"); + sb.append(" created: ").append(toIndentedString(created)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AuthClientOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AuthClientOpenApiVo.java new file mode 100644 index 0000000..e68efa0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AuthClientOpenApiVo.java @@ -0,0 +1,551 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * AuthClientOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class AuthClientOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("wireless") + private Boolean wireless; + + @JsonProperty("ssid") + private String ssid; + + @JsonProperty("networkName") + private String networkName; + + @JsonProperty("authType") + private Integer authType; + + @JsonProperty("fbVer") + private Integer fbVer; + + @JsonProperty("download") + private Long download; + + @JsonProperty("upload") + private Long upload; + + @JsonProperty("duration") + private Long duration; + + @JsonProperty("start") + private Long start; + + @JsonProperty("end") + private Long end; + + @JsonProperty("valid") + private Boolean valid; + + @JsonProperty("localUserName") + private String localUserName; + + @JsonProperty("voucherCode") + private String voucherCode; + + @JsonProperty("formName") + private String formName; + + @JsonProperty("radiusUsername") + private String radiusUsername; + + @JsonProperty("adminName") + private String adminName; + + @JsonProperty("ip") + private String ip; + + public AuthClientOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * AuthRecord ID + * @return id + */ + @ApiModelProperty(value = "AuthRecord ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public AuthClientOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Client name + * @return name + */ + @ApiModelProperty(value = "Client name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public AuthClientOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Client MAC + * @return mac + */ + @ApiModelProperty(value = "Client MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public AuthClientOpenApiVo wireless(Boolean wireless) { + this.wireless = wireless; + return this; + } + + /** + * Is it wireless type + * @return wireless + */ + @ApiModelProperty(value = "Is it wireless type") + + + public Boolean getWireless() { + return wireless; + } + + public void setWireless(Boolean wireless) { + this.wireless = wireless; + } + + public AuthClientOpenApiVo ssid(String ssid) { + this.ssid = ssid; + return this; + } + + /** + * SSID name + * @return ssid + */ + @ApiModelProperty(value = "SSID name") + + + public String getSsid() { + return ssid; + } + + public void setSsid(String ssid) { + this.ssid = ssid; + } + + public AuthClientOpenApiVo networkName(String networkName) { + this.networkName = networkName; + return this; + } + + /** + * Network name + * @return networkName + */ + @ApiModelProperty(value = "Network name") + + + public String getNetworkName() { + return networkName; + } + + public void setNetworkName(String networkName) { + this.networkName = networkName; + } + + public AuthClientOpenApiVo authType(Integer authType) { + this.authType = authType; + return this; + } + + /** + * Auth type should be a value as follows: 0: No Auth; 1: Simple Password; 2: Exrternal Radius; 3: Voucher; 4: External Portal Server; 5: Local User; 6: SMS; 7: Facebook; 8: Hotspot Radius; 9: Mac Auth (with fail over); 10: Admin auth; 12: Form auth + * @return authType + */ + @ApiModelProperty(value = "Auth type should be a value as follows: 0: No Auth; 1: Simple Password; 2: Exrternal Radius; 3: Voucher; 4: External Portal Server; 5: Local User; 6: SMS; 7: Facebook; 8: Hotspot Radius; 9: Mac Auth (with fail over); 10: Admin auth; 12: Form auth") + + + public Integer getAuthType() { + return authType; + } + + public void setAuthType(Integer authType) { + this.authType = authType; + } + + public AuthClientOpenApiVo fbVer(Integer fbVer) { + this.fbVer = fbVer; + return this; + } + + /** + * Version of Facebook Wi-Fi (authType = Facebook or Facebook V2) + * @return fbVer + */ + @ApiModelProperty(value = "Version of Facebook Wi-Fi (authType = Facebook or Facebook V2)") + + + public Integer getFbVer() { + return fbVer; + } + + public void setFbVer(Integer fbVer) { + this.fbVer = fbVer; + } + + public AuthClientOpenApiVo download(Long download) { + this.download = download; + return this; + } + + /** + * Total Download (Byte) + * @return download + */ + @ApiModelProperty(value = "Total Download (Byte)") + + + public Long getDownload() { + return download; + } + + public void setDownload(Long download) { + this.download = download; + } + + public AuthClientOpenApiVo upload(Long upload) { + this.upload = upload; + return this; + } + + /** + * Total Upload (Byte) + * @return upload + */ + @ApiModelProperty(value = "Total Upload (Byte)") + + + public Long getUpload() { + return upload; + } + + public void setUpload(Long upload) { + this.upload = upload; + } + + public AuthClientOpenApiVo duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * Total Duration (s) + * @return duration + */ + @ApiModelProperty(value = "Total Duration (s)") + + + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + public AuthClientOpenApiVo start(Long start) { + this.start = start; + return this; + } + + /** + * Start timestamp + * @return start + */ + @ApiModelProperty(value = "Start timestamp") + + + public Long getStart() { + return start; + } + + public void setStart(Long start) { + this.start = start; + } + + public AuthClientOpenApiVo end(Long end) { + this.end = end; + return this; + } + + /** + * End timestamp + * @return end + */ + @ApiModelProperty(value = "End timestamp") + + + public Long getEnd() { + return end; + } + + public void setEnd(Long end) { + this.end = end; + } + + public AuthClientOpenApiVo valid(Boolean valid) { + this.valid = valid; + return this; + } + + /** + * Is the client valid + * @return valid + */ + @ApiModelProperty(value = "Is the client valid") + + + public Boolean getValid() { + return valid; + } + + public void setValid(Boolean valid) { + this.valid = valid; + } + + public AuthClientOpenApiVo localUserName(String localUserName) { + this.localUserName = localUserName; + return this; + } + + /** + * LocalUser Name (authType = Local User) + * @return localUserName + */ + @ApiModelProperty(value = "LocalUser Name (authType = Local User)") + + + public String getLocalUserName() { + return localUserName; + } + + public void setLocalUserName(String localUserName) { + this.localUserName = localUserName; + } + + public AuthClientOpenApiVo voucherCode(String voucherCode) { + this.voucherCode = voucherCode; + return this; + } + + /** + * Voucher code (authType = Voucher) + * @return voucherCode + */ + @ApiModelProperty(value = "Voucher code (authType = Voucher)") + + + public String getVoucherCode() { + return voucherCode; + } + + public void setVoucherCode(String voucherCode) { + this.voucherCode = voucherCode; + } + + public AuthClientOpenApiVo formName(String formName) { + this.formName = formName; + return this; + } + + /** + * Form name (authType = form auth) + * @return formName + */ + @ApiModelProperty(value = "Form name (authType = form auth)") + + + public String getFormName() { + return formName; + } + + public void setFormName(String formName) { + this.formName = formName; + } + + public AuthClientOpenApiVo radiusUsername(String radiusUsername) { + this.radiusUsername = radiusUsername; + return this; + } + + /** + * Radius userName (authType = External RADIUS or Hotspot RADIUS) + * @return radiusUsername + */ + @ApiModelProperty(value = "Radius userName (authType = External RADIUS or Hotspot RADIUS)") + + + public String getRadiusUsername() { + return radiusUsername; + } + + public void setRadiusUsername(String radiusUsername) { + this.radiusUsername = radiusUsername; + } + + public AuthClientOpenApiVo adminName(String adminName) { + this.adminName = adminName; + return this; + } + + /** + * Admin name (authType = ADMIN) + * @return adminName + */ + @ApiModelProperty(value = "Admin name (authType = ADMIN)") + + + public String getAdminName() { + return adminName; + } + + public void setAdminName(String adminName) { + this.adminName = adminName; + } + + public AuthClientOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP address at the time of authentication + * @return ip + */ + @ApiModelProperty(value = "IP address at the time of authentication") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthClientOpenApiVo authClientOpenApiVo = (AuthClientOpenApiVo) o; + return Objects.equals(this.id, authClientOpenApiVo.id) && + Objects.equals(this.name, authClientOpenApiVo.name) && + Objects.equals(this.mac, authClientOpenApiVo.mac) && + Objects.equals(this.wireless, authClientOpenApiVo.wireless) && + Objects.equals(this.ssid, authClientOpenApiVo.ssid) && + Objects.equals(this.networkName, authClientOpenApiVo.networkName) && + Objects.equals(this.authType, authClientOpenApiVo.authType) && + Objects.equals(this.fbVer, authClientOpenApiVo.fbVer) && + Objects.equals(this.download, authClientOpenApiVo.download) && + Objects.equals(this.upload, authClientOpenApiVo.upload) && + Objects.equals(this.duration, authClientOpenApiVo.duration) && + Objects.equals(this.start, authClientOpenApiVo.start) && + Objects.equals(this.end, authClientOpenApiVo.end) && + Objects.equals(this.valid, authClientOpenApiVo.valid) && + Objects.equals(this.localUserName, authClientOpenApiVo.localUserName) && + Objects.equals(this.voucherCode, authClientOpenApiVo.voucherCode) && + Objects.equals(this.formName, authClientOpenApiVo.formName) && + Objects.equals(this.radiusUsername, authClientOpenApiVo.radiusUsername) && + Objects.equals(this.adminName, authClientOpenApiVo.adminName) && + Objects.equals(this.ip, authClientOpenApiVo.ip); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, mac, wireless, ssid, networkName, authType, fbVer, download, upload, duration, start, end, valid, localUserName, voucherCode, formName, radiusUsername, adminName, ip); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthClientOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" wireless: ").append(toIndentedString(wireless)).append("\n"); + sb.append(" ssid: ").append(toIndentedString(ssid)).append("\n"); + sb.append(" networkName: ").append(toIndentedString(networkName)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" fbVer: ").append(toIndentedString(fbVer)).append("\n"); + sb.append(" download: ").append(toIndentedString(download)).append("\n"); + sb.append(" upload: ").append(toIndentedString(upload)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); + sb.append(" valid: ").append(toIndentedString(valid)).append("\n"); + sb.append(" localUserName: ").append(toIndentedString(localUserName)).append("\n"); + sb.append(" voucherCode: ").append(toIndentedString(voucherCode)).append("\n"); + sb.append(" formName: ").append(toIndentedString(formName)).append("\n"); + sb.append(" radiusUsername: ").append(toIndentedString(radiusUsername)).append("\n"); + sb.append(" adminName: ").append(toIndentedString(adminName)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AuthTimeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AuthTimeOpenApiVo.java new file mode 100644 index 0000000..51ada43 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/AuthTimeOpenApiVo.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Authentication timeout time. Display when enabled, otherwise no display. + */ +@ApiModel(description = "Authentication timeout time. Display when enabled, otherwise no display.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class AuthTimeOpenApiVo { + @JsonProperty("authTimeout") + private Integer authTimeout; + + @JsonProperty("customTimeout") + private Integer customTimeout; + + @JsonProperty("customTimeoutUnit") + private Integer customTimeoutUnit; + + public AuthTimeOpenApiVo authTimeout(Integer authTimeout) { + this.authTimeout = authTimeout; + return this; + } + + /** + * Validity period should be a value as follows: 0: Custom; 1: 30 Minutes; 2: 1 Hour; 3: 2 Hours; 4: 4 Hours; 5: 8 Hours; 6: 1 Day; 7: 7 Days integer. + * @return authTimeout + */ + @ApiModelProperty(required = true, value = "Validity period should be a value as follows: 0: Custom; 1: 30 Minutes; 2: 1 Hour; 3: 2 Hours; 4: 4 Hours; 5: 8 Hours; 6: 1 Day; 7: 7 Days integer.") + @NotNull + + + public Integer getAuthTimeout() { + return authTimeout; + } + + public void setAuthTimeout(Integer authTimeout) { + this.authTimeout = authTimeout; + } + + public AuthTimeOpenApiVo customTimeout(Integer customTimeout) { + this.customTimeout = customTimeout; + return this; + } + + /** + * Custom timeout should be within the range of 1 ~ 1,000,000 minutes(when parameter[customTimeoutUnit] value is 1), or 1 ~ 10,000 hours(when parameter[customTimeoutUnit] value is 2), or 1 ~ 1,000 days(when parameter[customTimeoutUnit] value is 3). + * @return customTimeout + */ + @ApiModelProperty(value = "Custom timeout should be within the range of 1 ~ 1,000,000 minutes(when parameter[customTimeoutUnit] value is 1), or 1 ~ 10,000 hours(when parameter[customTimeoutUnit] value is 2), or 1 ~ 1,000 days(when parameter[customTimeoutUnit] value is 3).") + + + public Integer getCustomTimeout() { + return customTimeout; + } + + public void setCustomTimeout(Integer customTimeout) { + this.customTimeout = customTimeout; + } + + public AuthTimeOpenApiVo customTimeoutUnit(Integer customTimeoutUnit) { + this.customTimeoutUnit = customTimeoutUnit; + return this; + } + + /** + * Custom timeout unit should be a value as follows: 1: min; 2: hour; 3: day. + * @return customTimeoutUnit + */ + @ApiModelProperty(value = "Custom timeout unit should be a value as follows: 1: min; 2: hour; 3: day.") + + + public Integer getCustomTimeoutUnit() { + return customTimeoutUnit; + } + + public void setCustomTimeoutUnit(Integer customTimeoutUnit) { + this.customTimeoutUnit = customTimeoutUnit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthTimeOpenApiVo authTimeOpenApiVo = (AuthTimeOpenApiVo) o; + return Objects.equals(this.authTimeout, authTimeOpenApiVo.authTimeout) && + Objects.equals(this.customTimeout, authTimeOpenApiVo.customTimeout) && + Objects.equals(this.customTimeoutUnit, authTimeOpenApiVo.customTimeoutUnit); + } + + @Override + public int hashCode() { + return Objects.hash(authTimeout, customTimeout, customTimeoutUnit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthTimeOpenApiVo {\n"); + + sb.append(" authTimeout: ").append(toIndentedString(authTimeout)).append("\n"); + sb.append(" customTimeout: ").append(toIndentedString(customTimeout)).append("\n"); + sb.append(" customTimeoutUnit: ").append(toIndentedString(customTimeoutUnit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateFormAuthOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateFormAuthOpenApiVo.java new file mode 100644 index 0000000..552b924 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateFormAuthOpenApiVo.java @@ -0,0 +1,219 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateFormAuthOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class CreateFormAuthOpenApiVo { + @JsonProperty("title") + private String title; + + @JsonProperty("name") + private String name; + + @JsonProperty("note") + private String note; + + @JsonProperty("authTimeout") + private AuthTimeOpenApiVo authTimeout; + + @JsonProperty("cardList") + @Valid + private List cardList = new ArrayList<>(); + + @JsonProperty("published") + private Boolean published; + + public CreateFormAuthOpenApiVo title(String title) { + this.title = title; + return this; + } + + /** + * Form title (display for the authentication user). It should contain 1-2000 characters. + * @return title + */ + @ApiModelProperty(required = true, value = "Form title (display for the authentication user). It should contain 1-2000 characters.") + @NotNull + + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public CreateFormAuthOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Form name (display for the controller user). It should contain 1-2000 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Form name (display for the controller user). It should contain 1-2000 characters.") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateFormAuthOpenApiVo note(String note) { + this.note = note; + return this; + } + + /** + * Note should contain 1-2000 characters. + * @return note + */ + @ApiModelProperty(required = true, value = "Note should contain 1-2000 characters.") + @NotNull + + + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public CreateFormAuthOpenApiVo authTimeout(AuthTimeOpenApiVo authTimeout) { + this.authTimeout = authTimeout; + return this; + } + + /** + * Get authTimeout + * @return authTimeout + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public AuthTimeOpenApiVo getAuthTimeout() { + return authTimeout; + } + + public void setAuthTimeout(AuthTimeOpenApiVo authTimeout) { + this.authTimeout = authTimeout; + } + + public CreateFormAuthOpenApiVo cardList(List cardList) { + this.cardList = cardList; + return this; + } + + public CreateFormAuthOpenApiVo addCardListItem(FormAuthCardOpenApiVo cardListItem) { + this.cardList.add(cardListItem); + return this; + } + + /** + * Form card list. + * @return cardList + */ + @ApiModelProperty(required = true, value = "Form card list.") + @NotNull + + @Valid + + public List getCardList() { + return cardList; + } + + public void setCardList(List cardList) { + this.cardList = cardList; + } + + public CreateFormAuthOpenApiVo published(Boolean published) { + this.published = published; + return this; + } + + /** + * Whether to publish. + * @return published + */ + @ApiModelProperty(required = true, value = "Whether to publish.") + @NotNull + + + public Boolean getPublished() { + return published; + } + + public void setPublished(Boolean published) { + this.published = published; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateFormAuthOpenApiVo createFormAuthOpenApiVo = (CreateFormAuthOpenApiVo) o; + return Objects.equals(this.title, createFormAuthOpenApiVo.title) && + Objects.equals(this.name, createFormAuthOpenApiVo.name) && + Objects.equals(this.note, createFormAuthOpenApiVo.note) && + Objects.equals(this.authTimeout, createFormAuthOpenApiVo.authTimeout) && + Objects.equals(this.cardList, createFormAuthOpenApiVo.cardList) && + Objects.equals(this.published, createFormAuthOpenApiVo.published); + } + + @Override + public int hashCode() { + return Objects.hash(title, name, note, authTimeout, cardList, published); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateFormAuthOpenApiVo {\n"); + + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" note: ").append(toIndentedString(note)).append("\n"); + sb.append(" authTimeout: ").append(toIndentedString(authTimeout)).append("\n"); + sb.append(" cardList: ").append(toIndentedString(cardList)).append("\n"); + sb.append(" published: ").append(toIndentedString(published)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateLocalUserOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateLocalUserOpenApiVo.java new file mode 100644 index 0000000..e7f0301 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateLocalUserOpenApiVo.java @@ -0,0 +1,422 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateLocalUserOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class CreateLocalUserOpenApiVo { + @JsonProperty("userName") + private String userName; + + @JsonProperty("password") + private String password; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("expirationTime") + private Long expirationTime; + + @JsonProperty("bindingType") + private Integer bindingType; + + @JsonProperty("macAddress") + private String macAddress; + + @JsonProperty("maxUsers") + private Integer maxUsers; + + @JsonProperty("name") + private String name; + + @JsonProperty("phone") + private String phone; + + @JsonProperty("rateLimit") + private RateLimitOpenApiVo rateLimit; + + @JsonProperty("trafficLimitEnable") + private Boolean trafficLimitEnable; + + @JsonProperty("trafficLimit") + private Long trafficLimit; + + @JsonProperty("trafficLimitFrequency") + private Integer trafficLimitFrequency; + + @JsonProperty("portals") + @Valid + private List portals = new ArrayList<>(); + + public CreateLocalUserOpenApiVo userName(String userName) { + this.userName = userName; + return this; + } + + /** + * User name should contain 1 to 128 ASCII visible characters, with no spaces at the beginning and end, and spaces in the middle + * @return userName + */ + @ApiModelProperty(required = true, value = "User name should contain 1 to 128 ASCII visible characters, with no spaces at the beginning and end, and spaces in the middle") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public CreateLocalUserOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Password should contain 1 to 128 characters. + * @return password + */ + @ApiModelProperty(required = true, value = "Password should contain 1 to 128 characters.") + @NotNull + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public CreateLocalUserOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Whether to enable. + * @return enable + */ + @ApiModelProperty(required = true, value = "Whether to enable.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public CreateLocalUserOpenApiVo expirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + /** + * Expiration timestamp. Unit:ms. + * @return expirationTime + */ + @ApiModelProperty(required = true, value = "Expiration timestamp. Unit:ms.") + @NotNull + + + public Long getExpirationTime() { + return expirationTime; + } + + public void setExpirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + } + + public CreateLocalUserOpenApiVo bindingType(Integer bindingType) { + this.bindingType = bindingType; + return this; + } + + /** + * MAC binding type should be a value as follows: 0: no binding; 1: static binding; 2: dynamic binding. + * @return bindingType + */ + @ApiModelProperty(required = true, value = "MAC binding type should be a value as follows: 0: no binding; 1: static binding; 2: dynamic binding.") + @NotNull + + + public Integer getBindingType() { + return bindingType; + } + + public void setBindingType(Integer bindingType) { + this.bindingType = bindingType; + } + + public CreateLocalUserOpenApiVo macAddress(String macAddress) { + this.macAddress = macAddress; + return this; + } + + /** + * Mac address,the value is only available when the macType is static binding or dynamic binding. + * @return macAddress + */ + @ApiModelProperty(value = "Mac address,the value is only available when the macType is static binding or dynamic binding.") + + + public String getMacAddress() { + return macAddress; + } + + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + public CreateLocalUserOpenApiVo maxUsers(Integer maxUsers) { + this.maxUsers = maxUsers; + return this; + } + + /** + * The maximum number of users online at the same time when the MAC binding type is No Binding. It cannot be modified after initialization. MaxUsers should be within the range of 1–2048. + * @return maxUsers + */ + @ApiModelProperty(required = true, value = "The maximum number of users online at the same time when the MAC binding type is No Binding. It cannot be modified after initialization. MaxUsers should be within the range of 1–2048.") + @NotNull + + + public Integer getMaxUsers() { + return maxUsers; + } + + public void setMaxUsers(Integer maxUsers) { + this.maxUsers = maxUsers; + } + + public CreateLocalUserOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 128 characters, with no spaces at the beginning and end, and spaces in the middle + * @return name + */ + @ApiModelProperty(value = "Name should contain 1 to 128 characters, with no spaces at the beginning and end, and spaces in the middle") + +@Pattern(regexp="^$|^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateLocalUserOpenApiVo phone(String phone) { + this.phone = phone; + return this; + } + + /** + * Phone number should contain 1 to 20 characters. + * @return phone + */ + @ApiModelProperty(value = "Phone number should contain 1 to 20 characters.") + + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public CreateLocalUserOpenApiVo rateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + return this; + } + + /** + * Get rateLimit + * @return rateLimit + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public RateLimitOpenApiVo getRateLimit() { + return rateLimit; + } + + public void setRateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + } + + public CreateLocalUserOpenApiVo trafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + return this; + } + + /** + * Whether to enable traffic limit. + * @return trafficLimitEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable traffic limit.") + @NotNull + + + public Boolean getTrafficLimitEnable() { + return trafficLimitEnable; + } + + public void setTrafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + } + + public CreateLocalUserOpenApiVo trafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + return this; + } + + /** + * Traffic limit in MB. It should be within the range of 1–10485760. + * @return trafficLimit + */ + @ApiModelProperty(value = "Traffic limit in MB. It should be within the range of 1–10485760.") + + + public Long getTrafficLimit() { + return trafficLimit; + } + + public void setTrafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + } + + public CreateLocalUserOpenApiVo trafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + return this; + } + + /** + * Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly. + * @return trafficLimitFrequency + */ + @ApiModelProperty(value = "Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly.") + + + public Integer getTrafficLimitFrequency() { + return trafficLimitFrequency; + } + + public void setTrafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + } + + public CreateLocalUserOpenApiVo portals(List portals) { + this.portals = portals; + return this; + } + + public CreateLocalUserOpenApiVo addPortalsItem(String portalsItem) { + this.portals.add(portalsItem); + return this; + } + + /** + * Bound portal ID list. Portal can be created using 'Add portal' interface, and portal ID can be obtained from 'Get portal list in a site' interface + * @return portals + */ + @ApiModelProperty(required = true, value = "Bound portal ID list. Portal can be created using 'Add portal' interface, and portal ID can be obtained from 'Get portal list in a site' interface") + @NotNull + + + public List getPortals() { + return portals; + } + + public void setPortals(List portals) { + this.portals = portals; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateLocalUserOpenApiVo createLocalUserOpenApiVo = (CreateLocalUserOpenApiVo) o; + return Objects.equals(this.userName, createLocalUserOpenApiVo.userName) && + Objects.equals(this.password, createLocalUserOpenApiVo.password) && + Objects.equals(this.enable, createLocalUserOpenApiVo.enable) && + Objects.equals(this.expirationTime, createLocalUserOpenApiVo.expirationTime) && + Objects.equals(this.bindingType, createLocalUserOpenApiVo.bindingType) && + Objects.equals(this.macAddress, createLocalUserOpenApiVo.macAddress) && + Objects.equals(this.maxUsers, createLocalUserOpenApiVo.maxUsers) && + Objects.equals(this.name, createLocalUserOpenApiVo.name) && + Objects.equals(this.phone, createLocalUserOpenApiVo.phone) && + Objects.equals(this.rateLimit, createLocalUserOpenApiVo.rateLimit) && + Objects.equals(this.trafficLimitEnable, createLocalUserOpenApiVo.trafficLimitEnable) && + Objects.equals(this.trafficLimit, createLocalUserOpenApiVo.trafficLimit) && + Objects.equals(this.trafficLimitFrequency, createLocalUserOpenApiVo.trafficLimitFrequency) && + Objects.equals(this.portals, createLocalUserOpenApiVo.portals); + } + + @Override + public int hashCode() { + return Objects.hash(userName, password, enable, expirationTime, bindingType, macAddress, maxUsers, name, phone, rateLimit, trafficLimitEnable, trafficLimit, trafficLimitFrequency, portals); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateLocalUserOpenApiVo {\n"); + + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" expirationTime: ").append(toIndentedString(expirationTime)).append("\n"); + sb.append(" bindingType: ").append(toIndentedString(bindingType)).append("\n"); + sb.append(" macAddress: ").append(toIndentedString(macAddress)).append("\n"); + sb.append(" maxUsers: ").append(toIndentedString(maxUsers)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); + sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n"); + sb.append(" trafficLimitEnable: ").append(toIndentedString(trafficLimitEnable)).append("\n"); + sb.append(" trafficLimit: ").append(toIndentedString(trafficLimit)).append("\n"); + sb.append(" trafficLimitFrequency: ").append(toIndentedString(trafficLimitFrequency)).append("\n"); + sb.append(" portals: ").append(toIndentedString(portals)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateVoucherGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateVoucherGroupOpenApiVo.java new file mode 100644 index 0000000..f463321 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreateVoucherGroupOpenApiVo.java @@ -0,0 +1,632 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateVoucherGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class CreateVoucherGroupOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("amount") + private Integer amount; + + @JsonProperty("codeLength") + private Integer codeLength; + + @JsonProperty("codeForm") + @Valid + private List codeForm = new ArrayList<>(); + + @JsonProperty("limitType") + private Integer limitType; + + @JsonProperty("limitNum") + private Integer limitNum; + + @JsonProperty("durationType") + private Integer durationType; + + @JsonProperty("duration") + private Long duration; + + @JsonProperty("timingType") + private Integer timingType; + + @JsonProperty("rateLimit") + private RateLimitOpenApiVo rateLimit; + + @JsonProperty("trafficLimitEnable") + private Boolean trafficLimitEnable; + + @JsonProperty("trafficLimit") + private Long trafficLimit; + + @JsonProperty("trafficLimitFrequency") + private Integer trafficLimitFrequency; + + @JsonProperty("unitPrice") + private Long unitPrice; + + @JsonProperty("currency") + private String currency; + + @JsonProperty("applyToAllPortals") + private Boolean applyToAllPortals; + + @JsonProperty("portals") + @Valid + private List portals = null; + + @JsonProperty("expirationTime") + private Long expirationTime; + + @JsonProperty("effectiveTime") + private Long effectiveTime; + + @JsonProperty("logout") + private Boolean logout; + + @JsonProperty("description") + private String description; + + @JsonProperty("printComments") + private String printComments; + + public CreateVoucherGroupOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Voucher group name. It should contain 1-32 characters + * @return name + */ + @ApiModelProperty(required = true, value = "Voucher group name. It should contain 1-32 characters") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateVoucherGroupOpenApiVo amount(Integer amount) { + this.amount = amount; + return this; + } + + /** + * The amount of vouchers created. It should be within the range of 1-500 + * @return amount + */ + @ApiModelProperty(required = true, value = "The amount of vouchers created. It should be within the range of 1-500") + @NotNull + + + public Integer getAmount() { + return amount; + } + + public void setAmount(Integer amount) { + this.amount = amount; + } + + public CreateVoucherGroupOpenApiVo codeLength(Integer codeLength) { + this.codeLength = codeLength; + return this; + } + + /** + * The length of voucher code. It should be within the range of 6–10. + * @return codeLength + */ + @ApiModelProperty(required = true, value = "The length of voucher code. It should be within the range of 6–10.") + @NotNull + + + public Integer getCodeLength() { + return codeLength; + } + + public void setCodeLength(Integer codeLength) { + this.codeLength = codeLength; + } + + public CreateVoucherGroupOpenApiVo codeForm(List codeForm) { + this.codeForm = codeForm; + return this; + } + + public CreateVoucherGroupOpenApiVo addCodeFormItem(Integer codeFormItem) { + this.codeForm.add(codeFormItem); + return this; + } + + /** + * The character types contained in the voucher code. It should be a value as follows: 0: Number, 1: Letter. For example, [0] indicates that the code only contains numbers; [0, 1] indicates that the code contains numbers and letters + * @return codeForm + */ + @ApiModelProperty(required = true, value = "The character types contained in the voucher code. It should be a value as follows: 0: Number, 1: Letter. For example, [0] indicates that the code only contains numbers; [0, 1] indicates that the code contains numbers and letters") + @NotNull + + + public List getCodeForm() { + return codeForm; + } + + public void setCodeForm(List codeForm) { + this.codeForm = codeForm; + } + + public CreateVoucherGroupOpenApiVo limitType(Integer limitType) { + this.limitType = limitType; + return this; + } + + /** + * The limitations of the voucher. It should be a value as follows: 0: Limited Usage Counts, 1: Limited Online Users, 2: Unlimited + * @return limitType + */ + @ApiModelProperty(required = true, value = "The limitations of the voucher. It should be a value as follows: 0: Limited Usage Counts, 1: Limited Online Users, 2: Unlimited") + @NotNull + + + public Integer getLimitType() { + return limitType; + } + + public void setLimitType(Integer limitType) { + this.limitType = limitType; + } + + public CreateVoucherGroupOpenApiVo limitNum(Integer limitNum) { + this.limitNum = limitNum; + return this; + } + + /** + * The number of limitations. It should be within the range of 1–999. If Parameter [limitType] is 0 or 1, [limitNum] should not be null.When Parameter [limitType] is 0, [limitNum] represents the maximum number of times this voucher can be used.When Parameter [limitType] is 1, [limitNum] represents the maximum number of users this voucher can be used at the same time. + * @return limitNum + */ + @ApiModelProperty(value = "The number of limitations. It should be within the range of 1–999. If Parameter [limitType] is 0 or 1, [limitNum] should not be null.When Parameter [limitType] is 0, [limitNum] represents the maximum number of times this voucher can be used.When Parameter [limitType] is 1, [limitNum] represents the maximum number of users this voucher can be used at the same time.") + + + public Integer getLimitNum() { + return limitNum; + } + + public void setLimitNum(Integer limitNum) { + this.limitNum = limitNum; + } + + public CreateVoucherGroupOpenApiVo durationType(Integer durationType) { + this.durationType = durationType; + return this; + } + + /** + * The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire + * @return durationType + */ + @ApiModelProperty(required = true, value = "The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire") + @NotNull + + + public Integer getDurationType() { + return durationType; + } + + public void setDurationType(Integer durationType) { + this.durationType = durationType; + } + + public CreateVoucherGroupOpenApiVo duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * Duration of one use, unit: minute. It should be within the range of 1–14400000. + * @return duration + */ + @ApiModelProperty(required = true, value = "Duration of one use, unit: minute. It should be within the range of 1–14400000.") + @NotNull + + + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + public CreateVoucherGroupOpenApiVo timingType(Integer timingType) { + this.timingType = timingType; + return this; + } + + /** + * The timing type of the voucher. It should be a value as follows: 0: Timing by time, clients can use vouchers for specified time duration. 1: Timing by usage, clients can use vouchers for the duration of actual usage + * @return timingType + */ + @ApiModelProperty(required = true, value = "The timing type of the voucher. It should be a value as follows: 0: Timing by time, clients can use vouchers for specified time duration. 1: Timing by usage, clients can use vouchers for the duration of actual usage") + @NotNull + + + public Integer getTimingType() { + return timingType; + } + + public void setTimingType(Integer timingType) { + this.timingType = timingType; + } + + public CreateVoucherGroupOpenApiVo rateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + return this; + } + + /** + * Get rateLimit + * @return rateLimit + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public RateLimitOpenApiVo getRateLimit() { + return rateLimit; + } + + public void setRateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + } + + public CreateVoucherGroupOpenApiVo trafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + return this; + } + + /** + * Whether to enable traffic limit + * @return trafficLimitEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable traffic limit") + @NotNull + + + public Boolean getTrafficLimitEnable() { + return trafficLimitEnable; + } + + public void setTrafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + } + + public CreateVoucherGroupOpenApiVo trafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + return this; + } + + /** + * Traffic limit in MB. It should be within the range of 1–10485760 + * @return trafficLimit + */ + @ApiModelProperty(value = "Traffic limit in MB. It should be within the range of 1–10485760") + + + public Long getTrafficLimit() { + return trafficLimit; + } + + public void setTrafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + } + + public CreateVoucherGroupOpenApiVo trafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + return this; + } + + /** + * Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly. + * @return trafficLimitFrequency + */ + @ApiModelProperty(value = "Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly.") + + + public Integer getTrafficLimitFrequency() { + return trafficLimitFrequency; + } + + public void setTrafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + } + + public CreateVoucherGroupOpenApiVo unitPrice(Long unitPrice) { + this.unitPrice = unitPrice; + return this; + } + + /** + * Price of single voucher. It should be within the range of 1–999999999 + * @return unitPrice + */ + @ApiModelProperty(value = "Price of single voucher. It should be within the range of 1–999999999") + + + public Long getUnitPrice() { + return unitPrice; + } + + public void setUnitPrice(Long unitPrice) { + this.unitPrice = unitPrice; + } + + public CreateVoucherGroupOpenApiVo currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide. + * @return currency + */ + @ApiModelProperty(value = "Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide.") + + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public CreateVoucherGroupOpenApiVo applyToAllPortals(Boolean applyToAllPortals) { + this.applyToAllPortals = applyToAllPortals; + return this; + } + + /** + * Is the voucher effective for all portals, including all newly created portals + * @return applyToAllPortals + */ + @ApiModelProperty(required = true, value = "Is the voucher effective for all portals, including all newly created portals") + @NotNull + + + public Boolean getApplyToAllPortals() { + return applyToAllPortals; + } + + public void setApplyToAllPortals(Boolean applyToAllPortals) { + this.applyToAllPortals = applyToAllPortals; + } + + public CreateVoucherGroupOpenApiVo portals(List portals) { + this.portals = portals; + return this; + } + + public CreateVoucherGroupOpenApiVo addPortalsItem(String portalsItem) { + if (this.portals == null) { + this.portals = new ArrayList<>(); + } + this.portals.add(portalsItem); + return this; + } + + /** + * Bound portal ID list. Portal can be created using 'Add portal' interface, and portal ID can be obtained from 'Get portal list in a site' interface + * @return portals + */ + @ApiModelProperty(value = "Bound portal ID list. Portal can be created using 'Add portal' interface, and portal ID can be obtained from 'Get portal list in a site' interface") + + + public List getPortals() { + return portals; + } + + public void setPortals(List portals) { + this.portals = portals; + } + + public CreateVoucherGroupOpenApiVo expirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + /** + * The timestamp of the expiration of the voucher, unit: millisecond + * @return expirationTime + */ + @ApiModelProperty(value = "The timestamp of the expiration of the voucher, unit: millisecond") + + + public Long getExpirationTime() { + return expirationTime; + } + + public void setExpirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + } + + public CreateVoucherGroupOpenApiVo effectiveTime(Long effectiveTime) { + this.effectiveTime = effectiveTime; + return this; + } + + /** + * The timestamp when the voucher takes effect, unit: millisecond + * @return effectiveTime + */ + @ApiModelProperty(value = "The timestamp when the voucher takes effect, unit: millisecond") + + + public Long getEffectiveTime() { + return effectiveTime; + } + + public void setEffectiveTime(Long effectiveTime) { + this.effectiveTime = effectiveTime; + } + + public CreateVoucherGroupOpenApiVo logout(Boolean logout) { + this.logout = logout; + return this; + } + + /** + * Whether the voucher support portal logout functionality + * @return logout + */ + @ApiModelProperty(value = "Whether the voucher support portal logout functionality") + + + public Boolean getLogout() { + return logout; + } + + public void setLogout(Boolean logout) { + this.logout = logout; + } + + public CreateVoucherGroupOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description of the voucher group + * @return description + */ + @ApiModelProperty(value = "Description of the voucher group") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateVoucherGroupOpenApiVo printComments(String printComments) { + this.printComments = printComments; + return this; + } + + /** + * Print comments of the voucher group + * @return printComments + */ + @ApiModelProperty(value = "Print comments of the voucher group") + + + public String getPrintComments() { + return printComments; + } + + public void setPrintComments(String printComments) { + this.printComments = printComments; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateVoucherGroupOpenApiVo createVoucherGroupOpenApiVo = (CreateVoucherGroupOpenApiVo) o; + return Objects.equals(this.name, createVoucherGroupOpenApiVo.name) && + Objects.equals(this.amount, createVoucherGroupOpenApiVo.amount) && + Objects.equals(this.codeLength, createVoucherGroupOpenApiVo.codeLength) && + Objects.equals(this.codeForm, createVoucherGroupOpenApiVo.codeForm) && + Objects.equals(this.limitType, createVoucherGroupOpenApiVo.limitType) && + Objects.equals(this.limitNum, createVoucherGroupOpenApiVo.limitNum) && + Objects.equals(this.durationType, createVoucherGroupOpenApiVo.durationType) && + Objects.equals(this.duration, createVoucherGroupOpenApiVo.duration) && + Objects.equals(this.timingType, createVoucherGroupOpenApiVo.timingType) && + Objects.equals(this.rateLimit, createVoucherGroupOpenApiVo.rateLimit) && + Objects.equals(this.trafficLimitEnable, createVoucherGroupOpenApiVo.trafficLimitEnable) && + Objects.equals(this.trafficLimit, createVoucherGroupOpenApiVo.trafficLimit) && + Objects.equals(this.trafficLimitFrequency, createVoucherGroupOpenApiVo.trafficLimitFrequency) && + Objects.equals(this.unitPrice, createVoucherGroupOpenApiVo.unitPrice) && + Objects.equals(this.currency, createVoucherGroupOpenApiVo.currency) && + Objects.equals(this.applyToAllPortals, createVoucherGroupOpenApiVo.applyToAllPortals) && + Objects.equals(this.portals, createVoucherGroupOpenApiVo.portals) && + Objects.equals(this.expirationTime, createVoucherGroupOpenApiVo.expirationTime) && + Objects.equals(this.effectiveTime, createVoucherGroupOpenApiVo.effectiveTime) && + Objects.equals(this.logout, createVoucherGroupOpenApiVo.logout) && + Objects.equals(this.description, createVoucherGroupOpenApiVo.description) && + Objects.equals(this.printComments, createVoucherGroupOpenApiVo.printComments); + } + + @Override + public int hashCode() { + return Objects.hash(name, amount, codeLength, codeForm, limitType, limitNum, durationType, duration, timingType, rateLimit, trafficLimitEnable, trafficLimit, trafficLimitFrequency, unitPrice, currency, applyToAllPortals, portals, expirationTime, effectiveTime, logout, description, printComments); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateVoucherGroupOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" codeLength: ").append(toIndentedString(codeLength)).append("\n"); + sb.append(" codeForm: ").append(toIndentedString(codeForm)).append("\n"); + sb.append(" limitType: ").append(toIndentedString(limitType)).append("\n"); + sb.append(" limitNum: ").append(toIndentedString(limitNum)).append("\n"); + sb.append(" durationType: ").append(toIndentedString(durationType)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" timingType: ").append(toIndentedString(timingType)).append("\n"); + sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n"); + sb.append(" trafficLimitEnable: ").append(toIndentedString(trafficLimitEnable)).append("\n"); + sb.append(" trafficLimit: ").append(toIndentedString(trafficLimit)).append("\n"); + sb.append(" trafficLimitFrequency: ").append(toIndentedString(trafficLimitFrequency)).append("\n"); + sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" applyToAllPortals: ").append(toIndentedString(applyToAllPortals)).append("\n"); + sb.append(" portals: ").append(toIndentedString(portals)).append("\n"); + sb.append(" expirationTime: ").append(toIndentedString(expirationTime)).append("\n"); + sb.append(" effectiveTime: ").append(toIndentedString(effectiveTime)).append("\n"); + sb.append(" logout: ").append(toIndentedString(logout)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" printComments: ").append(toIndentedString(printComments)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreatedResIdOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreatedResIdOpenApiVo.java new file mode 100644 index 0000000..d36e6d8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CreatedResIdOpenApiVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CreatedResIdOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class CreatedResIdOpenApiVo { + @JsonProperty("id") + private String id; + + public CreatedResIdOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * ID of the created object. + * @return id + */ + @ApiModelProperty(value = "ID of the created object.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreatedResIdOpenApiVo createdResIdOpenApiVo = (CreatedResIdOpenApiVo) o; + return Objects.equals(this.id, createdResIdOpenApiVo.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreatedResIdOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CurrencyCandidatesOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CurrencyCandidatesOpenApiVo.java new file mode 100644 index 0000000..1bb3e80 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CurrencyCandidatesOpenApiVo.java @@ -0,0 +1,113 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CurrencyCandidatesOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class CurrencyCandidatesOpenApiVo { + @JsonProperty("currencyList") + @Valid + private List currencyList = null; + + @JsonProperty("selectedCurrency") + private String selectedCurrency; + + public CurrencyCandidatesOpenApiVo currencyList(List currencyList) { + this.currencyList = currencyList; + return this; + } + + public CurrencyCandidatesOpenApiVo addCurrencyListItem(String currencyListItem) { + if (this.currencyList == null) { + this.currencyList = new ArrayList<>(); + } + this.currencyList.add(currencyListItem); + return this; + } + + /** + * All currency Short Code list. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide. + * @return currencyList + */ + @ApiModelProperty(value = "All currency Short Code list. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide.") + + + public List getCurrencyList() { + return currencyList; + } + + public void setCurrencyList(List currencyList) { + this.currencyList = currencyList; + } + + public CurrencyCandidatesOpenApiVo selectedCurrency(String selectedCurrency) { + this.selectedCurrency = selectedCurrency; + return this; + } + + /** + * The currency selected for the site + * @return selectedCurrency + */ + @ApiModelProperty(value = "The currency selected for the site") + + + public String getSelectedCurrency() { + return selectedCurrency; + } + + public void setSelectedCurrency(String selectedCurrency) { + this.selectedCurrency = selectedCurrency; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CurrencyCandidatesOpenApiVo currencyCandidatesOpenApiVo = (CurrencyCandidatesOpenApiVo) o; + return Objects.equals(this.currencyList, currencyCandidatesOpenApiVo.currencyList) && + Objects.equals(this.selectedCurrency, currencyCandidatesOpenApiVo.selectedCurrency); + } + + @Override + public int hashCode() { + return Objects.hash(currencyList, selectedCurrency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CurrencyCandidatesOpenApiVo {\n"); + + sb.append(" currencyList: ").append(toIndentedString(currencyList)).append("\n"); + sb.append(" selectedCurrency: ").append(toIndentedString(selectedCurrency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CustomRateLimitOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CustomRateLimitOpenApiVo.java new file mode 100644 index 0000000..ac28177 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/CustomRateLimitOpenApiVo.java @@ -0,0 +1,156 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Custom configuration rate limit. + */ +@ApiModel(description = "Custom configuration rate limit.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class CustomRateLimitOpenApiVo { + @JsonProperty("downLimitEnable") + private Boolean downLimitEnable; + + @JsonProperty("downLimit") + private Long downLimit; + + @JsonProperty("upLimitEnable") + private Boolean upLimitEnable; + + @JsonProperty("upLimit") + private Long upLimit; + + public CustomRateLimitOpenApiVo downLimitEnable(Boolean downLimitEnable) { + this.downLimitEnable = downLimitEnable; + return this; + } + + /** + * Whether to enable downlink speed limit. + * @return downLimitEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable downlink speed limit.") + @NotNull + + + public Boolean getDownLimitEnable() { + return downLimitEnable; + } + + public void setDownLimitEnable(Boolean downLimitEnable) { + this.downLimitEnable = downLimitEnable; + } + + public CustomRateLimitOpenApiVo downLimit(Long downLimit) { + this.downLimit = downLimit; + return this; + } + + /** + * Downlink speed limit in Kbps. The value of limit should be within the range of 0–10485760(Kbps). + * @return downLimit + */ + @ApiModelProperty(value = "Downlink speed limit in Kbps. The value of limit should be within the range of 0–10485760(Kbps).") + + + public Long getDownLimit() { + return downLimit; + } + + public void setDownLimit(Long downLimit) { + this.downLimit = downLimit; + } + + public CustomRateLimitOpenApiVo upLimitEnable(Boolean upLimitEnable) { + this.upLimitEnable = upLimitEnable; + return this; + } + + /** + * Whether to enable uplink speed limit. + * @return upLimitEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable uplink speed limit.") + @NotNull + + + public Boolean getUpLimitEnable() { + return upLimitEnable; + } + + public void setUpLimitEnable(Boolean upLimitEnable) { + this.upLimitEnable = upLimitEnable; + } + + public CustomRateLimitOpenApiVo upLimit(Long upLimit) { + this.upLimit = upLimit; + return this; + } + + /** + * Uplink speed limit in Kbps. The value of limit should be within the range of 0–10485760(Kbps). + * @return upLimit + */ + @ApiModelProperty(value = "Uplink speed limit in Kbps. The value of limit should be within the range of 0–10485760(Kbps).") + + + public Long getUpLimit() { + return upLimit; + } + + public void setUpLimit(Long upLimit) { + this.upLimit = upLimit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomRateLimitOpenApiVo customRateLimitOpenApiVo = (CustomRateLimitOpenApiVo) o; + return Objects.equals(this.downLimitEnable, customRateLimitOpenApiVo.downLimitEnable) && + Objects.equals(this.downLimit, customRateLimitOpenApiVo.downLimit) && + Objects.equals(this.upLimitEnable, customRateLimitOpenApiVo.upLimitEnable) && + Objects.equals(this.upLimit, customRateLimitOpenApiVo.upLimit); + } + + @Override + public int hashCode() { + return Objects.hash(downLimitEnable, downLimit, upLimitEnable, upLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomRateLimitOpenApiVo {\n"); + + sb.append(" downLimitEnable: ").append(toIndentedString(downLimitEnable)).append("\n"); + sb.append(" downLimit: ").append(toIndentedString(downLimit)).append("\n"); + sb.append(" upLimitEnable: ").append(toIndentedString(upLimitEnable)).append("\n"); + sb.append(" upLimit: ").append(toIndentedString(upLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/ExtendOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/ExtendOpenApiVo.java new file mode 100644 index 0000000..97ebbdd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/ExtendOpenApiVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ExtendOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class ExtendOpenApiVo { + @JsonProperty("period") + private Long period; + + public ExtendOpenApiVo period(Long period) { + this.period = period; + return this; + } + + /** + * Extended timestamp. Unit:ms. Period should be within the range of 60000 to 86400000000000(60s to 1000000days). + * @return period + */ + @ApiModelProperty(required = true, value = "Extended timestamp. Unit:ms. Period should be within the range of 60000 to 86400000000000(60s to 1000000days).") + @NotNull + + + public Long getPeriod() { + return period; + } + + public void setPeriod(Long period) { + this.period = period; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExtendOpenApiVo extendOpenApiVo = (ExtendOpenApiVo) o; + return Objects.equals(this.period, extendOpenApiVo.period); + } + + @Override + public int hashCode() { + return Objects.hash(period); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExtendOpenApiVo {\n"); + + sb.append(" period: ").append(toIndentedString(period)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthCardAnswerOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthCardAnswerOpenApiVo.java new file mode 100644 index 0000000..56641bc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthCardAnswerOpenApiVo.java @@ -0,0 +1,190 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Answers submitted by users. + */ +@ApiModel(description = "Answers submitted by users.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class FormAuthCardAnswerOpenApiVo { + @JsonProperty("type") + private Integer type; + + @JsonProperty("choiceAnswer") + @Valid + private List choiceAnswer = null; + + @JsonProperty("inputAnswer") + private String inputAnswer; + + @JsonProperty("score") + private Integer score; + + @JsonProperty("others") + private String others; + + public FormAuthCardAnswerOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: 0: single choice; 1: multiple choice; 2: ComboBox; 3: input; 4: score; 5: prompt box + * @return type + */ + @ApiModelProperty(value = "Type should be a value as follows: 0: single choice; 1: multiple choice; 2: ComboBox; 3: input; 4: score; 5: prompt box") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public FormAuthCardAnswerOpenApiVo choiceAnswer(List choiceAnswer) { + this.choiceAnswer = choiceAnswer; + return this; + } + + public FormAuthCardAnswerOpenApiVo addChoiceAnswerItem(Integer choiceAnswerItem) { + if (this.choiceAnswer == null) { + this.choiceAnswer = new ArrayList<>(); + } + this.choiceAnswer.add(choiceAnswerItem); + return this; + } + + /** + * Drop-down menu or answer list for multiple-choice questions (exists if and only if cardType is 0, 1, 2) + * @return choiceAnswer + */ + @ApiModelProperty(value = "Drop-down menu or answer list for multiple-choice questions (exists if and only if cardType is 0, 1, 2)") + + + public List getChoiceAnswer() { + return choiceAnswer; + } + + public void setChoiceAnswer(List choiceAnswer) { + this.choiceAnswer = choiceAnswer; + } + + public FormAuthCardAnswerOpenApiVo inputAnswer(String inputAnswer) { + this.inputAnswer = inputAnswer; + return this; + } + + /** + * Answers entered by the user, which corresponds to the question and answer question or the scored evaluation, or the input of other options in the multiple-choice question. Determined according to the type field. 0, 1, and 2 indicate other options answers, 3 indicates the answer in the input box, and 4 indicates the scored evaluation. InputAnswer should contain 1-2000 characters + * @return inputAnswer + */ + @ApiModelProperty(value = "Answers entered by the user, which corresponds to the question and answer question or the scored evaluation, or the input of other options in the multiple-choice question. Determined according to the type field. 0, 1, and 2 indicate other options answers, 3 indicates the answer in the input box, and 4 indicates the scored evaluation. InputAnswer should contain 1-2000 characters") + + + public String getInputAnswer() { + return inputAnswer; + } + + public void setInputAnswer(String inputAnswer) { + this.inputAnswer = inputAnswer; + } + + public FormAuthCardAnswerOpenApiVo score(Integer score) { + this.score = score; + return this; + } + + /** + * User rating (should be within the range of 1-5), exists when type is 4 + * @return score + */ + @ApiModelProperty(value = "User rating (should be within the range of 1-5), exists when type is 4") + + + public Integer getScore() { + return score; + } + + public void setScore(Integer score) { + this.score = score; + } + + public FormAuthCardAnswerOpenApiVo others(String others) { + this.others = others; + return this; + } + + /** + * Exists when cardType is 0, 1 and the user adds other options. Used to save the option answer corresponding to the prompt of other options. Assuming that the user adds two other options, D and E, and choiceAnswer contains 3 ( D), 4 (E), then others[0] represents the answer of option D. Others should contain 1-2000 characters + * @return others + */ + @ApiModelProperty(value = "Exists when cardType is 0, 1 and the user adds other options. Used to save the option answer corresponding to the prompt of other options. Assuming that the user adds two other options, D and E, and choiceAnswer contains 3 ( D), 4 (E), then others[0] represents the answer of option D. Others should contain 1-2000 characters") + + + public String getOthers() { + return others; + } + + public void setOthers(String others) { + this.others = others; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FormAuthCardAnswerOpenApiVo formAuthCardAnswerOpenApiVo = (FormAuthCardAnswerOpenApiVo) o; + return Objects.equals(this.type, formAuthCardAnswerOpenApiVo.type) && + Objects.equals(this.choiceAnswer, formAuthCardAnswerOpenApiVo.choiceAnswer) && + Objects.equals(this.inputAnswer, formAuthCardAnswerOpenApiVo.inputAnswer) && + Objects.equals(this.score, formAuthCardAnswerOpenApiVo.score) && + Objects.equals(this.others, formAuthCardAnswerOpenApiVo.others); + } + + @Override + public int hashCode() { + return Objects.hash(type, choiceAnswer, inputAnswer, score, others); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FormAuthCardAnswerOpenApiVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" choiceAnswer: ").append(toIndentedString(choiceAnswer)).append("\n"); + sb.append(" inputAnswer: ").append(toIndentedString(inputAnswer)).append("\n"); + sb.append(" score: ").append(toIndentedString(score)).append("\n"); + sb.append(" others: ").append(toIndentedString(others)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthCardOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthCardOpenApiVo.java new file mode 100644 index 0000000..3851a5b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthCardOpenApiVo.java @@ -0,0 +1,224 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Form card list. + */ +@ApiModel(description = "Form card list.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class FormAuthCardOpenApiVo { + @JsonProperty("type") + private Integer type; + + @JsonProperty("required") + private Boolean required; + + @JsonProperty("title") + private String title; + + @JsonProperty("choices") + @Valid + private List choices = new ArrayList<>(); + + @JsonProperty("others") + private String others; + + @JsonProperty("scoreNotes") + @Valid + private List scoreNotes = new ArrayList<>(); + + public FormAuthCardOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Card type should be a value as follows: 0: single choice (single choice); 1: multiple choice (multiple choice); 2: ComboBox (drop-down menu); 3: input (input box); 4: score (score); 5: prompt frame + * @return type + */ + @ApiModelProperty(required = true, value = "Card type should be a value as follows: 0: single choice (single choice); 1: multiple choice (multiple choice); 2: ComboBox (drop-down menu); 3: input (input box); 4: score (score); 5: prompt frame") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public FormAuthCardOpenApiVo required(Boolean required) { + this.required = required; + return this; + } + + /** + * Indicates whether the card is required (cardType is 5, meaningless in the prompt box). + * @return required + */ + @ApiModelProperty(required = true, value = "Indicates whether the card is required (cardType is 5, meaningless in the prompt box).") + @NotNull + + + public Boolean getRequired() { + return required; + } + + public void setRequired(Boolean required) { + this.required = required; + } + + public FormAuthCardOpenApiVo title(String title) { + this.title = title; + return this; + } + + /** + * Title should contain 1-2000 characters + * @return title + */ + @ApiModelProperty(required = true, value = "Title should contain 1-2000 characters") + @NotNull + + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public FormAuthCardOpenApiVo choices(List choices) { + this.choices = choices; + return this; + } + + public FormAuthCardOpenApiVo addChoicesItem(String choicesItem) { + this.choices.add(choicesItem); + return this; + } + + /** + * Drop-down menu or list of options for multiple-choice questions (exist if and only if cardType is 0, 1, 2), excluding questions with other options. Choices should contain 1-2000 characters + * @return choices + */ + @ApiModelProperty(required = true, value = "Drop-down menu or list of options for multiple-choice questions (exist if and only if cardType is 0, 1, 2), excluding questions with other options. Choices should contain 1-2000 characters") + @NotNull + + + public List getChoices() { + return choices; + } + + public void setChoices(List choices) { + this.choices = choices; + } + + public FormAuthCardOpenApiVo others(String others) { + this.others = others; + return this; + } + + /** + * The question of the other options. Exists if and only if type is 0, 1. Others should contain 1-2000 characters + * @return others + */ + @ApiModelProperty(value = "The question of the other options. Exists if and only if type is 0, 1. Others should contain 1-2000 characters") + + + public String getOthers() { + return others; + } + + public void setOthers(String others) { + this.others = others; + } + + public FormAuthCardOpenApiVo scoreNotes(List scoreNotes) { + this.scoreNotes = scoreNotes; + return this; + } + + public FormAuthCardOpenApiVo addScoreNotesItem(String scoreNotesItem) { + this.scoreNotes.add(scoreNotesItem); + return this; + } + + /** + * The prompt text corresponding to different scores of the scoring card. Exists when the cardType is 4 and needs to be transmitted in order. The subscript 0 corresponds to the score 1. + * @return scoreNotes + */ + @ApiModelProperty(required = true, value = "The prompt text corresponding to different scores of the scoring card. Exists when the cardType is 4 and needs to be transmitted in order. The subscript 0 corresponds to the score 1.") + @NotNull + + + public List getScoreNotes() { + return scoreNotes; + } + + public void setScoreNotes(List scoreNotes) { + this.scoreNotes = scoreNotes; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FormAuthCardOpenApiVo formAuthCardOpenApiVo = (FormAuthCardOpenApiVo) o; + return Objects.equals(this.type, formAuthCardOpenApiVo.type) && + Objects.equals(this.required, formAuthCardOpenApiVo.required) && + Objects.equals(this.title, formAuthCardOpenApiVo.title) && + Objects.equals(this.choices, formAuthCardOpenApiVo.choices) && + Objects.equals(this.others, formAuthCardOpenApiVo.others) && + Objects.equals(this.scoreNotes, formAuthCardOpenApiVo.scoreNotes); + } + + @Override + public int hashCode() { + return Objects.hash(type, required, title, choices, others, scoreNotes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FormAuthCardOpenApiVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" required: ").append(toIndentedString(required)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" choices: ").append(toIndentedString(choices)).append("\n"); + sb.append(" others: ").append(toIndentedString(others)).append("\n"); + sb.append(" scoreNotes: ").append(toIndentedString(scoreNotes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthOpenApiVo.java new file mode 100644 index 0000000..d71686a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthOpenApiVo.java @@ -0,0 +1,324 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * FormAuthOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class FormAuthOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("title") + private String title; + + @JsonProperty("name") + private String name; + + @JsonProperty("note") + private String note; + + @JsonProperty("authTimeout") + private AuthTimeOpenApiVo authTimeout; + + @JsonProperty("cardList") + @Valid + private List cardList = null; + + @JsonProperty("isPublished") + private Boolean isPublished; + + @JsonProperty("createTime") + private Long createTime; + + @JsonProperty("portals") + @Valid + private List portals = null; + + @JsonProperty("answerNum") + private Long answerNum; + + public FormAuthOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Auth form ID + * @return id + */ + @ApiModelProperty(value = "Auth form ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FormAuthOpenApiVo title(String title) { + this.title = title; + return this; + } + + /** + * Form title (display for the authentication user). It should contain 1-2000 characters. + * @return title + */ + @ApiModelProperty(value = "Form title (display for the authentication user). It should contain 1-2000 characters.") + + + public String getTitle() { + return title; + } + + public void setTitle(String title) { + this.title = title; + } + + public FormAuthOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Form name (display for the controller user). It should contain 1-2000 characters. + * @return name + */ + @ApiModelProperty(value = "Form name (display for the controller user). It should contain 1-2000 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public FormAuthOpenApiVo note(String note) { + this.note = note; + return this; + } + + /** + * Note should contain 1-2000 characters. + * @return note + */ + @ApiModelProperty(value = "Note should contain 1-2000 characters.") + + + public String getNote() { + return note; + } + + public void setNote(String note) { + this.note = note; + } + + public FormAuthOpenApiVo authTimeout(AuthTimeOpenApiVo authTimeout) { + this.authTimeout = authTimeout; + return this; + } + + /** + * Get authTimeout + * @return authTimeout + */ + @ApiModelProperty(value = "") + + @Valid + + public AuthTimeOpenApiVo getAuthTimeout() { + return authTimeout; + } + + public void setAuthTimeout(AuthTimeOpenApiVo authTimeout) { + this.authTimeout = authTimeout; + } + + public FormAuthOpenApiVo cardList(List cardList) { + this.cardList = cardList; + return this; + } + + public FormAuthOpenApiVo addCardListItem(FormAuthCardOpenApiVo cardListItem) { + if (this.cardList == null) { + this.cardList = new ArrayList<>(); + } + this.cardList.add(cardListItem); + return this; + } + + /** + * Form card list. + * @return cardList + */ + @ApiModelProperty(value = "Form card list.") + + @Valid + + public List getCardList() { + return cardList; + } + + public void setCardList(List cardList) { + this.cardList = cardList; + } + + public FormAuthOpenApiVo isPublished(Boolean isPublished) { + this.isPublished = isPublished; + return this; + } + + /** + * Whether to publish. + * @return isPublished + */ + @ApiModelProperty(value = "Whether to publish.") + + + public Boolean getIsPublished() { + return isPublished; + } + + public void setIsPublished(Boolean isPublished) { + this.isPublished = isPublished; + } + + public FormAuthOpenApiVo createTime(Long createTime) { + this.createTime = createTime; + return this; + } + + /** + * Created time of the form. + * @return createTime + */ + @ApiModelProperty(value = "Created time of the form.") + + + public Long getCreateTime() { + return createTime; + } + + public void setCreateTime(Long createTime) { + this.createTime = createTime; + } + + public FormAuthOpenApiVo portals(List portals) { + this.portals = portals; + return this; + } + + public FormAuthOpenApiVo addPortalsItem(String portalsItem) { + if (this.portals == null) { + this.portals = new ArrayList<>(); + } + this.portals.add(portalsItem); + return this; + } + + /** + * Portal names corresponding to the bound portal. + * @return portals + */ + @ApiModelProperty(value = "Portal names corresponding to the bound portal.") + + + public List getPortals() { + return portals; + } + + public void setPortals(List portals) { + this.portals = portals; + } + + public FormAuthOpenApiVo answerNum(Long answerNum) { + this.answerNum = answerNum; + return this; + } + + /** + * The number of form's answers. + * @return answerNum + */ + @ApiModelProperty(value = "The number of form's answers.") + + + public Long getAnswerNum() { + return answerNum; + } + + public void setAnswerNum(Long answerNum) { + this.answerNum = answerNum; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FormAuthOpenApiVo formAuthOpenApiVo = (FormAuthOpenApiVo) o; + return Objects.equals(this.id, formAuthOpenApiVo.id) && + Objects.equals(this.title, formAuthOpenApiVo.title) && + Objects.equals(this.name, formAuthOpenApiVo.name) && + Objects.equals(this.note, formAuthOpenApiVo.note) && + Objects.equals(this.authTimeout, formAuthOpenApiVo.authTimeout) && + Objects.equals(this.cardList, formAuthOpenApiVo.cardList) && + Objects.equals(this.isPublished, formAuthOpenApiVo.isPublished) && + Objects.equals(this.createTime, formAuthOpenApiVo.createTime) && + Objects.equals(this.portals, formAuthOpenApiVo.portals) && + Objects.equals(this.answerNum, formAuthOpenApiVo.answerNum); + } + + @Override + public int hashCode() { + return Objects.hash(id, title, name, note, authTimeout, cardList, isPublished, createTime, portals, answerNum); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FormAuthOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" title: ").append(toIndentedString(title)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" note: ").append(toIndentedString(note)).append("\n"); + sb.append(" authTimeout: ").append(toIndentedString(authTimeout)).append("\n"); + sb.append(" cardList: ").append(toIndentedString(cardList)).append("\n"); + sb.append(" isPublished: ").append(toIndentedString(isPublished)).append("\n"); + sb.append(" createTime: ").append(toIndentedString(createTime)).append("\n"); + sb.append(" portals: ").append(toIndentedString(portals)).append("\n"); + sb.append(" answerNum: ").append(toIndentedString(answerNum)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthResultOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthResultOpenApiVo.java new file mode 100644 index 0000000..6adc4dd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/FormAuthResultOpenApiVo.java @@ -0,0 +1,214 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * FormAuthResultOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class FormAuthResultOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("formId") + private String formId; + + @JsonProperty("answers") + @Valid + private List answers = null; + + @JsonProperty("time") + private Long time; + + @JsonProperty("ssid") + private String ssid; + + @JsonProperty("network") + private String network; + + public FormAuthResultOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Form result ID + * @return id + */ + @ApiModelProperty(value = "Form result ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public FormAuthResultOpenApiVo formId(String formId) { + this.formId = formId; + return this; + } + + /** + * This field represents authentication survey ID. Authentication survey can be created using 'Create a new authentication survey' interface, and authentication survey ID can be obtained from 'Get authentication survey list' interface. + * @return formId + */ + @ApiModelProperty(value = "This field represents authentication survey ID. Authentication survey can be created using 'Create a new authentication survey' interface, and authentication survey ID can be obtained from 'Get authentication survey list' interface.") + + + public String getFormId() { + return formId; + } + + public void setFormId(String formId) { + this.formId = formId; + } + + public FormAuthResultOpenApiVo answers(List answers) { + this.answers = answers; + return this; + } + + public FormAuthResultOpenApiVo addAnswersItem(FormAuthCardAnswerOpenApiVo answersItem) { + if (this.answers == null) { + this.answers = new ArrayList<>(); + } + this.answers.add(answersItem); + return this; + } + + /** + * Answers submitted by users. + * @return answers + */ + @ApiModelProperty(value = "Answers submitted by users.") + + @Valid + + public List getAnswers() { + return answers; + } + + public void setAnswers(List answers) { + this.answers = answers; + } + + public FormAuthResultOpenApiVo time(Long time) { + this.time = time; + return this; + } + + /** + * Authenticated timestamp in ms. + * @return time + */ + @ApiModelProperty(value = "Authenticated timestamp in ms.") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public FormAuthResultOpenApiVo ssid(String ssid) { + this.ssid = ssid; + return this; + } + + /** + * Client connected SSID. + * @return ssid + */ + @ApiModelProperty(value = "Client connected SSID.") + + + public String getSsid() { + return ssid; + } + + public void setSsid(String ssid) { + this.ssid = ssid; + } + + public FormAuthResultOpenApiVo network(String network) { + this.network = network; + return this; + } + + /** + * Network (exists when wired connection). + * @return network + */ + @ApiModelProperty(value = "Network (exists when wired connection).") + + + public String getNetwork() { + return network; + } + + public void setNetwork(String network) { + this.network = network; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FormAuthResultOpenApiVo formAuthResultOpenApiVo = (FormAuthResultOpenApiVo) o; + return Objects.equals(this.id, formAuthResultOpenApiVo.id) && + Objects.equals(this.formId, formAuthResultOpenApiVo.formId) && + Objects.equals(this.answers, formAuthResultOpenApiVo.answers) && + Objects.equals(this.time, formAuthResultOpenApiVo.time) && + Objects.equals(this.ssid, formAuthResultOpenApiVo.ssid) && + Objects.equals(this.network, formAuthResultOpenApiVo.network); + } + + @Override + public int hashCode() { + return Objects.hash(id, formId, answers, time, ssid, network); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FormAuthResultOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" formId: ").append(toIndentedString(formId)).append("\n"); + sb.append(" answers: ").append(toIndentedString(answers)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" ssid: ").append(toIndentedString(ssid)).append("\n"); + sb.append(" network: ").append(toIndentedString(network)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoAuthClientOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoAuthClientOpenApiVo.java new file mode 100644 index 0000000..cebf16b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoAuthClientOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoAuthClientOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class GridVoAuthClientOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoAuthClientOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoAuthClientOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoAuthClientOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoAuthClientOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoAuthClientOpenApiVo addDataItem(AuthClientOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoAuthClientOpenApiVo gridVoAuthClientOpenApiVo = (GridVoAuthClientOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoAuthClientOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoAuthClientOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoAuthClientOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoAuthClientOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoAuthClientOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoFormAuthResultOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoFormAuthResultOpenApiVo.java new file mode 100644 index 0000000..05612d0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoFormAuthResultOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoFormAuthResultOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class GridVoFormAuthResultOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoFormAuthResultOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoFormAuthResultOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoFormAuthResultOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoFormAuthResultOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoFormAuthResultOpenApiVo addDataItem(FormAuthResultOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoFormAuthResultOpenApiVo gridVoFormAuthResultOpenApiVo = (GridVoFormAuthResultOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoFormAuthResultOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoFormAuthResultOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoFormAuthResultOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoFormAuthResultOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoFormAuthResultOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoLocalUserOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoLocalUserOpenApiVo.java new file mode 100644 index 0000000..591b7d2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoLocalUserOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoLocalUserOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class GridVoLocalUserOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoLocalUserOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoLocalUserOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoLocalUserOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoLocalUserOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoLocalUserOpenApiVo addDataItem(LocalUserOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoLocalUserOpenApiVo gridVoLocalUserOpenApiVo = (GridVoLocalUserOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoLocalUserOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoLocalUserOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoLocalUserOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoLocalUserOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoLocalUserOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherDurationDistributionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherDurationDistributionOpenApiVo.java new file mode 100644 index 0000000..d12a577 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherDurationDistributionOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoVoucherDurationDistributionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class GridVoVoucherDurationDistributionOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoVoucherDurationDistributionOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoVoucherDurationDistributionOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoVoucherDurationDistributionOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoVoucherDurationDistributionOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoVoucherDurationDistributionOpenApiVo addDataItem(VoucherDurationDistributionOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoVoucherDurationDistributionOpenApiVo gridVoVoucherDurationDistributionOpenApiVo = (GridVoVoucherDurationDistributionOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoVoucherDurationDistributionOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoVoucherDurationDistributionOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoVoucherDurationDistributionOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoVoucherDurationDistributionOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoVoucherDurationDistributionOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherGroupOpenApiVo.java new file mode 100644 index 0000000..d908c58 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherGroupOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoVoucherGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class GridVoVoucherGroupOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoVoucherGroupOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoVoucherGroupOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoVoucherGroupOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoVoucherGroupOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoVoucherGroupOpenApiVo addDataItem(VoucherGroupOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoVoucherGroupOpenApiVo gridVoVoucherGroupOpenApiVo = (GridVoVoucherGroupOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoVoucherGroupOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoVoucherGroupOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoVoucherGroupOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoVoucherGroupOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoVoucherGroupOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherUnitPriceDistributionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherUnitPriceDistributionOpenApiVo.java new file mode 100644 index 0000000..edfb07b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/GridVoVoucherUnitPriceDistributionOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoVoucherUnitPriceDistributionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class GridVoVoucherUnitPriceDistributionOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoVoucherUnitPriceDistributionOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoVoucherUnitPriceDistributionOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoVoucherUnitPriceDistributionOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoVoucherUnitPriceDistributionOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoVoucherUnitPriceDistributionOpenApiVo addDataItem(VoucherUnitPriceDistributionOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoVoucherUnitPriceDistributionOpenApiVo gridVoVoucherUnitPriceDistributionOpenApiVo = (GridVoVoucherUnitPriceDistributionOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoVoucherUnitPriceDistributionOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoVoucherUnitPriceDistributionOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoVoucherUnitPriceDistributionOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoVoucherUnitPriceDistributionOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoVoucherUnitPriceDistributionOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/HotspotSiteSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/HotspotSiteSettingOpenApiVo.java new file mode 100644 index 0000000..232c7d7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/HotspotSiteSettingOpenApiVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * HotspotSiteSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class HotspotSiteSettingOpenApiVo { + @JsonProperty("currency") + private String currency; + + public HotspotSiteSettingOpenApiVo currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide. + * @return currency + */ + @ApiModelProperty(value = "Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide.") + + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HotspotSiteSettingOpenApiVo hotspotSiteSettingOpenApiVo = (HotspotSiteSettingOpenApiVo) o; + return Objects.equals(this.currency, hotspotSiteSettingOpenApiVo.currency); + } + + @Override + public int hashCode() { + return Objects.hash(currency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HotspotSiteSettingOpenApiVo {\n"); + + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/LocalUserOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/LocalUserOpenApiVo.java new file mode 100644 index 0000000..3b55d10 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/LocalUserOpenApiVo.java @@ -0,0 +1,540 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LocalUserOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class LocalUserOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("userName") + private String userName; + + @JsonProperty("password") + private String password; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("expirationTime") + private Long expirationTime; + + @JsonProperty("bindingType") + private Integer bindingType; + + @JsonProperty("macAddress") + private String macAddress; + + @JsonProperty("maxUsers") + private Integer maxUsers; + + @JsonProperty("name") + private String name; + + @JsonProperty("phone") + private String phone; + + @JsonProperty("rateLimit") + private RateLimitOpenApiVo rateLimit; + + @JsonProperty("trafficLimitEnable") + private Boolean trafficLimitEnable; + + @JsonProperty("trafficLimit") + private Long trafficLimit; + + @JsonProperty("trafficLeft") + private Boolean trafficLeft; + + @JsonProperty("trafficUsed") + private Long trafficUsed; + + @JsonProperty("trafficLimitFrequency") + private Integer trafficLimitFrequency; + + @JsonProperty("used") + private Integer used; + + @JsonProperty("overtime") + private Boolean overtime; + + @JsonProperty("portals") + @Valid + private List portals = null; + + public LocalUserOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Local user ID + * @return id + */ + @ApiModelProperty(value = "Local user ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public LocalUserOpenApiVo userName(String userName) { + this.userName = userName; + return this; + } + + /** + * User name should contain 1 to 128 characters + * @return userName + */ + @ApiModelProperty(value = "User name should contain 1 to 128 characters") + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public LocalUserOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Password should contain 1 to 128 characters + * @return password + */ + @ApiModelProperty(value = "Password should contain 1 to 128 characters") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public LocalUserOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Local user enable status + * @return enable + */ + @ApiModelProperty(value = "Local user enable status") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public LocalUserOpenApiVo expirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + /** + * Expiration time, unit: ms + * @return expirationTime + */ + @ApiModelProperty(value = "Expiration time, unit: ms") + + + public Long getExpirationTime() { + return expirationTime; + } + + public void setExpirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + } + + public LocalUserOpenApiVo bindingType(Integer bindingType) { + this.bindingType = bindingType; + return this; + } + + /** + * MAC binding type should be a value as follows: 0: no binding; 1: static binding; 2: dynamic binding. + * @return bindingType + */ + @ApiModelProperty(value = "MAC binding type should be a value as follows: 0: no binding; 1: static binding; 2: dynamic binding.") + + + public Integer getBindingType() { + return bindingType; + } + + public void setBindingType(Integer bindingType) { + this.bindingType = bindingType; + } + + public LocalUserOpenApiVo macAddress(String macAddress) { + this.macAddress = macAddress; + return this; + } + + /** + * Mac address,the value is only available when the macType is static binding or dynamic binding. + * @return macAddress + */ + @ApiModelProperty(value = "Mac address,the value is only available when the macType is static binding or dynamic binding.") + + + public String getMacAddress() { + return macAddress; + } + + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + public LocalUserOpenApiVo maxUsers(Integer maxUsers) { + this.maxUsers = maxUsers; + return this; + } + + /** + * The maximum number of users online at the same time when the MAC binding type is No Binding. It cannot be modified after initialization. Value of Maximum Users should be within the range of 1-2048. + * @return maxUsers + */ + @ApiModelProperty(value = "The maximum number of users online at the same time when the MAC binding type is No Binding. It cannot be modified after initialization. Value of Maximum Users should be within the range of 1-2048.") + + + public Integer getMaxUsers() { + return maxUsers; + } + + public void setMaxUsers(Integer maxUsers) { + this.maxUsers = maxUsers; + } + + public LocalUserOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name + * @return name + */ + @ApiModelProperty(value = "Name") + +@Pattern(regexp="^$|^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public LocalUserOpenApiVo phone(String phone) { + this.phone = phone; + return this; + } + + /** + * Phone number should contain 1 to 20 characters. + * @return phone + */ + @ApiModelProperty(value = "Phone number should contain 1 to 20 characters.") + + + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + public LocalUserOpenApiVo rateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + return this; + } + + /** + * Get rateLimit + * @return rateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public RateLimitOpenApiVo getRateLimit() { + return rateLimit; + } + + public void setRateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + } + + public LocalUserOpenApiVo trafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + return this; + } + + /** + * Whether to enable traffic limit. + * @return trafficLimitEnable + */ + @ApiModelProperty(value = "Whether to enable traffic limit.") + + + public Boolean getTrafficLimitEnable() { + return trafficLimitEnable; + } + + public void setTrafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + } + + public LocalUserOpenApiVo trafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + return this; + } + + /** + * Traffic limit in MB. The value should be within the range of 1–10485760. + * @return trafficLimit + */ + @ApiModelProperty(value = "Traffic limit in MB. The value should be within the range of 1–10485760.") + + + public Long getTrafficLimit() { + return trafficLimit; + } + + public void setTrafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + } + + public LocalUserOpenApiVo trafficLeft(Boolean trafficLeft) { + this.trafficLeft = trafficLeft; + return this; + } + + /** + * Is there any remaining traffic. + * @return trafficLeft + */ + @ApiModelProperty(value = "Is there any remaining traffic.") + + + public Boolean getTrafficLeft() { + return trafficLeft; + } + + public void setTrafficLeft(Boolean trafficLeft) { + this.trafficLeft = trafficLeft; + } + + public LocalUserOpenApiVo trafficUsed(Long trafficUsed) { + this.trafficUsed = trafficUsed; + return this; + } + + /** + * Used traffic(MB). + * @return trafficUsed + */ + @ApiModelProperty(value = "Used traffic(MB).") + + + public Long getTrafficUsed() { + return trafficUsed; + } + + public void setTrafficUsed(Long trafficUsed) { + this.trafficUsed = trafficUsed; + } + + public LocalUserOpenApiVo trafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + return this; + } + + /** + * Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly. + * @return trafficLimitFrequency + */ + @ApiModelProperty(value = "Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly.") + + + public Integer getTrafficLimitFrequency() { + return trafficLimitFrequency; + } + + public void setTrafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + } + + public LocalUserOpenApiVo used(Integer used) { + this.used = used; + return this; + } + + /** + * Used quantity. + * @return used + */ + @ApiModelProperty(value = "Used quantity.") + + + public Integer getUsed() { + return used; + } + + public void setUsed(Integer used) { + this.used = used; + } + + public LocalUserOpenApiVo overtime(Boolean overtime) { + this.overtime = overtime; + return this; + } + + /** + * Whether the current time has exceeded the expirationTime + * @return overtime + */ + @ApiModelProperty(value = "Whether the current time has exceeded the expirationTime") + + + public Boolean getOvertime() { + return overtime; + } + + public void setOvertime(Boolean overtime) { + this.overtime = overtime; + } + + public LocalUserOpenApiVo portals(List portals) { + this.portals = portals; + return this; + } + + public LocalUserOpenApiVo addPortalsItem(String portalsItem) { + if (this.portals == null) { + this.portals = new ArrayList<>(); + } + this.portals.add(portalsItem); + return this; + } + + /** + * Bound portal names. + * @return portals + */ + @ApiModelProperty(value = "Bound portal names.") + + + public List getPortals() { + return portals; + } + + public void setPortals(List portals) { + this.portals = portals; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LocalUserOpenApiVo localUserOpenApiVo = (LocalUserOpenApiVo) o; + return Objects.equals(this.id, localUserOpenApiVo.id) && + Objects.equals(this.userName, localUserOpenApiVo.userName) && + Objects.equals(this.password, localUserOpenApiVo.password) && + Objects.equals(this.enable, localUserOpenApiVo.enable) && + Objects.equals(this.expirationTime, localUserOpenApiVo.expirationTime) && + Objects.equals(this.bindingType, localUserOpenApiVo.bindingType) && + Objects.equals(this.macAddress, localUserOpenApiVo.macAddress) && + Objects.equals(this.maxUsers, localUserOpenApiVo.maxUsers) && + Objects.equals(this.name, localUserOpenApiVo.name) && + Objects.equals(this.phone, localUserOpenApiVo.phone) && + Objects.equals(this.rateLimit, localUserOpenApiVo.rateLimit) && + Objects.equals(this.trafficLimitEnable, localUserOpenApiVo.trafficLimitEnable) && + Objects.equals(this.trafficLimit, localUserOpenApiVo.trafficLimit) && + Objects.equals(this.trafficLeft, localUserOpenApiVo.trafficLeft) && + Objects.equals(this.trafficUsed, localUserOpenApiVo.trafficUsed) && + Objects.equals(this.trafficLimitFrequency, localUserOpenApiVo.trafficLimitFrequency) && + Objects.equals(this.used, localUserOpenApiVo.used) && + Objects.equals(this.overtime, localUserOpenApiVo.overtime) && + Objects.equals(this.portals, localUserOpenApiVo.portals); + } + + @Override + public int hashCode() { + return Objects.hash(id, userName, password, enable, expirationTime, bindingType, macAddress, maxUsers, name, phone, rateLimit, trafficLimitEnable, trafficLimit, trafficLeft, trafficUsed, trafficLimitFrequency, used, overtime, portals); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LocalUserOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" expirationTime: ").append(toIndentedString(expirationTime)).append("\n"); + sb.append(" bindingType: ").append(toIndentedString(bindingType)).append("\n"); + sb.append(" macAddress: ").append(toIndentedString(macAddress)).append("\n"); + sb.append(" maxUsers: ").append(toIndentedString(maxUsers)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); + sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n"); + sb.append(" trafficLimitEnable: ").append(toIndentedString(trafficLimitEnable)).append("\n"); + sb.append(" trafficLimit: ").append(toIndentedString(trafficLimit)).append("\n"); + sb.append(" trafficLeft: ").append(toIndentedString(trafficLeft)).append("\n"); + sb.append(" trafficUsed: ").append(toIndentedString(trafficUsed)).append("\n"); + sb.append(" trafficLimitFrequency: ").append(toIndentedString(trafficLimitFrequency)).append("\n"); + sb.append(" used: ").append(toIndentedString(used)).append("\n"); + sb.append(" overtime: ").append(toIndentedString(overtime)).append("\n"); + sb.append(" portals: ").append(toIndentedString(portals)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseAllTimeVoucherSummaryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseAllTimeVoucherSummaryOpenApiVo.java new file mode 100644 index 0000000..4777d33 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseAllTimeVoucherSummaryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseAllTimeVoucherSummaryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseAllTimeVoucherSummaryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private AllTimeVoucherSummaryOpenApiVo result; + + public OperationResponseAllTimeVoucherSummaryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseAllTimeVoucherSummaryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseAllTimeVoucherSummaryOpenApiVo result(AllTimeVoucherSummaryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public AllTimeVoucherSummaryOpenApiVo getResult() { + return result; + } + + public void setResult(AllTimeVoucherSummaryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseAllTimeVoucherSummaryOpenApiVo operationResponseAllTimeVoucherSummaryOpenApiVo = (OperationResponseAllTimeVoucherSummaryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseAllTimeVoucherSummaryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseAllTimeVoucherSummaryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseAllTimeVoucherSummaryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseAllTimeVoucherSummaryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseCreatedResIdOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseCreatedResIdOpenApiVo.java new file mode 100644 index 0000000..b8864dc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseCreatedResIdOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCreatedResIdOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseCreatedResIdOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CreatedResIdOpenApiVo result; + + public OperationResponseCreatedResIdOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCreatedResIdOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCreatedResIdOpenApiVo result(CreatedResIdOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CreatedResIdOpenApiVo getResult() { + return result; + } + + public void setResult(CreatedResIdOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCreatedResIdOpenApiVo operationResponseCreatedResIdOpenApiVo = (OperationResponseCreatedResIdOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseCreatedResIdOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseCreatedResIdOpenApiVo.msg) && + Objects.equals(this.result, operationResponseCreatedResIdOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCreatedResIdOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseCurrencyCandidatesOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseCurrencyCandidatesOpenApiVo.java new file mode 100644 index 0000000..d148d82 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseCurrencyCandidatesOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCurrencyCandidatesOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseCurrencyCandidatesOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CurrencyCandidatesOpenApiVo result; + + public OperationResponseCurrencyCandidatesOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCurrencyCandidatesOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCurrencyCandidatesOpenApiVo result(CurrencyCandidatesOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CurrencyCandidatesOpenApiVo getResult() { + return result; + } + + public void setResult(CurrencyCandidatesOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCurrencyCandidatesOpenApiVo operationResponseCurrencyCandidatesOpenApiVo = (OperationResponseCurrencyCandidatesOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseCurrencyCandidatesOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseCurrencyCandidatesOpenApiVo.msg) && + Objects.equals(this.result, operationResponseCurrencyCandidatesOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCurrencyCandidatesOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseFormAuthOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseFormAuthOpenApiVo.java new file mode 100644 index 0000000..21f7ad4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseFormAuthOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseFormAuthOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseFormAuthOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private FormAuthOpenApiVo result; + + public OperationResponseFormAuthOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseFormAuthOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseFormAuthOpenApiVo result(FormAuthOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public FormAuthOpenApiVo getResult() { + return result; + } + + public void setResult(FormAuthOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseFormAuthOpenApiVo operationResponseFormAuthOpenApiVo = (OperationResponseFormAuthOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseFormAuthOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseFormAuthOpenApiVo.msg) && + Objects.equals(this.result, operationResponseFormAuthOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseFormAuthOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseFormAuthResultOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseFormAuthResultOpenApiVo.java new file mode 100644 index 0000000..9310a91 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseFormAuthResultOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseFormAuthResultOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseFormAuthResultOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private FormAuthResultOpenApiVo result; + + public OperationResponseFormAuthResultOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseFormAuthResultOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseFormAuthResultOpenApiVo result(FormAuthResultOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public FormAuthResultOpenApiVo getResult() { + return result; + } + + public void setResult(FormAuthResultOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseFormAuthResultOpenApiVo operationResponseFormAuthResultOpenApiVo = (OperationResponseFormAuthResultOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseFormAuthResultOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseFormAuthResultOpenApiVo.msg) && + Objects.equals(this.result, operationResponseFormAuthResultOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseFormAuthResultOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoAuthClientOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoAuthClientOpenApiVo.java new file mode 100644 index 0000000..d5a6d90 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoAuthClientOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoAuthClientOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoAuthClientOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoAuthClientOpenApiVo result; + + public OperationResponseGridVoAuthClientOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoAuthClientOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoAuthClientOpenApiVo result(GridVoAuthClientOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoAuthClientOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoAuthClientOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoAuthClientOpenApiVo operationResponseGridVoAuthClientOpenApiVo = (OperationResponseGridVoAuthClientOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoAuthClientOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoAuthClientOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoAuthClientOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoAuthClientOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoFormAuthResultOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoFormAuthResultOpenApiVo.java new file mode 100644 index 0000000..681c395 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoFormAuthResultOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoFormAuthResultOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoFormAuthResultOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoFormAuthResultOpenApiVo result; + + public OperationResponseGridVoFormAuthResultOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoFormAuthResultOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoFormAuthResultOpenApiVo result(GridVoFormAuthResultOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoFormAuthResultOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoFormAuthResultOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoFormAuthResultOpenApiVo operationResponseGridVoFormAuthResultOpenApiVo = (OperationResponseGridVoFormAuthResultOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoFormAuthResultOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoFormAuthResultOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoFormAuthResultOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoFormAuthResultOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoLocalUserOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoLocalUserOpenApiVo.java new file mode 100644 index 0000000..2e0239a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoLocalUserOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoLocalUserOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoLocalUserOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoLocalUserOpenApiVo result; + + public OperationResponseGridVoLocalUserOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoLocalUserOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoLocalUserOpenApiVo result(GridVoLocalUserOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoLocalUserOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoLocalUserOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoLocalUserOpenApiVo operationResponseGridVoLocalUserOpenApiVo = (OperationResponseGridVoLocalUserOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoLocalUserOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoLocalUserOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoLocalUserOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoLocalUserOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherDurationDistributionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherDurationDistributionOpenApiVo.java new file mode 100644 index 0000000..63bdeaa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherDurationDistributionOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoVoucherDurationDistributionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoVoucherDurationDistributionOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoVoucherDurationDistributionOpenApiVo result; + + public OperationResponseGridVoVoucherDurationDistributionOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoVoucherDurationDistributionOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoVoucherDurationDistributionOpenApiVo result(GridVoVoucherDurationDistributionOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoVoucherDurationDistributionOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoVoucherDurationDistributionOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoVoucherDurationDistributionOpenApiVo operationResponseGridVoVoucherDurationDistributionOpenApiVo = (OperationResponseGridVoVoucherDurationDistributionOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoVoucherDurationDistributionOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoVoucherDurationDistributionOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoVoucherDurationDistributionOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoVoucherDurationDistributionOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherGroupOpenApiVo.java new file mode 100644 index 0000000..1b58ebd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherGroupOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoVoucherGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoVoucherGroupOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoVoucherGroupOpenApiVo result; + + public OperationResponseGridVoVoucherGroupOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoVoucherGroupOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoVoucherGroupOpenApiVo result(GridVoVoucherGroupOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoVoucherGroupOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoVoucherGroupOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoVoucherGroupOpenApiVo operationResponseGridVoVoucherGroupOpenApiVo = (OperationResponseGridVoVoucherGroupOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoVoucherGroupOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoVoucherGroupOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoVoucherGroupOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoVoucherGroupOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo.java new file mode 100644 index 0000000..738c753 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoVoucherUnitPriceDistributionOpenApiVo result; + + public OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo result(GridVoVoucherUnitPriceDistributionOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoVoucherUnitPriceDistributionOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoVoucherUnitPriceDistributionOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo operationResponseGridVoVoucherUnitPriceDistributionOpenApiVo = (OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoVoucherUnitPriceDistributionOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoVoucherUnitPriceDistributionOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoVoucherUnitPriceDistributionOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoVoucherUnitPriceDistributionOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseListFormAuthOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseListFormAuthOpenApiVo.java new file mode 100644 index 0000000..c686589 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseListFormAuthOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListFormAuthOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseListFormAuthOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListFormAuthOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListFormAuthOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListFormAuthOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListFormAuthOpenApiVo addResultItem(FormAuthOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListFormAuthOpenApiVo operationResponseListFormAuthOpenApiVo = (OperationResponseListFormAuthOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListFormAuthOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListFormAuthOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListFormAuthOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListFormAuthOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseListVoucherBriefOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseListVoucherBriefOpenApiVo.java new file mode 100644 index 0000000..f19e822 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseListVoucherBriefOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListVoucherBriefOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseListVoucherBriefOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListVoucherBriefOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListVoucherBriefOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListVoucherBriefOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListVoucherBriefOpenApiVo addResultItem(VoucherBriefOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListVoucherBriefOpenApiVo operationResponseListVoucherBriefOpenApiVo = (OperationResponseListVoucherBriefOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListVoucherBriefOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListVoucherBriefOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListVoucherBriefOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListVoucherBriefOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseLocalUserOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseLocalUserOpenApiVo.java new file mode 100644 index 0000000..c468236 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseLocalUserOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseLocalUserOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseLocalUserOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private LocalUserOpenApiVo result; + + public OperationResponseLocalUserOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseLocalUserOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseLocalUserOpenApiVo result(LocalUserOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public LocalUserOpenApiVo getResult() { + return result; + } + + public void setResult(LocalUserOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseLocalUserOpenApiVo operationResponseLocalUserOpenApiVo = (OperationResponseLocalUserOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseLocalUserOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseLocalUserOpenApiVo.msg) && + Objects.equals(this.result, operationResponseLocalUserOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseLocalUserOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherGroupGridOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherGroupGridOpenApiVo.java new file mode 100644 index 0000000..adf0799 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherGroupGridOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseVoucherGroupGridOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseVoucherGroupGridOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private VoucherGroupGridOpenApiVo result; + + public OperationResponseVoucherGroupGridOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseVoucherGroupGridOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseVoucherGroupGridOpenApiVo result(VoucherGroupGridOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public VoucherGroupGridOpenApiVo getResult() { + return result; + } + + public void setResult(VoucherGroupGridOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseVoucherGroupGridOpenApiVo operationResponseVoucherGroupGridOpenApiVo = (OperationResponseVoucherGroupGridOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseVoucherGroupGridOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseVoucherGroupGridOpenApiVo.msg) && + Objects.equals(this.result, operationResponseVoucherGroupGridOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseVoucherGroupGridOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherOpenApiVo.java new file mode 100644 index 0000000..f1d0eed --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseVoucherOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseVoucherOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private VoucherOpenApiVo result; + + public OperationResponseVoucherOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseVoucherOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseVoucherOpenApiVo result(VoucherOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public VoucherOpenApiVo getResult() { + return result; + } + + public void setResult(VoucherOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseVoucherOpenApiVo operationResponseVoucherOpenApiVo = (OperationResponseVoucherOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseVoucherOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseVoucherOpenApiVo.msg) && + Objects.equals(this.result, operationResponseVoucherOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseVoucherOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherStatisticsHistoryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherStatisticsHistoryOpenApiVo.java new file mode 100644 index 0000000..3779d68 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseVoucherStatisticsHistoryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseVoucherStatisticsHistoryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseVoucherStatisticsHistoryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private VoucherStatisticsHistoryOpenApiVo result; + + public OperationResponseVoucherStatisticsHistoryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseVoucherStatisticsHistoryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseVoucherStatisticsHistoryOpenApiVo result(VoucherStatisticsHistoryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public VoucherStatisticsHistoryOpenApiVo getResult() { + return result; + } + + public void setResult(VoucherStatisticsHistoryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseVoucherStatisticsHistoryOpenApiVo operationResponseVoucherStatisticsHistoryOpenApiVo = (OperationResponseVoucherStatisticsHistoryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseVoucherStatisticsHistoryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseVoucherStatisticsHistoryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseVoucherStatisticsHistoryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseVoucherStatisticsHistoryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseWithoutResult.java new file mode 100644 index 0000000..0485fe0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/OperationResponseWithoutResult.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class OperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public OperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseWithoutResult.msg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/RateLimitOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/RateLimitOpenApiVo.java new file mode 100644 index 0000000..af7e4aa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/RateLimitOpenApiVo.java @@ -0,0 +1,132 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Rate limit configuring. + */ +@ApiModel(description = "Rate limit configuring.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class RateLimitOpenApiVo { + @JsonProperty("mode") + private Integer mode; + + @JsonProperty("rateLimitProfileId") + private String rateLimitProfileId; + + @JsonProperty("customRateLimit") + private CustomRateLimitOpenApiVo customRateLimit; + + public RateLimitOpenApiVo mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Mode of configure rate limit should be a value as follows: 0: customRateLimit; 1: rateLimitProfileId. + * @return mode + */ + @ApiModelProperty(required = true, value = "Mode of configure rate limit should be a value as follows: 0: customRateLimit; 1: rateLimitProfileId.") + @NotNull + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + public RateLimitOpenApiVo rateLimitProfileId(String rateLimitProfileId) { + this.rateLimitProfileId = rateLimitProfileId; + return this; + } + + /** + * This field represents Rate limit profile ID. Rate limit profile can be created using 'Create rate limit profile' interface, and Rate limit profile ID can be obtained from 'Get rate limit profile list' interface + * @return rateLimitProfileId + */ + @ApiModelProperty(value = "This field represents Rate limit profile ID. Rate limit profile can be created using 'Create rate limit profile' interface, and Rate limit profile ID can be obtained from 'Get rate limit profile list' interface") + + + public String getRateLimitProfileId() { + return rateLimitProfileId; + } + + public void setRateLimitProfileId(String rateLimitProfileId) { + this.rateLimitProfileId = rateLimitProfileId; + } + + public RateLimitOpenApiVo customRateLimit(CustomRateLimitOpenApiVo customRateLimit) { + this.customRateLimit = customRateLimit; + return this; + } + + /** + * Get customRateLimit + * @return customRateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public CustomRateLimitOpenApiVo getCustomRateLimit() { + return customRateLimit; + } + + public void setCustomRateLimit(CustomRateLimitOpenApiVo customRateLimit) { + this.customRateLimit = customRateLimit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RateLimitOpenApiVo rateLimitOpenApiVo = (RateLimitOpenApiVo) o; + return Objects.equals(this.mode, rateLimitOpenApiVo.mode) && + Objects.equals(this.rateLimitProfileId, rateLimitOpenApiVo.rateLimitProfileId) && + Objects.equals(this.customRateLimit, rateLimitOpenApiVo.customRateLimit); + } + + @Override + public int hashCode() { + return Objects.hash(mode, rateLimitProfileId, customRateLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RateLimitOpenApiVo {\n"); + + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" rateLimitProfileId: ").append(toIndentedString(rateLimitProfileId)).append("\n"); + sb.append(" customRateLimit: ").append(toIndentedString(customRateLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SelectIdsOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SelectIdsOpenApiVo.java new file mode 100644 index 0000000..3915f58 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SelectIdsOpenApiVo.java @@ -0,0 +1,191 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SelectIdsOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class SelectIdsOpenApiVo { + @JsonProperty("type") + private Integer type; + + @JsonProperty("ids") + @Valid + private List ids = null; + + @JsonProperty("groupId") + private String groupId; + + @JsonProperty("searchKey") + private String searchKey; + + @JsonProperty("status") + private Integer status; + + public SelectIdsOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Select type. It should be a value as follows: 0: Represents selecting all vouchers in the voucher group, this selection does not pass parameter [ids]. 1: Parameter [ids] includes the IDs of vouchers in the voucher group to be selected. 2: Parameter [ids] includes the IDs of vouchers in the voucher group not to be selected + * @return type + */ + @ApiModelProperty(required = true, value = "Select type. It should be a value as follows: 0: Represents selecting all vouchers in the voucher group, this selection does not pass parameter [ids]. 1: Parameter [ids] includes the IDs of vouchers in the voucher group to be selected. 2: Parameter [ids] includes the IDs of vouchers in the voucher group not to be selected") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SelectIdsOpenApiVo ids(List ids) { + this.ids = ids; + return this; + } + + public SelectIdsOpenApiVo addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + /** + * ID list of vouchers. Voucher can be created using 'Create Voucher Group' interface, and Voucher ID can be obtained from 'Get Voucher Group Detail' interface + * @return ids + */ + @ApiModelProperty(value = "ID list of vouchers. Voucher can be created using 'Create Voucher Group' interface, and Voucher ID can be obtained from 'Get Voucher Group Detail' interface") + + + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + public SelectIdsOpenApiVo groupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * Voucher Group ID. Voucher group can be created using 'Create Voucher Group' interface, and Voucher Group ID can be obtained from 'Get Voucher Group list' interface + * @return groupId + */ + @ApiModelProperty(required = true, value = "Voucher Group ID. Voucher group can be created using 'Create Voucher Group' interface, and Voucher Group ID can be obtained from 'Get Voucher Group list' interface") + @NotNull + + + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public SelectIdsOpenApiVo searchKey(String searchKey) { + this.searchKey = searchKey; + return this; + } + + /** + * Fuzzy query parameters, support field: voucher code + * @return searchKey + */ + @ApiModelProperty(value = "Fuzzy query parameters, support field: voucher code") + + + public String getSearchKey() { + return searchKey; + } + + public void setSearchKey(String searchKey) { + this.searchKey = searchKey; + } + + public SelectIdsOpenApiVo status(Integer status) { + this.status = status; + return this; + } + + /** + * voucher status filter query parameters. It should be a value as follows: 0: Unused vouchers, 1: In use vouchers, 2: Expired vouchers + * @return status + */ + @ApiModelProperty(value = "voucher status filter query parameters. It should be a value as follows: 0: Unused vouchers, 1: In use vouchers, 2: Expired vouchers") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SelectIdsOpenApiVo selectIdsOpenApiVo = (SelectIdsOpenApiVo) o; + return Objects.equals(this.type, selectIdsOpenApiVo.type) && + Objects.equals(this.ids, selectIdsOpenApiVo.ids) && + Objects.equals(this.groupId, selectIdsOpenApiVo.groupId) && + Objects.equals(this.searchKey, selectIdsOpenApiVo.searchKey) && + Objects.equals(this.status, selectIdsOpenApiVo.status); + } + + @Override + public int hashCode() { + return Objects.hash(type, ids, groupId, searchKey, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SelectIdsOpenApiVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" searchKey: ").append(toIndentedString(searchKey)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SelectVoucherGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SelectVoucherGroupOpenApiVo.java new file mode 100644 index 0000000..2527689 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SelectVoucherGroupOpenApiVo.java @@ -0,0 +1,165 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SelectVoucherGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class SelectVoucherGroupOpenApiVo { + @JsonProperty("type") + private Integer type; + + @JsonProperty("groupIds") + @Valid + private List groupIds = null; + + @JsonProperty("searchKey") + private String searchKey; + + @JsonProperty("timeStart") + private Long timeStart; + + public SelectVoucherGroupOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Select type. It should be a value as follows: 0: Represents selecting all voucher groups, this selection does not pass parameter [groupIds]. 1: Parameter [groupIds] includes the IDs of the voucher groups to be selected. 2: Parameter [groupIds] includes the IDs of the voucher groups not to be selected + * @return type + */ + @ApiModelProperty(required = true, value = "Select type. It should be a value as follows: 0: Represents selecting all voucher groups, this selection does not pass parameter [groupIds]. 1: Parameter [groupIds] includes the IDs of the voucher groups to be selected. 2: Parameter [groupIds] includes the IDs of the voucher groups not to be selected") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SelectVoucherGroupOpenApiVo groupIds(List groupIds) { + this.groupIds = groupIds; + return this; + } + + public SelectVoucherGroupOpenApiVo addGroupIdsItem(String groupIdsItem) { + if (this.groupIds == null) { + this.groupIds = new ArrayList<>(); + } + this.groupIds.add(groupIdsItem); + return this; + } + + /** + * ID list of voucher groups. Voucher group can be created using 'Create Voucher Group' interface, and Voucher Group ID can be obtained from 'Get Voucher Group list' interface + * @return groupIds + */ + @ApiModelProperty(value = "ID list of voucher groups. Voucher group can be created using 'Create Voucher Group' interface, and Voucher Group ID can be obtained from 'Get Voucher Group list' interface") + + + public List getGroupIds() { + return groupIds; + } + + public void setGroupIds(List groupIds) { + this.groupIds = groupIds; + } + + public SelectVoucherGroupOpenApiVo searchKey(String searchKey) { + this.searchKey = searchKey; + return this; + } + + /** + * Fuzzy query parameters, support field: voucher group name, voucher code + * @return searchKey + */ + @ApiModelProperty(value = "Fuzzy query parameters, support field: voucher group name, voucher code") + + + public String getSearchKey() { + return searchKey; + } + + public void setSearchKey(String searchKey) { + this.searchKey = searchKey; + } + + public SelectVoucherGroupOpenApiVo timeStart(Long timeStart) { + this.timeStart = timeStart; + return this; + } + + /** + * End timestamp filter query parameters, unit: MS + * @return timeStart + */ + @ApiModelProperty(value = "End timestamp filter query parameters, unit: MS") + + + public Long getTimeStart() { + return timeStart; + } + + public void setTimeStart(Long timeStart) { + this.timeStart = timeStart; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SelectVoucherGroupOpenApiVo selectVoucherGroupOpenApiVo = (SelectVoucherGroupOpenApiVo) o; + return Objects.equals(this.type, selectVoucherGroupOpenApiVo.type) && + Objects.equals(this.groupIds, selectVoucherGroupOpenApiVo.groupIds) && + Objects.equals(this.searchKey, selectVoucherGroupOpenApiVo.searchKey) && + Objects.equals(this.timeStart, selectVoucherGroupOpenApiVo.timeStart); + } + + @Override + public int hashCode() { + return Objects.hash(type, groupIds, searchKey, timeStart); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SelectVoucherGroupOpenApiVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" groupIds: ").append(toIndentedString(groupIds)).append("\n"); + sb.append(" searchKey: ").append(toIndentedString(searchKey)).append("\n"); + sb.append(" timeStart: ").append(toIndentedString(timeStart)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SimpleVoucherOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SimpleVoucherOpenApiVo.java new file mode 100644 index 0000000..b742abd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/SimpleVoucherOpenApiVo.java @@ -0,0 +1,303 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Voucher pagination data of the voucher group + */ +@ApiModel(description = "Voucher pagination data of the voucher group") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class SimpleVoucherOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("code") + private String code; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("trafficUsed") + private Long trafficUsed; + + @JsonProperty("trafficUnused") + private Long trafficUnused; + + @JsonProperty("trafficLimit") + private Long trafficLimit; + + @JsonProperty("trafficLimitFrequency") + private Integer trafficLimitFrequency; + + @JsonProperty("downLimit") + private Long downLimit; + + @JsonProperty("upLimit") + private Long upLimit; + + @JsonProperty("startTime") + private Long startTime; + + public SimpleVoucherOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Voucher ID + * @return id + */ + @ApiModelProperty(value = "Voucher ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SimpleVoucherOpenApiVo code(String code) { + this.code = code; + return this; + } + + /** + * Voucher code + * @return code + */ + @ApiModelProperty(value = "Voucher code") + + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public SimpleVoucherOpenApiVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Voucher status. It should be a value as follows: 0: unused, 1: in use, 2: expired + * @return status + */ + @ApiModelProperty(value = "Voucher status. It should be a value as follows: 0: unused, 1: in use, 2: expired") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public SimpleVoucherOpenApiVo trafficUsed(Long trafficUsed) { + this.trafficUsed = trafficUsed; + return this; + } + + /** + * Used traffic of the voucher, unit: Byte + * @return trafficUsed + */ + @ApiModelProperty(value = "Used traffic of the voucher, unit: Byte") + + + public Long getTrafficUsed() { + return trafficUsed; + } + + public void setTrafficUsed(Long trafficUsed) { + this.trafficUsed = trafficUsed; + } + + public SimpleVoucherOpenApiVo trafficUnused(Long trafficUnused) { + this.trafficUnused = trafficUnused; + return this; + } + + /** + * Unused traffic of the voucher, unit: Byte + * @return trafficUnused + */ + @ApiModelProperty(value = "Unused traffic of the voucher, unit: Byte") + + + public Long getTrafficUnused() { + return trafficUnused; + } + + public void setTrafficUnused(Long trafficUnused) { + this.trafficUnused = trafficUnused; + } + + public SimpleVoucherOpenApiVo trafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + return this; + } + + /** + * Traffic limit in MB. It should be within the range of 1–10485760 + * @return trafficLimit + */ + @ApiModelProperty(value = "Traffic limit in MB. It should be within the range of 1–10485760") + + + public Long getTrafficLimit() { + return trafficLimit; + } + + public void setTrafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + } + + public SimpleVoucherOpenApiVo trafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + return this; + } + + /** + * Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly. + * @return trafficLimitFrequency + */ + @ApiModelProperty(value = "Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly.") + + + public Integer getTrafficLimitFrequency() { + return trafficLimitFrequency; + } + + public void setTrafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + } + + public SimpleVoucherOpenApiVo downLimit(Long downLimit) { + this.downLimit = downLimit; + return this; + } + + /** + * Downlink speed limit in Kbps. The value of limit should be within the range of 0–10485760. + * @return downLimit + */ + @ApiModelProperty(value = "Downlink speed limit in Kbps. The value of limit should be within the range of 0–10485760.") + + + public Long getDownLimit() { + return downLimit; + } + + public void setDownLimit(Long downLimit) { + this.downLimit = downLimit; + } + + public SimpleVoucherOpenApiVo upLimit(Long upLimit) { + this.upLimit = upLimit; + return this; + } + + /** + * Uplink speed limit in Kbps. The value of limit should be within the range of 0–10485760. + * @return upLimit + */ + @ApiModelProperty(value = "Uplink speed limit in Kbps. The value of limit should be within the range of 0–10485760.") + + + public Long getUpLimit() { + return upLimit; + } + + public void setUpLimit(Long upLimit) { + this.upLimit = upLimit; + } + + public SimpleVoucherOpenApiVo startTime(Long startTime) { + this.startTime = startTime; + return this; + } + + /** + * The expiration date of the voucher, unit: MS + * @return startTime + */ + @ApiModelProperty(value = "The expiration date of the voucher, unit: MS") + + + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimpleVoucherOpenApiVo simpleVoucherOpenApiVo = (SimpleVoucherOpenApiVo) o; + return Objects.equals(this.id, simpleVoucherOpenApiVo.id) && + Objects.equals(this.code, simpleVoucherOpenApiVo.code) && + Objects.equals(this.status, simpleVoucherOpenApiVo.status) && + Objects.equals(this.trafficUsed, simpleVoucherOpenApiVo.trafficUsed) && + Objects.equals(this.trafficUnused, simpleVoucherOpenApiVo.trafficUnused) && + Objects.equals(this.trafficLimit, simpleVoucherOpenApiVo.trafficLimit) && + Objects.equals(this.trafficLimitFrequency, simpleVoucherOpenApiVo.trafficLimitFrequency) && + Objects.equals(this.downLimit, simpleVoucherOpenApiVo.downLimit) && + Objects.equals(this.upLimit, simpleVoucherOpenApiVo.upLimit) && + Objects.equals(this.startTime, simpleVoucherOpenApiVo.startTime); + } + + @Override + public int hashCode() { + return Objects.hash(id, code, status, trafficUsed, trafficUnused, trafficLimit, trafficLimitFrequency, downLimit, upLimit, startTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimpleVoucherOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" trafficUsed: ").append(toIndentedString(trafficUsed)).append("\n"); + sb.append(" trafficUnused: ").append(toIndentedString(trafficUnused)).append("\n"); + sb.append(" trafficLimit: ").append(toIndentedString(trafficLimit)).append("\n"); + sb.append(" trafficLimitFrequency: ").append(toIndentedString(trafficLimitFrequency)).append("\n"); + sb.append(" downLimit: ").append(toIndentedString(downLimit)).append("\n"); + sb.append(" upLimit: ").append(toIndentedString(upLimit)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/StatisticsCountOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/StatisticsCountOpenApiVo.java new file mode 100644 index 0000000..ef79e08 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/StatisticsCountOpenApiVo.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Represents the quantity of statistics for the voucher group, unaffected by search + */ +@ApiModel(description = "Represents the quantity of statistics for the voucher group, unaffected by search") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class StatisticsCountOpenApiVo { + @JsonProperty("totalUnusedCount") + private Integer totalUnusedCount; + + @JsonProperty("totalInUseCount") + private Integer totalInUseCount; + + @JsonProperty("totalExpiredCount") + private Integer totalExpiredCount; + + @JsonProperty("totalStatisticsCount") + private Integer totalStatisticsCount; + + public StatisticsCountOpenApiVo totalUnusedCount(Integer totalUnusedCount) { + this.totalUnusedCount = totalUnusedCount; + return this; + } + + /** + * Unused voucher counts of the voucher group, unaffected by search + * @return totalUnusedCount + */ + @ApiModelProperty(value = "Unused voucher counts of the voucher group, unaffected by search") + + + public Integer getTotalUnusedCount() { + return totalUnusedCount; + } + + public void setTotalUnusedCount(Integer totalUnusedCount) { + this.totalUnusedCount = totalUnusedCount; + } + + public StatisticsCountOpenApiVo totalInUseCount(Integer totalInUseCount) { + this.totalInUseCount = totalInUseCount; + return this; + } + + /** + * In use voucher counts of the voucher group, unaffected by search + * @return totalInUseCount + */ + @ApiModelProperty(value = "In use voucher counts of the voucher group, unaffected by search") + + + public Integer getTotalInUseCount() { + return totalInUseCount; + } + + public void setTotalInUseCount(Integer totalInUseCount) { + this.totalInUseCount = totalInUseCount; + } + + public StatisticsCountOpenApiVo totalExpiredCount(Integer totalExpiredCount) { + this.totalExpiredCount = totalExpiredCount; + return this; + } + + /** + * Expired voucher counts of the voucher group, unaffected by search + * @return totalExpiredCount + */ + @ApiModelProperty(value = "Expired voucher counts of the voucher group, unaffected by search") + + + public Integer getTotalExpiredCount() { + return totalExpiredCount; + } + + public void setTotalExpiredCount(Integer totalExpiredCount) { + this.totalExpiredCount = totalExpiredCount; + } + + public StatisticsCountOpenApiVo totalStatisticsCount(Integer totalStatisticsCount) { + this.totalStatisticsCount = totalStatisticsCount; + return this; + } + + /** + * Total voucher counts of the voucher group, unaffected by search + * @return totalStatisticsCount + */ + @ApiModelProperty(value = "Total voucher counts of the voucher group, unaffected by search") + + + public Integer getTotalStatisticsCount() { + return totalStatisticsCount; + } + + public void setTotalStatisticsCount(Integer totalStatisticsCount) { + this.totalStatisticsCount = totalStatisticsCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StatisticsCountOpenApiVo statisticsCountOpenApiVo = (StatisticsCountOpenApiVo) o; + return Objects.equals(this.totalUnusedCount, statisticsCountOpenApiVo.totalUnusedCount) && + Objects.equals(this.totalInUseCount, statisticsCountOpenApiVo.totalInUseCount) && + Objects.equals(this.totalExpiredCount, statisticsCountOpenApiVo.totalExpiredCount) && + Objects.equals(this.totalStatisticsCount, statisticsCountOpenApiVo.totalStatisticsCount); + } + + @Override + public int hashCode() { + return Objects.hash(totalUnusedCount, totalInUseCount, totalExpiredCount, totalStatisticsCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StatisticsCountOpenApiVo {\n"); + + sb.append(" totalUnusedCount: ").append(toIndentedString(totalUnusedCount)).append("\n"); + sb.append(" totalInUseCount: ").append(toIndentedString(totalInUseCount)).append("\n"); + sb.append(" totalExpiredCount: ").append(toIndentedString(totalExpiredCount)).append("\n"); + sb.append(" totalStatisticsCount: ").append(toIndentedString(totalStatisticsCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherBriefOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherBriefOpenApiVo.java new file mode 100644 index 0000000..ce13688 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherBriefOpenApiVo.java @@ -0,0 +1,276 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * VoucherBriefOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class VoucherBriefOpenApiVo { + @JsonProperty("code") + private String code; + + @JsonProperty("limitType") + private Integer limitType; + + @JsonProperty("limitNum") + private Integer limitNum; + + @JsonProperty("durationType") + private Integer durationType; + + @JsonProperty("duration") + private Long duration; + + @JsonProperty("unitPrice") + private String unitPrice; + + @JsonProperty("currency") + private String currency; + + @JsonProperty("validity") + private String validity; + + @JsonProperty("printComments") + private String printComments; + + public VoucherBriefOpenApiVo code(String code) { + this.code = code; + return this; + } + + /** + * Voucher code + * @return code + */ + @ApiModelProperty(value = "Voucher code") + + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public VoucherBriefOpenApiVo limitType(Integer limitType) { + this.limitType = limitType; + return this; + } + + /** + * The limitations of the voucher. It should be a value as follows: 0: Limited Usage Counts, 1: Limited Online Users, 2: Unlimited + * @return limitType + */ + @ApiModelProperty(value = "The limitations of the voucher. It should be a value as follows: 0: Limited Usage Counts, 1: Limited Online Users, 2: Unlimited") + + + public Integer getLimitType() { + return limitType; + } + + public void setLimitType(Integer limitType) { + this.limitType = limitType; + } + + public VoucherBriefOpenApiVo limitNum(Integer limitNum) { + this.limitNum = limitNum; + return this; + } + + /** + * The number of limitations. It should be within the range of 1–999. If Parameter [limitType] is 0 or 1, [limitNum] should not be null.When Parameter [limitType] is 0, [limitNum] represents the maximum number of times this voucher can be used.When Parameter [limitType] is 1, [limitNum] represents the maximum number of users this voucher can be used at the same time. + * @return limitNum + */ + @ApiModelProperty(value = "The number of limitations. It should be within the range of 1–999. If Parameter [limitType] is 0 or 1, [limitNum] should not be null.When Parameter [limitType] is 0, [limitNum] represents the maximum number of times this voucher can be used.When Parameter [limitType] is 1, [limitNum] represents the maximum number of users this voucher can be used at the same time.") + + + public Integer getLimitNum() { + return limitNum; + } + + public void setLimitNum(Integer limitNum) { + this.limitNum = limitNum; + } + + public VoucherBriefOpenApiVo durationType(Integer durationType) { + this.durationType = durationType; + return this; + } + + /** + * The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire + * @return durationType + */ + @ApiModelProperty(value = "The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire") + + + public Integer getDurationType() { + return durationType; + } + + public void setDurationType(Integer durationType) { + this.durationType = durationType; + } + + public VoucherBriefOpenApiVo duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * Duration of one use, unit: minute. It should be within the range of 1–14400000. + * @return duration + */ + @ApiModelProperty(value = "Duration of one use, unit: minute. It should be within the range of 1–14400000.") + + + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + public VoucherBriefOpenApiVo unitPrice(String unitPrice) { + this.unitPrice = unitPrice; + return this; + } + + /** + * Price of single voucher. It should be within the range of 1–999999999 + * @return unitPrice + */ + @ApiModelProperty(value = "Price of single voucher. It should be within the range of 1–999999999") + + + public String getUnitPrice() { + return unitPrice; + } + + public void setUnitPrice(String unitPrice) { + this.unitPrice = unitPrice; + } + + public VoucherBriefOpenApiVo currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide. + * @return currency + */ + @ApiModelProperty(value = "Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide.") + + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public VoucherBriefOpenApiVo validity(String validity) { + this.validity = validity; + return this; + } + + /** + * The validity period information of the voucher + * @return validity + */ + @ApiModelProperty(value = "The validity period information of the voucher") + + + public String getValidity() { + return validity; + } + + public void setValidity(String validity) { + this.validity = validity; + } + + public VoucherBriefOpenApiVo printComments(String printComments) { + this.printComments = printComments; + return this; + } + + /** + * Print comments of the voucher + * @return printComments + */ + @ApiModelProperty(value = "Print comments of the voucher") + + + public String getPrintComments() { + return printComments; + } + + public void setPrintComments(String printComments) { + this.printComments = printComments; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoucherBriefOpenApiVo voucherBriefOpenApiVo = (VoucherBriefOpenApiVo) o; + return Objects.equals(this.code, voucherBriefOpenApiVo.code) && + Objects.equals(this.limitType, voucherBriefOpenApiVo.limitType) && + Objects.equals(this.limitNum, voucherBriefOpenApiVo.limitNum) && + Objects.equals(this.durationType, voucherBriefOpenApiVo.durationType) && + Objects.equals(this.duration, voucherBriefOpenApiVo.duration) && + Objects.equals(this.unitPrice, voucherBriefOpenApiVo.unitPrice) && + Objects.equals(this.currency, voucherBriefOpenApiVo.currency) && + Objects.equals(this.validity, voucherBriefOpenApiVo.validity) && + Objects.equals(this.printComments, voucherBriefOpenApiVo.printComments); + } + + @Override + public int hashCode() { + return Objects.hash(code, limitType, limitNum, durationType, duration, unitPrice, currency, validity, printComments); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoucherBriefOpenApiVo {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" limitType: ").append(toIndentedString(limitType)).append("\n"); + sb.append(" limitNum: ").append(toIndentedString(limitNum)).append("\n"); + sb.append(" durationType: ").append(toIndentedString(durationType)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" validity: ").append(toIndentedString(validity)).append("\n"); + sb.append(" printComments: ").append(toIndentedString(printComments)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherDurationDistributionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherDurationDistributionOpenApiVo.java new file mode 100644 index 0000000..6eb8ff8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherDurationDistributionOpenApiVo.java @@ -0,0 +1,151 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * VoucherDurationDistributionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class VoucherDurationDistributionOpenApiVo { + @JsonProperty("duration") + private Long duration; + + @JsonProperty("durationType") + private Integer durationType; + + @JsonProperty("totalDuration") + private Long totalDuration; + + @JsonProperty("usedCount") + private Integer usedCount; + + public VoucherDurationDistributionOpenApiVo duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * Duration of single voucher, unit: minutes + * @return duration + */ + @ApiModelProperty(value = "Duration of single voucher, unit: minutes") + + + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + public VoucherDurationDistributionOpenApiVo durationType(Integer durationType) { + this.durationType = durationType; + return this; + } + + /** + * The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire + * @return durationType + */ + @ApiModelProperty(value = "The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire") + + + public Integer getDurationType() { + return durationType; + } + + public void setDurationType(Integer durationType) { + this.durationType = durationType; + } + + public VoucherDurationDistributionOpenApiVo totalDuration(Long totalDuration) { + this.totalDuration = totalDuration; + return this; + } + + /** + * Total duration of vouchers, unit: minutes + * @return totalDuration + */ + @ApiModelProperty(value = "Total duration of vouchers, unit: minutes") + + + public Long getTotalDuration() { + return totalDuration; + } + + public void setTotalDuration(Long totalDuration) { + this.totalDuration = totalDuration; + } + + public VoucherDurationDistributionOpenApiVo usedCount(Integer usedCount) { + this.usedCount = usedCount; + return this; + } + + /** + * Used count of vouchers + * @return usedCount + */ + @ApiModelProperty(value = "Used count of vouchers") + + + public Integer getUsedCount() { + return usedCount; + } + + public void setUsedCount(Integer usedCount) { + this.usedCount = usedCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoucherDurationDistributionOpenApiVo voucherDurationDistributionOpenApiVo = (VoucherDurationDistributionOpenApiVo) o; + return Objects.equals(this.duration, voucherDurationDistributionOpenApiVo.duration) && + Objects.equals(this.durationType, voucherDurationDistributionOpenApiVo.durationType) && + Objects.equals(this.totalDuration, voucherDurationDistributionOpenApiVo.totalDuration) && + Objects.equals(this.usedCount, voucherDurationDistributionOpenApiVo.usedCount); + } + + @Override + public int hashCode() { + return Objects.hash(duration, durationType, totalDuration, usedCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoucherDurationDistributionOpenApiVo {\n"); + + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" durationType: ").append(toIndentedString(durationType)).append("\n"); + sb.append(" totalDuration: ").append(toIndentedString(totalDuration)).append("\n"); + sb.append(" usedCount: ").append(toIndentedString(usedCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherGroupGridOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherGroupGridOpenApiVo.java new file mode 100644 index 0000000..0c5868e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherGroupGridOpenApiVo.java @@ -0,0 +1,950 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VoucherGroupGridOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class VoucherGroupGridOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("createdTime") + private Long createdTime; + + @JsonProperty("creatorName") + private String creatorName; + + @JsonProperty("limitType") + private Integer limitType; + + @JsonProperty("limitNum") + private Integer limitNum; + + @JsonProperty("durationType") + private Integer durationType; + + @JsonProperty("duration") + private Long duration; + + @JsonProperty("timingType") + private Integer timingType; + + @JsonProperty("rateLimit") + private RateLimitOpenApiVo rateLimit; + + @JsonProperty("trafficLimitEnable") + private Boolean trafficLimitEnable; + + @JsonProperty("trafficLimit") + private Long trafficLimit; + + @JsonProperty("trafficLimitFrequency") + private Integer trafficLimitFrequency; + + @JsonProperty("unitPrice") + private String unitPrice; + + @JsonProperty("currency") + private String currency; + + @JsonProperty("portalNames") + @Valid + private List portalNames = null; + + @JsonProperty("applyToAllPortals") + private Boolean applyToAllPortals; + + @JsonProperty("expirationTime") + private Long expirationTime; + + @JsonProperty("effectiveTime") + private Long effectiveTime; + + @JsonProperty("logout") + private Boolean logout; + + @JsonProperty("description") + private String description; + + @JsonProperty("printComments") + private String printComments; + + @JsonProperty("unusedCount") + private Integer unusedCount; + + @JsonProperty("usedCount") + private Integer usedCount; + + @JsonProperty("inUseCount") + private Integer inUseCount; + + @JsonProperty("expiredCount") + private Integer expiredCount; + + @JsonProperty("totalCount") + private Integer totalCount; + + @JsonProperty("unusedAmount") + private String unusedAmount; + + @JsonProperty("usedAmount") + private String usedAmount; + + @JsonProperty("totalAmount") + private String totalAmount; + + @JsonProperty("statisticsCount") + private StatisticsCountOpenApiVo statisticsCount; + + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public VoucherGroupGridOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Voucher group ID + * @return id + */ + @ApiModelProperty(value = "Voucher group ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VoucherGroupGridOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Voucher group ID + * @return name + */ + @ApiModelProperty(value = "Voucher group ID") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VoucherGroupGridOpenApiVo createdTime(Long createdTime) { + this.createdTime = createdTime; + return this; + } + + /** + * Create timestamp for the voucher group, unit: millisecond + * @return createdTime + */ + @ApiModelProperty(value = "Create timestamp for the voucher group, unit: millisecond") + + + public Long getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(Long createdTime) { + this.createdTime = createdTime; + } + + public VoucherGroupGridOpenApiVo creatorName(String creatorName) { + this.creatorName = creatorName; + return this; + } + + /** + * Role of the creator of the voucher group + * @return creatorName + */ + @ApiModelProperty(value = "Role of the creator of the voucher group") + + + public String getCreatorName() { + return creatorName; + } + + public void setCreatorName(String creatorName) { + this.creatorName = creatorName; + } + + public VoucherGroupGridOpenApiVo limitType(Integer limitType) { + this.limitType = limitType; + return this; + } + + /** + * The limitations of the voucher. It should be a value as follows: 0: Limited Usage Counts, 1: Limited Online Users, 2: Unlimited + * @return limitType + */ + @ApiModelProperty(value = "The limitations of the voucher. It should be a value as follows: 0: Limited Usage Counts, 1: Limited Online Users, 2: Unlimited") + + + public Integer getLimitType() { + return limitType; + } + + public void setLimitType(Integer limitType) { + this.limitType = limitType; + } + + public VoucherGroupGridOpenApiVo limitNum(Integer limitNum) { + this.limitNum = limitNum; + return this; + } + + /** + * The number of limitations. It should be within the range of 1–999. If Parameter [limitType] is 0 or 1, [limitNum] should not be null.When Parameter [limitType] is 0, [limitNum] represents the maximum number of times this voucher can be used.When Parameter [limitType] is 1, [limitNum] represents the maximum number of users this voucher can be used at the same time. + * @return limitNum + */ + @ApiModelProperty(value = "The number of limitations. It should be within the range of 1–999. If Parameter [limitType] is 0 or 1, [limitNum] should not be null.When Parameter [limitType] is 0, [limitNum] represents the maximum number of times this voucher can be used.When Parameter [limitType] is 1, [limitNum] represents the maximum number of users this voucher can be used at the same time.") + + + public Integer getLimitNum() { + return limitNum; + } + + public void setLimitNum(Integer limitNum) { + this.limitNum = limitNum; + } + + public VoucherGroupGridOpenApiVo durationType(Integer durationType) { + this.durationType = durationType; + return this; + } + + /** + * The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire + * @return durationType + */ + @ApiModelProperty(value = "The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire") + + + public Integer getDurationType() { + return durationType; + } + + public void setDurationType(Integer durationType) { + this.durationType = durationType; + } + + public VoucherGroupGridOpenApiVo duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * Duration of one use, unit: minute. It should be within the range of 1–14400000. + * @return duration + */ + @ApiModelProperty(value = "Duration of one use, unit: minute. It should be within the range of 1–14400000.") + + + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + public VoucherGroupGridOpenApiVo timingType(Integer timingType) { + this.timingType = timingType; + return this; + } + + /** + * The timing type of the voucher. It should be a value as follows: 0: Timing by time, clients can use vouchers for specified time duration. 1: Timing by usage, clients can use vouchers for the duration of actual usage + * @return timingType + */ + @ApiModelProperty(value = "The timing type of the voucher. It should be a value as follows: 0: Timing by time, clients can use vouchers for specified time duration. 1: Timing by usage, clients can use vouchers for the duration of actual usage") + + + public Integer getTimingType() { + return timingType; + } + + public void setTimingType(Integer timingType) { + this.timingType = timingType; + } + + public VoucherGroupGridOpenApiVo rateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + return this; + } + + /** + * Get rateLimit + * @return rateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public RateLimitOpenApiVo getRateLimit() { + return rateLimit; + } + + public void setRateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + } + + public VoucherGroupGridOpenApiVo trafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + return this; + } + + /** + * Whether to enable traffic limit + * @return trafficLimitEnable + */ + @ApiModelProperty(value = "Whether to enable traffic limit") + + + public Boolean getTrafficLimitEnable() { + return trafficLimitEnable; + } + + public void setTrafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + } + + public VoucherGroupGridOpenApiVo trafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + return this; + } + + /** + * Traffic limit in MB. It should be within the range of 1–10485760 + * @return trafficLimit + */ + @ApiModelProperty(value = "Traffic limit in MB. It should be within the range of 1–10485760") + + + public Long getTrafficLimit() { + return trafficLimit; + } + + public void setTrafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + } + + public VoucherGroupGridOpenApiVo trafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + return this; + } + + /** + * Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly. + * @return trafficLimitFrequency + */ + @ApiModelProperty(value = "Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly.") + + + public Integer getTrafficLimitFrequency() { + return trafficLimitFrequency; + } + + public void setTrafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + } + + public VoucherGroupGridOpenApiVo unitPrice(String unitPrice) { + this.unitPrice = unitPrice; + return this; + } + + /** + * Price of single voucher. It should be within the range of 1–999999999 + * @return unitPrice + */ + @ApiModelProperty(value = "Price of single voucher. It should be within the range of 1–999999999") + + + public String getUnitPrice() { + return unitPrice; + } + + public void setUnitPrice(String unitPrice) { + this.unitPrice = unitPrice; + } + + public VoucherGroupGridOpenApiVo currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide. + * @return currency + */ + @ApiModelProperty(value = "Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide.") + + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public VoucherGroupGridOpenApiVo portalNames(List portalNames) { + this.portalNames = portalNames; + return this; + } + + public VoucherGroupGridOpenApiVo addPortalNamesItem(String portalNamesItem) { + if (this.portalNames == null) { + this.portalNames = new ArrayList<>(); + } + this.portalNames.add(portalNamesItem); + return this; + } + + /** + * Bound portal name list + * @return portalNames + */ + @ApiModelProperty(value = "Bound portal name list") + + + public List getPortalNames() { + return portalNames; + } + + public void setPortalNames(List portalNames) { + this.portalNames = portalNames; + } + + public VoucherGroupGridOpenApiVo applyToAllPortals(Boolean applyToAllPortals) { + this.applyToAllPortals = applyToAllPortals; + return this; + } + + /** + * Is the voucher effective for all portals, including all newly created portals + * @return applyToAllPortals + */ + @ApiModelProperty(value = "Is the voucher effective for all portals, including all newly created portals") + + + public Boolean getApplyToAllPortals() { + return applyToAllPortals; + } + + public void setApplyToAllPortals(Boolean applyToAllPortals) { + this.applyToAllPortals = applyToAllPortals; + } + + public VoucherGroupGridOpenApiVo expirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + /** + * The timestamp of the expiration of the voucher, unit: millisecond + * @return expirationTime + */ + @ApiModelProperty(value = "The timestamp of the expiration of the voucher, unit: millisecond") + + + public Long getExpirationTime() { + return expirationTime; + } + + public void setExpirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + } + + public VoucherGroupGridOpenApiVo effectiveTime(Long effectiveTime) { + this.effectiveTime = effectiveTime; + return this; + } + + /** + * The timestamp when the voucher takes effect, unit: millisecond + * @return effectiveTime + */ + @ApiModelProperty(value = "The timestamp when the voucher takes effect, unit: millisecond") + + + public Long getEffectiveTime() { + return effectiveTime; + } + + public void setEffectiveTime(Long effectiveTime) { + this.effectiveTime = effectiveTime; + } + + public VoucherGroupGridOpenApiVo logout(Boolean logout) { + this.logout = logout; + return this; + } + + /** + * Whether the voucher support portal logout functionality + * @return logout + */ + @ApiModelProperty(value = "Whether the voucher support portal logout functionality") + + + public Boolean getLogout() { + return logout; + } + + public void setLogout(Boolean logout) { + this.logout = logout; + } + + public VoucherGroupGridOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description of the voucher group + * @return description + */ + @ApiModelProperty(value = "Description of the voucher group") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public VoucherGroupGridOpenApiVo printComments(String printComments) { + this.printComments = printComments; + return this; + } + + /** + * Print comments of the voucher group + * @return printComments + */ + @ApiModelProperty(value = "Print comments of the voucher group") + + + public String getPrintComments() { + return printComments; + } + + public void setPrintComments(String printComments) { + this.printComments = printComments; + } + + public VoucherGroupGridOpenApiVo unusedCount(Integer unusedCount) { + this.unusedCount = unusedCount; + return this; + } + + /** + * Unused voucher counts of the voucher group, affected by search + * @return unusedCount + */ + @ApiModelProperty(value = "Unused voucher counts of the voucher group, affected by search") + + + public Integer getUnusedCount() { + return unusedCount; + } + + public void setUnusedCount(Integer unusedCount) { + this.unusedCount = unusedCount; + } + + public VoucherGroupGridOpenApiVo usedCount(Integer usedCount) { + this.usedCount = usedCount; + return this; + } + + /** + * Used voucher counts of the voucher group, affected by search + * @return usedCount + */ + @ApiModelProperty(value = "Used voucher counts of the voucher group, affected by search") + + + public Integer getUsedCount() { + return usedCount; + } + + public void setUsedCount(Integer usedCount) { + this.usedCount = usedCount; + } + + public VoucherGroupGridOpenApiVo inUseCount(Integer inUseCount) { + this.inUseCount = inUseCount; + return this; + } + + /** + * In use voucher counts of the voucher group, affected by search + * @return inUseCount + */ + @ApiModelProperty(value = "In use voucher counts of the voucher group, affected by search") + + + public Integer getInUseCount() { + return inUseCount; + } + + public void setInUseCount(Integer inUseCount) { + this.inUseCount = inUseCount; + } + + public VoucherGroupGridOpenApiVo expiredCount(Integer expiredCount) { + this.expiredCount = expiredCount; + return this; + } + + /** + * Expired voucher counts of the voucher group, affected by search + * @return expiredCount + */ + @ApiModelProperty(value = "Expired voucher counts of the voucher group, affected by search") + + + public Integer getExpiredCount() { + return expiredCount; + } + + public void setExpiredCount(Integer expiredCount) { + this.expiredCount = expiredCount; + } + + public VoucherGroupGridOpenApiVo totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Total voucher counts of the voucher group, affected by search + * @return totalCount + */ + @ApiModelProperty(value = "Total voucher counts of the voucher group, affected by search") + + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public VoucherGroupGridOpenApiVo unusedAmount(String unusedAmount) { + this.unusedAmount = unusedAmount; + return this; + } + + /** + * Unused voucher amount of the voucher group, unaffected by search + * @return unusedAmount + */ + @ApiModelProperty(value = "Unused voucher amount of the voucher group, unaffected by search") + + + public String getUnusedAmount() { + return unusedAmount; + } + + public void setUnusedAmount(String unusedAmount) { + this.unusedAmount = unusedAmount; + } + + public VoucherGroupGridOpenApiVo usedAmount(String usedAmount) { + this.usedAmount = usedAmount; + return this; + } + + /** + * Used voucher amount of the voucher group, unaffected by search + * @return usedAmount + */ + @ApiModelProperty(value = "Used voucher amount of the voucher group, unaffected by search") + + + public String getUsedAmount() { + return usedAmount; + } + + public void setUsedAmount(String usedAmount) { + this.usedAmount = usedAmount; + } + + public VoucherGroupGridOpenApiVo totalAmount(String totalAmount) { + this.totalAmount = totalAmount; + return this; + } + + /** + * Total voucher amount of the voucher group, unaffected by search + * @return totalAmount + */ + @ApiModelProperty(value = "Total voucher amount of the voucher group, unaffected by search") + + + public String getTotalAmount() { + return totalAmount; + } + + public void setTotalAmount(String totalAmount) { + this.totalAmount = totalAmount; + } + + public VoucherGroupGridOpenApiVo statisticsCount(StatisticsCountOpenApiVo statisticsCount) { + this.statisticsCount = statisticsCount; + return this; + } + + /** + * Get statisticsCount + * @return statisticsCount + */ + @ApiModelProperty(value = "") + + @Valid + + public StatisticsCountOpenApiVo getStatisticsCount() { + return statisticsCount; + } + + public void setStatisticsCount(StatisticsCountOpenApiVo statisticsCount) { + this.statisticsCount = statisticsCount; + } + + public VoucherGroupGridOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of vouchers in the voucher group, affected by search + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of vouchers in the voucher group, affected by search") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public VoucherGroupGridOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number + * @return currentPage + */ + @ApiModelProperty(value = "Current page number") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public VoucherGroupGridOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public VoucherGroupGridOpenApiVo data(List data) { + this.data = data; + return this; + } + + public VoucherGroupGridOpenApiVo addDataItem(SimpleVoucherOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Voucher pagination data of the voucher group + * @return data + */ + @ApiModelProperty(value = "Voucher pagination data of the voucher group") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoucherGroupGridOpenApiVo voucherGroupGridOpenApiVo = (VoucherGroupGridOpenApiVo) o; + return Objects.equals(this.id, voucherGroupGridOpenApiVo.id) && + Objects.equals(this.name, voucherGroupGridOpenApiVo.name) && + Objects.equals(this.createdTime, voucherGroupGridOpenApiVo.createdTime) && + Objects.equals(this.creatorName, voucherGroupGridOpenApiVo.creatorName) && + Objects.equals(this.limitType, voucherGroupGridOpenApiVo.limitType) && + Objects.equals(this.limitNum, voucherGroupGridOpenApiVo.limitNum) && + Objects.equals(this.durationType, voucherGroupGridOpenApiVo.durationType) && + Objects.equals(this.duration, voucherGroupGridOpenApiVo.duration) && + Objects.equals(this.timingType, voucherGroupGridOpenApiVo.timingType) && + Objects.equals(this.rateLimit, voucherGroupGridOpenApiVo.rateLimit) && + Objects.equals(this.trafficLimitEnable, voucherGroupGridOpenApiVo.trafficLimitEnable) && + Objects.equals(this.trafficLimit, voucherGroupGridOpenApiVo.trafficLimit) && + Objects.equals(this.trafficLimitFrequency, voucherGroupGridOpenApiVo.trafficLimitFrequency) && + Objects.equals(this.unitPrice, voucherGroupGridOpenApiVo.unitPrice) && + Objects.equals(this.currency, voucherGroupGridOpenApiVo.currency) && + Objects.equals(this.portalNames, voucherGroupGridOpenApiVo.portalNames) && + Objects.equals(this.applyToAllPortals, voucherGroupGridOpenApiVo.applyToAllPortals) && + Objects.equals(this.expirationTime, voucherGroupGridOpenApiVo.expirationTime) && + Objects.equals(this.effectiveTime, voucherGroupGridOpenApiVo.effectiveTime) && + Objects.equals(this.logout, voucherGroupGridOpenApiVo.logout) && + Objects.equals(this.description, voucherGroupGridOpenApiVo.description) && + Objects.equals(this.printComments, voucherGroupGridOpenApiVo.printComments) && + Objects.equals(this.unusedCount, voucherGroupGridOpenApiVo.unusedCount) && + Objects.equals(this.usedCount, voucherGroupGridOpenApiVo.usedCount) && + Objects.equals(this.inUseCount, voucherGroupGridOpenApiVo.inUseCount) && + Objects.equals(this.expiredCount, voucherGroupGridOpenApiVo.expiredCount) && + Objects.equals(this.totalCount, voucherGroupGridOpenApiVo.totalCount) && + Objects.equals(this.unusedAmount, voucherGroupGridOpenApiVo.unusedAmount) && + Objects.equals(this.usedAmount, voucherGroupGridOpenApiVo.usedAmount) && + Objects.equals(this.totalAmount, voucherGroupGridOpenApiVo.totalAmount) && + Objects.equals(this.statisticsCount, voucherGroupGridOpenApiVo.statisticsCount) && + Objects.equals(this.totalRows, voucherGroupGridOpenApiVo.totalRows) && + Objects.equals(this.currentPage, voucherGroupGridOpenApiVo.currentPage) && + Objects.equals(this.currentSize, voucherGroupGridOpenApiVo.currentSize) && + Objects.equals(this.data, voucherGroupGridOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, createdTime, creatorName, limitType, limitNum, durationType, duration, timingType, rateLimit, trafficLimitEnable, trafficLimit, trafficLimitFrequency, unitPrice, currency, portalNames, applyToAllPortals, expirationTime, effectiveTime, logout, description, printComments, unusedCount, usedCount, inUseCount, expiredCount, totalCount, unusedAmount, usedAmount, totalAmount, statisticsCount, totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoucherGroupGridOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); + sb.append(" creatorName: ").append(toIndentedString(creatorName)).append("\n"); + sb.append(" limitType: ").append(toIndentedString(limitType)).append("\n"); + sb.append(" limitNum: ").append(toIndentedString(limitNum)).append("\n"); + sb.append(" durationType: ").append(toIndentedString(durationType)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" timingType: ").append(toIndentedString(timingType)).append("\n"); + sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n"); + sb.append(" trafficLimitEnable: ").append(toIndentedString(trafficLimitEnable)).append("\n"); + sb.append(" trafficLimit: ").append(toIndentedString(trafficLimit)).append("\n"); + sb.append(" trafficLimitFrequency: ").append(toIndentedString(trafficLimitFrequency)).append("\n"); + sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" portalNames: ").append(toIndentedString(portalNames)).append("\n"); + sb.append(" applyToAllPortals: ").append(toIndentedString(applyToAllPortals)).append("\n"); + sb.append(" expirationTime: ").append(toIndentedString(expirationTime)).append("\n"); + sb.append(" effectiveTime: ").append(toIndentedString(effectiveTime)).append("\n"); + sb.append(" logout: ").append(toIndentedString(logout)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" printComments: ").append(toIndentedString(printComments)).append("\n"); + sb.append(" unusedCount: ").append(toIndentedString(unusedCount)).append("\n"); + sb.append(" usedCount: ").append(toIndentedString(usedCount)).append("\n"); + sb.append(" inUseCount: ").append(toIndentedString(inUseCount)).append("\n"); + sb.append(" expiredCount: ").append(toIndentedString(expiredCount)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" unusedAmount: ").append(toIndentedString(unusedAmount)).append("\n"); + sb.append(" usedAmount: ").append(toIndentedString(usedAmount)).append("\n"); + sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); + sb.append(" statisticsCount: ").append(toIndentedString(statisticsCount)).append("\n"); + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherGroupOpenApiVo.java new file mode 100644 index 0000000..f7ac2fa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherGroupOpenApiVo.java @@ -0,0 +1,764 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VoucherGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class VoucherGroupOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("createdTime") + private Long createdTime; + + @JsonProperty("creatorName") + private String creatorName; + + @JsonProperty("limitType") + private Integer limitType; + + @JsonProperty("limitNum") + private Integer limitNum; + + @JsonProperty("durationType") + private Integer durationType; + + @JsonProperty("duration") + private Long duration; + + @JsonProperty("timingType") + private Integer timingType; + + @JsonProperty("rateLimit") + private RateLimitOpenApiVo rateLimit; + + @JsonProperty("trafficLimitEnable") + private Boolean trafficLimitEnable; + + @JsonProperty("trafficLimit") + private Long trafficLimit; + + @JsonProperty("trafficLimitFrequency") + private Integer trafficLimitFrequency; + + @JsonProperty("unitPrice") + private String unitPrice; + + @JsonProperty("currency") + private String currency; + + @JsonProperty("portalNames") + @Valid + private List portalNames = null; + + @JsonProperty("applyToAllPortals") + private Boolean applyToAllPortals; + + @JsonProperty("expirationTime") + private Long expirationTime; + + @JsonProperty("effectiveTime") + private Long effectiveTime; + + @JsonProperty("logout") + private Boolean logout; + + @JsonProperty("description") + private String description; + + @JsonProperty("printComments") + private String printComments; + + @JsonProperty("unusedCount") + private Integer unusedCount; + + @JsonProperty("usedCount") + private Integer usedCount; + + @JsonProperty("inUseCount") + private Integer inUseCount; + + @JsonProperty("expiredCount") + private Integer expiredCount; + + @JsonProperty("totalCount") + private Integer totalCount; + + @JsonProperty("totalAmount") + private String totalAmount; + + public VoucherGroupOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Voucher group ID + * @return id + */ + @ApiModelProperty(value = "Voucher group ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VoucherGroupOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Voucher group ID + * @return name + */ + @ApiModelProperty(value = "Voucher group ID") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VoucherGroupOpenApiVo createdTime(Long createdTime) { + this.createdTime = createdTime; + return this; + } + + /** + * Create timestamp for the voucher group, unit: millisecond + * @return createdTime + */ + @ApiModelProperty(value = "Create timestamp for the voucher group, unit: millisecond") + + + public Long getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(Long createdTime) { + this.createdTime = createdTime; + } + + public VoucherGroupOpenApiVo creatorName(String creatorName) { + this.creatorName = creatorName; + return this; + } + + /** + * Role of the creator of the voucher group + * @return creatorName + */ + @ApiModelProperty(value = "Role of the creator of the voucher group") + + + public String getCreatorName() { + return creatorName; + } + + public void setCreatorName(String creatorName) { + this.creatorName = creatorName; + } + + public VoucherGroupOpenApiVo limitType(Integer limitType) { + this.limitType = limitType; + return this; + } + + /** + * The limitations of the voucher. It should be a value as follows: 0: Limited Usage Counts, 1: Limited Online Users, 2: Unlimited + * @return limitType + */ + @ApiModelProperty(value = "The limitations of the voucher. It should be a value as follows: 0: Limited Usage Counts, 1: Limited Online Users, 2: Unlimited") + + + public Integer getLimitType() { + return limitType; + } + + public void setLimitType(Integer limitType) { + this.limitType = limitType; + } + + public VoucherGroupOpenApiVo limitNum(Integer limitNum) { + this.limitNum = limitNum; + return this; + } + + /** + * The number of limitations. It should be within the range of 1–999. If Parameter [limitType] is 0 or 1, [limitNum] should not be null.When Parameter [limitType] is 0, [limitNum] represents the maximum number of times this voucher can be used.When Parameter [limitType] is 1, [limitNum] represents the maximum number of users this voucher can be used at the same time. + * @return limitNum + */ + @ApiModelProperty(value = "The number of limitations. It should be within the range of 1–999. If Parameter [limitType] is 0 or 1, [limitNum] should not be null.When Parameter [limitType] is 0, [limitNum] represents the maximum number of times this voucher can be used.When Parameter [limitType] is 1, [limitNum] represents the maximum number of users this voucher can be used at the same time.") + + + public Integer getLimitNum() { + return limitNum; + } + + public void setLimitNum(Integer limitNum) { + this.limitNum = limitNum; + } + + public VoucherGroupOpenApiVo durationType(Integer durationType) { + this.durationType = durationType; + return this; + } + + /** + * The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire + * @return durationType + */ + @ApiModelProperty(value = "The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire") + + + public Integer getDurationType() { + return durationType; + } + + public void setDurationType(Integer durationType) { + this.durationType = durationType; + } + + public VoucherGroupOpenApiVo duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * Duration of one use, unit: minute. It should be within the range of 1–14400000. + * @return duration + */ + @ApiModelProperty(value = "Duration of one use, unit: minute. It should be within the range of 1–14400000.") + + + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + public VoucherGroupOpenApiVo timingType(Integer timingType) { + this.timingType = timingType; + return this; + } + + /** + * The timing type of the voucher. It should be a value as follows: 0: Timing by time, clients can use vouchers for specified time duration. 1: Timing by usage, clients can use vouchers for the duration of actual usage + * @return timingType + */ + @ApiModelProperty(value = "The timing type of the voucher. It should be a value as follows: 0: Timing by time, clients can use vouchers for specified time duration. 1: Timing by usage, clients can use vouchers for the duration of actual usage") + + + public Integer getTimingType() { + return timingType; + } + + public void setTimingType(Integer timingType) { + this.timingType = timingType; + } + + public VoucherGroupOpenApiVo rateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + return this; + } + + /** + * Get rateLimit + * @return rateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public RateLimitOpenApiVo getRateLimit() { + return rateLimit; + } + + public void setRateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + } + + public VoucherGroupOpenApiVo trafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + return this; + } + + /** + * Whether to enable traffic limit + * @return trafficLimitEnable + */ + @ApiModelProperty(value = "Whether to enable traffic limit") + + + public Boolean getTrafficLimitEnable() { + return trafficLimitEnable; + } + + public void setTrafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + } + + public VoucherGroupOpenApiVo trafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + return this; + } + + /** + * Traffic limit in MB. It should be within the range of 1–10485760 + * @return trafficLimit + */ + @ApiModelProperty(value = "Traffic limit in MB. It should be within the range of 1–10485760") + + + public Long getTrafficLimit() { + return trafficLimit; + } + + public void setTrafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + } + + public VoucherGroupOpenApiVo trafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + return this; + } + + /** + * Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly. + * @return trafficLimitFrequency + */ + @ApiModelProperty(value = "Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly.") + + + public Integer getTrafficLimitFrequency() { + return trafficLimitFrequency; + } + + public void setTrafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + } + + public VoucherGroupOpenApiVo unitPrice(String unitPrice) { + this.unitPrice = unitPrice; + return this; + } + + /** + * Price of single voucher. It should be within the range of 1–999999999 + * @return unitPrice + */ + @ApiModelProperty(value = "Price of single voucher. It should be within the range of 1–999999999") + + + public String getUnitPrice() { + return unitPrice; + } + + public void setUnitPrice(String unitPrice) { + this.unitPrice = unitPrice; + } + + public VoucherGroupOpenApiVo currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide. + * @return currency + */ + @ApiModelProperty(value = "Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide.") + + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public VoucherGroupOpenApiVo portalNames(List portalNames) { + this.portalNames = portalNames; + return this; + } + + public VoucherGroupOpenApiVo addPortalNamesItem(String portalNamesItem) { + if (this.portalNames == null) { + this.portalNames = new ArrayList<>(); + } + this.portalNames.add(portalNamesItem); + return this; + } + + /** + * Bound portal name list + * @return portalNames + */ + @ApiModelProperty(value = "Bound portal name list") + + + public List getPortalNames() { + return portalNames; + } + + public void setPortalNames(List portalNames) { + this.portalNames = portalNames; + } + + public VoucherGroupOpenApiVo applyToAllPortals(Boolean applyToAllPortals) { + this.applyToAllPortals = applyToAllPortals; + return this; + } + + /** + * Is the voucher effective for all portals, including all newly created portals + * @return applyToAllPortals + */ + @ApiModelProperty(value = "Is the voucher effective for all portals, including all newly created portals") + + + public Boolean getApplyToAllPortals() { + return applyToAllPortals; + } + + public void setApplyToAllPortals(Boolean applyToAllPortals) { + this.applyToAllPortals = applyToAllPortals; + } + + public VoucherGroupOpenApiVo expirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + /** + * The timestamp of the expiration of the voucher, unit: millisecond + * @return expirationTime + */ + @ApiModelProperty(value = "The timestamp of the expiration of the voucher, unit: millisecond") + + + public Long getExpirationTime() { + return expirationTime; + } + + public void setExpirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + } + + public VoucherGroupOpenApiVo effectiveTime(Long effectiveTime) { + this.effectiveTime = effectiveTime; + return this; + } + + /** + * The timestamp when the voucher takes effect, unit: millisecond + * @return effectiveTime + */ + @ApiModelProperty(value = "The timestamp when the voucher takes effect, unit: millisecond") + + + public Long getEffectiveTime() { + return effectiveTime; + } + + public void setEffectiveTime(Long effectiveTime) { + this.effectiveTime = effectiveTime; + } + + public VoucherGroupOpenApiVo logout(Boolean logout) { + this.logout = logout; + return this; + } + + /** + * Whether the voucher support portal logout functionality + * @return logout + */ + @ApiModelProperty(value = "Whether the voucher support portal logout functionality") + + + public Boolean getLogout() { + return logout; + } + + public void setLogout(Boolean logout) { + this.logout = logout; + } + + public VoucherGroupOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description of the voucher group + * @return description + */ + @ApiModelProperty(value = "Description of the voucher group") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public VoucherGroupOpenApiVo printComments(String printComments) { + this.printComments = printComments; + return this; + } + + /** + * Print comments of the voucher group + * @return printComments + */ + @ApiModelProperty(value = "Print comments of the voucher group") + + + public String getPrintComments() { + return printComments; + } + + public void setPrintComments(String printComments) { + this.printComments = printComments; + } + + public VoucherGroupOpenApiVo unusedCount(Integer unusedCount) { + this.unusedCount = unusedCount; + return this; + } + + /** + * Unused voucher counts of the voucher group + * @return unusedCount + */ + @ApiModelProperty(value = "Unused voucher counts of the voucher group") + + + public Integer getUnusedCount() { + return unusedCount; + } + + public void setUnusedCount(Integer unusedCount) { + this.unusedCount = unusedCount; + } + + public VoucherGroupOpenApiVo usedCount(Integer usedCount) { + this.usedCount = usedCount; + return this; + } + + /** + * Used voucher counts of the voucher group + * @return usedCount + */ + @ApiModelProperty(value = "Used voucher counts of the voucher group") + + + public Integer getUsedCount() { + return usedCount; + } + + public void setUsedCount(Integer usedCount) { + this.usedCount = usedCount; + } + + public VoucherGroupOpenApiVo inUseCount(Integer inUseCount) { + this.inUseCount = inUseCount; + return this; + } + + /** + * In use voucher counts of the voucher group + * @return inUseCount + */ + @ApiModelProperty(value = "In use voucher counts of the voucher group") + + + public Integer getInUseCount() { + return inUseCount; + } + + public void setInUseCount(Integer inUseCount) { + this.inUseCount = inUseCount; + } + + public VoucherGroupOpenApiVo expiredCount(Integer expiredCount) { + this.expiredCount = expiredCount; + return this; + } + + /** + * Expired voucher counts of the voucher group + * @return expiredCount + */ + @ApiModelProperty(value = "Expired voucher counts of the voucher group") + + + public Integer getExpiredCount() { + return expiredCount; + } + + public void setExpiredCount(Integer expiredCount) { + this.expiredCount = expiredCount; + } + + public VoucherGroupOpenApiVo totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Total voucher counts of the voucher group + * @return totalCount + */ + @ApiModelProperty(value = "Total voucher counts of the voucher group") + + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + public VoucherGroupOpenApiVo totalAmount(String totalAmount) { + this.totalAmount = totalAmount; + return this; + } + + /** + * Total voucher amount of the voucher group + * @return totalAmount + */ + @ApiModelProperty(value = "Total voucher amount of the voucher group") + + + public String getTotalAmount() { + return totalAmount; + } + + public void setTotalAmount(String totalAmount) { + this.totalAmount = totalAmount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoucherGroupOpenApiVo voucherGroupOpenApiVo = (VoucherGroupOpenApiVo) o; + return Objects.equals(this.id, voucherGroupOpenApiVo.id) && + Objects.equals(this.name, voucherGroupOpenApiVo.name) && + Objects.equals(this.createdTime, voucherGroupOpenApiVo.createdTime) && + Objects.equals(this.creatorName, voucherGroupOpenApiVo.creatorName) && + Objects.equals(this.limitType, voucherGroupOpenApiVo.limitType) && + Objects.equals(this.limitNum, voucherGroupOpenApiVo.limitNum) && + Objects.equals(this.durationType, voucherGroupOpenApiVo.durationType) && + Objects.equals(this.duration, voucherGroupOpenApiVo.duration) && + Objects.equals(this.timingType, voucherGroupOpenApiVo.timingType) && + Objects.equals(this.rateLimit, voucherGroupOpenApiVo.rateLimit) && + Objects.equals(this.trafficLimitEnable, voucherGroupOpenApiVo.trafficLimitEnable) && + Objects.equals(this.trafficLimit, voucherGroupOpenApiVo.trafficLimit) && + Objects.equals(this.trafficLimitFrequency, voucherGroupOpenApiVo.trafficLimitFrequency) && + Objects.equals(this.unitPrice, voucherGroupOpenApiVo.unitPrice) && + Objects.equals(this.currency, voucherGroupOpenApiVo.currency) && + Objects.equals(this.portalNames, voucherGroupOpenApiVo.portalNames) && + Objects.equals(this.applyToAllPortals, voucherGroupOpenApiVo.applyToAllPortals) && + Objects.equals(this.expirationTime, voucherGroupOpenApiVo.expirationTime) && + Objects.equals(this.effectiveTime, voucherGroupOpenApiVo.effectiveTime) && + Objects.equals(this.logout, voucherGroupOpenApiVo.logout) && + Objects.equals(this.description, voucherGroupOpenApiVo.description) && + Objects.equals(this.printComments, voucherGroupOpenApiVo.printComments) && + Objects.equals(this.unusedCount, voucherGroupOpenApiVo.unusedCount) && + Objects.equals(this.usedCount, voucherGroupOpenApiVo.usedCount) && + Objects.equals(this.inUseCount, voucherGroupOpenApiVo.inUseCount) && + Objects.equals(this.expiredCount, voucherGroupOpenApiVo.expiredCount) && + Objects.equals(this.totalCount, voucherGroupOpenApiVo.totalCount) && + Objects.equals(this.totalAmount, voucherGroupOpenApiVo.totalAmount); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, createdTime, creatorName, limitType, limitNum, durationType, duration, timingType, rateLimit, trafficLimitEnable, trafficLimit, trafficLimitFrequency, unitPrice, currency, portalNames, applyToAllPortals, expirationTime, effectiveTime, logout, description, printComments, unusedCount, usedCount, inUseCount, expiredCount, totalCount, totalAmount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoucherGroupOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); + sb.append(" creatorName: ").append(toIndentedString(creatorName)).append("\n"); + sb.append(" limitType: ").append(toIndentedString(limitType)).append("\n"); + sb.append(" limitNum: ").append(toIndentedString(limitNum)).append("\n"); + sb.append(" durationType: ").append(toIndentedString(durationType)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" timingType: ").append(toIndentedString(timingType)).append("\n"); + sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n"); + sb.append(" trafficLimitEnable: ").append(toIndentedString(trafficLimitEnable)).append("\n"); + sb.append(" trafficLimit: ").append(toIndentedString(trafficLimit)).append("\n"); + sb.append(" trafficLimitFrequency: ").append(toIndentedString(trafficLimitFrequency)).append("\n"); + sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" portalNames: ").append(toIndentedString(portalNames)).append("\n"); + sb.append(" applyToAllPortals: ").append(toIndentedString(applyToAllPortals)).append("\n"); + sb.append(" expirationTime: ").append(toIndentedString(expirationTime)).append("\n"); + sb.append(" effectiveTime: ").append(toIndentedString(effectiveTime)).append("\n"); + sb.append(" logout: ").append(toIndentedString(logout)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" printComments: ").append(toIndentedString(printComments)).append("\n"); + sb.append(" unusedCount: ").append(toIndentedString(unusedCount)).append("\n"); + sb.append(" usedCount: ").append(toIndentedString(usedCount)).append("\n"); + sb.append(" inUseCount: ").append(toIndentedString(inUseCount)).append("\n"); + sb.append(" expiredCount: ").append(toIndentedString(expiredCount)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherOpenApiVo.java new file mode 100644 index 0000000..3ff3b8e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherOpenApiVo.java @@ -0,0 +1,714 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VoucherOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class VoucherOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("code") + private String code; + + @JsonProperty("createdTime") + private Long createdTime; + + @JsonProperty("limitType") + private Integer limitType; + + @JsonProperty("limitNum") + private Integer limitNum; + + @JsonProperty("used") + private Integer used; + + @JsonProperty("durationType") + private Integer durationType; + + @JsonProperty("duration") + private Long duration; + + @JsonProperty("timingType") + private Integer timingType; + + @JsonProperty("expirationTime") + private Long expirationTime; + + @JsonProperty("effectiveTime") + private Long effectiveTime; + + @JsonProperty("description") + private String description; + + @JsonProperty("rateLimit") + private RateLimitOpenApiVo rateLimit; + + @JsonProperty("trafficLimitEnable") + private Boolean trafficLimitEnable; + + @JsonProperty("trafficLimit") + private Long trafficLimit; + + @JsonProperty("trafficLimitFrequency") + private Integer trafficLimitFrequency; + + @JsonProperty("trafficLeft") + private Boolean trafficLeft; + + @JsonProperty("startTime") + private Long startTime; + + @JsonProperty("valid") + private Boolean valid; + + @JsonProperty("trafficUsed") + private Long trafficUsed; + + @JsonProperty("unitPrice") + private String unitPrice; + + @JsonProperty("currency") + private String currency; + + @JsonProperty("portalNames") + @Valid + private List portalNames = null; + + @JsonProperty("logout") + private Boolean logout; + + @JsonProperty("validity") + private String validity; + + @JsonProperty("printComments") + private String printComments; + + public VoucherOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Voucher ID + * @return id + */ + @ApiModelProperty(value = "Voucher ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VoucherOpenApiVo code(String code) { + this.code = code; + return this; + } + + /** + * Voucher code + * @return code + */ + @ApiModelProperty(value = "Voucher code") + + + public String getCode() { + return code; + } + + public void setCode(String code) { + this.code = code; + } + + public VoucherOpenApiVo createdTime(Long createdTime) { + this.createdTime = createdTime; + return this; + } + + /** + * Create timestamp for the voucher, unit: millisecond + * @return createdTime + */ + @ApiModelProperty(value = "Create timestamp for the voucher, unit: millisecond") + + + public Long getCreatedTime() { + return createdTime; + } + + public void setCreatedTime(Long createdTime) { + this.createdTime = createdTime; + } + + public VoucherOpenApiVo limitType(Integer limitType) { + this.limitType = limitType; + return this; + } + + /** + * The limitations of the voucher. It should be a value as follows: 0: Limited Usage Counts, 1: Limited Online Users, 2: Unlimited + * @return limitType + */ + @ApiModelProperty(value = "The limitations of the voucher. It should be a value as follows: 0: Limited Usage Counts, 1: Limited Online Users, 2: Unlimited") + + + public Integer getLimitType() { + return limitType; + } + + public void setLimitType(Integer limitType) { + this.limitType = limitType; + } + + public VoucherOpenApiVo limitNum(Integer limitNum) { + this.limitNum = limitNum; + return this; + } + + /** + * The number of limitations. It should be within the range of 1–999. If Parameter [limitType] is 0 or 1, [limitNum] should not be null.When Parameter [limitType] is 0, [limitNum] represents the maximum number of times this voucher can be used.When Parameter [limitType] is 1, [limitNum] represents the maximum number of users this voucher can be used at the same time. + * @return limitNum + */ + @ApiModelProperty(value = "The number of limitations. It should be within the range of 1–999. If Parameter [limitType] is 0 or 1, [limitNum] should not be null.When Parameter [limitType] is 0, [limitNum] represents the maximum number of times this voucher can be used.When Parameter [limitType] is 1, [limitNum] represents the maximum number of users this voucher can be used at the same time.") + + + public Integer getLimitNum() { + return limitNum; + } + + public void setLimitNum(Integer limitNum) { + this.limitNum = limitNum; + } + + public VoucherOpenApiVo used(Integer used) { + this.used = used; + return this; + } + + /** + * The number of times the voucher is used + * @return used + */ + @ApiModelProperty(value = "The number of times the voucher is used") + + + public Integer getUsed() { + return used; + } + + public void setUsed(Integer used) { + this.used = used; + } + + public VoucherOpenApiVo durationType(Integer durationType) { + this.durationType = durationType; + return this; + } + + /** + * The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire + * @return durationType + */ + @ApiModelProperty(value = "The duration type of the voucher. It should be a value as follows: 0: Client duration, each client expires after the duration is used. 1: Voucher duration, after reaching the voucher duration, clients using the voucher will expire") + + + public Integer getDurationType() { + return durationType; + } + + public void setDurationType(Integer durationType) { + this.durationType = durationType; + } + + public VoucherOpenApiVo duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * Duration of one use, unit: minute. It should be within the range of 1–14400000. + * @return duration + */ + @ApiModelProperty(value = "Duration of one use, unit: minute. It should be within the range of 1–14400000.") + + + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + public VoucherOpenApiVo timingType(Integer timingType) { + this.timingType = timingType; + return this; + } + + /** + * The timing type of the voucher. It should be a value as follows: 0: Timing by time, clients can use vouchers for specified time duration. 1: Timing by usage, clients can use vouchers for the duration of actual usage + * @return timingType + */ + @ApiModelProperty(value = "The timing type of the voucher. It should be a value as follows: 0: Timing by time, clients can use vouchers for specified time duration. 1: Timing by usage, clients can use vouchers for the duration of actual usage") + + + public Integer getTimingType() { + return timingType; + } + + public void setTimingType(Integer timingType) { + this.timingType = timingType; + } + + public VoucherOpenApiVo expirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + /** + * The timestamp of the expiration of the voucher, unit: millisecond + * @return expirationTime + */ + @ApiModelProperty(value = "The timestamp of the expiration of the voucher, unit: millisecond") + + + public Long getExpirationTime() { + return expirationTime; + } + + public void setExpirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + } + + public VoucherOpenApiVo effectiveTime(Long effectiveTime) { + this.effectiveTime = effectiveTime; + return this; + } + + /** + * The timestamp when the voucher takes effect, unit: millisecond + * @return effectiveTime + */ + @ApiModelProperty(value = "The timestamp when the voucher takes effect, unit: millisecond") + + + public Long getEffectiveTime() { + return effectiveTime; + } + + public void setEffectiveTime(Long effectiveTime) { + this.effectiveTime = effectiveTime; + } + + public VoucherOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description of the voucher + * @return description + */ + @ApiModelProperty(value = "Description of the voucher") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public VoucherOpenApiVo rateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + return this; + } + + /** + * Get rateLimit + * @return rateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public RateLimitOpenApiVo getRateLimit() { + return rateLimit; + } + + public void setRateLimit(RateLimitOpenApiVo rateLimit) { + this.rateLimit = rateLimit; + } + + public VoucherOpenApiVo trafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + return this; + } + + /** + * Whether to enable traffic limit + * @return trafficLimitEnable + */ + @ApiModelProperty(value = "Whether to enable traffic limit") + + + public Boolean getTrafficLimitEnable() { + return trafficLimitEnable; + } + + public void setTrafficLimitEnable(Boolean trafficLimitEnable) { + this.trafficLimitEnable = trafficLimitEnable; + } + + public VoucherOpenApiVo trafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + return this; + } + + /** + * Traffic limit in MB. It should be within the range of 1–10485760 + * @return trafficLimit + */ + @ApiModelProperty(value = "Traffic limit in MB. It should be within the range of 1–10485760") + + + public Long getTrafficLimit() { + return trafficLimit; + } + + public void setTrafficLimit(Long trafficLimit) { + this.trafficLimit = trafficLimit; + } + + public VoucherOpenApiVo trafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + return this; + } + + /** + * Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly. + * @return trafficLimitFrequency + */ + @ApiModelProperty(value = "Frequency of traffic limit should be a value as follows: 0: total; 1: daily; 2: weekly; 3: monthly.") + + + public Integer getTrafficLimitFrequency() { + return trafficLimitFrequency; + } + + public void setTrafficLimitFrequency(Integer trafficLimitFrequency) { + this.trafficLimitFrequency = trafficLimitFrequency; + } + + public VoucherOpenApiVo trafficLeft(Boolean trafficLeft) { + this.trafficLeft = trafficLeft; + return this; + } + + /** + * Is there remaining traffic of traffic for the voucher + * @return trafficLeft + */ + @ApiModelProperty(value = "Is there remaining traffic of traffic for the voucher") + + + public Boolean getTrafficLeft() { + return trafficLeft; + } + + public void setTrafficLeft(Boolean trafficLeft) { + this.trafficLeft = trafficLeft; + } + + public VoucherOpenApiVo startTime(Long startTime) { + this.startTime = startTime; + return this; + } + + /** + * The expiration date of the voucher + * @return startTime + */ + @ApiModelProperty(value = "The expiration date of the voucher") + + + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public VoucherOpenApiVo valid(Boolean valid) { + this.valid = valid; + return this; + } + + /** + * Can the voucher still be used + * @return valid + */ + @ApiModelProperty(value = "Can the voucher still be used") + + + public Boolean getValid() { + return valid; + } + + public void setValid(Boolean valid) { + this.valid = valid; + } + + public VoucherOpenApiVo trafficUsed(Long trafficUsed) { + this.trafficUsed = trafficUsed; + return this; + } + + /** + * Used traffic of the voucher, unit: Byte + * @return trafficUsed + */ + @ApiModelProperty(value = "Used traffic of the voucher, unit: Byte") + + + public Long getTrafficUsed() { + return trafficUsed; + } + + public void setTrafficUsed(Long trafficUsed) { + this.trafficUsed = trafficUsed; + } + + public VoucherOpenApiVo unitPrice(String unitPrice) { + this.unitPrice = unitPrice; + return this; + } + + /** + * Price of single voucher. It should be within the range of 1–999999999 + * @return unitPrice + */ + @ApiModelProperty(value = "Price of single voucher. It should be within the range of 1–999999999") + + + public String getUnitPrice() { + return unitPrice; + } + + public void setUnitPrice(String unitPrice) { + this.unitPrice = unitPrice; + } + + public VoucherOpenApiVo currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide. + * @return currency + */ + @ApiModelProperty(value = "Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide.") + + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public VoucherOpenApiVo portalNames(List portalNames) { + this.portalNames = portalNames; + return this; + } + + public VoucherOpenApiVo addPortalNamesItem(String portalNamesItem) { + if (this.portalNames == null) { + this.portalNames = new ArrayList<>(); + } + this.portalNames.add(portalNamesItem); + return this; + } + + /** + * Bound portal name list + * @return portalNames + */ + @ApiModelProperty(value = "Bound portal name list") + + + public List getPortalNames() { + return portalNames; + } + + public void setPortalNames(List portalNames) { + this.portalNames = portalNames; + } + + public VoucherOpenApiVo logout(Boolean logout) { + this.logout = logout; + return this; + } + + /** + * Whether the voucher support portal logout functionality + * @return logout + */ + @ApiModelProperty(value = "Whether the voucher support portal logout functionality") + + + public Boolean getLogout() { + return logout; + } + + public void setLogout(Boolean logout) { + this.logout = logout; + } + + public VoucherOpenApiVo validity(String validity) { + this.validity = validity; + return this; + } + + /** + * Information on the validity period of the voucher + * @return validity + */ + @ApiModelProperty(value = "Information on the validity period of the voucher") + + + public String getValidity() { + return validity; + } + + public void setValidity(String validity) { + this.validity = validity; + } + + public VoucherOpenApiVo printComments(String printComments) { + this.printComments = printComments; + return this; + } + + /** + * Customized print information for voters + * @return printComments + */ + @ApiModelProperty(value = "Customized print information for voters") + + + public String getPrintComments() { + return printComments; + } + + public void setPrintComments(String printComments) { + this.printComments = printComments; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoucherOpenApiVo voucherOpenApiVo = (VoucherOpenApiVo) o; + return Objects.equals(this.id, voucherOpenApiVo.id) && + Objects.equals(this.code, voucherOpenApiVo.code) && + Objects.equals(this.createdTime, voucherOpenApiVo.createdTime) && + Objects.equals(this.limitType, voucherOpenApiVo.limitType) && + Objects.equals(this.limitNum, voucherOpenApiVo.limitNum) && + Objects.equals(this.used, voucherOpenApiVo.used) && + Objects.equals(this.durationType, voucherOpenApiVo.durationType) && + Objects.equals(this.duration, voucherOpenApiVo.duration) && + Objects.equals(this.timingType, voucherOpenApiVo.timingType) && + Objects.equals(this.expirationTime, voucherOpenApiVo.expirationTime) && + Objects.equals(this.effectiveTime, voucherOpenApiVo.effectiveTime) && + Objects.equals(this.description, voucherOpenApiVo.description) && + Objects.equals(this.rateLimit, voucherOpenApiVo.rateLimit) && + Objects.equals(this.trafficLimitEnable, voucherOpenApiVo.trafficLimitEnable) && + Objects.equals(this.trafficLimit, voucherOpenApiVo.trafficLimit) && + Objects.equals(this.trafficLimitFrequency, voucherOpenApiVo.trafficLimitFrequency) && + Objects.equals(this.trafficLeft, voucherOpenApiVo.trafficLeft) && + Objects.equals(this.startTime, voucherOpenApiVo.startTime) && + Objects.equals(this.valid, voucherOpenApiVo.valid) && + Objects.equals(this.trafficUsed, voucherOpenApiVo.trafficUsed) && + Objects.equals(this.unitPrice, voucherOpenApiVo.unitPrice) && + Objects.equals(this.currency, voucherOpenApiVo.currency) && + Objects.equals(this.portalNames, voucherOpenApiVo.portalNames) && + Objects.equals(this.logout, voucherOpenApiVo.logout) && + Objects.equals(this.validity, voucherOpenApiVo.validity) && + Objects.equals(this.printComments, voucherOpenApiVo.printComments); + } + + @Override + public int hashCode() { + return Objects.hash(id, code, createdTime, limitType, limitNum, used, durationType, duration, timingType, expirationTime, effectiveTime, description, rateLimit, trafficLimitEnable, trafficLimit, trafficLimitFrequency, trafficLeft, startTime, valid, trafficUsed, unitPrice, currency, portalNames, logout, validity, printComments); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoucherOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" createdTime: ").append(toIndentedString(createdTime)).append("\n"); + sb.append(" limitType: ").append(toIndentedString(limitType)).append("\n"); + sb.append(" limitNum: ").append(toIndentedString(limitNum)).append("\n"); + sb.append(" used: ").append(toIndentedString(used)).append("\n"); + sb.append(" durationType: ").append(toIndentedString(durationType)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" timingType: ").append(toIndentedString(timingType)).append("\n"); + sb.append(" expirationTime: ").append(toIndentedString(expirationTime)).append("\n"); + sb.append(" effectiveTime: ").append(toIndentedString(effectiveTime)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n"); + sb.append(" trafficLimitEnable: ").append(toIndentedString(trafficLimitEnable)).append("\n"); + sb.append(" trafficLimit: ").append(toIndentedString(trafficLimit)).append("\n"); + sb.append(" trafficLimitFrequency: ").append(toIndentedString(trafficLimitFrequency)).append("\n"); + sb.append(" trafficLeft: ").append(toIndentedString(trafficLeft)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" valid: ").append(toIndentedString(valid)).append("\n"); + sb.append(" trafficUsed: ").append(toIndentedString(trafficUsed)).append("\n"); + sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" portalNames: ").append(toIndentedString(portalNames)).append("\n"); + sb.append(" logout: ").append(toIndentedString(logout)).append("\n"); + sb.append(" validity: ").append(toIndentedString(validity)).append("\n"); + sb.append(" printComments: ").append(toIndentedString(printComments)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherStatisticsHistoryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherStatisticsHistoryOpenApiVo.java new file mode 100644 index 0000000..3eadf0e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherStatisticsHistoryOpenApiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VoucherStatisticsHistoryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class VoucherStatisticsHistoryOpenApiVo { + @JsonProperty("summary") + private Object summary; + + @JsonProperty("usage") + @Valid + private List usage = null; + + public VoucherStatisticsHistoryOpenApiVo summary(Object summary) { + this.summary = summary; + return this; + } + + /** + * Get summary + * @return summary + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getSummary() { + return summary; + } + + public void setSummary(Object summary) { + this.summary = summary; + } + + public VoucherStatisticsHistoryOpenApiVo usage(List usage) { + this.usage = usage; + return this; + } + + public VoucherStatisticsHistoryOpenApiVo addUsageItem(VoucherUsageOpenApiVo usageItem) { + if (this.usage == null) { + this.usage = new ArrayList<>(); + } + this.usage.add(usageItem); + return this; + } + + /** + * Data points of vouchers + * @return usage + */ + @ApiModelProperty(value = "Data points of vouchers") + + @Valid + + public List getUsage() { + return usage; + } + + public void setUsage(List usage) { + this.usage = usage; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoucherStatisticsHistoryOpenApiVo voucherStatisticsHistoryOpenApiVo = (VoucherStatisticsHistoryOpenApiVo) o; + return Objects.equals(this.summary, voucherStatisticsHistoryOpenApiVo.summary) && + Objects.equals(this.usage, voucherStatisticsHistoryOpenApiVo.usage); + } + + @Override + public int hashCode() { + return Objects.hash(summary, usage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoucherStatisticsHistoryOpenApiVo {\n"); + + sb.append(" summary: ").append(toIndentedString(summary)).append("\n"); + sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherSummaryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherSummaryOpenApiVo.java new file mode 100644 index 0000000..4307def --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherSummaryOpenApiVo.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Summary of all created vouchers, including deleted vouchers + */ +@ApiModel(description = "Summary of all created vouchers, including deleted vouchers") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class VoucherSummaryOpenApiVo { + @JsonProperty("count") + private Long count; + + @JsonProperty("amount") + private String amount; + + @JsonProperty("duration") + private Long duration; + + @JsonProperty("currency") + private String currency; + + public VoucherSummaryOpenApiVo count(Long count) { + this.count = count; + return this; + } + + /** + * Count of vouchers + * @return count + */ + @ApiModelProperty(value = "Count of vouchers") + + + public Long getCount() { + return count; + } + + public void setCount(Long count) { + this.count = count; + } + + public VoucherSummaryOpenApiVo amount(String amount) { + this.amount = amount; + return this; + } + + /** + * Amount of single voucher + * @return amount + */ + @ApiModelProperty(value = "Amount of single voucher") + + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public VoucherSummaryOpenApiVo duration(Long duration) { + this.duration = duration; + return this; + } + + /** + * Duration of vouchers, unit: minutes + * @return duration + */ + @ApiModelProperty(value = "Duration of vouchers, unit: minutes") + + + public Long getDuration() { + return duration; + } + + public void setDuration(Long duration) { + this.duration = duration; + } + + public VoucherSummaryOpenApiVo currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide. + * @return currency + */ + @ApiModelProperty(value = "Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide.") + + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoucherSummaryOpenApiVo voucherSummaryOpenApiVo = (VoucherSummaryOpenApiVo) o; + return Objects.equals(this.count, voucherSummaryOpenApiVo.count) && + Objects.equals(this.amount, voucherSummaryOpenApiVo.amount) && + Objects.equals(this.duration, voucherSummaryOpenApiVo.duration) && + Objects.equals(this.currency, voucherSummaryOpenApiVo.currency); + } + + @Override + public int hashCode() { + return Objects.hash(count, amount, duration, currency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoucherSummaryOpenApiVo {\n"); + + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherUnitPriceDistributionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherUnitPriceDistributionOpenApiVo.java new file mode 100644 index 0000000..133b5dd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherUnitPriceDistributionOpenApiVo.java @@ -0,0 +1,151 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * VoucherUnitPriceDistributionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class VoucherUnitPriceDistributionOpenApiVo { + @JsonProperty("unitPrice") + private String unitPrice; + + @JsonProperty("totalAmount") + private String totalAmount; + + @JsonProperty("usedCount") + private Integer usedCount; + + @JsonProperty("currency") + private String currency; + + public VoucherUnitPriceDistributionOpenApiVo unitPrice(String unitPrice) { + this.unitPrice = unitPrice; + return this; + } + + /** + * Price of single voucher. It should be within the range of 1–999999999 + * @return unitPrice + */ + @ApiModelProperty(value = "Price of single voucher. It should be within the range of 1–999999999") + + + public String getUnitPrice() { + return unitPrice; + } + + public void setUnitPrice(String unitPrice) { + this.unitPrice = unitPrice; + } + + public VoucherUnitPriceDistributionOpenApiVo totalAmount(String totalAmount) { + this.totalAmount = totalAmount; + return this; + } + + /** + * Total amount of vouchers + * @return totalAmount + */ + @ApiModelProperty(value = "Total amount of vouchers") + + + public String getTotalAmount() { + return totalAmount; + } + + public void setTotalAmount(String totalAmount) { + this.totalAmount = totalAmount; + } + + public VoucherUnitPriceDistributionOpenApiVo usedCount(Integer usedCount) { + this.usedCount = usedCount; + return this; + } + + /** + * Used count of vouchers + * @return usedCount + */ + @ApiModelProperty(value = "Used count of vouchers") + + + public Integer getUsedCount() { + return usedCount; + } + + public void setUsedCount(Integer usedCount) { + this.usedCount = usedCount; + } + + public VoucherUnitPriceDistributionOpenApiVo currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide. + * @return currency + */ + @ApiModelProperty(value = "Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide.") + + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoucherUnitPriceDistributionOpenApiVo voucherUnitPriceDistributionOpenApiVo = (VoucherUnitPriceDistributionOpenApiVo) o; + return Objects.equals(this.unitPrice, voucherUnitPriceDistributionOpenApiVo.unitPrice) && + Objects.equals(this.totalAmount, voucherUnitPriceDistributionOpenApiVo.totalAmount) && + Objects.equals(this.usedCount, voucherUnitPriceDistributionOpenApiVo.usedCount) && + Objects.equals(this.currency, voucherUnitPriceDistributionOpenApiVo.currency); + } + + @Override + public int hashCode() { + return Objects.hash(unitPrice, totalAmount, usedCount, currency); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoucherUnitPriceDistributionOpenApiVo {\n"); + + sb.append(" unitPrice: ").append(toIndentedString(unitPrice)).append("\n"); + sb.append(" totalAmount: ").append(toIndentedString(totalAmount)).append("\n"); + sb.append(" usedCount: ").append(toIndentedString(usedCount)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherUsageOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherUsageOpenApiVo.java new file mode 100644 index 0000000..16cb007 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/hotspot/model/VoucherUsageOpenApiVo.java @@ -0,0 +1,178 @@ +package org.wfc.omada.api.hotspot.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Data points of vouchers + */ +@ApiModel(description = "Data points of vouchers") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:35:35.496+08:00[Asia/Shanghai]") + +public class VoucherUsageOpenApiVo { + @JsonProperty("amount") + private String amount; + + @JsonProperty("currency") + private String currency; + + @JsonProperty("count") + private Integer count; + + @JsonProperty("timeInterval") + private Integer timeInterval; + + @JsonProperty("time") + private Long time; + + public VoucherUsageOpenApiVo amount(String amount) { + this.amount = amount; + return this; + } + + /** + * Amount of vouchers + * @return amount + */ + @ApiModelProperty(value = "Amount of vouchers") + + + public String getAmount() { + return amount; + } + + public void setAmount(String amount) { + this.amount = amount; + } + + public VoucherUsageOpenApiVo currency(String currency) { + this.currency = currency; + return this; + } + + /** + * Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide. + * @return currency + */ + @ApiModelProperty(value = "Currency Short Code of voucher. For the values of Currency Short Code, refer to section 5.4.2 of the Open API Access Guide.") + + + public String getCurrency() { + return currency; + } + + public void setCurrency(String currency) { + this.currency = currency; + } + + public VoucherUsageOpenApiVo count(Integer count) { + this.count = count; + return this; + } + + /** + * Count of vouchers + * @return count + */ + @ApiModelProperty(value = "Count of vouchers") + + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public VoucherUsageOpenApiVo timeInterval(Integer timeInterval) { + this.timeInterval = timeInterval; + return this; + } + + /** + * Time interval of each data point + * @return timeInterval + */ + @ApiModelProperty(value = "Time interval of each data point") + + + public Integer getTimeInterval() { + return timeInterval; + } + + public void setTimeInterval(Integer timeInterval) { + this.timeInterval = timeInterval; + } + + public VoucherUsageOpenApiVo time(Long time) { + this.time = time; + return this; + } + + /** + * Timestamp of the data point, unit: MS + * @return time + */ + @ApiModelProperty(value = "Timestamp of the data point, unit: MS") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoucherUsageOpenApiVo voucherUsageOpenApiVo = (VoucherUsageOpenApiVo) o; + return Objects.equals(this.amount, voucherUsageOpenApiVo.amount) && + Objects.equals(this.currency, voucherUsageOpenApiVo.currency) && + Objects.equals(this.count, voucherUsageOpenApiVo.count) && + Objects.equals(this.timeInterval, voucherUsageOpenApiVo.timeInterval) && + Objects.equals(this.time, voucherUsageOpenApiVo.time); + } + + @Override + public int hashCode() { + return Objects.hash(amount, currency, count, timeInterval, time); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoucherUsageOpenApiVo {\n"); + + sb.append(" amount: ").append(toIndentedString(amount)).append("\n"); + sb.append(" currency: ").append(toIndentedString(currency)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" timeInterval: ").append(toIndentedString(timeInterval)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/OmadaThreatManagementApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/OmadaThreatManagementApi.java new file mode 100644 index 0000000..2377615 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/OmadaThreatManagementApi.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.insight; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.insight.model.DeleteIpsThreat; +import org.wfc.omada.api.insight.model.IpsOperateThreat; +import org.wfc.omada.api.insight.model.OperationResponseGetIpsThreatDetail; +import org.wfc.omada.api.insight.model.OperationResponseGridVoGetGridIpsThreat; +import org.wfc.omada.api.insight.model.OperationResponseObject; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:42:23.297+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaThreatManagement", description = "the OmadaThreatManagement API") +@FeignClient(name="OmadaThreatManagementApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaThreatManagementApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/ips/threat : Delete archived ips threat + * Delete archived ips threat.<br/><br/>The interface requires one of the permissions: <br/>Site Insight Manager Modify<br/>Global Threat Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deleteIpsThreat (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete archived ips threat", nickname = "deleteThreatList", notes = "Delete archived ips threat.

The interface requires one of the permissions:
Site Insight Manager Modify
Global Threat Manager Modify", response = OperationResponseObject.class, tags={ "Omada/Threat Management","Threat Management", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ips/threat", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity deleteThreatList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteIpsThreat deleteIpsThreat); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/ips/threat/{threatId} : Get threat entry detail + * Get threat entry detail.<br/><br/>The interface requires one of the permissions: <br/>Site Insight Manager View Only<br/>Global Threat Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param threatId threatId (required) + * @param time Timestamp, in seconds, such as 1682000000 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get threat entry detail", nickname = "getThreatDetail", notes = "Get threat entry detail.

The interface requires one of the permissions:
Site Insight Manager View Only
Global Threat Manager View Only", response = OperationResponseGetIpsThreatDetail.class, tags={ "Omada/Threat Management","Threat Management", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGetIpsThreatDetail.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ips/threat/{threatId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getThreatDetail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "threatId",required=true) @PathVariable("threatId") String threatId,@NotNull @ApiParam(value = "Timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "time", required = true) Long time); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/ips/grid/threat-management : Get grid threat list + * Get grid threat list.<br/><br/>The interface requires one of the permissions: <br/>Site Insight Manager View Only<br/>Global Threat Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param archived archived (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param filtersStartTime Start timestamp, in seconds, such as 1682000000 (required) + * @param filtersEndTime End timestamp, in seconds, such as 1682000000 (required) + * @param filtersSeverity Threat Severity, such as 0:Critical, 1: Major, 2:Moderate, 3:Minor, 4:Low (optional) + * @param sortsTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field Threat Description/Classification/Classification Description (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get grid threat list", nickname = "getThreatList", notes = "Get grid threat list.

The interface requires one of the permissions:
Site Insight Manager View Only
Global Threat Manager View Only", response = OperationResponseGridVoGetGridIpsThreat.class, tags={ "Omada/Threat Management","Threat Management", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoGetGridIpsThreat.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ips/grid/threat-management", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getThreatList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "archived", required = true) @Valid @RequestParam(value = "archived", required = true) Boolean archived,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@NotNull @ApiParam(value = "Start timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "filters.startTime", required = true) Long filtersStartTime,@NotNull @ApiParam(value = "End timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "filters.endTime", required = true) Long filtersEndTime,@ApiParam(value = "Threat Severity, such as 0:Critical, 1: Major, 2:Moderate, 3:Minor, 4:Low") @Valid @RequestParam(value = "filters.severity", required = false) Integer filtersSeverity,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.time", required = false) String sortsTime,@ApiParam(value = "Fuzzy query parameters, support field Threat Description/Classification/Classification Description") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/ips/threat/multi-ops : Block/Isolate Device/Signature Suppression/Allow ips threat + * Block/Isolate Device/Signature Suppression/Allow ips threat.<br/><br/>The interface requires one of the permissions: <br/>Site Insight Manager Modify<br/>Global Threat Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35202 - The number of allow list entries has reached the limit.<br/>-35203 - The number of block list entries has reached the limit.<br/>-35204 - The number of signature suppression entries has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ipsOperateThreat (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Block/Isolate Device/Signature Suppression/Allow ips threat", nickname = "operateThreats", notes = "Block/Isolate Device/Signature Suppression/Allow ips threat.

The interface requires one of the permissions:
Site Insight Manager Modify
Global Threat Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35202 - The number of allow list entries has reached the limit.
-35203 - The number of block list entries has reached the limit.
-35204 - The number of signature suppression entries has reached the limit.", response = OperationResponseObject.class, tags={ "Omada/Threat Management","Threat Management", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ips/threat/multi-ops", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity operateThreats(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IpsOperateThreat ipsOperateThreat); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/DeleteIpsThreat.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/DeleteIpsThreat.java new file mode 100644 index 0000000..0d91542 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/DeleteIpsThreat.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.insight.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * DeleteIpsThreat + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:42:30.396+08:00[Asia/Shanghai]") + +public class DeleteIpsThreat { + @JsonProperty("threatId") + @Valid + private List threatId = null; + + public DeleteIpsThreat threatId(List threatId) { + this.threatId = threatId; + return this; + } + + public DeleteIpsThreat addThreatIdItem(IpsOperateThreatIdAndTime threatIdItem) { + if (this.threatId == null) { + this.threatId = new ArrayList<>(); + } + this.threatId.add(threatIdItem); + return this; + } + + /** + * IPS threatId and Time list. + * @return threatId + */ + @ApiModelProperty(value = "IPS threatId and Time list.") + + @Valid + + public List getThreatId() { + return threatId; + } + + public void setThreatId(List threatId) { + this.threatId = threatId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteIpsThreat deleteIpsThreat = (DeleteIpsThreat) o; + return Objects.equals(this.threatId, deleteIpsThreat.threatId); + } + + @Override + public int hashCode() { + return Objects.hash(threatId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteIpsThreat {\n"); + + sb.append(" threatId: ").append(toIndentedString(threatId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GetGridIpsThreat.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GetGridIpsThreat.java new file mode 100644 index 0000000..26ab2b2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GetGridIpsThreat.java @@ -0,0 +1,226 @@ +package org.wfc.omada.api.insight.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * GetGridIpsThreat + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:42:30.396+08:00[Asia/Shanghai]") + +public class GetGridIpsThreat { + @JsonProperty("id") + private String id; + + @JsonProperty("time") + private Long time; + + @JsonProperty("srcCountry") + private String srcCountry; + + @JsonProperty("service") + private String service; + + @JsonProperty("severity") + private Integer severity; + + @JsonProperty("category") + private Integer category; + + @JsonProperty("classification") + private String classification; + + public GetGridIpsThreat id(String id) { + this.id = id; + return this; + } + + /** + * IPS threat ID + * @return id + */ + @ApiModelProperty(value = "IPS threat ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GetGridIpsThreat time(Long time) { + this.time = time; + return this; + } + + /** + * Timestamp, in seconds, such as 1682000000 + * @return time + */ + @ApiModelProperty(value = "Timestamp, in seconds, such as 1682000000") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public GetGridIpsThreat srcCountry(String srcCountry) { + this.srcCountry = srcCountry; + return this; + } + + /** + * IPS threat source Country + * @return srcCountry + */ + @ApiModelProperty(value = "IPS threat source Country") + + + public String getSrcCountry() { + return srcCountry; + } + + public void setSrcCountry(String srcCountry) { + this.srcCountry = srcCountry; + } + + public GetGridIpsThreat service(String service) { + this.service = service; + return this; + } + + /** + * IPS threat description + * @return service + */ + @ApiModelProperty(value = "IPS threat description") + + + public String getService() { + return service; + } + + public void setService(String service) { + this.service = service; + } + + public GetGridIpsThreat severity(Integer severity) { + this.severity = severity; + return this; + } + + /** + * IPS threat severity should be a value as follows: 0: Critical; 1: Major; 2: Moderate; 3: Minor; 4: Low + * @return severity + */ + @ApiModelProperty(value = "IPS threat severity should be a value as follows: 0: Critical; 1: Major; 2: Moderate; 3: Minor; 4: Low") + + + public Integer getSeverity() { + return severity; + } + + public void setSeverity(Integer severity) { + this.severity = severity; + } + + public GetGridIpsThreat category(Integer category) { + this.category = category; + return this; + } + + /** + * IPS threat category + * @return category + */ + @ApiModelProperty(value = "IPS threat category") + + + public Integer getCategory() { + return category; + } + + public void setCategory(Integer category) { + this.category = category; + } + + public GetGridIpsThreat classification(String classification) { + this.classification = classification; + return this; + } + + /** + * Ips threat classification + * @return classification + */ + @ApiModelProperty(value = "Ips threat classification") + + + public String getClassification() { + return classification; + } + + public void setClassification(String classification) { + this.classification = classification; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetGridIpsThreat getGridIpsThreat = (GetGridIpsThreat) o; + return Objects.equals(this.id, getGridIpsThreat.id) && + Objects.equals(this.time, getGridIpsThreat.time) && + Objects.equals(this.srcCountry, getGridIpsThreat.srcCountry) && + Objects.equals(this.service, getGridIpsThreat.service) && + Objects.equals(this.severity, getGridIpsThreat.severity) && + Objects.equals(this.category, getGridIpsThreat.category) && + Objects.equals(this.classification, getGridIpsThreat.classification); + } + + @Override + public int hashCode() { + return Objects.hash(id, time, srcCountry, service, severity, category, classification); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetGridIpsThreat {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" srcCountry: ").append(toIndentedString(srcCountry)).append("\n"); + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" classification: ").append(toIndentedString(classification)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GetIpsThreatDetail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GetIpsThreatDetail.java new file mode 100644 index 0000000..da1830e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GetIpsThreatDetail.java @@ -0,0 +1,326 @@ +package org.wfc.omada.api.insight.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * GetIpsThreatDetail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:42:30.396+08:00[Asia/Shanghai]") + +public class GetIpsThreatDetail { + @JsonProperty("id") + private String id; + + @JsonProperty("time") + private Long time; + + @JsonProperty("srcIp") + private String srcIp; + + @JsonProperty("srcCountry") + private String srcCountry; + + @JsonProperty("dstIp") + private String dstIp; + + @JsonProperty("service") + private String service; + + @JsonProperty("severity") + private Integer severity; + + @JsonProperty("category") + private Integer category; + + @JsonProperty("classification") + private String classification; + + @JsonProperty("activity") + private Long activity; + + @JsonProperty("protocol") + private String protocol; + + public GetIpsThreatDetail id(String id) { + this.id = id; + return this; + } + + /** + * IPS threat ID + * @return id + */ + @ApiModelProperty(value = "IPS threat ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GetIpsThreatDetail time(Long time) { + this.time = time; + return this; + } + + /** + * Timestamp, in seconds, such as 1682000000 + * @return time + */ + @ApiModelProperty(value = "Timestamp, in seconds, such as 1682000000") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public GetIpsThreatDetail srcIp(String srcIp) { + this.srcIp = srcIp; + return this; + } + + /** + * IPS threat source IP + * @return srcIp + */ + @ApiModelProperty(value = "IPS threat source IP") + + + public String getSrcIp() { + return srcIp; + } + + public void setSrcIp(String srcIp) { + this.srcIp = srcIp; + } + + public GetIpsThreatDetail srcCountry(String srcCountry) { + this.srcCountry = srcCountry; + return this; + } + + /** + * IPS threat destination Country + * @return srcCountry + */ + @ApiModelProperty(value = "IPS threat destination Country") + + + public String getSrcCountry() { + return srcCountry; + } + + public void setSrcCountry(String srcCountry) { + this.srcCountry = srcCountry; + } + + public GetIpsThreatDetail dstIp(String dstIp) { + this.dstIp = dstIp; + return this; + } + + /** + * IPS threat destination IP + * @return dstIp + */ + @ApiModelProperty(value = "IPS threat destination IP") + + + public String getDstIp() { + return dstIp; + } + + public void setDstIp(String dstIp) { + this.dstIp = dstIp; + } + + public GetIpsThreatDetail service(String service) { + this.service = service; + return this; + } + + /** + * Ips threat description + * @return service + */ + @ApiModelProperty(value = "Ips threat description") + + + public String getService() { + return service; + } + + public void setService(String service) { + this.service = service; + } + + public GetIpsThreatDetail severity(Integer severity) { + this.severity = severity; + return this; + } + + /** + * Ips threat severity, 0:Critical, 1:Major, 2:Moderate 3:Minor 4:Low + * @return severity + */ + @ApiModelProperty(value = "Ips threat severity, 0:Critical, 1:Major, 2:Moderate 3:Minor 4:Low") + + + public Integer getSeverity() { + return severity; + } + + public void setSeverity(Integer severity) { + this.severity = severity; + } + + public GetIpsThreatDetail category(Integer category) { + this.category = category; + return this; + } + + /** + * Ips threat category, Custom IDS/IPS categories list, if parameter[Dplevel] is 3, customCategories is needed.CustomCategories should be a list as follow: 1: Botcc, 2: Worm, 3: Malware, 4: Mobile_Malware, 6: P2P, 7: Tor, 8: Exploit, 9: Shellcode, 14: Activex, 15: DNS, 18: User Agents, 24: DShield + * @return category + */ + @ApiModelProperty(value = "Ips threat category, Custom IDS/IPS categories list, if parameter[Dplevel] is 3, customCategories is needed.CustomCategories should be a list as follow: 1: Botcc, 2: Worm, 3: Malware, 4: Mobile_Malware, 6: P2P, 7: Tor, 8: Exploit, 9: Shellcode, 14: Activex, 15: DNS, 18: User Agents, 24: DShield") + + + public Integer getCategory() { + return category; + } + + public void setCategory(Integer category) { + this.category = category; + } + + public GetIpsThreatDetail classification(String classification) { + this.classification = classification; + return this; + } + + /** + * Ips threat classification + * @return classification + */ + @ApiModelProperty(value = "Ips threat classification") + + + public String getClassification() { + return classification; + } + + public void setClassification(String classification) { + this.classification = classification; + } + + public GetIpsThreatDetail activity(Long activity) { + this.activity = activity; + return this; + } + + /** + * Ips threat dataUsage, in Byte + * @return activity + */ + @ApiModelProperty(value = "Ips threat dataUsage, in Byte") + + + public Long getActivity() { + return activity; + } + + public void setActivity(Long activity) { + this.activity = activity; + } + + public GetIpsThreatDetail protocol(String protocol) { + this.protocol = protocol; + return this; + } + + /** + * Ips threat protocol + * @return protocol + */ + @ApiModelProperty(value = "Ips threat protocol") + + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetIpsThreatDetail getIpsThreatDetail = (GetIpsThreatDetail) o; + return Objects.equals(this.id, getIpsThreatDetail.id) && + Objects.equals(this.time, getIpsThreatDetail.time) && + Objects.equals(this.srcIp, getIpsThreatDetail.srcIp) && + Objects.equals(this.srcCountry, getIpsThreatDetail.srcCountry) && + Objects.equals(this.dstIp, getIpsThreatDetail.dstIp) && + Objects.equals(this.service, getIpsThreatDetail.service) && + Objects.equals(this.severity, getIpsThreatDetail.severity) && + Objects.equals(this.category, getIpsThreatDetail.category) && + Objects.equals(this.classification, getIpsThreatDetail.classification) && + Objects.equals(this.activity, getIpsThreatDetail.activity) && + Objects.equals(this.protocol, getIpsThreatDetail.protocol); + } + + @Override + public int hashCode() { + return Objects.hash(id, time, srcIp, srcCountry, dstIp, service, severity, category, classification, activity, protocol); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetIpsThreatDetail {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" srcIp: ").append(toIndentedString(srcIp)).append("\n"); + sb.append(" srcCountry: ").append(toIndentedString(srcCountry)).append("\n"); + sb.append(" dstIp: ").append(toIndentedString(dstIp)).append("\n"); + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" severity: ").append(toIndentedString(severity)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" classification: ").append(toIndentedString(classification)).append("\n"); + sb.append(" activity: ").append(toIndentedString(activity)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GridVoGetGridIpsThreat.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GridVoGetGridIpsThreat.java new file mode 100644 index 0000000..7345aa2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/GridVoGetGridIpsThreat.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.insight.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoGetGridIpsThreat + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:42:30.396+08:00[Asia/Shanghai]") + +public class GridVoGetGridIpsThreat { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoGetGridIpsThreat totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoGetGridIpsThreat currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoGetGridIpsThreat currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoGetGridIpsThreat data(List data) { + this.data = data; + return this; + } + + public GridVoGetGridIpsThreat addDataItem(GetGridIpsThreat dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoGetGridIpsThreat gridVoGetGridIpsThreat = (GridVoGetGridIpsThreat) o; + return Objects.equals(this.totalRows, gridVoGetGridIpsThreat.totalRows) && + Objects.equals(this.currentPage, gridVoGetGridIpsThreat.currentPage) && + Objects.equals(this.currentSize, gridVoGetGridIpsThreat.currentSize) && + Objects.equals(this.data, gridVoGetGridIpsThreat.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoGetGridIpsThreat {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/IpsOperateThreat.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/IpsOperateThreat.java new file mode 100644 index 0000000..bf22cd4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/IpsOperateThreat.java @@ -0,0 +1,167 @@ +package org.wfc.omada.api.insight.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * IpsOperateThreat + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:42:30.396+08:00[Asia/Shanghai]") + +public class IpsOperateThreat { + @JsonProperty("threatId") + @Valid + private List threatId = null; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("signatureSuppression") + private SignatureSuppression signatureSuppression; + + @JsonProperty("blockName") + private String blockName; + + public IpsOperateThreat threatId(List threatId) { + this.threatId = threatId; + return this; + } + + public IpsOperateThreat addThreatIdItem(IpsOperateThreatIdAndTime threatIdItem) { + if (this.threatId == null) { + this.threatId = new ArrayList<>(); + } + this.threatId.add(threatIdItem); + return this; + } + + /** + * IPS signature type should be a value as follows: 0: all traffic; 1: packet tracking respectively. + * @return threatId + */ + @ApiModelProperty(value = "IPS signature type should be a value as follows: 0: all traffic; 1: packet tracking respectively.") + + @Valid + + public List getThreatId() { + return threatId; + } + + public void setThreatId(List threatId) { + this.threatId = threatId; + } + + public IpsOperateThreat type(Integer type) { + this.type = type; + return this; + } + + /** + * IPS Operate Threat type should be a value as follows: 0: block; 1:isolate device; 2: signature Suppression; 3: allow + * @return type + */ + @ApiModelProperty(required = true, value = "IPS Operate Threat type should be a value as follows: 0: block; 1:isolate device; 2: signature Suppression; 3: allow") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public IpsOperateThreat signatureSuppression(SignatureSuppression signatureSuppression) { + this.signatureSuppression = signatureSuppression; + return this; + } + + /** + * Get signatureSuppression + * @return signatureSuppression + */ + @ApiModelProperty(value = "") + + @Valid + + public SignatureSuppression getSignatureSuppression() { + return signatureSuppression; + } + + public void setSignatureSuppression(SignatureSuppression signatureSuppression) { + this.signatureSuppression = signatureSuppression; + } + + public IpsOperateThreat blockName(String blockName) { + this.blockName = blockName; + return this; + } + + /** + * IPS block name should not be empty when type is 0 or 1. + * @return blockName + */ + @ApiModelProperty(value = "IPS block name should not be empty when type is 0 or 1.") + + + public String getBlockName() { + return blockName; + } + + public void setBlockName(String blockName) { + this.blockName = blockName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpsOperateThreat ipsOperateThreat = (IpsOperateThreat) o; + return Objects.equals(this.threatId, ipsOperateThreat.threatId) && + Objects.equals(this.type, ipsOperateThreat.type) && + Objects.equals(this.signatureSuppression, ipsOperateThreat.signatureSuppression) && + Objects.equals(this.blockName, ipsOperateThreat.blockName); + } + + @Override + public int hashCode() { + return Objects.hash(threatId, type, signatureSuppression, blockName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpsOperateThreat {\n"); + + sb.append(" threatId: ").append(toIndentedString(threatId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" signatureSuppression: ").append(toIndentedString(signatureSuppression)).append("\n"); + sb.append(" blockName: ").append(toIndentedString(blockName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/IpsOperateThreatIdAndTime.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/IpsOperateThreatIdAndTime.java new file mode 100644 index 0000000..bca6c9a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/IpsOperateThreatIdAndTime.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.insight.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * IPS threatId and Time list. + */ +@ApiModel(description = "IPS threatId and Time list.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:42:30.396+08:00[Asia/Shanghai]") + +public class IpsOperateThreatIdAndTime { + @JsonProperty("time") + private Long time; + + @JsonProperty("id") + private String id; + + public IpsOperateThreatIdAndTime time(Long time) { + this.time = time; + return this; + } + + /** + * Timestamp, in seconds, such as 1682000000 + * @return time + */ + @ApiModelProperty(required = true, value = "Timestamp, in seconds, such as 1682000000") + @NotNull + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public IpsOperateThreatIdAndTime id(String id) { + this.id = id; + return this; + } + + /** + * Threat ID + * @return id + */ + @ApiModelProperty(required = true, value = "Threat ID") + @NotNull + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpsOperateThreatIdAndTime ipsOperateThreatIdAndTime = (IpsOperateThreatIdAndTime) o; + return Objects.equals(this.time, ipsOperateThreatIdAndTime.time) && + Objects.equals(this.id, ipsOperateThreatIdAndTime.id); + } + + @Override + public int hashCode() { + return Objects.hash(time, id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpsOperateThreatIdAndTime {\n"); + + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseGetIpsThreatDetail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseGetIpsThreatDetail.java new file mode 100644 index 0000000..389df99 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseGetIpsThreatDetail.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.insight.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGetIpsThreatDetail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:42:30.396+08:00[Asia/Shanghai]") + +public class OperationResponseGetIpsThreatDetail { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GetIpsThreatDetail result; + + public OperationResponseGetIpsThreatDetail errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGetIpsThreatDetail msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGetIpsThreatDetail result(GetIpsThreatDetail result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GetIpsThreatDetail getResult() { + return result; + } + + public void setResult(GetIpsThreatDetail result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGetIpsThreatDetail operationResponseGetIpsThreatDetail = (OperationResponseGetIpsThreatDetail) o; + return Objects.equals(this.errorCode, operationResponseGetIpsThreatDetail.errorCode) && + Objects.equals(this.msg, operationResponseGetIpsThreatDetail.msg) && + Objects.equals(this.result, operationResponseGetIpsThreatDetail.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGetIpsThreatDetail {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseGridVoGetGridIpsThreat.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseGridVoGetGridIpsThreat.java new file mode 100644 index 0000000..93cd178 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseGridVoGetGridIpsThreat.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.insight.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoGetGridIpsThreat + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:42:30.396+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoGetGridIpsThreat { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoGetGridIpsThreat result; + + public OperationResponseGridVoGetGridIpsThreat errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoGetGridIpsThreat msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoGetGridIpsThreat result(GridVoGetGridIpsThreat result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoGetGridIpsThreat getResult() { + return result; + } + + public void setResult(GridVoGetGridIpsThreat result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoGetGridIpsThreat operationResponseGridVoGetGridIpsThreat = (OperationResponseGridVoGetGridIpsThreat) o; + return Objects.equals(this.errorCode, operationResponseGridVoGetGridIpsThreat.errorCode) && + Objects.equals(this.msg, operationResponseGridVoGetGridIpsThreat.msg) && + Objects.equals(this.result, operationResponseGridVoGetGridIpsThreat.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoGetGridIpsThreat {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseObject.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseObject.java new file mode 100644 index 0000000..f25f8a9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/OperationResponseObject.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.insight.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseObject + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:42:30.396+08:00[Asia/Shanghai]") + +public class OperationResponseObject { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private Object result; + + public OperationResponseObject errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseObject msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseObject result(Object result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getResult() { + return result; + } + + public void setResult(Object result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseObject operationResponseObject = (OperationResponseObject) o; + return Objects.equals(this.errorCode, operationResponseObject.errorCode) && + Objects.equals(this.msg, operationResponseObject.msg) && + Objects.equals(this.result, operationResponseObject.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseObject {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/SignatureSuppression.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/SignatureSuppression.java new file mode 100644 index 0000000..5143985 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/insight/model/SignatureSuppression.java @@ -0,0 +1,181 @@ +package org.wfc.omada.api.insight.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Signature suppression configuration + */ +@ApiModel(description = "Signature suppression configuration") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:42:30.396+08:00[Asia/Shanghai]") + +public class SignatureSuppression { + @JsonProperty("type") + private Integer type; + + @JsonProperty("direction") + private Integer direction; + + @JsonProperty("trackBy") + private Integer trackBy; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("subnet") + private String subnet; + + public SignatureSuppression type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follow: 0: all traffic; 1: packet tracking. + * @return type + */ + @ApiModelProperty(required = true, value = "Type should be a value as follow: 0: all traffic; 1: packet tracking.") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SignatureSuppression direction(Integer direction) { + this.direction = direction; + return this; + } + + /** + * Direction should be a value as follow: 0: both direction; 1: source direction; 2: destination direction + * @return direction + */ + @ApiModelProperty(value = "Direction should be a value as follow: 0: both direction; 1: source direction; 2: destination direction") + + + public Integer getDirection() { + return direction; + } + + public void setDirection(Integer direction) { + this.direction = direction; + } + + public SignatureSuppression trackBy(Integer trackBy) { + this.trackBy = trackBy; + return this; + } + + /** + * TrackBy should be a value as follow: 0: ip address; 1: subnet + * @return trackBy + */ + @ApiModelProperty(value = "TrackBy should be a value as follow: 0: ip address; 1: subnet") + + + public Integer getTrackBy() { + return trackBy; + } + + public void setTrackBy(Integer trackBy) { + this.trackBy = trackBy; + } + + public SignatureSuppression ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IPS signature traffic source. If parameter [trackBy] is 0, parameter [ip] is needed. + * @return ip + */ + @ApiModelProperty(value = "IPS signature traffic source. If parameter [trackBy] is 0, parameter [ip] is needed. ") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public SignatureSuppression subnet(String subnet) { + this.subnet = subnet; + return this; + } + + /** + * IPS signature traffic source. If parameter [trackBy] is 1, parameter [subnet] is needed. + * @return subnet + */ + @ApiModelProperty(value = "IPS signature traffic source. If parameter [trackBy] is 1, parameter [subnet] is needed.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])/([1-9]|((1|2)\\d)|(30|31|32))\\b") + public String getSubnet() { + return subnet; + } + + public void setSubnet(String subnet) { + this.subnet = subnet; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SignatureSuppression signatureSuppression = (SignatureSuppression) o; + return Objects.equals(this.type, signatureSuppression.type) && + Objects.equals(this.direction, signatureSuppression.direction) && + Objects.equals(this.trackBy, signatureSuppression.trackBy) && + Objects.equals(this.ip, signatureSuppression.ip) && + Objects.equals(this.subnet, signatureSuppression.subnet); + } + + @Override + public int hashCode() { + return Objects.hash(type, direction, trackBy, ip, subnet); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SignatureSuppression {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" trackBy: ").append(toIndentedString(trackBy)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" subnet: ").append(toIndentedString(subnet)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/OmadaLogApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/OmadaLogApi.java new file mode 100644 index 0000000..8f05969 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/OmadaLogApi.java @@ -0,0 +1,383 @@ +package org.wfc.omada.api.log; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.log.model.AuditLogNotificationSettingEditOpenApiVo; +import org.wfc.omada.api.log.model.LogNotificationSettingEditOpenApiV2Vo; +import org.wfc.omada.api.log.model.LogNotificationSettingEditOpenApiVo; +import org.wfc.omada.api.log.model.OperationResponseAuditLogNotificationSettingOpenApiVo; +import org.wfc.omada.api.log.model.OperationResponseGridVoAuditLogOpenApiVo; +import org.wfc.omada.api.log.model.OperationResponseLogNotificationSettingOpenApiVo; +import org.wfc.omada.api.log.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:48.508+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaLog", description = "the OmadaLog API") +@FeignClient(name="OmadaLogApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaLogApi { + + /** + * GET /openapi/v1/{omadacId}/audit-notification : Get global audit log notification + * Get global audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager View Only + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get global audit log notification", nickname = "getAuditLogSettingForGlobal", notes = "Get global audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Log & Audit Log Manager View Only", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/audit-notification", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAuditLogSettingForGlobal(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/site/audit-notification : Get site audit log notification + * Get site audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site audit log notification", nickname = "getAuditLogSettingForMsp1", notes = "Get site audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Log & Audit Log Manager View Only", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/site/audit-notification", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAuditLogSettingForMsp1(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/audit-logs : Get global audit log list + * Get audit logs in global audit page.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager View Only + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000.(value:10,15,20,30,50,100) (required) + * @param sortsTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param filtersResult Filter query parameters, support field result,it should be a value as follows: 0: successful; 1: failed,example:0 (optional) + * @param filtersLevel Filter query parameters, support field level,it should be a value as follows: Error; Warning; Information, example:Error (optional) + * @param filtersAuditTypes Filter query parameters, support field auditTypes, for the values of auditLog type, refer to section 5.2.2 of the Open API Access Guide, example:Log,Cloud Access,User Interface. (optional) + * @param filtersTimes Filter query parameters, support field times, example:[{\"timeStart\":1678060800000,\"timeEnd\":1678665599999}](UrlEncode:%5B%7B%22timeStart%22%3A1678060800000%2C%22timeEnd%22%3A1678665599999%7D%5D).If this parameter is not specified (not included or empty array), the interface will query data within the default time period: [{\"timeStart\": Current timestamp minus milliseconds of 7 days,\"timeEnd\": Current timestamp}]. (optional) + * @param searchKey Fuzzy query parameters, support field content (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get global audit log list", nickname = "getAuditLogsForGlobal", notes = "Get audit logs in global audit page.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Log & Audit Log Manager View Only", response = OperationResponseGridVoAuditLogOpenApiVo.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoAuditLogOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/audit-logs", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAuditLogsForGlobal(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.(value:10,15,20,30,50,100)", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.time", required = false) String sortsTime,@ApiParam(value = "Filter query parameters, support field result,it should be a value as follows: 0: successful; 1: failed,example:0") @Valid @RequestParam(value = "filters.result", required = false) Integer filtersResult,@ApiParam(value = "Filter query parameters, support field level,it should be a value as follows: Error; Warning; Information, example:Error") @Valid @RequestParam(value = "filters.level", required = false) String filtersLevel,@ApiParam(value = "Filter query parameters, support field auditTypes, for the values of auditLog type, refer to section 5.2.2 of the Open API Access Guide, example:Log,Cloud Access,User Interface.") @Valid @RequestParam(value = "filters.auditTypes", required = false) String filtersAuditTypes,@ApiParam(value = "Filter query parameters, support field times, example:[{\"timeStart\":1678060800000,\"timeEnd\":1678665599999}](UrlEncode:%5B%7B%22timeStart%22%3A1678060800000%2C%22timeEnd%22%3A1678665599999%7D%5D).If this parameter is not specified (not included or empty array), the interface will query data within the default time period: [{\"timeStart\": Current timestamp minus milliseconds of 7 days,\"timeEnd\": Current timestamp}].") @Valid @RequestParam(value = "filters.times", required = false) String filtersTimes,@ApiParam(value = "Fuzzy query parameters, support field content") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/audit-logs : Get site audit log list + * Get audit logs in site audit page.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000.(value:10,15,20,30,50,100) (required) + * @param sortsTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param filtersResult Filter query parameters, support field result,it should be a value as follows: 0: successful; 1: failed,example:0 (optional) + * @param filtersLevel Filter query parameters, support field level,it should be a value as follows: Error; Warning; Information, example:Error (optional) + * @param filtersAuditTypes Filter query parameters, support field auditTypes, for the values of auditLog type, refer to section 5.2.2 of the Open API Access Guide, example:Log,Cloud Access,User Interface. (optional) + * @param filtersTimes Filter query parameters, support field times, example:[{\"timeStart\":1678060800000,\"timeEnd\":1678665599999}](UrlEncode:%5B%7B%22timeStart%22%3A1678060800000%2C%22timeEnd%22%3A1678665599999%7D%5D).If this parameter is not specified (not included or empty array), the interface will query data within the default time period: [{\"timeStart\": Current timestamp minus milliseconds of 7 days,\"timeEnd\": Current timestamp}]. (optional) + * @param searchKey Fuzzy query parameters, support field content (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site audit log list", nickname = "getAuditLogsForSite", notes = "Get audit logs in site audit page.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Log & Audit Log Manager View Only", response = OperationResponseGridVoAuditLogOpenApiVo.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoAuditLogOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/audit-logs", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAuditLogsForSite(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.(value:10,15,20,30,50,100)", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.time", required = false) String sortsTime,@ApiParam(value = "Filter query parameters, support field result,it should be a value as follows: 0: successful; 1: failed,example:0") @Valid @RequestParam(value = "filters.result", required = false) Integer filtersResult,@ApiParam(value = "Filter query parameters, support field level,it should be a value as follows: Error; Warning; Information, example:Error") @Valid @RequestParam(value = "filters.level", required = false) String filtersLevel,@ApiParam(value = "Filter query parameters, support field auditTypes, for the values of auditLog type, refer to section 5.2.2 of the Open API Access Guide, example:Log,Cloud Access,User Interface.") @Valid @RequestParam(value = "filters.auditTypes", required = false) String filtersAuditTypes,@ApiParam(value = "Filter query parameters, support field times, example:[{\"timeStart\":1678060800000,\"timeEnd\":1678665599999}](UrlEncode:%5B%7B%22timeStart%22%3A1678060800000%2C%22timeEnd%22%3A1678665599999%7D%5D).If this parameter is not specified (not included or empty array), the interface will query data within the default time period: [{\"timeStart\": Current timestamp minus milliseconds of 7 days,\"timeEnd\": Current timestamp}].") @Valid @RequestParam(value = "filters.times", required = false) String filtersTimes,@ApiParam(value = "Fuzzy query parameters, support field content") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/log-notification : Get global log notification + * Get global log notification.This interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager View Only + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Get global log notification", nickname = "getLogSettingForGlobal", notes = "Get global log notification.This interface has been deprecated.

The interface requires one of the permissions:
Global Log & Audit Log Manager View Only", response = OperationResponseLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLogNotificationSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/log-notification", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLogSettingForGlobal(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v2/{omadacId}/log-notification : Get global log notification + * Get global log notification.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager View Only + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get global log notification", nickname = "getLogSettingForGlobalV2", notes = "Get global log notification.

The interface requires one of the permissions:
Global Log & Audit Log Manager View Only", response = OperationResponseLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLogNotificationSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/log-notification", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLogSettingForGlobalV2(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/site/log-notification : Get site log notification + * Get site log notification.This interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Get site log notification", nickname = "getLogSettingForSite", notes = "Get site log notification.This interface has been deprecated.

The interface requires one of the permissions:
Site Log & Audit Log Manager View Only", response = OperationResponseLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLogNotificationSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/site/log-notification", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLogSettingForSite(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/site/log-notification : Get site template log notification + * Get site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site template log notification", nickname = "getLogSettingForSiteTemplate", notes = "Get site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Site Template Manager View Only", response = OperationResponseLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLogNotificationSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/site/log-notification", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLogSettingForSiteTemplate(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId); + + + /** + * GET /openapi/v2/{omadacId}/sites/{siteId}/site/log-notification : Get site log notification + * Get site log notification.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site log notification", nickname = "getLogSettingForSiteV2", notes = "Get site log notification.

The interface requires one of the permissions:
Site Log & Audit Log Manager View Only", response = OperationResponseLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLogNotificationSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/site/log-notification", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLogSettingForSiteV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/audit-notification : Modify global audit log notification + * Modify global audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager Modify + * + * @param omadacId Omada ID (required) + * @param auditLogNotificationSettingEditOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify global audit log notification", nickname = "modifyAuditLogSettingGlobal", notes = "Modify global audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/audit-notification", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyAuditLogSettingGlobal(@ApiParam(value = "" ) @Valid @RequestBody(required = false) AuditLogNotificationSettingEditOpenApiVo auditLogNotificationSettingEditOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/site/audit-notification : Modify site audit log notification + * Modify site audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param auditLogNotificationSettingEditOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site audit log notification", nickname = "modifyAuditLogSettingSite1", notes = "Modify site audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/site/audit-notification", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyAuditLogSettingSite1(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) AuditLogNotificationSettingEditOpenApiVo auditLogNotificationSettingEditOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/log-notification : Modify global log notification + * Modify global log notification.This interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager Modify + * + * @param omadacId Omada ID (required) + * @param logNotificationSettingEditOpenApiVo (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Modify global log notification", nickname = "modifyLogSettingGlobal", notes = "Modify global log notification.This interface has been deprecated.

The interface requires one of the permissions:
Global Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/log-notification", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyLogSettingGlobal(@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiVo logNotificationSettingEditOpenApiVo); + + + /** + * PATCH /openapi/v2/{omadacId}/log-notification : Modify global log notification + * Modify global log notification.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager Modify + * + * @param omadacId Omada ID (required) + * @param logNotificationSettingEditOpenApiV2Vo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify global log notification", nickname = "modifyLogSettingGlobalV2", notes = "Modify global log notification.

The interface requires one of the permissions:
Global Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/log-notification", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyLogSettingGlobalV2(@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiV2Vo logNotificationSettingEditOpenApiV2Vo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/site/log-notification : Modify site log notification + * Modify site log notification.This interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param logNotificationSettingEditOpenApiVo (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Modify site log notification", nickname = "modifyLogSettingSite", notes = "Modify site log notification.This interface has been deprecated.

The interface requires one of the permissions:
Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/site/log-notification", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyLogSettingSite(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiVo logNotificationSettingEditOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/site/log-notification : Modify site template log notification + * Modify site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param logNotificationSettingEditOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site template log notification", nickname = "modifyLogSettingSiteTemplate", notes = "Modify site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Site Template Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/site/log-notification", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyLogSettingSiteTemplate(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiVo logNotificationSettingEditOpenApiVo); + + + /** + * PATCH /openapi/v2/{omadacId}/sites/{siteId}/site/log-notification : Modify site log notification + * Modify site log notification.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param logNotificationSettingEditOpenApiV2Vo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site log notification", nickname = "modifyLogSettingSiteV2", notes = "Modify site log notification.

The interface requires one of the permissions:
Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/site/log-notification", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyLogSettingSiteV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiV2Vo logNotificationSettingEditOpenApiV2Vo); + + + /** + * POST /openapi/v1/{omadacId}/reset/log-notification : Reset global log notification + * Reset global log notification.<br/><br/>The interface requires one of the permissions: <br/>Global Log & Audit Log Manager Modify + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Reset global log notification", nickname = "resetLogSettingGlobal", notes = "Reset global log notification.

The interface requires one of the permissions:
Global Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/reset/log-notification", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity resetLogSettingGlobal(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/site/reset/log-notification : Reset site log notification + * Reset site log notification.<br/><br/>The interface requires one of the permissions: <br/>Site Log & Audit Log Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Reset site log notification", nickname = "resetLogSettingSite", notes = "Reset site log notification.

The interface requires one of the permissions:
Site Log & Audit Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/site/reset/log-notification", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity resetLogSettingSite(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * POST /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/site/reset/log-notification : Reset site template log notification + * Reset site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Reset site template log notification", nickname = "resetLogSettingSiteTemplate", notes = "Reset site template log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Site Template Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log","Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/site/reset/log-notification", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity resetLogSettingSiteTemplate(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/OmadaLogTemplateApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/OmadaLogTemplateApi.java new file mode 100644 index 0000000..207eabe --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/OmadaLogTemplateApi.java @@ -0,0 +1,64 @@ +package org.wfc.omada.api.log; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.log.model.AuditLogNotificationSettingEditOpenApiVo; +import org.wfc.omada.api.log.model.OperationResponseAuditLogNotificationSettingOpenApiVo; +import org.wfc.omada.api.log.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:48.508+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaLogTemplate", description = "the OmadaLogTemplate API") +@FeignClient(name="OmadaLogTemplateApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaLogTemplateApi { + + /** + * GET /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/site/audit-notification : Get site template audit log notification + * Get site template audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site template audit log notification", nickname = "getAuditLogSettingForMsp", notes = "Get site template audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Site Template Manager View Only", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class, tags={ "Omada/Log (Template)","Log (Template)", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/site/audit-notification", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAuditLogSettingForMsp(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId); + + + /** + * PATCH /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/site/audit-notification : Modify site template audit log notification + * Modify site template audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param auditLogNotificationSettingEditOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site template audit log notification", nickname = "modifyAuditLogSettingSite", notes = "Modify site template audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Global Site Template Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Log (Template)","Log (Template)", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/site/audit-notification", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyAuditLogSettingSite(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) AuditLogNotificationSettingEditOpenApiVo auditLogNotificationSettingEditOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationEditOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationEditOpenApiVo.java new file mode 100644 index 0000000..069d167 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationEditOpenApiVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Audit Log Notification List + */ +@ApiModel(description = "Audit Log Notification List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class AuditLogNotificationEditOpenApiVo { + @JsonProperty("key") + private String key; + + @JsonProperty("webhook") + private Boolean webhook; + + public AuditLogNotificationEditOpenApiVo key(String key) { + this.key = key; + return this; + } + + /** + * For the values of Audit Log Notification Category Key, refer to section 5.2.1 of the Open API Access + * @return key + */ + @ApiModelProperty(required = true, value = "For the values of Audit Log Notification Category Key, refer to section 5.2.1 of the Open API Access") + @NotNull + + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public AuditLogNotificationEditOpenApiVo webhook(Boolean webhook) { + this.webhook = webhook; + return this; + } + + /** + * Audit Log Notification Category Enable or Disable Webhook + * @return webhook + */ + @ApiModelProperty(required = true, value = "Audit Log Notification Category Enable or Disable Webhook") + @NotNull + + + public Boolean getWebhook() { + return webhook; + } + + public void setWebhook(Boolean webhook) { + this.webhook = webhook; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuditLogNotificationEditOpenApiVo auditLogNotificationEditOpenApiVo = (AuditLogNotificationEditOpenApiVo) o; + return Objects.equals(this.key, auditLogNotificationEditOpenApiVo.key) && + Objects.equals(this.webhook, auditLogNotificationEditOpenApiVo.webhook); + } + + @Override + public int hashCode() { + return Objects.hash(key, webhook); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuditLogNotificationEditOpenApiVo {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationOpenApiVo.java new file mode 100644 index 0000000..7c193b9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Audit Log Notification List + */ +@ApiModel(description = "Audit Log Notification List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class AuditLogNotificationOpenApiVo { + @JsonProperty("key") + private String key; + + @JsonProperty("shortMsg") + private String shortMsg; + + @JsonProperty("webhook") + private Boolean webhook; + + public AuditLogNotificationOpenApiVo key(String key) { + this.key = key; + return this; + } + + /** + * Audit Log Notification Category Key + * @return key + */ + @ApiModelProperty(value = "Audit Log Notification Category Key") + + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public AuditLogNotificationOpenApiVo shortMsg(String shortMsg) { + this.shortMsg = shortMsg; + return this; + } + + /** + * Audit Log Notification Category Short Message + * @return shortMsg + */ + @ApiModelProperty(value = "Audit Log Notification Category Short Message") + + + public String getShortMsg() { + return shortMsg; + } + + public void setShortMsg(String shortMsg) { + this.shortMsg = shortMsg; + } + + public AuditLogNotificationOpenApiVo webhook(Boolean webhook) { + this.webhook = webhook; + return this; + } + + /** + * Audit Log Notification Category Enable or Disable Webhook + * @return webhook + */ + @ApiModelProperty(value = "Audit Log Notification Category Enable or Disable Webhook") + + + public Boolean getWebhook() { + return webhook; + } + + public void setWebhook(Boolean webhook) { + this.webhook = webhook; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuditLogNotificationOpenApiVo auditLogNotificationOpenApiVo = (AuditLogNotificationOpenApiVo) o; + return Objects.equals(this.key, auditLogNotificationOpenApiVo.key) && + Objects.equals(this.shortMsg, auditLogNotificationOpenApiVo.shortMsg) && + Objects.equals(this.webhook, auditLogNotificationOpenApiVo.webhook); + } + + @Override + public int hashCode() { + return Objects.hash(key, shortMsg, webhook); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuditLogNotificationOpenApiVo {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" shortMsg: ").append(toIndentedString(shortMsg)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationSettingEditOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationSettingEditOpenApiVo.java new file mode 100644 index 0000000..cb3b556 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationSettingEditOpenApiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * AuditLogNotificationSettingEditOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class AuditLogNotificationSettingEditOpenApiVo { + @JsonProperty("webhookConfig") + private WebhookConfigEditOpenApiVo webhookConfig; + + @JsonProperty("auditLogNotifications") + @Valid + private List auditLogNotifications = new ArrayList<>(); + + public AuditLogNotificationSettingEditOpenApiVo webhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + return this; + } + + /** + * Get webhookConfig + * @return webhookConfig + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public WebhookConfigEditOpenApiVo getWebhookConfig() { + return webhookConfig; + } + + public void setWebhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + } + + public AuditLogNotificationSettingEditOpenApiVo auditLogNotifications(List auditLogNotifications) { + this.auditLogNotifications = auditLogNotifications; + return this; + } + + public AuditLogNotificationSettingEditOpenApiVo addAuditLogNotificationsItem(AuditLogNotificationEditOpenApiVo auditLogNotificationsItem) { + this.auditLogNotifications.add(auditLogNotificationsItem); + return this; + } + + /** + * Audit Log Notification List + * @return auditLogNotifications + */ + @ApiModelProperty(required = true, value = "Audit Log Notification List") + @NotNull + + @Valid + + public List getAuditLogNotifications() { + return auditLogNotifications; + } + + public void setAuditLogNotifications(List auditLogNotifications) { + this.auditLogNotifications = auditLogNotifications; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuditLogNotificationSettingEditOpenApiVo auditLogNotificationSettingEditOpenApiVo = (AuditLogNotificationSettingEditOpenApiVo) o; + return Objects.equals(this.webhookConfig, auditLogNotificationSettingEditOpenApiVo.webhookConfig) && + Objects.equals(this.auditLogNotifications, auditLogNotificationSettingEditOpenApiVo.auditLogNotifications); + } + + @Override + public int hashCode() { + return Objects.hash(webhookConfig, auditLogNotifications); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuditLogNotificationSettingEditOpenApiVo {\n"); + + sb.append(" webhookConfig: ").append(toIndentedString(webhookConfig)).append("\n"); + sb.append(" auditLogNotifications: ").append(toIndentedString(auditLogNotifications)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationSettingOpenApiVo.java new file mode 100644 index 0000000..69854a3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogNotificationSettingOpenApiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * AuditLogNotificationSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class AuditLogNotificationSettingOpenApiVo { + @JsonProperty("webhookConfig") + private Object webhookConfig; + + @JsonProperty("auditLogNotifications") + @Valid + private List auditLogNotifications = null; + + public AuditLogNotificationSettingOpenApiVo webhookConfig(Object webhookConfig) { + this.webhookConfig = webhookConfig; + return this; + } + + /** + * Get webhookConfig + * @return webhookConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getWebhookConfig() { + return webhookConfig; + } + + public void setWebhookConfig(Object webhookConfig) { + this.webhookConfig = webhookConfig; + } + + public AuditLogNotificationSettingOpenApiVo auditLogNotifications(List auditLogNotifications) { + this.auditLogNotifications = auditLogNotifications; + return this; + } + + public AuditLogNotificationSettingOpenApiVo addAuditLogNotificationsItem(AuditLogNotificationOpenApiVo auditLogNotificationsItem) { + if (this.auditLogNotifications == null) { + this.auditLogNotifications = new ArrayList<>(); + } + this.auditLogNotifications.add(auditLogNotificationsItem); + return this; + } + + /** + * Audit Log Notification List + * @return auditLogNotifications + */ + @ApiModelProperty(value = "Audit Log Notification List") + + @Valid + + public List getAuditLogNotifications() { + return auditLogNotifications; + } + + public void setAuditLogNotifications(List auditLogNotifications) { + this.auditLogNotifications = auditLogNotifications; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuditLogNotificationSettingOpenApiVo auditLogNotificationSettingOpenApiVo = (AuditLogNotificationSettingOpenApiVo) o; + return Objects.equals(this.webhookConfig, auditLogNotificationSettingOpenApiVo.webhookConfig) && + Objects.equals(this.auditLogNotifications, auditLogNotificationSettingOpenApiVo.auditLogNotifications); + } + + @Override + public int hashCode() { + return Objects.hash(webhookConfig, auditLogNotifications); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuditLogNotificationSettingOpenApiVo {\n"); + + sb.append(" webhookConfig: ").append(toIndentedString(webhookConfig)).append("\n"); + sb.append(" auditLogNotifications: ").append(toIndentedString(auditLogNotifications)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogOpenApiVo.java new file mode 100644 index 0000000..86e83c9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/AuditLogOpenApiVo.java @@ -0,0 +1,329 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * AuditLogOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class AuditLogOpenApiVo { + @JsonProperty("time") + private Long time; + + @JsonProperty("operator") + private String operator; + + @JsonProperty("resource") + private String resource; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("auditType") + private String auditType; + + @JsonProperty("level") + private String level; + + @JsonProperty("result") + private String result; + + @JsonProperty("content") + private String content; + + @JsonProperty("label") + private String label; + + @JsonProperty("oldValue") + private Object oldValue; + + @JsonProperty("newValue") + private Object newValue; + + public AuditLogOpenApiVo time(Long time) { + this.time = time; + return this; + } + + /** + * Log Creation TimeStamp, Unit:ms + * @return time + */ + @ApiModelProperty(value = "Log Creation TimeStamp, Unit:ms") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public AuditLogOpenApiVo operator(String operator) { + this.operator = operator; + return this; + } + + /** + * Operator + * @return operator + */ + @ApiModelProperty(value = "Operator") + + + public String getOperator() { + return operator; + } + + public void setOperator(String operator) { + this.operator = operator; + } + + public AuditLogOpenApiVo resource(String resource) { + this.resource = resource; + return this; + } + + /** + * Log Creation Resource. It should be a value as follows: WEB、Open API + * @return resource + */ + @ApiModelProperty(value = "Log Creation Resource. It should be a value as follows: WEB、Open API") + + + public String getResource() { + return resource; + } + + public void setResource(String resource) { + this.resource = resource; + } + + public AuditLogOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * User Login IP address + * @return ip + */ + @ApiModelProperty(value = "User Login IP address") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public AuditLogOpenApiVo auditType(String auditType) { + this.auditType = auditType; + return this; + } + + /** + * Log Type + * @return auditType + */ + @ApiModelProperty(value = "Log Type") + + + public String getAuditType() { + return auditType; + } + + public void setAuditType(String auditType) { + this.auditType = auditType; + } + + public AuditLogOpenApiVo level(String level) { + this.level = level; + return this; + } + + /** + * Log Level. It should be a value as follows: Error, Warning, Information. + * @return level + */ + @ApiModelProperty(value = "Log Level. It should be a value as follows: Error, Warning, Information.") + + + public String getLevel() { + return level; + } + + public void setLevel(String level) { + this.level = level; + } + + public AuditLogOpenApiVo result(String result) { + this.result = result; + return this; + } + + /** + * Operation Result, it should be a value as follows: Succeed、Failed + * @return result + */ + @ApiModelProperty(value = "Operation Result, it should be a value as follows: Succeed、Failed") + + + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } + + public AuditLogOpenApiVo content(String content) { + this.content = content; + return this; + } + + /** + * Log Content + * @return content + */ + @ApiModelProperty(value = "Log Content") + + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public AuditLogOpenApiVo label(String label) { + this.label = label; + return this; + } + + /** + * Configuration card or request path, may be empty. + * @return label + */ + @ApiModelProperty(value = "Configuration card or request path, may be empty.") + + + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } + + public AuditLogOpenApiVo oldValue(Object oldValue) { + this.oldValue = oldValue; + return this; + } + + /** + * Configuration before modification, may be empty. + * @return oldValue + */ + @ApiModelProperty(value = "Configuration before modification, may be empty.") + + @Valid + + public Object getOldValue() { + return oldValue; + } + + public void setOldValue(Object oldValue) { + this.oldValue = oldValue; + } + + public AuditLogOpenApiVo newValue(Object newValue) { + this.newValue = newValue; + return this; + } + + /** + * Configuration after modification, may be empty. + * @return newValue + */ + @ApiModelProperty(value = "Configuration after modification, may be empty.") + + @Valid + + public Object getNewValue() { + return newValue; + } + + public void setNewValue(Object newValue) { + this.newValue = newValue; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuditLogOpenApiVo auditLogOpenApiVo = (AuditLogOpenApiVo) o; + return Objects.equals(this.time, auditLogOpenApiVo.time) && + Objects.equals(this.operator, auditLogOpenApiVo.operator) && + Objects.equals(this.resource, auditLogOpenApiVo.resource) && + Objects.equals(this.ip, auditLogOpenApiVo.ip) && + Objects.equals(this.auditType, auditLogOpenApiVo.auditType) && + Objects.equals(this.level, auditLogOpenApiVo.level) && + Objects.equals(this.result, auditLogOpenApiVo.result) && + Objects.equals(this.content, auditLogOpenApiVo.content) && + Objects.equals(this.label, auditLogOpenApiVo.label) && + Objects.equals(this.oldValue, auditLogOpenApiVo.oldValue) && + Objects.equals(this.newValue, auditLogOpenApiVo.newValue); + } + + @Override + public int hashCode() { + return Objects.hash(time, operator, resource, ip, auditType, level, result, content, label, oldValue, newValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuditLogOpenApiVo {\n"); + + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" auditType: ").append(toIndentedString(auditType)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" label: ").append(toIndentedString(label)).append("\n"); + sb.append(" oldValue: ").append(toIndentedString(oldValue)).append("\n"); + sb.append(" newValue: ").append(toIndentedString(newValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/GridVoAuditLogOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/GridVoAuditLogOpenApiVo.java new file mode 100644 index 0000000..9b14070 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/GridVoAuditLogOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoAuditLogOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class GridVoAuditLogOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoAuditLogOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoAuditLogOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoAuditLogOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoAuditLogOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoAuditLogOpenApiVo addDataItem(AuditLogOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoAuditLogOpenApiVo gridVoAuditLogOpenApiVo = (GridVoAuditLogOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoAuditLogOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoAuditLogOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoAuditLogOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoAuditLogOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoAuditLogOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogAlertEmailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogAlertEmailOpenApiVo.java new file mode 100644 index 0000000..5442ca7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogAlertEmailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Log Event Email (This config applies to the log site view) + */ +@ApiModel(description = "Log Event Email (This config applies to the log site view)") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class LogAlertEmailOpenApiVo { + @JsonProperty("alertEmailEnable") + private Boolean alertEmailEnable; + + @JsonProperty("delayEnable") + private Boolean delayEnable; + + @JsonProperty("delay") + private Integer delay; + + public LogAlertEmailOpenApiVo alertEmailEnable(Boolean alertEmailEnable) { + this.alertEmailEnable = alertEmailEnable; + return this; + } + + /** + * Log Enable or Disable email + * @return alertEmailEnable + */ + @ApiModelProperty(value = "Log Enable or Disable email") + + + public Boolean getAlertEmailEnable() { + return alertEmailEnable; + } + + public void setAlertEmailEnable(Boolean alertEmailEnable) { + this.alertEmailEnable = alertEmailEnable; + } + + public LogAlertEmailOpenApiVo delayEnable(Boolean delayEnable) { + this.delayEnable = delayEnable; + return this; + } + + /** + * Log Enable or Disable delay email + * @return delayEnable + */ + @ApiModelProperty(value = "Log Enable or Disable delay email") + + + public Boolean getDelayEnable() { + return delayEnable; + } + + public void setDelayEnable(Boolean delayEnable) { + this.delayEnable = delayEnable; + } + + public LogAlertEmailOpenApiVo delay(Integer delay) { + this.delay = delay; + return this; + } + + /** + * Time of Log delay email (unit:s). The value should be within the range of 0–99999. + * @return delay + */ + @ApiModelProperty(value = "Time of Log delay email (unit:s). The value should be within the range of 0–99999.") + + + public Integer getDelay() { + return delay; + } + + public void setDelay(Integer delay) { + this.delay = delay; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogAlertEmailOpenApiVo logAlertEmailOpenApiVo = (LogAlertEmailOpenApiVo) o; + return Objects.equals(this.alertEmailEnable, logAlertEmailOpenApiVo.alertEmailEnable) && + Objects.equals(this.delayEnable, logAlertEmailOpenApiVo.delayEnable) && + Objects.equals(this.delay, logAlertEmailOpenApiVo.delay); + } + + @Override + public int hashCode() { + return Objects.hash(alertEmailEnable, delayEnable, delay); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogAlertEmailOpenApiVo {\n"); + + sb.append(" alertEmailEnable: ").append(toIndentedString(alertEmailEnable)).append("\n"); + sb.append(" delayEnable: ").append(toIndentedString(delayEnable)).append("\n"); + sb.append(" delay: ").append(toIndentedString(delay)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationEditOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationEditOpenApiV2Vo.java new file mode 100644 index 0000000..8d32de5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationEditOpenApiV2Vo.java @@ -0,0 +1,157 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Event Notification List + */ +@ApiModel(description = "Event Notification List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class LogNotificationEditOpenApiV2Vo { + @JsonProperty("key") + private String key; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("email") + private Boolean email; + + @JsonProperty("webhook") + private Boolean webhook; + + public LogNotificationEditOpenApiV2Vo key(String key) { + this.key = key; + return this; + } + + /** + * For the values of Log Notification Key, refer to section 5.6.1 of the Open API Access + * @return key + */ + @ApiModelProperty(required = true, value = "For the values of Log Notification Key, refer to section 5.6.1 of the Open API Access") + @NotNull + + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public LogNotificationEditOpenApiV2Vo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Log Notification Enable or Disable + * @return enable + */ + @ApiModelProperty(required = true, value = "Log Notification Enable or Disable") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public LogNotificationEditOpenApiV2Vo email(Boolean email) { + this.email = email; + return this; + } + + /** + * Log Notification Enable or Disable Email + * @return email + */ + @ApiModelProperty(required = true, value = "Log Notification Enable or Disable Email") + @NotNull + + + public Boolean getEmail() { + return email; + } + + public void setEmail(Boolean email) { + this.email = email; + } + + public LogNotificationEditOpenApiV2Vo webhook(Boolean webhook) { + this.webhook = webhook; + return this; + } + + /** + * Log Notification Category Enable or Disable Webhook (This config applies to the Omada Pro Controller only and should not bu null) + * @return webhook + */ + @ApiModelProperty(value = "Log Notification Category Enable or Disable Webhook (This config applies to the Omada Pro Controller only and should not bu null)") + + + public Boolean getWebhook() { + return webhook; + } + + public void setWebhook(Boolean webhook) { + this.webhook = webhook; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationEditOpenApiV2Vo logNotificationEditOpenApiV2Vo = (LogNotificationEditOpenApiV2Vo) o; + return Objects.equals(this.key, logNotificationEditOpenApiV2Vo.key) && + Objects.equals(this.enable, logNotificationEditOpenApiV2Vo.enable) && + Objects.equals(this.email, logNotificationEditOpenApiV2Vo.email) && + Objects.equals(this.webhook, logNotificationEditOpenApiV2Vo.webhook); + } + + @Override + public int hashCode() { + return Objects.hash(key, enable, email, webhook); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationEditOpenApiV2Vo {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationEditOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationEditOpenApiVo.java new file mode 100644 index 0000000..213d9b2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationEditOpenApiVo.java @@ -0,0 +1,183 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Log Notification List + */ +@ApiModel(description = "Log Notification List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class LogNotificationEditOpenApiVo { + @JsonProperty("key") + private String key; + + @JsonProperty("alert") + private Boolean alert; + + @JsonProperty("event") + private Boolean event; + + @JsonProperty("email") + private Boolean email; + + @JsonProperty("webhook") + private Boolean webhook; + + public LogNotificationEditOpenApiVo key(String key) { + this.key = key; + return this; + } + + /** + * For the values of Log Notification Key, refer to section 5.6.1 of the Open API Access + * @return key + */ + @ApiModelProperty(required = true, value = "For the values of Log Notification Key, refer to section 5.6.1 of the Open API Access") + @NotNull + + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public LogNotificationEditOpenApiVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * Log Notification Enable or Disable Alert + * @return alert + */ + @ApiModelProperty(required = true, value = "Log Notification Enable or Disable Alert") + @NotNull + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + public LogNotificationEditOpenApiVo event(Boolean event) { + this.event = event; + return this; + } + + /** + * Log Notification Enable or Disable Event + * @return event + */ + @ApiModelProperty(required = true, value = "Log Notification Enable or Disable Event") + @NotNull + + + public Boolean getEvent() { + return event; + } + + public void setEvent(Boolean event) { + this.event = event; + } + + public LogNotificationEditOpenApiVo email(Boolean email) { + this.email = email; + return this; + } + + /** + * Log Notification Enable or Disable Email + * @return email + */ + @ApiModelProperty(required = true, value = "Log Notification Enable or Disable Email") + @NotNull + + + public Boolean getEmail() { + return email; + } + + public void setEmail(Boolean email) { + this.email = email; + } + + public LogNotificationEditOpenApiVo webhook(Boolean webhook) { + this.webhook = webhook; + return this; + } + + /** + * Log Notification Category Enable or Disable Webhook (This config applies to the Omada Pro Controller only and should not bu null) + * @return webhook + */ + @ApiModelProperty(value = "Log Notification Category Enable or Disable Webhook (This config applies to the Omada Pro Controller only and should not bu null)") + + + public Boolean getWebhook() { + return webhook; + } + + public void setWebhook(Boolean webhook) { + this.webhook = webhook; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationEditOpenApiVo logNotificationEditOpenApiVo = (LogNotificationEditOpenApiVo) o; + return Objects.equals(this.key, logNotificationEditOpenApiVo.key) && + Objects.equals(this.alert, logNotificationEditOpenApiVo.alert) && + Objects.equals(this.event, logNotificationEditOpenApiVo.event) && + Objects.equals(this.email, logNotificationEditOpenApiVo.email) && + Objects.equals(this.webhook, logNotificationEditOpenApiVo.webhook); + } + + @Override + public int hashCode() { + return Objects.hash(key, alert, event, email, webhook); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationEditOpenApiVo {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append(" event: ").append(toIndentedString(event)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationOpenApiVo.java new file mode 100644 index 0000000..bb956a1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationOpenApiVo.java @@ -0,0 +1,203 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Log Notification List + */ +@ApiModel(description = "Log Notification List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class LogNotificationOpenApiVo { + @JsonProperty("key") + private String key; + + @JsonProperty("shortMsg") + private String shortMsg; + + @JsonProperty("alert") + private Boolean alert; + + @JsonProperty("event") + private Boolean event; + + @JsonProperty("email") + private Boolean email; + + @JsonProperty("webhook") + private Boolean webhook; + + public LogNotificationOpenApiVo key(String key) { + this.key = key; + return this; + } + + /** + * Log Notification Key + * @return key + */ + @ApiModelProperty(value = "Log Notification Key") + + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public LogNotificationOpenApiVo shortMsg(String shortMsg) { + this.shortMsg = shortMsg; + return this; + } + + /** + * Log Notification Short Message + * @return shortMsg + */ + @ApiModelProperty(value = "Log Notification Short Message") + + + public String getShortMsg() { + return shortMsg; + } + + public void setShortMsg(String shortMsg) { + this.shortMsg = shortMsg; + } + + public LogNotificationOpenApiVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * Log Notification Enable or Disable Alert + * @return alert + */ + @ApiModelProperty(value = "Log Notification Enable or Disable Alert") + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + public LogNotificationOpenApiVo event(Boolean event) { + this.event = event; + return this; + } + + /** + * Log Notification Enable or Disable Event + * @return event + */ + @ApiModelProperty(value = "Log Notification Enable or Disable Event") + + + public Boolean getEvent() { + return event; + } + + public void setEvent(Boolean event) { + this.event = event; + } + + public LogNotificationOpenApiVo email(Boolean email) { + this.email = email; + return this; + } + + /** + * Log Notification Enable or Disable Email + * @return email + */ + @ApiModelProperty(value = "Log Notification Enable or Disable Email") + + + public Boolean getEmail() { + return email; + } + + public void setEmail(Boolean email) { + this.email = email; + } + + public LogNotificationOpenApiVo webhook(Boolean webhook) { + this.webhook = webhook; + return this; + } + + /** + * Log Notification Enable or Disable Webhook (This config applies to the Omada Pro Controller only) + * @return webhook + */ + @ApiModelProperty(value = "Log Notification Enable or Disable Webhook (This config applies to the Omada Pro Controller only)") + + + public Boolean getWebhook() { + return webhook; + } + + public void setWebhook(Boolean webhook) { + this.webhook = webhook; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationOpenApiVo logNotificationOpenApiVo = (LogNotificationOpenApiVo) o; + return Objects.equals(this.key, logNotificationOpenApiVo.key) && + Objects.equals(this.shortMsg, logNotificationOpenApiVo.shortMsg) && + Objects.equals(this.alert, logNotificationOpenApiVo.alert) && + Objects.equals(this.event, logNotificationOpenApiVo.event) && + Objects.equals(this.email, logNotificationOpenApiVo.email) && + Objects.equals(this.webhook, logNotificationOpenApiVo.webhook); + } + + @Override + public int hashCode() { + return Objects.hash(key, shortMsg, alert, event, email, webhook); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationOpenApiVo {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" shortMsg: ").append(toIndentedString(shortMsg)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append(" event: ").append(toIndentedString(event)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingEditOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingEditOpenApiV2Vo.java new file mode 100644 index 0000000..121aa0b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingEditOpenApiV2Vo.java @@ -0,0 +1,202 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LogNotificationSettingEditOpenApiV2Vo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class LogNotificationSettingEditOpenApiV2Vo { + @JsonProperty("webhookConfig") + private WebhookConfigEditOpenApiVo webhookConfig; + + @JsonProperty("alertNotifications") + @Valid + private List alertNotifications = null; + + @JsonProperty("eventNotifications") + @Valid + private List eventNotifications = null; + + @JsonProperty("alertEmailSetting") + private LogAlertEmailOpenApiVo alertEmailSetting; + + @JsonProperty("eventEmailSetting") + private LogAlertEmailOpenApiVo eventEmailSetting; + + public LogNotificationSettingEditOpenApiV2Vo webhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + return this; + } + + /** + * Get webhookConfig + * @return webhookConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public WebhookConfigEditOpenApiVo getWebhookConfig() { + return webhookConfig; + } + + public void setWebhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + } + + public LogNotificationSettingEditOpenApiV2Vo alertNotifications(List alertNotifications) { + this.alertNotifications = alertNotifications; + return this; + } + + public LogNotificationSettingEditOpenApiV2Vo addAlertNotificationsItem(LogNotificationEditOpenApiV2Vo alertNotificationsItem) { + if (this.alertNotifications == null) { + this.alertNotifications = new ArrayList<>(); + } + this.alertNotifications.add(alertNotificationsItem); + return this; + } + + /** + * Alert Notification List + * @return alertNotifications + */ + @ApiModelProperty(value = "Alert Notification List") + + @Valid + + public List getAlertNotifications() { + return alertNotifications; + } + + public void setAlertNotifications(List alertNotifications) { + this.alertNotifications = alertNotifications; + } + + public LogNotificationSettingEditOpenApiV2Vo eventNotifications(List eventNotifications) { + this.eventNotifications = eventNotifications; + return this; + } + + public LogNotificationSettingEditOpenApiV2Vo addEventNotificationsItem(LogNotificationEditOpenApiV2Vo eventNotificationsItem) { + if (this.eventNotifications == null) { + this.eventNotifications = new ArrayList<>(); + } + this.eventNotifications.add(eventNotificationsItem); + return this; + } + + /** + * Event Notification List + * @return eventNotifications + */ + @ApiModelProperty(value = "Event Notification List") + + @Valid + + public List getEventNotifications() { + return eventNotifications; + } + + public void setEventNotifications(List eventNotifications) { + this.eventNotifications = eventNotifications; + } + + public LogNotificationSettingEditOpenApiV2Vo alertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + return this; + } + + /** + * Get alertEmailSetting + * @return alertEmailSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LogAlertEmailOpenApiVo getAlertEmailSetting() { + return alertEmailSetting; + } + + public void setAlertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + } + + public LogNotificationSettingEditOpenApiV2Vo eventEmailSetting(LogAlertEmailOpenApiVo eventEmailSetting) { + this.eventEmailSetting = eventEmailSetting; + return this; + } + + /** + * Get eventEmailSetting + * @return eventEmailSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LogAlertEmailOpenApiVo getEventEmailSetting() { + return eventEmailSetting; + } + + public void setEventEmailSetting(LogAlertEmailOpenApiVo eventEmailSetting) { + this.eventEmailSetting = eventEmailSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationSettingEditOpenApiV2Vo logNotificationSettingEditOpenApiV2Vo = (LogNotificationSettingEditOpenApiV2Vo) o; + return Objects.equals(this.webhookConfig, logNotificationSettingEditOpenApiV2Vo.webhookConfig) && + Objects.equals(this.alertNotifications, logNotificationSettingEditOpenApiV2Vo.alertNotifications) && + Objects.equals(this.eventNotifications, logNotificationSettingEditOpenApiV2Vo.eventNotifications) && + Objects.equals(this.alertEmailSetting, logNotificationSettingEditOpenApiV2Vo.alertEmailSetting) && + Objects.equals(this.eventEmailSetting, logNotificationSettingEditOpenApiV2Vo.eventEmailSetting); + } + + @Override + public int hashCode() { + return Objects.hash(webhookConfig, alertNotifications, eventNotifications, alertEmailSetting, eventEmailSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationSettingEditOpenApiV2Vo {\n"); + + sb.append(" webhookConfig: ").append(toIndentedString(webhookConfig)).append("\n"); + sb.append(" alertNotifications: ").append(toIndentedString(alertNotifications)).append("\n"); + sb.append(" eventNotifications: ").append(toIndentedString(eventNotifications)).append("\n"); + sb.append(" alertEmailSetting: ").append(toIndentedString(alertEmailSetting)).append("\n"); + sb.append(" eventEmailSetting: ").append(toIndentedString(eventEmailSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingEditOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingEditOpenApiVo.java new file mode 100644 index 0000000..de46a60 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingEditOpenApiVo.java @@ -0,0 +1,140 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LogNotificationSettingEditOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class LogNotificationSettingEditOpenApiVo { + @JsonProperty("webhookConfig") + private WebhookConfigEditOpenApiVo webhookConfig; + + @JsonProperty("logNotifications") + @Valid + private List logNotifications = new ArrayList<>(); + + @JsonProperty("alertEmailSetting") + private LogAlertEmailOpenApiVo alertEmailSetting; + + public LogNotificationSettingEditOpenApiVo webhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + return this; + } + + /** + * Get webhookConfig + * @return webhookConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public WebhookConfigEditOpenApiVo getWebhookConfig() { + return webhookConfig; + } + + public void setWebhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + } + + public LogNotificationSettingEditOpenApiVo logNotifications(List logNotifications) { + this.logNotifications = logNotifications; + return this; + } + + public LogNotificationSettingEditOpenApiVo addLogNotificationsItem(LogNotificationEditOpenApiVo logNotificationsItem) { + this.logNotifications.add(logNotificationsItem); + return this; + } + + /** + * Log Notification List + * @return logNotifications + */ + @ApiModelProperty(required = true, value = "Log Notification List") + @NotNull + + @Valid + + public List getLogNotifications() { + return logNotifications; + } + + public void setLogNotifications(List logNotifications) { + this.logNotifications = logNotifications; + } + + public LogNotificationSettingEditOpenApiVo alertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + return this; + } + + /** + * Get alertEmailSetting + * @return alertEmailSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LogAlertEmailOpenApiVo getAlertEmailSetting() { + return alertEmailSetting; + } + + public void setAlertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationSettingEditOpenApiVo logNotificationSettingEditOpenApiVo = (LogNotificationSettingEditOpenApiVo) o; + return Objects.equals(this.webhookConfig, logNotificationSettingEditOpenApiVo.webhookConfig) && + Objects.equals(this.logNotifications, logNotificationSettingEditOpenApiVo.logNotifications) && + Objects.equals(this.alertEmailSetting, logNotificationSettingEditOpenApiVo.alertEmailSetting); + } + + @Override + public int hashCode() { + return Objects.hash(webhookConfig, logNotifications, alertEmailSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationSettingEditOpenApiVo {\n"); + + sb.append(" webhookConfig: ").append(toIndentedString(webhookConfig)).append("\n"); + sb.append(" logNotifications: ").append(toIndentedString(logNotifications)).append("\n"); + sb.append(" alertEmailSetting: ").append(toIndentedString(alertEmailSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingOpenApiVo.java new file mode 100644 index 0000000..0750231 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/LogNotificationSettingOpenApiVo.java @@ -0,0 +1,141 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LogNotificationSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class LogNotificationSettingOpenApiVo { + @JsonProperty("webhookConfig") + private Object webhookConfig; + + @JsonProperty("logNotifications") + @Valid + private List logNotifications = null; + + @JsonProperty("alertEmailSetting") + private LogAlertEmailOpenApiVo alertEmailSetting; + + public LogNotificationSettingOpenApiVo webhookConfig(Object webhookConfig) { + this.webhookConfig = webhookConfig; + return this; + } + + /** + * Get webhookConfig + * @return webhookConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getWebhookConfig() { + return webhookConfig; + } + + public void setWebhookConfig(Object webhookConfig) { + this.webhookConfig = webhookConfig; + } + + public LogNotificationSettingOpenApiVo logNotifications(List logNotifications) { + this.logNotifications = logNotifications; + return this; + } + + public LogNotificationSettingOpenApiVo addLogNotificationsItem(LogNotificationOpenApiVo logNotificationsItem) { + if (this.logNotifications == null) { + this.logNotifications = new ArrayList<>(); + } + this.logNotifications.add(logNotificationsItem); + return this; + } + + /** + * Log Notification List + * @return logNotifications + */ + @ApiModelProperty(value = "Log Notification List") + + @Valid + + public List getLogNotifications() { + return logNotifications; + } + + public void setLogNotifications(List logNotifications) { + this.logNotifications = logNotifications; + } + + public LogNotificationSettingOpenApiVo alertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + return this; + } + + /** + * Get alertEmailSetting + * @return alertEmailSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LogAlertEmailOpenApiVo getAlertEmailSetting() { + return alertEmailSetting; + } + + public void setAlertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationSettingOpenApiVo logNotificationSettingOpenApiVo = (LogNotificationSettingOpenApiVo) o; + return Objects.equals(this.webhookConfig, logNotificationSettingOpenApiVo.webhookConfig) && + Objects.equals(this.logNotifications, logNotificationSettingOpenApiVo.logNotifications) && + Objects.equals(this.alertEmailSetting, logNotificationSettingOpenApiVo.alertEmailSetting); + } + + @Override + public int hashCode() { + return Objects.hash(webhookConfig, logNotifications, alertEmailSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationSettingOpenApiVo {\n"); + + sb.append(" webhookConfig: ").append(toIndentedString(webhookConfig)).append("\n"); + sb.append(" logNotifications: ").append(toIndentedString(logNotifications)).append("\n"); + sb.append(" alertEmailSetting: ").append(toIndentedString(alertEmailSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseAuditLogNotificationSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseAuditLogNotificationSettingOpenApiVo.java new file mode 100644 index 0000000..6d22c78 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseAuditLogNotificationSettingOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseAuditLogNotificationSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class OperationResponseAuditLogNotificationSettingOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private AuditLogNotificationSettingOpenApiVo result; + + public OperationResponseAuditLogNotificationSettingOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseAuditLogNotificationSettingOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseAuditLogNotificationSettingOpenApiVo result(AuditLogNotificationSettingOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public AuditLogNotificationSettingOpenApiVo getResult() { + return result; + } + + public void setResult(AuditLogNotificationSettingOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseAuditLogNotificationSettingOpenApiVo operationResponseAuditLogNotificationSettingOpenApiVo = (OperationResponseAuditLogNotificationSettingOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseAuditLogNotificationSettingOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseAuditLogNotificationSettingOpenApiVo.msg) && + Objects.equals(this.result, operationResponseAuditLogNotificationSettingOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseAuditLogNotificationSettingOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseGridVoAuditLogOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseGridVoAuditLogOpenApiVo.java new file mode 100644 index 0000000..13f9918 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseGridVoAuditLogOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoAuditLogOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoAuditLogOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoAuditLogOpenApiVo result; + + public OperationResponseGridVoAuditLogOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoAuditLogOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoAuditLogOpenApiVo result(GridVoAuditLogOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoAuditLogOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoAuditLogOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoAuditLogOpenApiVo operationResponseGridVoAuditLogOpenApiVo = (OperationResponseGridVoAuditLogOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoAuditLogOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoAuditLogOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoAuditLogOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoAuditLogOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseLogNotificationSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseLogNotificationSettingOpenApiVo.java new file mode 100644 index 0000000..fe35e6e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseLogNotificationSettingOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseLogNotificationSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class OperationResponseLogNotificationSettingOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private LogNotificationSettingOpenApiVo result; + + public OperationResponseLogNotificationSettingOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseLogNotificationSettingOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseLogNotificationSettingOpenApiVo result(LogNotificationSettingOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public LogNotificationSettingOpenApiVo getResult() { + return result; + } + + public void setResult(LogNotificationSettingOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseLogNotificationSettingOpenApiVo operationResponseLogNotificationSettingOpenApiVo = (OperationResponseLogNotificationSettingOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseLogNotificationSettingOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseLogNotificationSettingOpenApiVo.msg) && + Objects.equals(this.result, operationResponseLogNotificationSettingOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseLogNotificationSettingOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseWithoutResult.java new file mode 100644 index 0000000..1c05b90 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/OperationResponseWithoutResult.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class OperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public OperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseWithoutResult.msg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/WebhookConfigEditOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/WebhookConfigEditOpenApiVo.java new file mode 100644 index 0000000..a361f86 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/WebhookConfigEditOpenApiVo.java @@ -0,0 +1,105 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Log Notification Webhook Config (This config applies to the Omada Pro Controller only) + */ +@ApiModel(description = "Log Notification Webhook Config (This config applies to the Omada Pro Controller only)") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class WebhookConfigEditOpenApiVo { + @JsonProperty("webhookEnable") + private Boolean webhookEnable; + + @JsonProperty("webhookId") + private String webhookId; + + public WebhookConfigEditOpenApiVo webhookEnable(Boolean webhookEnable) { + this.webhookEnable = webhookEnable; + return this; + } + + /** + * Audit or Omada Log Notification Enable for Disable Webhook + * @return webhookEnable + */ + @ApiModelProperty(required = true, value = "Audit or Omada Log Notification Enable for Disable Webhook") + @NotNull + + + public Boolean getWebhookEnable() { + return webhookEnable; + } + + public void setWebhookEnable(Boolean webhookEnable) { + this.webhookEnable = webhookEnable; + } + + public WebhookConfigEditOpenApiVo webhookId(String webhookId) { + this.webhookId = webhookId; + return this; + } + + /** + * Webhook ID (Webhook ID should be configured in webhook setting, when Webhook Enable is true) + * @return webhookId + */ + @ApiModelProperty(value = "Webhook ID (Webhook ID should be configured in webhook setting, when Webhook Enable is true)") + + + public String getWebhookId() { + return webhookId; + } + + public void setWebhookId(String webhookId) { + this.webhookId = webhookId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookConfigEditOpenApiVo webhookConfigEditOpenApiVo = (WebhookConfigEditOpenApiVo) o; + return Objects.equals(this.webhookEnable, webhookConfigEditOpenApiVo.webhookEnable) && + Objects.equals(this.webhookId, webhookConfigEditOpenApiVo.webhookId); + } + + @Override + public int hashCode() { + return Objects.hash(webhookEnable, webhookId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookConfigEditOpenApiVo {\n"); + + sb.append(" webhookEnable: ").append(toIndentedString(webhookEnable)).append("\n"); + sb.append(" webhookId: ").append(toIndentedString(webhookId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/WebhookConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/WebhookConfigOpenApiVo.java new file mode 100644 index 0000000..9e2b727 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/log/model/WebhookConfigOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.log.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Log Notification Webhook Config (This config applies to the Omada Pro Controller only) + */ +@ApiModel(description = "Log Notification Webhook Config (This config applies to the Omada Pro Controller only)") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:45:56.254+08:00[Asia/Shanghai]") + +public class WebhookConfigOpenApiVo { + @JsonProperty("webhookEnable") + private Boolean webhookEnable; + + @JsonProperty("webhookId") + private String webhookId; + + public WebhookConfigOpenApiVo webhookEnable(Boolean webhookEnable) { + this.webhookEnable = webhookEnable; + return this; + } + + /** + * Audit or Omada Log Notification Enable for Disable Webhook + * @return webhookEnable + */ + @ApiModelProperty(value = "Audit or Omada Log Notification Enable for Disable Webhook") + + + public Boolean getWebhookEnable() { + return webhookEnable; + } + + public void setWebhookEnable(Boolean webhookEnable) { + this.webhookEnable = webhookEnable; + } + + public WebhookConfigOpenApiVo webhookId(String webhookId) { + this.webhookId = webhookId; + return this; + } + + /** + * Webhook ID + * @return webhookId + */ + @ApiModelProperty(value = "Webhook ID") + + + public String getWebhookId() { + return webhookId; + } + + public void setWebhookId(String webhookId) { + this.webhookId = webhookId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookConfigOpenApiVo webhookConfigOpenApiVo = (WebhookConfigOpenApiVo) o; + return Objects.equals(this.webhookEnable, webhookConfigOpenApiVo.webhookEnable) && + Objects.equals(this.webhookId, webhookConfigOpenApiVo.webhookId); + } + + @Override + public int hashCode() { + return Objects.hash(webhookEnable, webhookId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookConfigOpenApiVo {\n"); + + sb.append(" webhookEnable: ").append(toIndentedString(webhookEnable)).append("\n"); + sb.append(" webhookId: ").append(toIndentedString(webhookId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/OmadaBackupAndRestoreApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/OmadaBackupAndRestoreApi.java new file mode 100644 index 0000000..d036ce7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/OmadaBackupAndRestoreApi.java @@ -0,0 +1,263 @@ +package org.wfc.omada.api.maintenance; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.maintenance.model.BackupFileListVo; +import org.wfc.omada.api.maintenance.model.BackupResultOpenApiVo; +import org.wfc.omada.api.maintenance.model.BatchSiteBackupVo; +import org.wfc.omada.api.maintenance.model.BatchSiteFileServerRestoreVo; +import org.wfc.omada.api.maintenance.model.BatchSiteSelfRestoreVo; +import org.wfc.omada.api.maintenance.model.FileServerGlobalBackupVo; +import org.wfc.omada.api.maintenance.model.FileServerGlobalRestoreVo; +import org.wfc.omada.api.maintenance.model.FileServerSiteBackupVo; +import org.wfc.omada.api.maintenance.model.OperationResponseWithoutResult; +import org.wfc.omada.api.maintenance.model.RestoreResultVo; +import org.wfc.omada.api.maintenance.model.SelfGlobalBackupVo; +import org.wfc.omada.api.maintenance.model.SelfGlobalRestoreVo; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:03.102+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaBackupAndRestore", description = "the OmadaBackupAndRestore API") +@FeignClient(name="OmadaBackupAndRestoreApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaBackupAndRestoreApi { + + /** + * POST /openapi/v1/{omadacId}/maintenance/backup/file-server : Backup controller config to file server + * Backup controller config to file server. <br/><br/>The interface requires one of the permissions: <br/>Global Other Setting Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30301 - Backing up...<br/>-30304 - Restoring...<br/>-30309 - Failed to back up the configurations.<br/>-30320 - Failed to connect to the file server. The file server may not exist or it is temporarily unavailable. Please check the information and your network connection, and try again. + * + * @param omadacId Omada ID (required) + * @param fileServerGlobalBackupVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Backup controller config to file server", nickname = "backupFileServer", notes = "Backup controller config to file server.

The interface requires one of the permissions:
Global Other Setting Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30301 - Backing up...
-30304 - Restoring...
-30309 - Failed to back up the configurations.
-30320 - Failed to connect to the file server. The file server may not exist or it is temporarily unavailable. Please check the information and your network connection, and try again.", response = OperationResponseWithoutResult.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/maintenance/backup/file-server", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity backupFileServer(@ApiParam(value = "" ) @Valid @RequestBody(required = false) FileServerGlobalBackupVo fileServerGlobalBackupVo); + + + /** + * POST /openapi/v1/{omadacId}/maintenance/backup/self-server : Backup controller config to cloud server + * Backup controller config to cloud server. <br/><br/>The interface requires one of the permissions: <br/>Global Other Setting Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30301 - Backing up...<br/>-30304 - Restoring...<br/>-30309 - Failed to back up the configurations. + * + * @param omadacId Omada ID (required) + * @param selfGlobalBackupVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Backup controller config to cloud server", nickname = "backupSelfServer", notes = "Backup controller config to cloud server.

The interface requires one of the permissions:
Global Other Setting Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30301 - Backing up...
-30304 - Restoring...
-30309 - Failed to back up the configurations.", response = OperationResponseWithoutResult.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/maintenance/backup/self-server", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity backupSelfServer(@ApiParam(value = "" ) @Valid @RequestBody(required = false) SelfGlobalBackupVo selfGlobalBackupVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/maintenance/multi-backup/file-server : Backup multi sites config to file server + * Backup multi sites config to file server. At most 300 sites can backup.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30301 - Backing up...<br/>-30304 - Restoring...<br/>-30309 - Failed to back up the configurations.<br/>-30320 - Failed to connect to the file server. The file server may not exist or it is temporarily unavailable. Please check the information and your network connection, and try again. + * + * @param omadacId Omada ID (required) + * @param fileServerSiteBackupVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Backup multi sites config to file server", nickname = "backupSitesFileServer", notes = "Backup multi sites config to file server. At most 300 sites can backup.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30301 - Backing up...
-30304 - Restoring...
-30309 - Failed to back up the configurations.
-30320 - Failed to connect to the file server. The file server may not exist or it is temporarily unavailable. Please check the information and your network connection, and try again.", response = OperationResponseWithoutResult.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/maintenance/multi-backup/file-server", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity backupSitesFileServer(@ApiParam(value = "" ) @Valid @RequestBody(required = false) FileServerSiteBackupVo fileServerSiteBackupVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/maintenance/multi-backup/self-server : Backup multi sites config to self server + * Backup multi sites config to self server. At most 300 sites can backup.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30301 - Backing up...<br/>-30304 - Restoring...<br/>-30309 - Failed to back up the configurations. + * + * @param omadacId Omada ID (required) + * @param batchSiteBackupVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Backup multi sites config to self server", nickname = "backupSitesSelfServer", notes = "Backup multi sites config to self server. At most 300 sites can backup.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30301 - Backing up...
-30304 - Restoring...
-30309 - Failed to back up the configurations.", response = OperationResponseWithoutResult.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/maintenance/multi-backup/self-server", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity backupSitesSelfServer(@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchSiteBackupVo batchSiteBackupVo); + + + /** + * GET /openapi/v1/{omadacId}/maintenance/backup/result : Get controller backup result + * Get controller backup result.<br/><br/>The interface requires one of the permissions: <br/>Global Other Setting View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30309 - Failed to back up the configurations. + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get controller backup result", nickname = "getBackupResult", notes = "Get controller backup result.

The interface requires one of the permissions:
Global Other Setting View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30309 - Failed to back up the configurations.", response = BackupResultOpenApiVo.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = BackupResultOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/maintenance/backup/result", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getBackupResult(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/maintenance/restore/result : Get controller restore result + * Get controller restore result.<br/><br/>The interface requires one of the permissions: <br/>Global Other Setting View Only<br/>Site Settings Manager View Only<br/>Site Dashboard Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30303 - Failed to restore because the file is incompatible.<br/>-30305 - Failed to restore because of unexpected errors. Please try again later.<br/>-30307 - Invalid configuration file. Please select the configuration file of the same integrated router model.<br/>-30317 - Cannot restore a site-level backup file into the controller. Please go to global Dashboard > Site List to import<br/>-30318 - Invalid file. To restore controller data, please go to Settings > Maintenance > Backup & Restore.<br/>-30319 - Failed to restore due to database anomaly, please try again later.<br/>-30326 - The devices in the customer configuration file are duplicate with the adopted devices and cannot be imported. + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get controller restore result", nickname = "getRestoreResult", notes = "Get controller restore result.

The interface requires one of the permissions:
Global Other Setting View Only
Site Settings Manager View Only
Site Dashboard Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30303 - Failed to restore because the file is incompatible.
-30305 - Failed to restore because of unexpected errors. Please try again later.
-30307 - Invalid configuration file. Please select the configuration file of the same integrated router model.
-30317 - Cannot restore a site-level backup file into the controller. Please go to global Dashboard > Site List to import
-30318 - Invalid file. To restore controller data, please go to Settings > Maintenance > Backup & Restore.
-30319 - Failed to restore due to database anomaly, please try again later.
-30326 - The devices in the customer configuration file are duplicate with the adopted devices and cannot be imported.", response = RestoreResultVo.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = RestoreResultVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/maintenance/restore/result", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRestoreResult(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/maintenance/backup/files : Get controller backup file list in self server + * Get controller backup file list in self server.<br/><br/>The interface requires one of the permissions: <br/>Global Other Setting View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later. + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get controller backup file list in self server", nickname = "getSelfServerFileList", notes = "Get controller backup file list in self server.

The interface requires one of the permissions:
Global Other Setting View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.", response = BackupFileListVo.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = BackupFileListVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/maintenance/backup/files", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSelfServerFileList(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/maintenance/backup/files : Get site backup file list in self server + * Get site backup file list in self server.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/>Global Dashboard Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site backup file list in self server", nickname = "getSelfServerSiteFileList", notes = "Get site backup file list in self server.

The interface requires one of the permissions:
Site Settings Manager View Only
Global Dashboard Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.", response = BackupFileListVo.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = BackupFileListVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/maintenance/backup/files", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSelfServerSiteFileList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/backup/result : Get site backup result + * Get site backup result.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/>Global Dashboard Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30309 - Failed to back up the configurations. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site backup result", nickname = "getSiteBackupResult", notes = "Get site backup result.

The interface requires one of the permissions:
Site Settings Manager View Only
Global Dashboard Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30309 - Failed to back up the configurations.", response = BackupResultOpenApiVo.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = BackupResultOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/backup/result", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteBackupResult(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * POST /openapi/v1/{omadacId}/maintenance/restore/file-server : Restore controller config from file server + * Restore controller config from file server.<br/><br/>The interface requires one of the permissions: <br/>Global Other Setting Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30304 - Restoring...<br/>-30305 - Failed to restore because of unexpected errors. Please try again later.<br/>-30320 - Failed to connect to the file server. The file server may not exist or it is temporarily unavailable. Please check the information and your network connection, and try again. + * + * @param omadacId Omada ID (required) + * @param fileServerGlobalRestoreVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Restore controller config from file server", nickname = "restoreFileServer", notes = "Restore controller config from file server.

The interface requires one of the permissions:
Global Other Setting Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30304 - Restoring...
-30305 - Failed to restore because of unexpected errors. Please try again later.
-30320 - Failed to connect to the file server. The file server may not exist or it is temporarily unavailable. Please check the information and your network connection, and try again.", response = OperationResponseWithoutResult.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/maintenance/restore/file-server", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity restoreFileServer(@ApiParam(value = "" ) @Valid @RequestBody(required = false) FileServerGlobalRestoreVo fileServerGlobalRestoreVo); + + + /** + * POST /openapi/v1/{omadacId}/maintenance/restore/self-server : Restore controller config from cloud server + * Restore controller config from cloud server.<br/><br/>The interface requires one of the permissions: <br/>Global Other Setting Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30304 - Restoring...<br/>-30305 - Failed to restore because of unexpected errors. Please try again later. + * + * @param omadacId Omada ID (required) + * @param selfGlobalRestoreVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Restore controller config from cloud server", nickname = "restoreSelfServer", notes = "Restore controller config from cloud server.

The interface requires one of the permissions:
Global Other Setting Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30304 - Restoring...
-30305 - Failed to restore because of unexpected errors. Please try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/maintenance/restore/self-server", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity restoreSelfServer(@ApiParam(value = "" ) @Valid @RequestBody(required = false) SelfGlobalRestoreVo selfGlobalRestoreVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/maintenance/multi-restore/file-server : Restore multi sites config from file server + * Restore multi sites config from file server. At most 300 sites can be restored.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30304 - Restoring...<br/>-30305 - Failed to restore because of unexpected errors. Please try again later.<br/>-30320 - Failed to connect to the file server. The file server may not exist or it is temporarily unavailable. Please check the information and your network connection, and try again. + * + * @param omadacId Omada ID (required) + * @param batchSiteFileServerRestoreVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Restore multi sites config from file server", nickname = "restoreSitesFileServer", notes = "Restore multi sites config from file server. At most 300 sites can be restored.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30304 - Restoring...
-30305 - Failed to restore because of unexpected errors. Please try again later.
-30320 - Failed to connect to the file server. The file server may not exist or it is temporarily unavailable. Please check the information and your network connection, and try again.", response = OperationResponseWithoutResult.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/maintenance/multi-restore/file-server", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity restoreSitesFileServer(@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchSiteFileServerRestoreVo batchSiteFileServerRestoreVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/maintenance/multi-restore/self-server : Restore multi sites config from self server + * Restore multi sites config from self server. At most 300 sites can be restored.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30304 - Restoring...<br/>-30305 - Failed to restore because of unexpected errors. Please try again later. + * + * @param omadacId Omada ID (required) + * @param batchSiteSelfRestoreVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Restore multi sites config from self server", nickname = "restoreSitesSelfServer", notes = "Restore multi sites config from self server. At most 300 sites can be restored.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30304 - Restoring...
-30305 - Failed to restore because of unexpected errors. Please try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Backup and Restore","Backup and Restore", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/maintenance/multi-restore/self-server", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity restoreSitesSelfServer(@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchSiteSelfRestoreVo batchSiteSelfRestoreVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/OmadaHistoryDataRetentionApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/OmadaHistoryDataRetentionApi.java new file mode 100644 index 0000000..b164139 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/OmadaHistoryDataRetentionApi.java @@ -0,0 +1,62 @@ +package org.wfc.omada.api.maintenance; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.maintenance.model.ModifyHistoryRetentionOpenApiVo; +import org.wfc.omada.api.maintenance.model.OperationResponseHistoryRetentionOpenApiVo; +import org.wfc.omada.api.maintenance.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:03.102+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaHistoryDataRetention", description = "the OmadaHistoryDataRetention API") +@FeignClient(name="OmadaHistoryDataRetentionApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaHistoryDataRetentionApi { + + /** + * GET /openapi/v1/{omadacId}/retention : Get history data retention configuration + * Get data retention configuration.<br/><br/>The interface requires one of the permissions: <br/>Global Other Setting View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30001 - Controller is not configured.<br/>-7131 - Controller ID not exist. + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get history data retention configuration", nickname = "getDataRetention", notes = "Get data retention configuration.

The interface requires one of the permissions:
Global Other Setting View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30001 - Controller is not configured.
-7131 - Controller ID not exist.", response = OperationResponseHistoryRetentionOpenApiVo.class, tags={ "Omada/History Data Retention","History Data Retention", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseHistoryRetentionOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/retention", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getDataRetention(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * PATCH /openapi/v1/{omadacId}/retention : Modify history data retention configuration + * Modify history data retention configuration.<br/><br/>The interface requires one of the permissions: <br/>Global Other Setting Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30001 - Controller is not configured.<br/>-30028 - The system is busy. Please try again later.<br/>-7131 - Controller ID not exist. + * + * @param omadacId Omada ID (required) + * @param modifyHistoryRetentionOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify history data retention configuration", nickname = "modifyRetention", notes = "Modify history data retention configuration.

The interface requires one of the permissions:
Global Other Setting Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30001 - Controller is not configured.
-30028 - The system is busy. Please try again later.
-7131 - Controller ID not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/History Data Retention","History Data Retention", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/retention", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyRetention(@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyHistoryRetentionOpenApiVo modifyHistoryRetentionOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupFileListVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupFileListVo.java new file mode 100644 index 0000000..1db6fa3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupFileListVo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BackupFileListVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class BackupFileListVo { + @JsonProperty("fileList") + @Valid + private List fileList = null; + + public BackupFileListVo fileList(List fileList) { + this.fileList = fileList; + return this; + } + + public BackupFileListVo addFileListItem(BackupFileResultVo fileListItem) { + if (this.fileList == null) { + this.fileList = new ArrayList<>(); + } + this.fileList.add(fileListItem); + return this; + } + + /** + * File list of backup files. + * @return fileList + */ + @ApiModelProperty(value = "File list of backup files.") + + @Valid + + public List getFileList() { + return fileList; + } + + public void setFileList(List fileList) { + this.fileList = fileList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BackupFileListVo backupFileListVo = (BackupFileListVo) o; + return Objects.equals(this.fileList, backupFileListVo.fileList); + } + + @Override + public int hashCode() { + return Objects.hash(fileList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BackupFileListVo {\n"); + + sb.append(" fileList: ").append(toIndentedString(fileList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupFileResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupFileResultVo.java new file mode 100644 index 0000000..8e18a1e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupFileResultVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * File list of backup files. + */ +@ApiModel(description = "File list of backup files.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class BackupFileResultVo { + @JsonProperty("fileName") + private String fileName; + + @JsonProperty("backupTime") + private Long backupTime; + + @JsonProperty("size") + private Long size; + + public BackupFileResultVo fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * File name of backup file. Parameter [fileName] should be 1 - 128 ASCII characters. + * @return fileName + */ + @ApiModelProperty(value = "File name of backup file. Parameter [fileName] should be 1 - 128 ASCII characters.") + + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public BackupFileResultVo backupTime(Long backupTime) { + this.backupTime = backupTime; + return this; + } + + /** + * Backup time(ms). + * @return backupTime + */ + @ApiModelProperty(value = "Backup time(ms).") + + + public Long getBackupTime() { + return backupTime; + } + + public void setBackupTime(Long backupTime) { + this.backupTime = backupTime; + } + + public BackupFileResultVo size(Long size) { + this.size = size; + return this; + } + + /** + * Size of backup file(Byte). + * @return size + */ + @ApiModelProperty(value = "Size of backup file(Byte).") + + + public Long getSize() { + return size; + } + + public void setSize(Long size) { + this.size = size; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BackupFileResultVo backupFileResultVo = (BackupFileResultVo) o; + return Objects.equals(this.fileName, backupFileResultVo.fileName) && + Objects.equals(this.backupTime, backupFileResultVo.backupTime) && + Objects.equals(this.size, backupFileResultVo.size); + } + + @Override + public int hashCode() { + return Objects.hash(fileName, backupTime, size); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BackupFileResultVo {\n"); + + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" backupTime: ").append(toIndentedString(backupTime)).append("\n"); + sb.append(" size: ").append(toIndentedString(size)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupResultOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupResultOpenApiVo.java new file mode 100644 index 0000000..b6af5a2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BackupResultOpenApiVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * BackupResultOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class BackupResultOpenApiVo { + @JsonProperty("status") + private Integer status; + + public BackupResultOpenApiVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Backup status should be a value as follows: 0: finished or init; 1: backup running. + * @return status + */ + @ApiModelProperty(value = "Backup status should be a value as follows: 0: finished or init; 1: backup running.") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BackupResultOpenApiVo backupResultOpenApiVo = (BackupResultOpenApiVo) o; + return Objects.equals(this.status, backupResultOpenApiVo.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BackupResultOpenApiVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteBackupVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteBackupVo.java new file mode 100644 index 0000000..aa1ce98 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteBackupVo.java @@ -0,0 +1,87 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchSiteBackupVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class BatchSiteBackupVo { + @JsonProperty("siteIds") + @Valid + private List siteIds = new ArrayList<>(); + + public BatchSiteBackupVo siteIds(List siteIds) { + this.siteIds = siteIds; + return this; + } + + public BatchSiteBackupVo addSiteIdsItem(String siteIdsItem) { + this.siteIds.add(siteIdsItem); + return this; + } + + /** + * Site ID list to backup, at least one site, max 300 sites. + * @return siteIds + */ + @ApiModelProperty(required = true, value = "Site ID list to backup, at least one site, max 300 sites.") + @NotNull + + + public List getSiteIds() { + return siteIds; + } + + public void setSiteIds(List siteIds) { + this.siteIds = siteIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchSiteBackupVo batchSiteBackupVo = (BatchSiteBackupVo) o; + return Objects.equals(this.siteIds, batchSiteBackupVo.siteIds); + } + + @Override + public int hashCode() { + return Objects.hash(siteIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSiteBackupVo {\n"); + + sb.append(" siteIds: ").append(toIndentedString(siteIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteFileServerRestoreVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteFileServerRestoreVo.java new file mode 100644 index 0000000..dce4a23 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteFileServerRestoreVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchSiteFileServerRestoreVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class BatchSiteFileServerRestoreVo { + @JsonProperty("serverConfig") + private FileServerOpenApiVo serverConfig; + + @JsonProperty("siteInfos") + @Valid + private List siteInfos = new ArrayList<>(); + + public BatchSiteFileServerRestoreVo serverConfig(FileServerOpenApiVo serverConfig) { + this.serverConfig = serverConfig; + return this; + } + + /** + * Get serverConfig + * @return serverConfig + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public FileServerOpenApiVo getServerConfig() { + return serverConfig; + } + + public void setServerConfig(FileServerOpenApiVo serverConfig) { + this.serverConfig = serverConfig; + } + + public BatchSiteFileServerRestoreVo siteInfos(List siteInfos) { + this.siteInfos = siteInfos; + return this; + } + + public BatchSiteFileServerRestoreVo addSiteInfosItem(FileServerSiteRestoreVo siteInfosItem) { + this.siteInfos.add(siteInfosItem); + return this; + } + + /** + * Sites to restore. + * @return siteInfos + */ + @ApiModelProperty(required = true, value = "Sites to restore.") + @NotNull + + @Valid + + public List getSiteInfos() { + return siteInfos; + } + + public void setSiteInfos(List siteInfos) { + this.siteInfos = siteInfos; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchSiteFileServerRestoreVo batchSiteFileServerRestoreVo = (BatchSiteFileServerRestoreVo) o; + return Objects.equals(this.serverConfig, batchSiteFileServerRestoreVo.serverConfig) && + Objects.equals(this.siteInfos, batchSiteFileServerRestoreVo.siteInfos); + } + + @Override + public int hashCode() { + return Objects.hash(serverConfig, siteInfos); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSiteFileServerRestoreVo {\n"); + + sb.append(" serverConfig: ").append(toIndentedString(serverConfig)).append("\n"); + sb.append(" siteInfos: ").append(toIndentedString(siteInfos)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteSelfRestoreVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteSelfRestoreVo.java new file mode 100644 index 0000000..4bc2d9e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/BatchSiteSelfRestoreVo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchSiteSelfRestoreVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class BatchSiteSelfRestoreVo { + @JsonProperty("siteRestoreInfos") + @Valid + private List siteRestoreInfos = new ArrayList<>(); + + public BatchSiteSelfRestoreVo siteRestoreInfos(List siteRestoreInfos) { + this.siteRestoreInfos = siteRestoreInfos; + return this; + } + + public BatchSiteSelfRestoreVo addSiteRestoreInfosItem(SelfSiteRestoreVo siteRestoreInfosItem) { + this.siteRestoreInfos.add(siteRestoreInfosItem); + return this; + } + + /** + * Site restore info list to restore. Up to 300 entries are allowed for the site restore info list. + * @return siteRestoreInfos + */ + @ApiModelProperty(required = true, value = "Site restore info list to restore. Up to 300 entries are allowed for the site restore info list.") + @NotNull + + @Valid + + public List getSiteRestoreInfos() { + return siteRestoreInfos; + } + + public void setSiteRestoreInfos(List siteRestoreInfos) { + this.siteRestoreInfos = siteRestoreInfos; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchSiteSelfRestoreVo batchSiteSelfRestoreVo = (BatchSiteSelfRestoreVo) o; + return Objects.equals(this.siteRestoreInfos, batchSiteSelfRestoreVo.siteRestoreInfos); + } + + @Override + public int hashCode() { + return Objects.hash(siteRestoreInfos); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSiteSelfRestoreVo {\n"); + + sb.append(" siteRestoreInfos: ").append(toIndentedString(siteRestoreInfos)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerGlobalBackupVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerGlobalBackupVo.java new file mode 100644 index 0000000..c775f6f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerGlobalBackupVo.java @@ -0,0 +1,131 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * FileServerGlobalBackupVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class FileServerGlobalBackupVo { + @JsonProperty("serverConfig") + private FileServerOpenApiVo serverConfig; + + @JsonProperty("filePath") + private String filePath; + + @JsonProperty("retainUser") + private Boolean retainUser; + + public FileServerGlobalBackupVo serverConfig(FileServerOpenApiVo serverConfig) { + this.serverConfig = serverConfig; + return this; + } + + /** + * Get serverConfig + * @return serverConfig + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public FileServerOpenApiVo getServerConfig() { + return serverConfig; + } + + public void setServerConfig(FileServerOpenApiVo serverConfig) { + this.serverConfig = serverConfig; + } + + public FileServerGlobalBackupVo filePath(String filePath) { + this.filePath = filePath; + return this; + } + + /** + * Saving directory path for backup file. Parameter [filePath] should be 1 - 128 ASCII characters. + * @return filePath + */ + @ApiModelProperty(required = true, value = "Saving directory path for backup file. Parameter [filePath] should be 1 - 128 ASCII characters.") + @NotNull + + + public String getFilePath() { + return filePath; + } + + public void setFilePath(String filePath) { + this.filePath = filePath; + } + + public FileServerGlobalBackupVo retainUser(Boolean retainUser) { + this.retainUser = retainUser; + return this; + } + + /** + * Whether need retain user info. + * @return retainUser + */ + @ApiModelProperty(value = "Whether need retain user info.") + + + public Boolean getRetainUser() { + return retainUser; + } + + public void setRetainUser(Boolean retainUser) { + this.retainUser = retainUser; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileServerGlobalBackupVo fileServerGlobalBackupVo = (FileServerGlobalBackupVo) o; + return Objects.equals(this.serverConfig, fileServerGlobalBackupVo.serverConfig) && + Objects.equals(this.filePath, fileServerGlobalBackupVo.filePath) && + Objects.equals(this.retainUser, fileServerGlobalBackupVo.retainUser); + } + + @Override + public int hashCode() { + return Objects.hash(serverConfig, filePath, retainUser); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileServerGlobalBackupVo {\n"); + + sb.append(" serverConfig: ").append(toIndentedString(serverConfig)).append("\n"); + sb.append(" filePath: ").append(toIndentedString(filePath)).append("\n"); + sb.append(" retainUser: ").append(toIndentedString(retainUser)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerGlobalRestoreVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerGlobalRestoreVo.java new file mode 100644 index 0000000..7cc6fe5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerGlobalRestoreVo.java @@ -0,0 +1,132 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * FileServerGlobalRestoreVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class FileServerGlobalRestoreVo { + @JsonProperty("serverConfig") + private FileServerOpenApiVo serverConfig; + + @JsonProperty("filePath") + private String filePath; + + @JsonProperty("skipDevice") + private Boolean skipDevice; + + public FileServerGlobalRestoreVo serverConfig(FileServerOpenApiVo serverConfig) { + this.serverConfig = serverConfig; + return this; + } + + /** + * Get serverConfig + * @return serverConfig + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public FileServerOpenApiVo getServerConfig() { + return serverConfig; + } + + public void setServerConfig(FileServerOpenApiVo serverConfig) { + this.serverConfig = serverConfig; + } + + public FileServerGlobalRestoreVo filePath(String filePath) { + this.filePath = filePath; + return this; + } + + /** + * Saving directory path for backup file. Parameter [filePath] should be 1 - 128 ASCII characters. + * @return filePath + */ + @ApiModelProperty(required = true, value = "Saving directory path for backup file. Parameter [filePath] should be 1 - 128 ASCII characters.") + @NotNull + + + public String getFilePath() { + return filePath; + } + + public void setFilePath(String filePath) { + this.filePath = filePath; + } + + public FileServerGlobalRestoreVo skipDevice(Boolean skipDevice) { + this.skipDevice = skipDevice; + return this; + } + + /** + * Whether skip import devices. + * @return skipDevice + */ + @ApiModelProperty(required = true, value = "Whether skip import devices.") + @NotNull + + + public Boolean getSkipDevice() { + return skipDevice; + } + + public void setSkipDevice(Boolean skipDevice) { + this.skipDevice = skipDevice; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileServerGlobalRestoreVo fileServerGlobalRestoreVo = (FileServerGlobalRestoreVo) o; + return Objects.equals(this.serverConfig, fileServerGlobalRestoreVo.serverConfig) && + Objects.equals(this.filePath, fileServerGlobalRestoreVo.filePath) && + Objects.equals(this.skipDevice, fileServerGlobalRestoreVo.skipDevice); + } + + @Override + public int hashCode() { + return Objects.hash(serverConfig, filePath, skipDevice); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileServerGlobalRestoreVo {\n"); + + sb.append(" serverConfig: ").append(toIndentedString(serverConfig)).append("\n"); + sb.append(" filePath: ").append(toIndentedString(filePath)).append("\n"); + sb.append(" skipDevice: ").append(toIndentedString(skipDevice)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerOpenApiVo.java new file mode 100644 index 0000000..9a2ef17 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerOpenApiVo.java @@ -0,0 +1,182 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * File server configuration. + */ +@ApiModel(description = "File server configuration.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class FileServerOpenApiVo { + @JsonProperty("protocol") + private String protocol; + + @JsonProperty("hostname") + private String hostname; + + @JsonProperty("port") + private Integer port; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + public FileServerOpenApiVo protocol(String protocol) { + this.protocol = protocol; + return this; + } + + /** + * File server protocol, protocol should be a value as follows: FTP: FTP protocal; SFTP: SFTP protocal; TFTP: TFTP protocal; SCP: SCP protocal. + * @return protocol + */ + @ApiModelProperty(required = true, value = "File server protocol, protocol should be a value as follows: FTP: FTP protocal; SFTP: SFTP protocal; TFTP: TFTP protocal; SCP: SCP protocal.") + @NotNull + + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public FileServerOpenApiVo hostname(String hostname) { + this.hostname = hostname; + return this; + } + + /** + * File server host name or IP. Parameter [filePath] should be 1 - 128 ASCII characters. + * @return hostname + */ + @ApiModelProperty(required = true, value = "File server host name or IP. Parameter [filePath] should be 1 - 128 ASCII characters.") + @NotNull + + + public String getHostname() { + return hostname; + } + + public void setHostname(String hostname) { + this.hostname = hostname; + } + + public FileServerOpenApiVo port(Integer port) { + this.port = port; + return this; + } + + /** + * File server port. The value must be between 1 and 65535. + * @return port + */ + @ApiModelProperty(required = true, value = "File server port. The value must be between 1 and 65535.") + @NotNull + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public FileServerOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * File server access username, if needed in FTP/SFTP/SCP protocol. Parameter [username] should be 1 - 128 ASCII characters. + * @return username + */ + @ApiModelProperty(value = "File server access username, if needed in FTP/SFTP/SCP protocol. Parameter [username] should be 1 - 128 ASCII characters.") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public FileServerOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * File server access password, if needed in FTP/SFTP protocol. Parameter [password] should be 1 - 128 ASCII characters. + * @return password + */ + @ApiModelProperty(value = "File server access password, if needed in FTP/SFTP protocol. Parameter [password] should be 1 - 128 ASCII characters.") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileServerOpenApiVo fileServerOpenApiVo = (FileServerOpenApiVo) o; + return Objects.equals(this.protocol, fileServerOpenApiVo.protocol) && + Objects.equals(this.hostname, fileServerOpenApiVo.hostname) && + Objects.equals(this.port, fileServerOpenApiVo.port) && + Objects.equals(this.username, fileServerOpenApiVo.username) && + Objects.equals(this.password, fileServerOpenApiVo.password); + } + + @Override + public int hashCode() { + return Objects.hash(protocol, hostname, port, username, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileServerOpenApiVo {\n"); + + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerSiteBackupVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerSiteBackupVo.java new file mode 100644 index 0000000..4b16f65 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerSiteBackupVo.java @@ -0,0 +1,140 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * FileServerSiteBackupVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class FileServerSiteBackupVo { + @JsonProperty("serverConfig") + private FileServerOpenApiVo serverConfig; + + @JsonProperty("filePath") + private String filePath; + + @JsonProperty("siteIds") + @Valid + private List siteIds = new ArrayList<>(); + + public FileServerSiteBackupVo serverConfig(FileServerOpenApiVo serverConfig) { + this.serverConfig = serverConfig; + return this; + } + + /** + * Get serverConfig + * @return serverConfig + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public FileServerOpenApiVo getServerConfig() { + return serverConfig; + } + + public void setServerConfig(FileServerOpenApiVo serverConfig) { + this.serverConfig = serverConfig; + } + + public FileServerSiteBackupVo filePath(String filePath) { + this.filePath = filePath; + return this; + } + + /** + * Saving path of directory for all backup config files, example: /backup. Parameter [filePath] should be 1 - 128 ASCII characters. + * @return filePath + */ + @ApiModelProperty(required = true, value = "Saving path of directory for all backup config files, example: /backup. Parameter [filePath] should be 1 - 128 ASCII characters.") + @NotNull + + + public String getFilePath() { + return filePath; + } + + public void setFilePath(String filePath) { + this.filePath = filePath; + } + + public FileServerSiteBackupVo siteIds(List siteIds) { + this.siteIds = siteIds; + return this; + } + + public FileServerSiteBackupVo addSiteIdsItem(String siteIdsItem) { + this.siteIds.add(siteIdsItem); + return this; + } + + /** + * Site ID list to backup, up to 300 entries are allowed for the site ID list. + * @return siteIds + */ + @ApiModelProperty(required = true, value = "Site ID list to backup, up to 300 entries are allowed for the site ID list.") + @NotNull + + + public List getSiteIds() { + return siteIds; + } + + public void setSiteIds(List siteIds) { + this.siteIds = siteIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileServerSiteBackupVo fileServerSiteBackupVo = (FileServerSiteBackupVo) o; + return Objects.equals(this.serverConfig, fileServerSiteBackupVo.serverConfig) && + Objects.equals(this.filePath, fileServerSiteBackupVo.filePath) && + Objects.equals(this.siteIds, fileServerSiteBackupVo.siteIds); + } + + @Override + public int hashCode() { + return Objects.hash(serverConfig, filePath, siteIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileServerSiteBackupVo {\n"); + + sb.append(" serverConfig: ").append(toIndentedString(serverConfig)).append("\n"); + sb.append(" filePath: ").append(toIndentedString(filePath)).append("\n"); + sb.append(" siteIds: ").append(toIndentedString(siteIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerSiteRestoreVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerSiteRestoreVo.java new file mode 100644 index 0000000..1ae8a4a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/FileServerSiteRestoreVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Sites to restore. + */ +@ApiModel(description = "Sites to restore.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class FileServerSiteRestoreVo { + @JsonProperty("filePath") + private String filePath; + + @JsonProperty("siteId") + private String siteId; + + public FileServerSiteRestoreVo filePath(String filePath) { + this.filePath = filePath; + return this; + } + + /** + * Full path of Backup file, example: /backup/omada_backup.cfg. Parameter [filePath] should be 1 - 128 ASCII characters. + * @return filePath + */ + @ApiModelProperty(required = true, value = "Full path of Backup file, example: /backup/omada_backup.cfg. Parameter [filePath] should be 1 - 128 ASCII characters.") + @NotNull + + + public String getFilePath() { + return filePath; + } + + public void setFilePath(String filePath) { + this.filePath = filePath; + } + + public FileServerSiteRestoreVo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID to restore. + * @return siteId + */ + @ApiModelProperty(required = true, value = "Site ID to restore.") + @NotNull + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileServerSiteRestoreVo fileServerSiteRestoreVo = (FileServerSiteRestoreVo) o; + return Objects.equals(this.filePath, fileServerSiteRestoreVo.filePath) && + Objects.equals(this.siteId, fileServerSiteRestoreVo.siteId); + } + + @Override + public int hashCode() { + return Objects.hash(filePath, siteId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileServerSiteRestoreVo {\n"); + + sb.append(" filePath: ").append(toIndentedString(filePath)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/HistoryRetentionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/HistoryRetentionOpenApiVo.java new file mode 100644 index 0000000..f2e26bb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/HistoryRetentionOpenApiVo.java @@ -0,0 +1,351 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * HistoryRetentionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class HistoryRetentionOpenApiVo { + @JsonProperty("override") + private Boolean override; + + @JsonProperty("clientsDataEnable") + private Boolean clientsDataEnable; + + @JsonProperty("knownClient") + private Integer knownClient; + + @JsonProperty("clientHistory") + private Integer clientHistory; + + @JsonProperty("fiveMin") + private Integer fiveMin; + + @JsonProperty("hourly") + private Integer hourly; + + @JsonProperty("daily") + private Integer daily; + + @JsonProperty("weekly") + private Integer weekly; + + @JsonProperty("portalAuth") + private Integer portalAuth; + + @JsonProperty("log") + private Integer log; + + @JsonProperty("rogueAp") + private Integer rogueAp; + + @JsonProperty("widsData") + private Integer widsData; + + public HistoryRetentionOpenApiVo override(Boolean override) { + this.override = override; + return this; + } + + /** + * Whether the customer overrides the retention configuration of MSP. + * @return override + */ + @ApiModelProperty(value = "Whether the customer overrides the retention configuration of MSP.") + + + public Boolean getOverride() { + return override; + } + + public void setOverride(Boolean override) { + this.override = override; + } + + public HistoryRetentionOpenApiVo clientsDataEnable(Boolean clientsDataEnable) { + this.clientsDataEnable = clientsDataEnable; + return this; + } + + /** + * Whether the clients' history data is recorded. + * @return clientsDataEnable + */ + @ApiModelProperty(value = "Whether the clients' history data is recorded.") + + + public Boolean getClientsDataEnable() { + return clientsDataEnable; + } + + public void setClientsDataEnable(Boolean clientsDataEnable) { + this.clientsDataEnable = clientsDataEnable; + } + + public HistoryRetentionOpenApiVo knownClient(Integer knownClient) { + this.knownClient = knownClient; + return this; + } + + /** + * Retention configuration of known client Data, knownClient should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 1: 1day; 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return knownClient + */ + @ApiModelProperty(value = "Retention configuration of known client Data, knownClient should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 1: 1day; 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getKnownClient() { + return knownClient; + } + + public void setKnownClient(Integer knownClient) { + this.knownClient = knownClient; + } + + public HistoryRetentionOpenApiVo clientHistory(Integer clientHistory) { + this.clientHistory = clientHistory; + return this; + } + + /** + * Retention configuration of client History(only effective in local controller), clientHistory should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return clientHistory + */ + @ApiModelProperty(value = "Retention configuration of client History(only effective in local controller), clientHistory should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getClientHistory() { + return clientHistory; + } + + public void setClientHistory(Integer clientHistory) { + this.clientHistory = clientHistory; + } + + public HistoryRetentionOpenApiVo fiveMin(Integer fiveMin) { + this.fiveMin = fiveMin; + return this; + } + + /** + * Retention configuration of Time Series with 5 Minutes Granularity, fiveMin should be a value as follows: 2: 2days. + * @return fiveMin + */ + @ApiModelProperty(value = "Retention configuration of Time Series with 5 Minutes Granularity, fiveMin should be a value as follows: 2: 2days.") + + + public Integer getFiveMin() { + return fiveMin; + } + + public void setFiveMin(Integer fiveMin) { + this.fiveMin = fiveMin; + } + + public HistoryRetentionOpenApiVo hourly(Integer hourly) { + this.hourly = hourly; + return this; + } + + /** + * Retention configuration of time series with hourly granularity, hourly should be a value as follows: 7: 7days. + * @return hourly + */ + @ApiModelProperty(value = "Retention configuration of time series with hourly granularity, hourly should be a value as follows: 7: 7days.") + + + public Integer getHourly() { + return hourly; + } + + public void setHourly(Integer hourly) { + this.hourly = hourly; + } + + public HistoryRetentionOpenApiVo daily(Integer daily) { + this.daily = daily; + return this; + } + + /** + * Retention configuration of time series with daily granularity, daily should be a value as follows: 90: 90days; 180: 180days; 365: 365days(Fixed value in Cloud Based Controller as 365 days). + * @return daily + */ + @ApiModelProperty(value = "Retention configuration of time series with daily granularity, daily should be a value as follows: 90: 90days; 180: 180days; 365: 365days(Fixed value in Cloud Based Controller as 365 days).") + + + public Integer getDaily() { + return daily; + } + + public void setDaily(Integer daily) { + this.daily = daily; + } + + public HistoryRetentionOpenApiVo weekly(Integer weekly) { + this.weekly = weekly; + return this; + } + + /** + * Retention configuration of time series with weekly granularity, weekly should be a value as follows: 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return weekly + */ + @ApiModelProperty(value = "Retention configuration of time series with weekly granularity, weekly should be a value as follows: 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getWeekly() { + return weekly; + } + + public void setWeekly(Integer weekly) { + this.weekly = weekly; + } + + public HistoryRetentionOpenApiVo portalAuth(Integer portalAuth) { + this.portalAuth = portalAuth; + return this; + } + + /** + * Retention configuration of portal authentication records, portalAuth should be a value as follows: 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return portalAuth + */ + @ApiModelProperty(value = "Retention configuration of portal authentication records, portalAuth should be a value as follows: 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getPortalAuth() { + return portalAuth; + } + + public void setPortalAuth(Integer portalAuth) { + this.portalAuth = portalAuth; + } + + public HistoryRetentionOpenApiVo log(Integer log) { + this.log = log; + return this; + } + + /** + * Retention Configuration of log data(only effective in local controller), log should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return log + */ + @ApiModelProperty(value = "Retention Configuration of log data(only effective in local controller), log should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getLog() { + return log; + } + + public void setLog(Integer log) { + this.log = log; + } + + public HistoryRetentionOpenApiVo rogueAp(Integer rogueAp) { + this.rogueAp = rogueAp; + return this; + } + + /** + * Retention Configuration of rogue ap data, rogueAp should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return rogueAp + */ + @ApiModelProperty(value = "Retention Configuration of rogue ap data, rogueAp should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getRogueAp() { + return rogueAp; + } + + public void setRogueAp(Integer rogueAp) { + this.rogueAp = rogueAp; + } + + public HistoryRetentionOpenApiVo widsData(Integer widsData) { + this.widsData = widsData; + return this; + } + + /** + * Retention Configuration of wids data(only effective in local pro controller), widsData should be a value as follows: 0: All Time(Windows, Linux Only); 90: 90days; 180: 180days; 365: 365days. + * @return widsData + */ + @ApiModelProperty(value = "Retention Configuration of wids data(only effective in local pro controller), widsData should be a value as follows: 0: All Time(Windows, Linux Only); 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getWidsData() { + return widsData; + } + + public void setWidsData(Integer widsData) { + this.widsData = widsData; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HistoryRetentionOpenApiVo historyRetentionOpenApiVo = (HistoryRetentionOpenApiVo) o; + return Objects.equals(this.override, historyRetentionOpenApiVo.override) && + Objects.equals(this.clientsDataEnable, historyRetentionOpenApiVo.clientsDataEnable) && + Objects.equals(this.knownClient, historyRetentionOpenApiVo.knownClient) && + Objects.equals(this.clientHistory, historyRetentionOpenApiVo.clientHistory) && + Objects.equals(this.fiveMin, historyRetentionOpenApiVo.fiveMin) && + Objects.equals(this.hourly, historyRetentionOpenApiVo.hourly) && + Objects.equals(this.daily, historyRetentionOpenApiVo.daily) && + Objects.equals(this.weekly, historyRetentionOpenApiVo.weekly) && + Objects.equals(this.portalAuth, historyRetentionOpenApiVo.portalAuth) && + Objects.equals(this.log, historyRetentionOpenApiVo.log) && + Objects.equals(this.rogueAp, historyRetentionOpenApiVo.rogueAp) && + Objects.equals(this.widsData, historyRetentionOpenApiVo.widsData); + } + + @Override + public int hashCode() { + return Objects.hash(override, clientsDataEnable, knownClient, clientHistory, fiveMin, hourly, daily, weekly, portalAuth, log, rogueAp, widsData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HistoryRetentionOpenApiVo {\n"); + + sb.append(" override: ").append(toIndentedString(override)).append("\n"); + sb.append(" clientsDataEnable: ").append(toIndentedString(clientsDataEnable)).append("\n"); + sb.append(" knownClient: ").append(toIndentedString(knownClient)).append("\n"); + sb.append(" clientHistory: ").append(toIndentedString(clientHistory)).append("\n"); + sb.append(" fiveMin: ").append(toIndentedString(fiveMin)).append("\n"); + sb.append(" hourly: ").append(toIndentedString(hourly)).append("\n"); + sb.append(" daily: ").append(toIndentedString(daily)).append("\n"); + sb.append(" weekly: ").append(toIndentedString(weekly)).append("\n"); + sb.append(" portalAuth: ").append(toIndentedString(portalAuth)).append("\n"); + sb.append(" log: ").append(toIndentedString(log)).append("\n"); + sb.append(" rogueAp: ").append(toIndentedString(rogueAp)).append("\n"); + sb.append(" widsData: ").append(toIndentedString(widsData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/ModifyHistoryRetentionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/ModifyHistoryRetentionOpenApiVo.java new file mode 100644 index 0000000..c7085a9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/ModifyHistoryRetentionOpenApiVo.java @@ -0,0 +1,303 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ModifyHistoryRetentionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class ModifyHistoryRetentionOpenApiVo { + @JsonProperty("override") + private Boolean override; + + @JsonProperty("clientsDataEnable") + private Boolean clientsDataEnable; + + @JsonProperty("knownClient") + private Integer knownClient; + + @JsonProperty("clientHistory") + private Integer clientHistory; + + @JsonProperty("daily") + private Integer daily; + + @JsonProperty("weekly") + private Integer weekly; + + @JsonProperty("portalAuth") + private Integer portalAuth; + + @JsonProperty("log") + private Integer log; + + @JsonProperty("rogueAp") + private Integer rogueAp; + + @JsonProperty("widsData") + private Integer widsData; + + public ModifyHistoryRetentionOpenApiVo override(Boolean override) { + this.override = override; + return this; + } + + /** + * Whether the customer overrides the retention configuration of MSP. This configuration applies to the customer in MSP mode only. If true, customer retention configuration will be used (excluding daily, clientHistory, log and widsData). + * @return override + */ + @ApiModelProperty(value = "Whether the customer overrides the retention configuration of MSP. This configuration applies to the customer in MSP mode only. If true, customer retention configuration will be used (excluding daily, clientHistory, log and widsData).") + + + public Boolean getOverride() { + return override; + } + + public void setOverride(Boolean override) { + this.override = override; + } + + public ModifyHistoryRetentionOpenApiVo clientsDataEnable(Boolean clientsDataEnable) { + this.clientsDataEnable = clientsDataEnable; + return this; + } + + /** + * Whether the clients' history data is recorded. + * @return clientsDataEnable + */ + @ApiModelProperty(required = true, value = "Whether the clients' history data is recorded.") + @NotNull + + + public Boolean getClientsDataEnable() { + return clientsDataEnable; + } + + public void setClientsDataEnable(Boolean clientsDataEnable) { + this.clientsDataEnable = clientsDataEnable; + } + + public ModifyHistoryRetentionOpenApiVo knownClient(Integer knownClient) { + this.knownClient = knownClient; + return this; + } + + /** + * Retention configuration of known client Data, knownClient should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 1: 1day; 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return knownClient + */ + @ApiModelProperty(value = "Retention configuration of known client Data, knownClient should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 1: 1day; 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getKnownClient() { + return knownClient; + } + + public void setKnownClient(Integer knownClient) { + this.knownClient = knownClient; + } + + public ModifyHistoryRetentionOpenApiVo clientHistory(Integer clientHistory) { + this.clientHistory = clientHistory; + return this; + } + + /** + * Retention configuration of client History(only effective in local controller), clientHistory should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return clientHistory + */ + @ApiModelProperty(value = "Retention configuration of client History(only effective in local controller), clientHistory should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getClientHistory() { + return clientHistory; + } + + public void setClientHistory(Integer clientHistory) { + this.clientHistory = clientHistory; + } + + public ModifyHistoryRetentionOpenApiVo daily(Integer daily) { + this.daily = daily; + return this; + } + + /** + * Retention configuration of time series with daily granularity, daily should be a value as follows: 90: 90days; 180: 180days; 365: 365days(Fixed value in Cloud Based Controller as 365 days). + * @return daily + */ + @ApiModelProperty(value = "Retention configuration of time series with daily granularity, daily should be a value as follows: 90: 90days; 180: 180days; 365: 365days(Fixed value in Cloud Based Controller as 365 days).") + + + public Integer getDaily() { + return daily; + } + + public void setDaily(Integer daily) { + this.daily = daily; + } + + public ModifyHistoryRetentionOpenApiVo weekly(Integer weekly) { + this.weekly = weekly; + return this; + } + + /** + * Retention configuration of time series with weekly granularity, weekly should be a value as follows: 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return weekly + */ + @ApiModelProperty(value = "Retention configuration of time series with weekly granularity, weekly should be a value as follows: 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getWeekly() { + return weekly; + } + + public void setWeekly(Integer weekly) { + this.weekly = weekly; + } + + public ModifyHistoryRetentionOpenApiVo portalAuth(Integer portalAuth) { + this.portalAuth = portalAuth; + return this; + } + + /** + * Retention configuration of portal authentication records, portalAuth should be a value as follows: 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return portalAuth + */ + @ApiModelProperty(value = "Retention configuration of portal authentication records, portalAuth should be a value as follows: 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getPortalAuth() { + return portalAuth; + } + + public void setPortalAuth(Integer portalAuth) { + this.portalAuth = portalAuth; + } + + public ModifyHistoryRetentionOpenApiVo log(Integer log) { + this.log = log; + return this; + } + + /** + * Retention Configuration of log data(only effective in local controller), log should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return log + */ + @ApiModelProperty(value = "Retention Configuration of log data(only effective in local controller), log should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getLog() { + return log; + } + + public void setLog(Integer log) { + this.log = log; + } + + public ModifyHistoryRetentionOpenApiVo rogueAp(Integer rogueAp) { + this.rogueAp = rogueAp; + return this; + } + + /** + * Retention Configuration of rogue ap data, rogueAp should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return rogueAp + */ + @ApiModelProperty(value = "Retention Configuration of rogue ap data, rogueAp should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getRogueAp() { + return rogueAp; + } + + public void setRogueAp(Integer rogueAp) { + this.rogueAp = rogueAp; + } + + public ModifyHistoryRetentionOpenApiVo widsData(Integer widsData) { + this.widsData = widsData; + return this; + } + + /** + * Retention Configuration of wids data(only effective in local pro controller), widsData should be a value as follows: 0: All Time(Windows, Linux Only); 90: 90days; 180: 180days; 365: 365days. + * @return widsData + */ + @ApiModelProperty(value = "Retention Configuration of wids data(only effective in local pro controller), widsData should be a value as follows: 0: All Time(Windows, Linux Only); 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getWidsData() { + return widsData; + } + + public void setWidsData(Integer widsData) { + this.widsData = widsData; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyHistoryRetentionOpenApiVo modifyHistoryRetentionOpenApiVo = (ModifyHistoryRetentionOpenApiVo) o; + return Objects.equals(this.override, modifyHistoryRetentionOpenApiVo.override) && + Objects.equals(this.clientsDataEnable, modifyHistoryRetentionOpenApiVo.clientsDataEnable) && + Objects.equals(this.knownClient, modifyHistoryRetentionOpenApiVo.knownClient) && + Objects.equals(this.clientHistory, modifyHistoryRetentionOpenApiVo.clientHistory) && + Objects.equals(this.daily, modifyHistoryRetentionOpenApiVo.daily) && + Objects.equals(this.weekly, modifyHistoryRetentionOpenApiVo.weekly) && + Objects.equals(this.portalAuth, modifyHistoryRetentionOpenApiVo.portalAuth) && + Objects.equals(this.log, modifyHistoryRetentionOpenApiVo.log) && + Objects.equals(this.rogueAp, modifyHistoryRetentionOpenApiVo.rogueAp) && + Objects.equals(this.widsData, modifyHistoryRetentionOpenApiVo.widsData); + } + + @Override + public int hashCode() { + return Objects.hash(override, clientsDataEnable, knownClient, clientHistory, daily, weekly, portalAuth, log, rogueAp, widsData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyHistoryRetentionOpenApiVo {\n"); + + sb.append(" override: ").append(toIndentedString(override)).append("\n"); + sb.append(" clientsDataEnable: ").append(toIndentedString(clientsDataEnable)).append("\n"); + sb.append(" knownClient: ").append(toIndentedString(knownClient)).append("\n"); + sb.append(" clientHistory: ").append(toIndentedString(clientHistory)).append("\n"); + sb.append(" daily: ").append(toIndentedString(daily)).append("\n"); + sb.append(" weekly: ").append(toIndentedString(weekly)).append("\n"); + sb.append(" portalAuth: ").append(toIndentedString(portalAuth)).append("\n"); + sb.append(" log: ").append(toIndentedString(log)).append("\n"); + sb.append(" rogueAp: ").append(toIndentedString(rogueAp)).append("\n"); + sb.append(" widsData: ").append(toIndentedString(widsData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/OperationResponseHistoryRetentionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/OperationResponseHistoryRetentionOpenApiVo.java new file mode 100644 index 0000000..fb736e6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/OperationResponseHistoryRetentionOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseHistoryRetentionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class OperationResponseHistoryRetentionOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private HistoryRetentionOpenApiVo result; + + public OperationResponseHistoryRetentionOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseHistoryRetentionOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseHistoryRetentionOpenApiVo result(HistoryRetentionOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public HistoryRetentionOpenApiVo getResult() { + return result; + } + + public void setResult(HistoryRetentionOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseHistoryRetentionOpenApiVo operationResponseHistoryRetentionOpenApiVo = (OperationResponseHistoryRetentionOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseHistoryRetentionOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseHistoryRetentionOpenApiVo.msg) && + Objects.equals(this.result, operationResponseHistoryRetentionOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseHistoryRetentionOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/OperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/OperationResponseWithoutResult.java new file mode 100644 index 0000000..b3186bf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/OperationResponseWithoutResult.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class OperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public OperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseWithoutResult.msg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/RestoreResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/RestoreResultVo.java new file mode 100644 index 0000000..7282cd5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/RestoreResultVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * RestoreResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class RestoreResultVo { + @JsonProperty("status") + private Integer status; + + public RestoreResultVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: restore finished; 1: restore prepared; 2: restore running; 3: restore failed + * @return status + */ + @ApiModelProperty(value = "Status should be a value as follows: 0: restore finished; 1: restore prepared; 2: restore running; 3: restore failed") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RestoreResultVo restoreResultVo = (RestoreResultVo) o; + return Objects.equals(this.status, restoreResultVo.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RestoreResultVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfGlobalBackupVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfGlobalBackupVo.java new file mode 100644 index 0000000..93a4061 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfGlobalBackupVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * SelfGlobalBackupVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class SelfGlobalBackupVo { + @JsonProperty("retainUser") + private Boolean retainUser; + + public SelfGlobalBackupVo retainUser(Boolean retainUser) { + this.retainUser = retainUser; + return this; + } + + /** + * Whether saving user info. + * @return retainUser + */ + @ApiModelProperty(required = true, value = "Whether saving user info.") + @NotNull + + + public Boolean getRetainUser() { + return retainUser; + } + + public void setRetainUser(Boolean retainUser) { + this.retainUser = retainUser; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SelfGlobalBackupVo selfGlobalBackupVo = (SelfGlobalBackupVo) o; + return Objects.equals(this.retainUser, selfGlobalBackupVo.retainUser); + } + + @Override + public int hashCode() { + return Objects.hash(retainUser); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SelfGlobalBackupVo {\n"); + + sb.append(" retainUser: ").append(toIndentedString(retainUser)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfGlobalRestoreVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfGlobalRestoreVo.java new file mode 100644 index 0000000..cf8a9f5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfGlobalRestoreVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * SelfGlobalRestoreVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class SelfGlobalRestoreVo { + @JsonProperty("fileName") + private String fileName; + + public SelfGlobalRestoreVo fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Site backup file name. Parameter [fileName] should be 1 - 128 ASCII characters. + * @return fileName + */ + @ApiModelProperty(required = true, value = "Site backup file name. Parameter [fileName] should be 1 - 128 ASCII characters.") + @NotNull + + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SelfGlobalRestoreVo selfGlobalRestoreVo = (SelfGlobalRestoreVo) o; + return Objects.equals(this.fileName, selfGlobalRestoreVo.fileName); + } + + @Override + public int hashCode() { + return Objects.hash(fileName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SelfGlobalRestoreVo {\n"); + + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfSiteRestoreVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfSiteRestoreVo.java new file mode 100644 index 0000000..5e8749f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/maintenance/model/SelfSiteRestoreVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.maintenance.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Site restore info list to restore. Up to 300 entries are allowed for the site restore info list. + */ +@ApiModel(description = "Site restore info list to restore. Up to 300 entries are allowed for the site restore info list.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:40:12.680+08:00[Asia/Shanghai]") + +public class SelfSiteRestoreVo { + @JsonProperty("fileName") + private String fileName; + + @JsonProperty("siteId") + private String siteId; + + public SelfSiteRestoreVo fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Site backup file name. Parameter [fileName] should be 1 - 128 ASCII characters. + * @return fileName + */ + @ApiModelProperty(required = true, value = "Site backup file name. Parameter [fileName] should be 1 - 128 ASCII characters.") + @NotNull + + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public SelfSiteRestoreVo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID to restore + * @return siteId + */ + @ApiModelProperty(required = true, value = "Site ID to restore") + @NotNull + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SelfSiteRestoreVo selfSiteRestoreVo = (SelfSiteRestoreVo) o; + return Objects.equals(this.fileName, selfSiteRestoreVo.fileName) && + Objects.equals(this.siteId, selfSiteRestoreVo.siteId); + } + + @Override + public int hashCode() { + return Objects.hash(fileName, siteId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SelfSiteRestoreVo {\n"); + + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/OmadaDashboardApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/OmadaDashboardApi.java new file mode 100644 index 0000000..997ee13 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/OmadaDashboardApi.java @@ -0,0 +1,468 @@ +package org.wfc.omada.api.monitor; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.monitor.model.BatchEditTabs; +import org.wfc.omada.api.monitor.model.CreateTabOpenApiVo; +import org.wfc.omada.api.monitor.model.OperationResponseApChannelStats; +import org.wfc.omada.api.monitor.model.OperationResponseApInterferences; +import org.wfc.omada.api.monitor.model.OperationResponseGetDashboardOverview; +import org.wfc.omada.api.monitor.model.OperationResponseListActiveDevice; +import org.wfc.omada.api.monitor.model.OperationResponseListCpuUsage; +import org.wfc.omada.api.monitor.model.OperationResponseListDashboardVpnStats; +import org.wfc.omada.api.monitor.model.OperationResponseListIpsecVpnStats; +import org.wfc.omada.api.monitor.model.OperationResponseListIspLoad; +import org.wfc.omada.api.monitor.model.OperationResponseListListTabs; +import org.wfc.omada.api.monitor.model.OperationResponseListMemUsage; +import org.wfc.omada.api.monitor.model.OperationResponseListPoeUsage; +import org.wfc.omada.api.monitor.model.OperationResponseRetryDropRate; +import org.wfc.omada.api.monitor.model.OperationResponseSwitchSummary; +import org.wfc.omada.api.monitor.model.OperationResponseTrafficActivities; +import org.wfc.omada.api.monitor.model.OperationResponseTrafficDistribution; +import org.wfc.omada.api.monitor.model.OperationResponseWifiSummary; +import org.wfc.omada.api.monitor.model.OperationResponseWithoutResult; +import org.wfc.omada.api.monitor.model.UpdateTabOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:02.841+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaDashboard", description = "the OmadaDashboard API") +@FeignClient(name="OmadaDashboardApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaDashboardApi { + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/dashboard/multi-tabs/config : Batch set tab config + * Batch set tab configurations, add or delete tabs.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34700 - The dashboard page does not exist in current site.<br/>-34701 - This tab does not exist in the dashboard.<br/>-34702 - This tab name already exists.<br/>-34704 - Non-overall tabs do not allow editing system cards. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param batchEditTabs (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch set tab config", nickname = "batchConfigTab", notes = "Batch set tab configurations, add or delete tabs.

The interface requires one of the permissions:
Site Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34700 - The dashboard page does not exist in current site.
-34701 - This tab does not exist in the dashboard.
-34702 - This tab name already exists.
-34704 - Non-overall tabs do not allow editing system cards.", response = OperationResponseWithoutResult.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/multi-tabs/config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity batchConfigTab(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchEditTabs batchEditTabs); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/dashboard/tabs : Create new tab + * Create tab.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34700 - The dashboard page does not exist in current site.<br/>-34702 - This tab name already exists.<br/>-34703 - The number of tabs has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createTabOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new tab", nickname = "createTab", notes = "Create tab.

The interface requires one of the permissions:
Site Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34700 - The dashboard page does not exist in current site.
-34702 - This tab name already exists.
-34703 - The number of tabs has reached the limit.", response = OperationResponseWithoutResult.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/tabs", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createTab(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateTabOpenApiVo createTabOpenApiVo); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/most-active-eaps : Get the most active eap list + * Obtain the top 5 APs with the highest device traffic within the time range (in Bytes)..<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param start Start timestamp, in seconds, such as 1682000000 (required) + * @param end End timestamp, in seconds, such as 1682000000 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the most active eap list", nickname = "getActiveAps", notes = "Obtain the top 5 APs with the highest device traffic within the time range (in Bytes)..

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseListActiveDevice.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListActiveDevice.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/most-active-eaps", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getActiveAps(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "start", required = true) Long start,@NotNull @ApiParam(value = "End timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "end", required = true) Long end); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/most-active-switches : Get most active switch list + * Obtain the top 5 switches with the highest device traffic within the time range (in Bytes)<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param start Start timestamp, in seconds, such as 1682000000 (required) + * @param end End timestamp, in seconds, such as 1682000000 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get most active switch list", nickname = "getActiveSwitches", notes = "Obtain the top 5 switches with the highest device traffic within the time range (in Bytes)

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseListActiveDevice.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListActiveDevice.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/most-active-switches", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getActiveSwitches(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "start", required = true) Long start,@NotNull @ApiParam(value = "End timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "end", required = true) Long end); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/channels : Get channel distribution and usage + * Get channel distribution and usage.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get channel distribution and usage", nickname = "getChannels", notes = "Get channel distribution and usage.

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseApChannelStats.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApChannelStats.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/channels", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getChannels(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/lpset-tunnel-stats : Get grid dashboard lpsec tunnel statistic list + * Obtain the status, IP address, and other information of the established IPsec VPN connection<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get grid dashboard lpsec tunnel statistic list", nickname = "getGridDashboardIpsecTunnelStats", notes = "Obtain the status, IP address, and other information of the established IPsec VPN connection

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseListIpsecVpnStats.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListIpsecVpnStats.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/lpset-tunnel-stats", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridDashboardIpsecTunnelStats(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/open-vpn-tunnel-stats : Get grid dashboard open vpn tunnel statistic list + * Obtain the status, traffic, and other information of the established open VPN connection<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param type type: 0:Server, 1:Client (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get grid dashboard open vpn tunnel statistic list", nickname = "getGridDashboardOpenVpnTunnelStats", notes = "Obtain the status, traffic, and other information of the established open VPN connection

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseListDashboardVpnStats.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListDashboardVpnStats.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/open-vpn-tunnel-stats", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridDashboardOpenVpnTunnelStats(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "type: 0:Server, 1:Client", required = true) @Valid @RequestParam(value = "type", required = true) Integer type); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/vpn-tunnel-stats : Get grid dashboard tunnel statistic list + * Get the status, IP address, and other information of the established dashboard tunnel statistic VPN connection<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param type Type should be a value as follows: 0:Server,1:Client (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get grid dashboard tunnel statistic list", nickname = "getGridDashboardTunnelStats", notes = "Get the status, IP address, and other information of the established dashboard tunnel statistic VPN connection

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseListDashboardVpnStats.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListDashboardVpnStats.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/vpn-tunnel-stats", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridDashboardTunnelStats(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Type should be a value as follows: 0:Server,1:Client", required = true) @Valid @RequestParam(value = "type", required = true) Integer type); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/top-interference : Get top interference + * Obtain the 5 APs with the highest interference intensity in different frequency bands within the time range<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get top interference", nickname = "getInterference", notes = "Obtain the 5 APs with the highest interference intensity in different frequency bands within the time range

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseApInterferences.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseApInterferences.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/top-interference", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getInterference(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/isp-load : Get isp load info + * Obtain IPS load data for the gateway within the time range.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param start Start timestamp, in seconds, such as 1682000000 (required) + * @param end End timestamp, in seconds, such as 1682000000 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get isp load info", nickname = "getIspLoad", notes = "Obtain IPS load data for the gateway within the time range.

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseListIspLoad.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListIspLoad.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/isp-load", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getIspLoad(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "start", required = true) Long start,@NotNull @ApiParam(value = "End timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "end", required = true) Long end); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/overview-diagram : Get site overview diagram info + * Get site overview diagram info.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site overview diagram info", nickname = "getOverview", notes = "Get site overview diagram info.

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseGetDashboardOverview.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGetDashboardOverview.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/overview-diagram", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getOverview(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/poe-usage : Get poe usage + * Obtain the PoE usage of the switch within the time range<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get poe usage", nickname = "getPoeUsage", notes = "Obtain the PoE usage of the switch within the time range

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseListPoeUsage.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListPoeUsage.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/poe-usage", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPoeUsage(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/retry-dropped-rate : Get retried rate and dropped rate + * Get retried rate and dropped rate.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param start Start timestamp, in seconds, such as 1682000000 (required) + * @param end End timestamp, in seconds, such as 1682000000 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get retried rate and dropped rate", nickname = "getRetryAndDroppedRate", notes = "Get retried rate and dropped rate.

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseRetryDropRate.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseRetryDropRate.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/retry-dropped-rate", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRetryAndDroppedRate(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "start", required = true) Long start,@NotNull @ApiParam(value = "End timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "end", required = true) Long end); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/switch-summary : Get switch summary + * Get switch summary<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param start Start timestamp, in seconds, such as 1682000000 (required) + * @param end End timestamp, in seconds, such as 1682000000 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get switch summary", nickname = "getSwitchSummary", notes = "Get switch summary

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseSwitchSummary.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSwitchSummary.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/switch-summary", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSwitchSummary(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "start", required = true) Long start,@NotNull @ApiParam(value = "End timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "end", required = true) Long end); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/top-device-cpu-usage : Get top device cpu usage + * Obtain the top 5 CPU usage devices within the time range<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param start Start timestamp, in seconds, such as 1682000000 (required) + * @param end End timestamp, in seconds, such as 1682000000 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get top device cpu usage", nickname = "getTopCpuUsageWithTimeRange", notes = "Obtain the top 5 CPU usage devices within the time range

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseListCpuUsage.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListCpuUsage.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/top-device-cpu-usage", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getTopCpuUsageWithTimeRange(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "start", required = true) Long start,@NotNull @ApiParam(value = "End timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "end", required = true) Long end); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/top-device-memory-usage : Get top device memory usage + * Obtain the top 5 memory usage devices within the time range<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param start Start timestamp, in seconds, such as 1682000000 (required) + * @param end End timestamp, in seconds, such as 1682000000 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get top device memory usage", nickname = "getTopMemoryUsageWithTimeRange", notes = "Obtain the top 5 memory usage devices within the time range

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseListMemUsage.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListMemUsage.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/top-device-memory-usage", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getTopMemoryUsageWithTimeRange(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "start", required = true) Long start,@NotNull @ApiParam(value = "End timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "end", required = true) Long end); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/traffic-activities : Get traffic activity + * Obtain AP and Switch traffic Activities within the time range<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param start Start timestamp, in seconds, such as 1682000000 (required) + * @param end End timestamp, in seconds, such as 1682000000 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get traffic activity", nickname = "getTrafficActivities", notes = "Obtain AP and Switch traffic Activities within the time range

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseTrafficActivities.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseTrafficActivities.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/traffic-activities", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getTrafficActivities(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "start", required = true) Long start,@NotNull @ApiParam(value = "End timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "end", required = true) Long end); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/traffic-distribution : Get traffic distribution + * Obtain wired/wireless traffic distribution data within the time range<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param start Start timestamp, in seconds, such as 1682000000 (required) + * @param end End timestamp, in seconds, such as 1682000000 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get traffic distribution", nickname = "getTrafficDistribution", notes = "Obtain wired/wireless traffic distribution data within the time range

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseTrafficDistribution.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseTrafficDistribution.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/traffic-distribution", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getTrafficDistribution(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "start", required = true) Long start,@NotNull @ApiParam(value = "End timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "end", required = true) Long end); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/wifi-summary : Get wifi summary + * Get wifi summary.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param start Start timestamp, in seconds, such as 1682000000 (required) + * @param end End timestamp, in seconds, such as 1682000000 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get wifi summary", nickname = "getWifiSummary", notes = "Get wifi summary.

The interface requires one of the permissions:
Site Dashboard Manager View Only", response = OperationResponseWifiSummary.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWifiSummary.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/wifi-summary", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWifiSummary(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "start", required = true) Long start,@NotNull @ApiParam(value = "End timestamp, in seconds, such as 1682000000", required = true) @Valid @RequestParam(value = "end", required = true) Long end); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/tabs : Get tab list + * Get tab list.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34700 - The dashboard page does not exist in current site. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get tab list", nickname = "listAllTabs", notes = "Get tab list.

The interface requires one of the permissions:
Site Dashboard Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34700 - The dashboard page does not exist in current site.", response = OperationResponseListListTabs.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListListTabs.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/tabs", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity listAllTabs(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dashboard/without-overall-tabs : Get tab without overall tab list + * Get tabs without Overall Tab.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34700 - The dashboard page does not exist in current site. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get tab without overall tab list", nickname = "listTabs", notes = "Get tabs without Overall Tab.

The interface requires one of the permissions:
Site Dashboard Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34700 - The dashboard page does not exist in current site.", response = OperationResponseListListTabs.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListListTabs.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/without-overall-tabs", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity listTabs(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/dashboard/tabs/{tabId} : Delete an existing tab + * Delete an existing tab.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34700 - The dashboard page does not exist in current site.<br/>-34705 - Overall tab not allowed to be deleted. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param tabId Tab ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing tab", nickname = "removeTab", notes = "Delete an existing tab.

The interface requires one of the permissions:
Site Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34700 - The dashboard page does not exist in current site.
-34705 - Overall tab not allowed to be deleted.", response = OperationResponseWithoutResult.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/tabs/{tabId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity removeTab(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Tab ID",required=true) @PathVariable("tabId") String tabId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/dashboard/tabs/{tabId} : Modify an existing tab + * Modify an existing tab.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34700 - The dashboard page does not exist in current site.<br/>-34701 - This tab does not exist in the dashboard.<br/>-34702 - This tab name already exists.<br/>-34704 - Non-overall tabs do not allow editing system cards. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param tabId Tab ID (required) + * @param updateTabOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing tab", nickname = "updateTab", notes = "Modify an existing tab.

The interface requires one of the permissions:
Site Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34700 - The dashboard page does not exist in current site.
-34701 - This tab does not exist in the dashboard.
-34702 - This tab name already exists.
-34704 - Non-overall tabs do not allow editing system cards.", response = OperationResponseWithoutResult.class, tags={ "Omada/Dashboard","Dashboard", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dashboard/tabs/{tabId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateTab(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Tab ID",required=true) @PathVariable("tabId") String tabId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateTabOpenApiVo updateTabOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ActiveDevice.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ActiveDevice.java new file mode 100644 index 0000000..f488521 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ActiveDevice.java @@ -0,0 +1,201 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ActiveDevice + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class ActiveDevice { + @JsonProperty("status") + private Integer status; + + @JsonProperty("name") + private String name; + + @JsonProperty("traffic") + private Double traffic; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + public ActiveDevice status(Integer status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: Connected; 1: Disconnected. + * @return status + */ + @ApiModelProperty(value = "Status should be a value as follows: 0: Connected; 1: Disconnected.") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public ActiveDevice name(String name) { + this.name = name; + return this; + } + + /** + * Device name + * @return name + */ + @ApiModelProperty(value = "Device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ActiveDevice traffic(Double traffic) { + this.traffic = traffic; + return this; + } + + /** + * Traffic measured in GB + * @return traffic + */ + @ApiModelProperty(value = "Traffic measured in GB") + + + public Double getTraffic() { + return traffic; + } + + public void setTraffic(Double traffic) { + this.traffic = traffic; + } + + public ActiveDevice mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC address, linked to the device details page + * @return mac + */ + @ApiModelProperty(value = "Device MAC address, linked to the device details page") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public ActiveDevice model(String model) { + this.model = model; + return this; + } + + /** + * Device model, such as EAP620 HD + * @return model + */ + @ApiModelProperty(value = "Device model, such as EAP620 HD") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public ActiveDevice modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Model version, such as 3.0 + * @return modelVersion + */ + @ApiModelProperty(value = "Model version, such as 3.0") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ActiveDevice activeDevice = (ActiveDevice) o; + return Objects.equals(this.status, activeDevice.status) && + Objects.equals(this.name, activeDevice.name) && + Objects.equals(this.traffic, activeDevice.traffic) && + Objects.equals(this.mac, activeDevice.mac) && + Objects.equals(this.model, activeDevice.model) && + Objects.equals(this.modelVersion, activeDevice.modelVersion); + } + + @Override + public int hashCode() { + return Objects.hash(status, name, traffic, mac, model, modelVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ActiveDevice {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" traffic: ").append(toIndentedString(traffic)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApChannelStat.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApChannelStat.java new file mode 100644 index 0000000..dbe73cb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApChannelStat.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * 6g channel stat + */ +@ApiModel(description = "6g channel stat") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class ApChannelStat { + @JsonProperty("channel") + private Integer channel; + + @JsonProperty("apNum") + private Integer apNum; + + @JsonProperty("clientNum") + private Integer clientNum; + + @JsonProperty("channelUtilization") + private Double channelUtilization; + + public ApChannelStat channel(Integer channel) { + this.channel = channel; + return this; + } + + /** + * This entry indicates the channel index. For example, 36 means the 36 / 2160MHz channel. + * @return channel + */ + @ApiModelProperty(value = "This entry indicates the channel index. For example, 36 means the 36 / 2160MHz channel.") + + + public Integer getChannel() { + return channel; + } + + public void setChannel(Integer channel) { + this.channel = channel; + } + + public ApChannelStat apNum(Integer apNum) { + this.apNum = apNum; + return this; + } + + /** + * AP number of the channel + * @return apNum + */ + @ApiModelProperty(value = "AP number of the channel") + + + public Integer getApNum() { + return apNum; + } + + public void setApNum(Integer apNum) { + this.apNum = apNum; + } + + public ApChannelStat clientNum(Integer clientNum) { + this.clientNum = clientNum; + return this; + } + + /** + * Client number of the channel + * @return clientNum + */ + @ApiModelProperty(value = "Client number of the channel") + + + public Integer getClientNum() { + return clientNum; + } + + public void setClientNum(Integer clientNum) { + this.clientNum = clientNum; + } + + public ApChannelStat channelUtilization(Double channelUtilization) { + this.channelUtilization = channelUtilization; + return this; + } + + /** + * The average utilization of the channel by APs in percentage. Null means no data. + * @return channelUtilization + */ + @ApiModelProperty(value = "The average utilization of the channel by APs in percentage. Null means no data.") + + + public Double getChannelUtilization() { + return channelUtilization; + } + + public void setChannelUtilization(Double channelUtilization) { + this.channelUtilization = channelUtilization; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApChannelStat apChannelStat = (ApChannelStat) o; + return Objects.equals(this.channel, apChannelStat.channel) && + Objects.equals(this.apNum, apChannelStat.apNum) && + Objects.equals(this.clientNum, apChannelStat.clientNum) && + Objects.equals(this.channelUtilization, apChannelStat.channelUtilization); + } + + @Override + public int hashCode() { + return Objects.hash(channel, apNum, clientNum, channelUtilization); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApChannelStat {\n"); + + sb.append(" channel: ").append(toIndentedString(channel)).append("\n"); + sb.append(" apNum: ").append(toIndentedString(apNum)).append("\n"); + sb.append(" clientNum: ").append(toIndentedString(clientNum)).append("\n"); + sb.append(" channelUtilization: ").append(toIndentedString(channelUtilization)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApChannelStats.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApChannelStats.java new file mode 100644 index 0000000..68eabcf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApChannelStats.java @@ -0,0 +1,159 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApChannelStats + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class ApChannelStats { + @JsonProperty("2g channel stat") + @Valid + private List _2gChannelStat = null; + + @JsonProperty("5g channel stat") + @Valid + private List _5gChannelStat = null; + + @JsonProperty("6g channel stat") + @Valid + private List _6gChannelStat = null; + + public ApChannelStats _2gChannelStat(List _2gChannelStat) { + this._2gChannelStat = _2gChannelStat; + return this; + } + + public ApChannelStats add2gChannelStatItem(ApChannelStat _2gChannelStatItem) { + if (this._2gChannelStat == null) { + this._2gChannelStat = new ArrayList<>(); + } + this._2gChannelStat.add(_2gChannelStatItem); + return this; + } + + /** + * 2g channel stat + * @return _2gChannelStat + */ + @ApiModelProperty(value = "2g channel stat") + + @Valid + + public List get2gChannelStat() { + return _2gChannelStat; + } + + public void set2gChannelStat(List _2gChannelStat) { + this._2gChannelStat = _2gChannelStat; + } + + public ApChannelStats _5gChannelStat(List _5gChannelStat) { + this._5gChannelStat = _5gChannelStat; + return this; + } + + public ApChannelStats add5gChannelStatItem(ApChannelStat _5gChannelStatItem) { + if (this._5gChannelStat == null) { + this._5gChannelStat = new ArrayList<>(); + } + this._5gChannelStat.add(_5gChannelStatItem); + return this; + } + + /** + * 5g channel stat + * @return _5gChannelStat + */ + @ApiModelProperty(value = "5g channel stat") + + @Valid + + public List get5gChannelStat() { + return _5gChannelStat; + } + + public void set5gChannelStat(List _5gChannelStat) { + this._5gChannelStat = _5gChannelStat; + } + + public ApChannelStats _6gChannelStat(List _6gChannelStat) { + this._6gChannelStat = _6gChannelStat; + return this; + } + + public ApChannelStats add6gChannelStatItem(ApChannelStat _6gChannelStatItem) { + if (this._6gChannelStat == null) { + this._6gChannelStat = new ArrayList<>(); + } + this._6gChannelStat.add(_6gChannelStatItem); + return this; + } + + /** + * 6g channel stat + * @return _6gChannelStat + */ + @ApiModelProperty(value = "6g channel stat") + + @Valid + + public List get6gChannelStat() { + return _6gChannelStat; + } + + public void set6gChannelStat(List _6gChannelStat) { + this._6gChannelStat = _6gChannelStat; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApChannelStats apChannelStats = (ApChannelStats) o; + return Objects.equals(this._2gChannelStat, apChannelStats._2gChannelStat) && + Objects.equals(this._5gChannelStat, apChannelStats._5gChannelStat) && + Objects.equals(this._6gChannelStat, apChannelStats._6gChannelStat); + } + + @Override + public int hashCode() { + return Objects.hash(_2gChannelStat, _5gChannelStat, _6gChannelStat); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApChannelStats {\n"); + + sb.append(" _2gChannelStat: ").append(toIndentedString(_2gChannelStat)).append("\n"); + sb.append(" _5gChannelStat: ").append(toIndentedString(_5gChannelStat)).append("\n"); + sb.append(" _6gChannelStat: ").append(toIndentedString(_6gChannelStat)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApInterference.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApInterference.java new file mode 100644 index 0000000..65a7f91 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApInterference.java @@ -0,0 +1,178 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * 6GHz device interference intensity information + */ +@ApiModel(description = "6GHz device interference intensity information") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class ApInterference { + @JsonProperty("name") + private String name; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("interUtil") + private Integer interUtil; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + public ApInterference name(String name) { + this.name = name; + return this; + } + + /** + * AP name + * @return name + */ + @ApiModelProperty(value = "AP name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ApInterference mac(String mac) { + this.mac = mac; + return this; + } + + /** + * AP MAC + * @return mac + */ + @ApiModelProperty(value = "AP MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public ApInterference interUtil(Integer interUtil) { + this.interUtil = interUtil; + return this; + } + + /** + * AP interference percentage + * @return interUtil + */ + @ApiModelProperty(value = "AP interference percentage") + + + public Integer getInterUtil() { + return interUtil; + } + + public void setInterUtil(Integer interUtil) { + this.interUtil = interUtil; + } + + public ApInterference model(String model) { + this.model = model; + return this; + } + + /** + * Device model + * @return model + */ + @ApiModelProperty(value = "Device model") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public ApInterference modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Device model version + * @return modelVersion + */ + @ApiModelProperty(value = "Device model version") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApInterference apInterference = (ApInterference) o; + return Objects.equals(this.name, apInterference.name) && + Objects.equals(this.mac, apInterference.mac) && + Objects.equals(this.interUtil, apInterference.interUtil) && + Objects.equals(this.model, apInterference.model) && + Objects.equals(this.modelVersion, apInterference.modelVersion); + } + + @Override + public int hashCode() { + return Objects.hash(name, mac, interUtil, model, modelVersion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApInterference {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" interUtil: ").append(toIndentedString(interUtil)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApInterferences.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApInterferences.java new file mode 100644 index 0000000..cb21c4d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ApInterferences.java @@ -0,0 +1,194 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ApInterferences + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class ApInterferences { + @JsonProperty("apInterference2g") + @Valid + private List apInterference2g = null; + + @JsonProperty("apInterference5g") + @Valid + private List apInterference5g = null; + + @JsonProperty("apInterference5g2") + @Valid + private List apInterference5g2 = null; + + @JsonProperty("apInterference6g") + @Valid + private List apInterference6g = null; + + public ApInterferences apInterference2g(List apInterference2g) { + this.apInterference2g = apInterference2g; + return this; + } + + public ApInterferences addApInterference2gItem(ApInterference apInterference2gItem) { + if (this.apInterference2g == null) { + this.apInterference2g = new ArrayList<>(); + } + this.apInterference2g.add(apInterference2gItem); + return this; + } + + /** + * 2GHz device interference intensity information + * @return apInterference2g + */ + @ApiModelProperty(value = "2GHz device interference intensity information") + + @Valid + + public List getApInterference2g() { + return apInterference2g; + } + + public void setApInterference2g(List apInterference2g) { + this.apInterference2g = apInterference2g; + } + + public ApInterferences apInterference5g(List apInterference5g) { + this.apInterference5g = apInterference5g; + return this; + } + + public ApInterferences addApInterference5gItem(ApInterference apInterference5gItem) { + if (this.apInterference5g == null) { + this.apInterference5g = new ArrayList<>(); + } + this.apInterference5g.add(apInterference5gItem); + return this; + } + + /** + * 5GHz device interference intensity information + * @return apInterference5g + */ + @ApiModelProperty(value = "5GHz device interference intensity information") + + @Valid + + public List getApInterference5g() { + return apInterference5g; + } + + public void setApInterference5g(List apInterference5g) { + this.apInterference5g = apInterference5g; + } + + public ApInterferences apInterference5g2(List apInterference5g2) { + this.apInterference5g2 = apInterference5g2; + return this; + } + + public ApInterferences addApInterference5g2Item(ApInterference apInterference5g2Item) { + if (this.apInterference5g2 == null) { + this.apInterference5g2 = new ArrayList<>(); + } + this.apInterference5g2.add(apInterference5g2Item); + return this; + } + + /** + * 5GHz-2 device interference intensity information + * @return apInterference5g2 + */ + @ApiModelProperty(value = "5GHz-2 device interference intensity information") + + @Valid + + public List getApInterference5g2() { + return apInterference5g2; + } + + public void setApInterference5g2(List apInterference5g2) { + this.apInterference5g2 = apInterference5g2; + } + + public ApInterferences apInterference6g(List apInterference6g) { + this.apInterference6g = apInterference6g; + return this; + } + + public ApInterferences addApInterference6gItem(ApInterference apInterference6gItem) { + if (this.apInterference6g == null) { + this.apInterference6g = new ArrayList<>(); + } + this.apInterference6g.add(apInterference6gItem); + return this; + } + + /** + * 6GHz device interference intensity information + * @return apInterference6g + */ + @ApiModelProperty(value = "6GHz device interference intensity information") + + @Valid + + public List getApInterference6g() { + return apInterference6g; + } + + public void setApInterference6g(List apInterference6g) { + this.apInterference6g = apInterference6g; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApInterferences apInterferences = (ApInterferences) o; + return Objects.equals(this.apInterference2g, apInterferences.apInterference2g) && + Objects.equals(this.apInterference5g, apInterferences.apInterference5g) && + Objects.equals(this.apInterference5g2, apInterferences.apInterference5g2) && + Objects.equals(this.apInterference6g, apInterferences.apInterference6g); + } + + @Override + public int hashCode() { + return Objects.hash(apInterference2g, apInterference5g, apInterference5g2, apInterference6g); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApInterferences {\n"); + + sb.append(" apInterference2g: ").append(toIndentedString(apInterference2g)).append("\n"); + sb.append(" apInterference5g: ").append(toIndentedString(apInterference5g)).append("\n"); + sb.append(" apInterference5g2: ").append(toIndentedString(apInterference5g2)).append("\n"); + sb.append(" apInterference6g: ").append(toIndentedString(apInterference6g)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/BatchEditTabs.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/BatchEditTabs.java new file mode 100644 index 0000000..6110299 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/BatchEditTabs.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchEditTabs + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class BatchEditTabs { + @JsonProperty("tabs") + @Valid + private List tabs = null; + + public BatchEditTabs tabs(List tabs) { + this.tabs = tabs; + return this; + } + + public BatchEditTabs addTabsItem(BatchUpdateTab tabsItem) { + if (this.tabs == null) { + this.tabs = new ArrayList<>(); + } + this.tabs.add(tabsItem); + return this; + } + + /** + * Edit Tab Parameters + * @return tabs + */ + @ApiModelProperty(value = "Edit Tab Parameters") + + @Valid + + public List getTabs() { + return tabs; + } + + public void setTabs(List tabs) { + this.tabs = tabs; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchEditTabs batchEditTabs = (BatchEditTabs) o; + return Objects.equals(this.tabs, batchEditTabs.tabs); + } + + @Override + public int hashCode() { + return Objects.hash(tabs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchEditTabs {\n"); + + sb.append(" tabs: ").append(toIndentedString(tabs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/BatchUpdateTab.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/BatchUpdateTab.java new file mode 100644 index 0000000..fa45fc2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/BatchUpdateTab.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Edit Tab Parameters + */ +@ApiModel(description = "Edit Tab Parameters") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class BatchUpdateTab { + @JsonProperty("id") + private String id; + + @JsonProperty("cards") + @Valid + private List cards = null; + + public BatchUpdateTab id(String id) { + this.id = id; + return this; + } + + /** + * A unique identifier + * @return id + */ + @ApiModelProperty(value = "A unique identifier") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public BatchUpdateTab cards(List cards) { + this.cards = cards; + return this; + } + + public BatchUpdateTab addCardsItem(Integer cardsItem) { + if (this.cards == null) { + this.cards = new ArrayList<>(); + } + this.cards.add(cardsItem); + return this; + } + + /** + * Card list displayed in Tab. Each number indicates a type of card. card should be a value as follows: 0: Controller Snapshot, 101: Alerts, 102: ISP Load, 103: L2TP/PPTP VPN, 104: Channel Distribution and Usage, 105: Most Active EAPs, 106: Most Active Switches, 108: WiFi/Switching Summary, 109: Traffic Distribution, 110: Traffic Activities, 111: Clients Distribution, 112: Retry Rate/Dropped Rate, 117: Top Device CPU/Memory Usage, 118: IPSEC VPN, 119: OPEN VPN, 120: SSL VPN, 200: Most Active Clients, 201: Longest client uptime, 202: Clients Freq Distribution, 203: Clients Activities, 204: Clients Association Activities, 205: Association Failures, 206: Clients Association Time Distribution, 207: Clients SSID Distribution, 208: Clients RSSI Distribution + * @return cards + */ + @ApiModelProperty(value = "Card list displayed in Tab. Each number indicates a type of card. card should be a value as follows: 0: Controller Snapshot, 101: Alerts, 102: ISP Load, 103: L2TP/PPTP VPN, 104: Channel Distribution and Usage, 105: Most Active EAPs, 106: Most Active Switches, 108: WiFi/Switching Summary, 109: Traffic Distribution, 110: Traffic Activities, 111: Clients Distribution, 112: Retry Rate/Dropped Rate, 117: Top Device CPU/Memory Usage, 118: IPSEC VPN, 119: OPEN VPN, 120: SSL VPN, 200: Most Active Clients, 201: Longest client uptime, 202: Clients Freq Distribution, 203: Clients Activities, 204: Clients Association Activities, 205: Association Failures, 206: Clients Association Time Distribution, 207: Clients SSID Distribution, 208: Clients RSSI Distribution") + + + public List getCards() { + return cards; + } + + public void setCards(List cards) { + this.cards = cards; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchUpdateTab batchUpdateTab = (BatchUpdateTab) o; + return Objects.equals(this.id, batchUpdateTab.id) && + Objects.equals(this.cards, batchUpdateTab.cards); + } + + @Override + public int hashCode() { + return Objects.hash(id, cards); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchUpdateTab {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" cards: ").append(toIndentedString(cards)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/CpuUsage.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/CpuUsage.java new file mode 100644 index 0000000..c95802f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/CpuUsage.java @@ -0,0 +1,201 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CpuUsage + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class CpuUsage { + @JsonProperty("name") + private String name; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("cpuUtil") + private Integer cpuUtil; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + @JsonProperty("type") + private String type; + + public CpuUsage name(String name) { + this.name = name; + return this; + } + + /** + * Device name + * @return name + */ + @ApiModelProperty(value = "Device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CpuUsage mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC + * @return mac + */ + @ApiModelProperty(value = "Device MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public CpuUsage cpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + return this; + } + + /** + * Device CPU utilization + * @return cpuUtil + */ + @ApiModelProperty(value = "Device CPU utilization") + + + public Integer getCpuUtil() { + return cpuUtil; + } + + public void setCpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + } + + public CpuUsage model(String model) { + this.model = model; + return this; + } + + /** + * Device model + * @return model + */ + @ApiModelProperty(value = "Device model") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public CpuUsage modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Device model version + * @return modelVersion + */ + @ApiModelProperty(value = "Device model version") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public CpuUsage type(String type) { + this.type = type; + return this; + } + + /** + * Device type + * @return type + */ + @ApiModelProperty(value = "Device type") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CpuUsage cpuUsage = (CpuUsage) o; + return Objects.equals(this.name, cpuUsage.name) && + Objects.equals(this.mac, cpuUsage.mac) && + Objects.equals(this.cpuUtil, cpuUsage.cpuUtil) && + Objects.equals(this.model, cpuUsage.model) && + Objects.equals(this.modelVersion, cpuUsage.modelVersion) && + Objects.equals(this.type, cpuUsage.type); + } + + @Override + public int hashCode() { + return Objects.hash(name, mac, cpuUtil, model, modelVersion, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CpuUsage {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" cpuUtil: ").append(toIndentedString(cpuUtil)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/CreateTabOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/CreateTabOpenApiVo.java new file mode 100644 index 0000000..c2009a9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/CreateTabOpenApiVo.java @@ -0,0 +1,77 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CreateTabOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class CreateTabOpenApiVo { + @JsonProperty("name") + private String name; + + public CreateTabOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Names on this Dashboard page must be unique. It should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "Names on this Dashboard page must be unique. It should contain 1 to 64 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,30}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateTabOpenApiVo createTabOpenApiVo = (CreateTabOpenApiVo) o; + return Objects.equals(this.name, createTabOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateTabOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DashboardVpnStats.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DashboardVpnStats.java new file mode 100644 index 0000000..be84756 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DashboardVpnStats.java @@ -0,0 +1,201 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * DashboardVpnStats + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class DashboardVpnStats { + @JsonProperty("site") + private String site; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("tunnels") + private Integer tunnels; + + @JsonProperty("txData") + private Long txData; + + @JsonProperty("rxData") + private Long rxData; + + public DashboardVpnStats site(String site) { + this.site = site; + return this; + } + + /** + * Site + * @return site + */ + @ApiModelProperty(value = "Site") + + + public String getSite() { + return site; + } + + public void setSite(String site) { + this.site = site; + } + + public DashboardVpnStats name(String name) { + this.name = name; + return this; + } + + /** + * VPN name + * @return name + */ + @ApiModelProperty(value = "VPN name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DashboardVpnStats status(Boolean status) { + this.status = status; + return this; + } + + /** + * Whether VPN is enabled + * @return status + */ + @ApiModelProperty(value = "Whether VPN is enabled") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public DashboardVpnStats tunnels(Integer tunnels) { + this.tunnels = tunnels; + return this; + } + + /** + * The number of tunnels included in the VPN server + * @return tunnels + */ + @ApiModelProperty(value = "The number of tunnels included in the VPN server") + + + public Integer getTunnels() { + return tunnels; + } + + public void setTunnels(Integer tunnels) { + this.tunnels = tunnels; + } + + public DashboardVpnStats txData(Long txData) { + this.txData = txData; + return this; + } + + /** + * The total tx traffic of the channels included in the server/client, in Byte + * @return txData + */ + @ApiModelProperty(value = "The total tx traffic of the channels included in the server/client, in Byte") + + + public Long getTxData() { + return txData; + } + + public void setTxData(Long txData) { + this.txData = txData; + } + + public DashboardVpnStats rxData(Long rxData) { + this.rxData = rxData; + return this; + } + + /** + * The total rx traffic of the tunnels included in the server/client, in Byte + * @return rxData + */ + @ApiModelProperty(value = "The total rx traffic of the tunnels included in the server/client, in Byte") + + + public Long getRxData() { + return rxData; + } + + public void setRxData(Long rxData) { + this.rxData = rxData; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DashboardVpnStats dashboardVpnStats = (DashboardVpnStats) o; + return Objects.equals(this.site, dashboardVpnStats.site) && + Objects.equals(this.name, dashboardVpnStats.name) && + Objects.equals(this.status, dashboardVpnStats.status) && + Objects.equals(this.tunnels, dashboardVpnStats.tunnels) && + Objects.equals(this.txData, dashboardVpnStats.txData) && + Objects.equals(this.rxData, dashboardVpnStats.rxData); + } + + @Override + public int hashCode() { + return Objects.hash(site, name, status, tunnels, txData, rxData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DashboardVpnStats {\n"); + + sb.append(" site: ").append(toIndentedString(site)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" tunnels: ").append(toIndentedString(tunnels)).append("\n"); + sb.append(" txData: ").append(toIndentedString(txData)).append("\n"); + sb.append(" rxData: ").append(toIndentedString(rxData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DeviceTrafficActivity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DeviceTrafficActivity.java new file mode 100644 index 0000000..2ad091d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DeviceTrafficActivity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Wireless network total traffic timing list Wired network total traffic timing list, + */ +@ApiModel(description = "Wireless network total traffic timing list Wired network total traffic timing list,") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class DeviceTrafficActivity { + @JsonProperty("time") + private Long time; + + @JsonProperty("txData") + private Double txData; + + @JsonProperty("rxData") + private Double rxData; + + public DeviceTrafficActivity time(Long time) { + this.time = time; + return this; + } + + /** + * The timestamp of this data sample, in seconds, such as 1682000000 + * @return time + */ + @ApiModelProperty(value = "The timestamp of this data sample, in seconds, such as 1682000000") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public DeviceTrafficActivity txData(Double txData) { + this.txData = txData; + return this; + } + + /** + * Uplink traffic in MB + * @return txData + */ + @ApiModelProperty(value = "Uplink traffic in MB") + + + public Double getTxData() { + return txData; + } + + public void setTxData(Double txData) { + this.txData = txData; + } + + public DeviceTrafficActivity rxData(Double rxData) { + this.rxData = rxData; + return this; + } + + /** + * Downlink traffic in MB + * @return rxData + */ + @ApiModelProperty(value = "Downlink traffic in MB") + + + public Double getRxData() { + return rxData; + } + + public void setRxData(Double rxData) { + this.rxData = rxData; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceTrafficActivity deviceTrafficActivity = (DeviceTrafficActivity) o; + return Objects.equals(this.time, deviceTrafficActivity.time) && + Objects.equals(this.txData, deviceTrafficActivity.txData) && + Objects.equals(this.rxData, deviceTrafficActivity.rxData); + } + + @Override + public int hashCode() { + return Objects.hash(time, txData, rxData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceTrafficActivity {\n"); + + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" txData: ").append(toIndentedString(txData)).append("\n"); + sb.append(" rxData: ").append(toIndentedString(rxData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DeviceTrafficDistribution.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DeviceTrafficDistribution.java new file mode 100644 index 0000000..13c68eb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DeviceTrafficDistribution.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Current Site Switch List + */ +@ApiModel(description = "Current Site Switch List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class DeviceTrafficDistribution { + @JsonProperty("name") + private String name; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("traffic") + private Double traffic; + + @JsonProperty("trafficProportion") + private Double trafficProportion; + + public DeviceTrafficDistribution name(String name) { + this.name = name; + return this; + } + + /** + * Device Name + * @return name + */ + @ApiModelProperty(value = "Device Name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DeviceTrafficDistribution mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC + * @return mac + */ + @ApiModelProperty(value = "Device MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public DeviceTrafficDistribution traffic(Double traffic) { + this.traffic = traffic; + return this; + } + + /** + * Device traffic measured in MB + * @return traffic + */ + @ApiModelProperty(value = "Device traffic measured in MB") + + + public Double getTraffic() { + return traffic; + } + + public void setTraffic(Double traffic) { + this.traffic = traffic; + } + + public DeviceTrafficDistribution trafficProportion(Double trafficProportion) { + this.trafficProportion = trafficProportion; + return this; + } + + /** + * The proportion of AP traffic in percentage + * @return trafficProportion + */ + @ApiModelProperty(value = "The proportion of AP traffic in percentage") + + + public Double getTrafficProportion() { + return trafficProportion; + } + + public void setTrafficProportion(Double trafficProportion) { + this.trafficProportion = trafficProportion; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceTrafficDistribution deviceTrafficDistribution = (DeviceTrafficDistribution) o; + return Objects.equals(this.name, deviceTrafficDistribution.name) && + Objects.equals(this.mac, deviceTrafficDistribution.mac) && + Objects.equals(this.traffic, deviceTrafficDistribution.traffic) && + Objects.equals(this.trafficProportion, deviceTrafficDistribution.trafficProportion); + } + + @Override + public int hashCode() { + return Objects.hash(name, mac, traffic, trafficProportion); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceTrafficDistribution {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" traffic: ").append(toIndentedString(traffic)).append("\n"); + sb.append(" trafficProportion: ").append(toIndentedString(trafficProportion)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/Drop.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/Drop.java new file mode 100644 index 0000000..5e4cde7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/Drop.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * AP dropouts timing list + */ +@ApiModel(description = "AP dropouts timing list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class Drop { + @JsonProperty("time") + private Long time; + + @JsonProperty("dropTimes") + private Integer dropTimes; + + @JsonProperty("dropRate") + private Double dropRate; + + public Drop time(Long time) { + this.time = time; + return this; + } + + /** + * Sampling time second + * @return time + */ + @ApiModelProperty(value = "Sampling time second") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public Drop dropTimes(Integer dropTimes) { + this.dropTimes = dropTimes; + return this; + } + + /** + * Number of drop packets within one hour, such as 60 : 60% + * @return dropTimes + */ + @ApiModelProperty(value = "Number of drop packets within one hour, such as 60 : 60%") + + + public Integer getDropTimes() { + return dropTimes; + } + + public void setDropTimes(Integer dropTimes) { + this.dropTimes = dropTimes; + } + + public Drop dropRate(Double dropRate) { + this.dropRate = dropRate; + return this; + } + + /** + * AP drop packet rate within one hour + * @return dropRate + */ + @ApiModelProperty(value = "AP drop packet rate within one hour") + + + public Double getDropRate() { + return dropRate; + } + + public void setDropRate(Double dropRate) { + this.dropRate = dropRate; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Drop drop = (Drop) o; + return Objects.equals(this.time, drop.time) && + Objects.equals(this.dropTimes, drop.dropTimes) && + Objects.equals(this.dropRate, drop.dropRate); + } + + @Override + public int hashCode() { + return Objects.hash(time, dropTimes, dropRate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Drop {\n"); + + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" dropTimes: ").append(toIndentedString(dropTimes)).append("\n"); + sb.append(" dropRate: ").append(toIndentedString(dropRate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DropEap.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DropEap.java new file mode 100644 index 0000000..ca3262e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/DropEap.java @@ -0,0 +1,241 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * AP list of packet loss rate tab, in descending order of average value + */ +@ApiModel(description = "AP list of packet loss rate tab, in descending order of average value") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class DropEap { + @JsonProperty("dropouts") + @Valid + private List dropouts = null; + + @JsonProperty("apMac") + private String apMac; + + @JsonProperty("name") + private String name; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + @JsonProperty("avg") + private Double avg; + + @JsonProperty("status") + private Integer status; + + public DropEap dropouts(List dropouts) { + this.dropouts = dropouts; + return this; + } + + public DropEap addDropoutsItem(Drop dropoutsItem) { + if (this.dropouts == null) { + this.dropouts = new ArrayList<>(); + } + this.dropouts.add(dropoutsItem); + return this; + } + + /** + * AP dropouts timing list + * @return dropouts + */ + @ApiModelProperty(value = "AP dropouts timing list") + + @Valid + + public List getDropouts() { + return dropouts; + } + + public void setDropouts(List dropouts) { + this.dropouts = dropouts; + } + + public DropEap apMac(String apMac) { + this.apMac = apMac; + return this; + } + + /** + * AP MAC + * @return apMac + */ + @ApiModelProperty(value = "AP MAC") + + + public String getApMac() { + return apMac; + } + + public void setApMac(String apMac) { + this.apMac = apMac; + } + + public DropEap name(String name) { + this.name = name; + return this; + } + + /** + * AP name + * @return name + */ + @ApiModelProperty(value = "AP name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DropEap model(String model) { + this.model = model; + return this; + } + + /** + * AP model + * @return model + */ + @ApiModelProperty(value = "AP model") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public DropEap modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * AP model Version + * @return modelVersion + */ + @ApiModelProperty(value = "AP model Version") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public DropEap avg(Double avg) { + this.avg = avg; + return this; + } + + /** + * Average current AP drop packet rate + * @return avg + */ + @ApiModelProperty(value = "Average current AP drop packet rate") + + + public Double getAvg() { + return avg; + } + + public void setAvg(Double avg) { + this.avg = avg; + } + + public DropEap status(Integer status) { + this.status = status; + return this; + } + + /** + * AP status, 0: connected, 1: disconnected + * @return status + */ + @ApiModelProperty(value = "AP status, 0: connected, 1: disconnected") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DropEap dropEap = (DropEap) o; + return Objects.equals(this.dropouts, dropEap.dropouts) && + Objects.equals(this.apMac, dropEap.apMac) && + Objects.equals(this.name, dropEap.name) && + Objects.equals(this.model, dropEap.model) && + Objects.equals(this.modelVersion, dropEap.modelVersion) && + Objects.equals(this.avg, dropEap.avg) && + Objects.equals(this.status, dropEap.status); + } + + @Override + public int hashCode() { + return Objects.hash(dropouts, apMac, name, model, modelVersion, avg, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DropEap {\n"); + + sb.append(" dropouts: ").append(toIndentedString(dropouts)).append("\n"); + sb.append(" apMac: ").append(toIndentedString(apMac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" avg: ").append(toIndentedString(avg)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/GetDashboardOverview.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/GetDashboardOverview.java new file mode 100644 index 0000000..68dc9c0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/GetDashboardOverview.java @@ -0,0 +1,526 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * GetDashboardOverview + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class GetDashboardOverview { + @JsonProperty("totalGatewayNum") + private Integer totalGatewayNum; + + @JsonProperty("connectedGatewayNum") + private Integer connectedGatewayNum; + + @JsonProperty("disconnectedGatewayNum") + private Integer disconnectedGatewayNum; + + @JsonProperty("netCapacity") + private Integer netCapacity; + + @JsonProperty("netUsage") + private Double netUsage; + + @JsonProperty("totalSwitchNum") + private Integer totalSwitchNum; + + @JsonProperty("connectedSwitchNum") + private Integer connectedSwitchNum; + + @JsonProperty("disconnectedSwitchNum") + private Integer disconnectedSwitchNum; + + @JsonProperty("totalPorts") + private Integer totalPorts; + + @JsonProperty("availablePorts") + private Integer availablePorts; + + @JsonProperty("powerConsumption") + private Double powerConsumption; + + @JsonProperty("totalApNum") + private Integer totalApNum; + + @JsonProperty("connectedApNum") + private Integer connectedApNum; + + @JsonProperty("isolatedApNum") + private Integer isolatedApNum; + + @JsonProperty("disconnectedApNum") + private Integer disconnectedApNum; + + @JsonProperty("totalClientNum") + private Integer totalClientNum; + + @JsonProperty("wiredClientNum") + private Integer wiredClientNum; + + @JsonProperty("wirelessClientNum") + private Integer wirelessClientNum; + + @JsonProperty("guestNum") + private Integer guestNum; + + public GetDashboardOverview totalGatewayNum(Integer totalGatewayNum) { + this.totalGatewayNum = totalGatewayNum; + return this; + } + + /** + * The total number of gateways + * @return totalGatewayNum + */ + @ApiModelProperty(value = "The total number of gateways") + + + public Integer getTotalGatewayNum() { + return totalGatewayNum; + } + + public void setTotalGatewayNum(Integer totalGatewayNum) { + this.totalGatewayNum = totalGatewayNum; + } + + public GetDashboardOverview connectedGatewayNum(Integer connectedGatewayNum) { + this.connectedGatewayNum = connectedGatewayNum; + return this; + } + + /** + * The number of connected gateways + * @return connectedGatewayNum + */ + @ApiModelProperty(value = "The number of connected gateways") + + + public Integer getConnectedGatewayNum() { + return connectedGatewayNum; + } + + public void setConnectedGatewayNum(Integer connectedGatewayNum) { + this.connectedGatewayNum = connectedGatewayNum; + } + + public GetDashboardOverview disconnectedGatewayNum(Integer disconnectedGatewayNum) { + this.disconnectedGatewayNum = disconnectedGatewayNum; + return this; + } + + /** + * The number of disconnected gateways + * @return disconnectedGatewayNum + */ + @ApiModelProperty(value = "The number of disconnected gateways") + + + public Integer getDisconnectedGatewayNum() { + return disconnectedGatewayNum; + } + + public void setDisconnectedGatewayNum(Integer disconnectedGatewayNum) { + this.disconnectedGatewayNum = disconnectedGatewayNum; + } + + public GetDashboardOverview netCapacity(Integer netCapacity) { + this.netCapacity = netCapacity; + return this; + } + + /** + * Network Capacity measured in Mbps. Null means no value. + * @return netCapacity + */ + @ApiModelProperty(value = "Network Capacity measured in Mbps. Null means no value.") + + + public Integer getNetCapacity() { + return netCapacity; + } + + public void setNetCapacity(Integer netCapacity) { + this.netCapacity = netCapacity; + } + + public GetDashboardOverview netUsage(Double netUsage) { + this.netUsage = netUsage; + return this; + } + + /** + * The current link usage rate under the Gateway node (percent conversion has been performed, such as 98.1) + * @return netUsage + */ + @ApiModelProperty(value = "The current link usage rate under the Gateway node (percent conversion has been performed, such as 98.1)") + + + public Double getNetUsage() { + return netUsage; + } + + public void setNetUsage(Double netUsage) { + this.netUsage = netUsage; + } + + public GetDashboardOverview totalSwitchNum(Integer totalSwitchNum) { + this.totalSwitchNum = totalSwitchNum; + return this; + } + + /** + * Total number of switches + * @return totalSwitchNum + */ + @ApiModelProperty(value = "Total number of switches") + + + public Integer getTotalSwitchNum() { + return totalSwitchNum; + } + + public void setTotalSwitchNum(Integer totalSwitchNum) { + this.totalSwitchNum = totalSwitchNum; + } + + public GetDashboardOverview connectedSwitchNum(Integer connectedSwitchNum) { + this.connectedSwitchNum = connectedSwitchNum; + return this; + } + + /** + * Number of switches in connected state + * @return connectedSwitchNum + */ + @ApiModelProperty(value = "Number of switches in connected state ") + + + public Integer getConnectedSwitchNum() { + return connectedSwitchNum; + } + + public void setConnectedSwitchNum(Integer connectedSwitchNum) { + this.connectedSwitchNum = connectedSwitchNum; + } + + public GetDashboardOverview disconnectedSwitchNum(Integer disconnectedSwitchNum) { + this.disconnectedSwitchNum = disconnectedSwitchNum; + return this; + } + + /** + * Number of switches in disconnected state + * @return disconnectedSwitchNum + */ + @ApiModelProperty(value = "Number of switches in disconnected state") + + + public Integer getDisconnectedSwitchNum() { + return disconnectedSwitchNum; + } + + public void setDisconnectedSwitchNum(Integer disconnectedSwitchNum) { + this.disconnectedSwitchNum = disconnectedSwitchNum; + } + + public GetDashboardOverview totalPorts(Integer totalPorts) { + this.totalPorts = totalPorts; + return this; + } + + /** + * Total number of ports + * @return totalPorts + */ + @ApiModelProperty(value = "Total number of ports") + + + public Integer getTotalPorts() { + return totalPorts; + } + + public void setTotalPorts(Integer totalPorts) { + this.totalPorts = totalPorts; + } + + public GetDashboardOverview availablePorts(Integer availablePorts) { + this.availablePorts = availablePorts; + return this; + } + + /** + * Number of valid ports + * @return availablePorts + */ + @ApiModelProperty(value = "Number of valid ports") + + + public Integer getAvailablePorts() { + return availablePorts; + } + + public void setAvailablePorts(Integer availablePorts) { + this.availablePorts = availablePorts; + } + + public GetDashboardOverview powerConsumption(Double powerConsumption) { + this.powerConsumption = powerConsumption; + return this; + } + + /** + * Power consumption (unit: W) + * @return powerConsumption + */ + @ApiModelProperty(value = "Power consumption (unit: W)") + + + public Double getPowerConsumption() { + return powerConsumption; + } + + public void setPowerConsumption(Double powerConsumption) { + this.powerConsumption = powerConsumption; + } + + public GetDashboardOverview totalApNum(Integer totalApNum) { + this.totalApNum = totalApNum; + return this; + } + + /** + * Total number of APs + * @return totalApNum + */ + @ApiModelProperty(value = "Total number of APs") + + + public Integer getTotalApNum() { + return totalApNum; + } + + public void setTotalApNum(Integer totalApNum) { + this.totalApNum = totalApNum; + } + + public GetDashboardOverview connectedApNum(Integer connectedApNum) { + this.connectedApNum = connectedApNum; + return this; + } + + /** + * Number of APs in connected state + * @return connectedApNum + */ + @ApiModelProperty(value = "Number of APs in connected state") + + + public Integer getConnectedApNum() { + return connectedApNum; + } + + public void setConnectedApNum(Integer connectedApNum) { + this.connectedApNum = connectedApNum; + } + + public GetDashboardOverview isolatedApNum(Integer isolatedApNum) { + this.isolatedApNum = isolatedApNum; + return this; + } + + /** + * Number of APs in isolated state + * @return isolatedApNum + */ + @ApiModelProperty(value = "Number of APs in isolated state") + + + public Integer getIsolatedApNum() { + return isolatedApNum; + } + + public void setIsolatedApNum(Integer isolatedApNum) { + this.isolatedApNum = isolatedApNum; + } + + public GetDashboardOverview disconnectedApNum(Integer disconnectedApNum) { + this.disconnectedApNum = disconnectedApNum; + return this; + } + + /** + * Number of APs in disconnected state + * @return disconnectedApNum + */ + @ApiModelProperty(value = "Number of APs in disconnected state") + + + public Integer getDisconnectedApNum() { + return disconnectedApNum; + } + + public void setDisconnectedApNum(Integer disconnectedApNum) { + this.disconnectedApNum = disconnectedApNum; + } + + public GetDashboardOverview totalClientNum(Integer totalClientNum) { + this.totalClientNum = totalClientNum; + return this; + } + + /** + * Total number of clients + * @return totalClientNum + */ + @ApiModelProperty(value = "Total number of clients") + + + public Integer getTotalClientNum() { + return totalClientNum; + } + + public void setTotalClientNum(Integer totalClientNum) { + this.totalClientNum = totalClientNum; + } + + public GetDashboardOverview wiredClientNum(Integer wiredClientNum) { + this.wiredClientNum = wiredClientNum; + return this; + } + + /** + * Number of wired clients + * @return wiredClientNum + */ + @ApiModelProperty(value = "Number of wired clients") + + + public Integer getWiredClientNum() { + return wiredClientNum; + } + + public void setWiredClientNum(Integer wiredClientNum) { + this.wiredClientNum = wiredClientNum; + } + + public GetDashboardOverview wirelessClientNum(Integer wirelessClientNum) { + this.wirelessClientNum = wirelessClientNum; + return this; + } + + /** + * Number of wireless clients + * @return wirelessClientNum + */ + @ApiModelProperty(value = "Number of wireless clients") + + + public Integer getWirelessClientNum() { + return wirelessClientNum; + } + + public void setWirelessClientNum(Integer wirelessClientNum) { + this.wirelessClientNum = wirelessClientNum; + } + + public GetDashboardOverview guestNum(Integer guestNum) { + this.guestNum = guestNum; + return this; + } + + /** + * Number of wireless guest clients + * @return guestNum + */ + @ApiModelProperty(value = "Number of wireless guest clients") + + + public Integer getGuestNum() { + return guestNum; + } + + public void setGuestNum(Integer guestNum) { + this.guestNum = guestNum; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GetDashboardOverview getDashboardOverview = (GetDashboardOverview) o; + return Objects.equals(this.totalGatewayNum, getDashboardOverview.totalGatewayNum) && + Objects.equals(this.connectedGatewayNum, getDashboardOverview.connectedGatewayNum) && + Objects.equals(this.disconnectedGatewayNum, getDashboardOverview.disconnectedGatewayNum) && + Objects.equals(this.netCapacity, getDashboardOverview.netCapacity) && + Objects.equals(this.netUsage, getDashboardOverview.netUsage) && + Objects.equals(this.totalSwitchNum, getDashboardOverview.totalSwitchNum) && + Objects.equals(this.connectedSwitchNum, getDashboardOverview.connectedSwitchNum) && + Objects.equals(this.disconnectedSwitchNum, getDashboardOverview.disconnectedSwitchNum) && + Objects.equals(this.totalPorts, getDashboardOverview.totalPorts) && + Objects.equals(this.availablePorts, getDashboardOverview.availablePorts) && + Objects.equals(this.powerConsumption, getDashboardOverview.powerConsumption) && + Objects.equals(this.totalApNum, getDashboardOverview.totalApNum) && + Objects.equals(this.connectedApNum, getDashboardOverview.connectedApNum) && + Objects.equals(this.isolatedApNum, getDashboardOverview.isolatedApNum) && + Objects.equals(this.disconnectedApNum, getDashboardOverview.disconnectedApNum) && + Objects.equals(this.totalClientNum, getDashboardOverview.totalClientNum) && + Objects.equals(this.wiredClientNum, getDashboardOverview.wiredClientNum) && + Objects.equals(this.wirelessClientNum, getDashboardOverview.wirelessClientNum) && + Objects.equals(this.guestNum, getDashboardOverview.guestNum); + } + + @Override + public int hashCode() { + return Objects.hash(totalGatewayNum, connectedGatewayNum, disconnectedGatewayNum, netCapacity, netUsage, totalSwitchNum, connectedSwitchNum, disconnectedSwitchNum, totalPorts, availablePorts, powerConsumption, totalApNum, connectedApNum, isolatedApNum, disconnectedApNum, totalClientNum, wiredClientNum, wirelessClientNum, guestNum); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GetDashboardOverview {\n"); + + sb.append(" totalGatewayNum: ").append(toIndentedString(totalGatewayNum)).append("\n"); + sb.append(" connectedGatewayNum: ").append(toIndentedString(connectedGatewayNum)).append("\n"); + sb.append(" disconnectedGatewayNum: ").append(toIndentedString(disconnectedGatewayNum)).append("\n"); + sb.append(" netCapacity: ").append(toIndentedString(netCapacity)).append("\n"); + sb.append(" netUsage: ").append(toIndentedString(netUsage)).append("\n"); + sb.append(" totalSwitchNum: ").append(toIndentedString(totalSwitchNum)).append("\n"); + sb.append(" connectedSwitchNum: ").append(toIndentedString(connectedSwitchNum)).append("\n"); + sb.append(" disconnectedSwitchNum: ").append(toIndentedString(disconnectedSwitchNum)).append("\n"); + sb.append(" totalPorts: ").append(toIndentedString(totalPorts)).append("\n"); + sb.append(" availablePorts: ").append(toIndentedString(availablePorts)).append("\n"); + sb.append(" powerConsumption: ").append(toIndentedString(powerConsumption)).append("\n"); + sb.append(" totalApNum: ").append(toIndentedString(totalApNum)).append("\n"); + sb.append(" connectedApNum: ").append(toIndentedString(connectedApNum)).append("\n"); + sb.append(" isolatedApNum: ").append(toIndentedString(isolatedApNum)).append("\n"); + sb.append(" disconnectedApNum: ").append(toIndentedString(disconnectedApNum)).append("\n"); + sb.append(" totalClientNum: ").append(toIndentedString(totalClientNum)).append("\n"); + sb.append(" wiredClientNum: ").append(toIndentedString(wiredClientNum)).append("\n"); + sb.append(" wirelessClientNum: ").append(toIndentedString(wirelessClientNum)).append("\n"); + sb.append(" guestNum: ").append(toIndentedString(guestNum)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IpsecVpnStats.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IpsecVpnStats.java new file mode 100644 index 0000000..7645daa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IpsecVpnStats.java @@ -0,0 +1,276 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * IpsecVpnStats + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class IpsecVpnStats { + @JsonProperty("site") + private String site; + + @JsonProperty("name") + private String name; + + @JsonProperty("id") + private Integer id; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("direction") + private String direction; + + @JsonProperty("localPeerIp") + private String localPeerIp; + + @JsonProperty("remotePeerIp") + private String remotePeerIp; + + @JsonProperty("localSa") + private String localSa; + + @JsonProperty("remoteSa") + private String remoteSa; + + public IpsecVpnStats site(String site) { + this.site = site; + return this; + } + + /** + * Get site + * @return site + */ + @ApiModelProperty(value = "") + + + public String getSite() { + return site; + } + + public void setSite(String site) { + this.site = site; + } + + public IpsecVpnStats name(String name) { + this.name = name; + return this; + } + + /** + * VPN name + * @return name + */ + @ApiModelProperty(value = "VPN name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public IpsecVpnStats id(Integer id) { + this.id = id; + return this; + } + + /** + * VPN ID + * @return id + */ + @ApiModelProperty(value = "VPN ID") + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public IpsecVpnStats status(Boolean status) { + this.status = status; + return this; + } + + /** + * VPN status, whether to enable VPN + * @return status + */ + @ApiModelProperty(value = "VPN status, whether to enable VPN ") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public IpsecVpnStats direction(String direction) { + this.direction = direction; + return this; + } + + /** + * SA direction should be a value as follows: in; out + * @return direction + */ + @ApiModelProperty(value = "SA direction should be a value as follows: in; out") + + + public String getDirection() { + return direction; + } + + public void setDirection(String direction) { + this.direction = direction; + } + + public IpsecVpnStats localPeerIp(String localPeerIp) { + this.localPeerIp = localPeerIp; + return this; + } + + /** + * IP address of the local peer + * @return localPeerIp + */ + @ApiModelProperty(value = "IP address of the local peer") + + + public String getLocalPeerIp() { + return localPeerIp; + } + + public void setLocalPeerIp(String localPeerIp) { + this.localPeerIp = localPeerIp; + } + + public IpsecVpnStats remotePeerIp(String remotePeerIp) { + this.remotePeerIp = remotePeerIp; + return this; + } + + /** + * IP address of the remote peer + * @return remotePeerIp + */ + @ApiModelProperty(value = "IP address of the remote peer") + + + public String getRemotePeerIp() { + return remotePeerIp; + } + + public void setRemotePeerIp(String remotePeerIp) { + this.remotePeerIp = remotePeerIp; + } + + public IpsecVpnStats localSa(String localSa) { + this.localSa = localSa; + return this; + } + + /** + * Local network segment of SA Cover + * @return localSa + */ + @ApiModelProperty(value = "Local network segment of SA Cover") + + + public String getLocalSa() { + return localSa; + } + + public void setLocalSa(String localSa) { + this.localSa = localSa; + } + + public IpsecVpnStats remoteSa(String remoteSa) { + this.remoteSa = remoteSa; + return this; + } + + /** + * Remote network segment of SA Cover + * @return remoteSa + */ + @ApiModelProperty(value = "Remote network segment of SA Cover") + + + public String getRemoteSa() { + return remoteSa; + } + + public void setRemoteSa(String remoteSa) { + this.remoteSa = remoteSa; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpsecVpnStats ipsecVpnStats = (IpsecVpnStats) o; + return Objects.equals(this.site, ipsecVpnStats.site) && + Objects.equals(this.name, ipsecVpnStats.name) && + Objects.equals(this.id, ipsecVpnStats.id) && + Objects.equals(this.status, ipsecVpnStats.status) && + Objects.equals(this.direction, ipsecVpnStats.direction) && + Objects.equals(this.localPeerIp, ipsecVpnStats.localPeerIp) && + Objects.equals(this.remotePeerIp, ipsecVpnStats.remotePeerIp) && + Objects.equals(this.localSa, ipsecVpnStats.localSa) && + Objects.equals(this.remoteSa, ipsecVpnStats.remoteSa); + } + + @Override + public int hashCode() { + return Objects.hash(site, name, id, status, direction, localPeerIp, remotePeerIp, localSa, remoteSa); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpsecVpnStats {\n"); + + sb.append(" site: ").append(toIndentedString(site)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" localPeerIp: ").append(toIndentedString(localPeerIp)).append("\n"); + sb.append(" remotePeerIp: ").append(toIndentedString(remotePeerIp)).append("\n"); + sb.append(" localSa: ").append(toIndentedString(localSa)).append("\n"); + sb.append(" remoteSa: ").append(toIndentedString(remoteSa)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IspLoad.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IspLoad.java new file mode 100644 index 0000000..7bcea42 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IspLoad.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * IspLoad + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class IspLoad { + @JsonProperty("portId") + private Integer portId; + + @JsonProperty("portName") + private String portName; + + @JsonProperty("data") + @Valid + private List data = null; + + public IspLoad portId(Integer portId) { + this.portId = portId; + return this; + } + + /** + * Port ID + * @return portId + */ + @ApiModelProperty(value = "Port ID") + + + public Integer getPortId() { + return portId; + } + + public void setPortId(Integer portId) { + this.portId = portId; + } + + public IspLoad portName(String portName) { + this.portName = portName; + return this; + } + + /** + * Port name + * @return portName + */ + @ApiModelProperty(value = "Port name") + + + public String getPortName() { + return portName; + } + + public void setPortName(String portName) { + this.portName = portName; + } + + public IspLoad data(List data) { + this.data = data; + return this; + } + + public IspLoad addDataItem(IspLoadStat dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * WAN port data list + * @return data + */ + @ApiModelProperty(value = "WAN port data list") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IspLoad ispLoad = (IspLoad) o; + return Objects.equals(this.portId, ispLoad.portId) && + Objects.equals(this.portName, ispLoad.portName) && + Objects.equals(this.data, ispLoad.data); + } + + @Override + public int hashCode() { + return Objects.hash(portId, portName, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IspLoad {\n"); + + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append(" portName: ").append(toIndentedString(portName)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IspLoadStat.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IspLoadStat.java new file mode 100644 index 0000000..fd5c3f8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/IspLoadStat.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * WAN port data list + */ +@ApiModel(description = "WAN port data list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class IspLoadStat { + @JsonProperty("totalRate") + private Long totalRate; + + @JsonProperty("latency") + private Integer latency; + + @JsonProperty("time") + private Long time; + + public IspLoadStat totalRate(Long totalRate) { + this.totalRate = totalRate; + return this; + } + + /** + * WAN port rate (rxR+txR) + * @return totalRate + */ + @ApiModelProperty(value = "WAN port rate (rxR+txR)") + + + public Long getTotalRate() { + return totalRate; + } + + public void setTotalRate(Long totalRate) { + this.totalRate = totalRate; + } + + public IspLoadStat latency(Integer latency) { + this.latency = latency; + return this; + } + + /** + * WAN port delay should be within the range of 0 or 1000. (in ms) + * @return latency + */ + @ApiModelProperty(value = "WAN port delay should be within the range of 0 or 1000. (in ms)") + + + public Integer getLatency() { + return latency; + } + + public void setLatency(Integer latency) { + this.latency = latency; + } + + public IspLoadStat time(Long time) { + this.time = time; + return this; + } + + /** + * Timestamp of statistical data (in seconds) + * @return time + */ + @ApiModelProperty(value = "Timestamp of statistical data (in seconds)") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IspLoadStat ispLoadStat = (IspLoadStat) o; + return Objects.equals(this.totalRate, ispLoadStat.totalRate) && + Objects.equals(this.latency, ispLoadStat.latency) && + Objects.equals(this.time, ispLoadStat.time); + } + + @Override + public int hashCode() { + return Objects.hash(totalRate, latency, time); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IspLoadStat {\n"); + + sb.append(" totalRate: ").append(toIndentedString(totalRate)).append("\n"); + sb.append(" latency: ").append(toIndentedString(latency)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ListTabs.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ListTabs.java new file mode 100644 index 0000000..e11fd5c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/ListTabs.java @@ -0,0 +1,163 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ListTabs + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class ListTabs { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("cards") + @Valid + private List cards = null; + + public ListTabs id(String id) { + this.id = id; + return this; + } + + /** + * A unique identifier + * @return id + */ + @ApiModelProperty(value = "A unique identifier") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ListTabs name(String name) { + this.name = name; + return this; + } + + /** + * Name cannot be duplicated on the dashboard page, it should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "Name cannot be duplicated on the dashboard page, it should contain 1 to 64 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ListTabs type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: 1: Network; 2: Clients; 3: Customized. + * @return type + */ + @ApiModelProperty(value = "Type should be a value as follows: 1: Network; 2: Clients; 3: Customized.") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public ListTabs cards(List cards) { + this.cards = cards; + return this; + } + + public ListTabs addCardsItem(Integer cardsItem) { + if (this.cards == null) { + this.cards = new ArrayList<>(); + } + this.cards.add(cardsItem); + return this; + } + + /** + * Card list displayed in Tab. Each number indicates a type of card. card should be a value as follows: 0: Controller Snapshot, 101: Alerts, 102: ISP Load, 103: L2TP/PPTP VPN, 104: Channel Distribution and Usage, 105: Most Active EAPs, 106: Most Active Switches, 108: WiFi/Switching Summary, 109: Traffic Distribution, 110: Traffic Activities, 111: Clients Distribution, 112: Retry Rate/Dropped Rate, 117: Top Device CPU/Memory Usage, 118: IPSEC VPN, 119: OPEN VPN, 120: SSL VPN, 200: Most Active Clients, 201: Longest client uptime, 202: Clients Freq Distribution, 203: Clients Activities, 204: Clients Association Activities, 205: Association Failures, 206: Clients Association Time Distribution, 207: Clients SSID Distribution, 208: Clients RSSI Distribution + * @return cards + */ + @ApiModelProperty(value = "Card list displayed in Tab. Each number indicates a type of card. card should be a value as follows: 0: Controller Snapshot, 101: Alerts, 102: ISP Load, 103: L2TP/PPTP VPN, 104: Channel Distribution and Usage, 105: Most Active EAPs, 106: Most Active Switches, 108: WiFi/Switching Summary, 109: Traffic Distribution, 110: Traffic Activities, 111: Clients Distribution, 112: Retry Rate/Dropped Rate, 117: Top Device CPU/Memory Usage, 118: IPSEC VPN, 119: OPEN VPN, 120: SSL VPN, 200: Most Active Clients, 201: Longest client uptime, 202: Clients Freq Distribution, 203: Clients Activities, 204: Clients Association Activities, 205: Association Failures, 206: Clients Association Time Distribution, 207: Clients SSID Distribution, 208: Clients RSSI Distribution") + + + public List getCards() { + return cards; + } + + public void setCards(List cards) { + this.cards = cards; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ListTabs listTabs = (ListTabs) o; + return Objects.equals(this.id, listTabs.id) && + Objects.equals(this.name, listTabs.name) && + Objects.equals(this.type, listTabs.type) && + Objects.equals(this.cards, listTabs.cards); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, type, cards); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ListTabs {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" cards: ").append(toIndentedString(cards)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/MemUsage.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/MemUsage.java new file mode 100644 index 0000000..5a5e8d9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/MemUsage.java @@ -0,0 +1,201 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * MemUsage + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class MemUsage { + @JsonProperty("name") + private String name; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("memUsage") + private Integer memUsage; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + @JsonProperty("type") + private String type; + + public MemUsage name(String name) { + this.name = name; + return this; + } + + /** + * Device name + * @return name + */ + @ApiModelProperty(value = "Device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MemUsage mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC + * @return mac + */ + @ApiModelProperty(value = "Device MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public MemUsage memUsage(Integer memUsage) { + this.memUsage = memUsage; + return this; + } + + /** + * Device memory usage such as 60 : 60% + * @return memUsage + */ + @ApiModelProperty(value = "Device memory usage such as 60 : 60%") + + + public Integer getMemUsage() { + return memUsage; + } + + public void setMemUsage(Integer memUsage) { + this.memUsage = memUsage; + } + + public MemUsage model(String model) { + this.model = model; + return this; + } + + /** + * Device model + * @return model + */ + @ApiModelProperty(value = "Device model") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public MemUsage modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Device model version + * @return modelVersion + */ + @ApiModelProperty(value = "Device model version") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public MemUsage type(String type) { + this.type = type; + return this; + } + + /** + * Device type + * @return type + */ + @ApiModelProperty(value = "Device type") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MemUsage memUsage = (MemUsage) o; + return Objects.equals(this.name, memUsage.name) && + Objects.equals(this.mac, memUsage.mac) && + Objects.equals(this.memUsage, memUsage.memUsage) && + Objects.equals(this.model, memUsage.model) && + Objects.equals(this.modelVersion, memUsage.modelVersion) && + Objects.equals(this.type, memUsage.type); + } + + @Override + public int hashCode() { + return Objects.hash(name, mac, memUsage, model, modelVersion, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MemUsage {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" memUsage: ").append(toIndentedString(memUsage)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseApChannelStats.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseApChannelStats.java new file mode 100644 index 0000000..5cd659b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseApChannelStats.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApChannelStats + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseApChannelStats { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApChannelStats result; + + public OperationResponseApChannelStats errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApChannelStats msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApChannelStats result(ApChannelStats result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApChannelStats getResult() { + return result; + } + + public void setResult(ApChannelStats result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApChannelStats operationResponseApChannelStats = (OperationResponseApChannelStats) o; + return Objects.equals(this.errorCode, operationResponseApChannelStats.errorCode) && + Objects.equals(this.msg, operationResponseApChannelStats.msg) && + Objects.equals(this.result, operationResponseApChannelStats.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApChannelStats {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseApInterferences.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseApInterferences.java new file mode 100644 index 0000000..3f12e9f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseApInterferences.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseApInterferences + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseApInterferences { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ApInterferences result; + + public OperationResponseApInterferences errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseApInterferences msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseApInterferences result(ApInterferences result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ApInterferences getResult() { + return result; + } + + public void setResult(ApInterferences result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseApInterferences operationResponseApInterferences = (OperationResponseApInterferences) o; + return Objects.equals(this.errorCode, operationResponseApInterferences.errorCode) && + Objects.equals(this.msg, operationResponseApInterferences.msg) && + Objects.equals(this.result, operationResponseApInterferences.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseApInterferences {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseGetDashboardOverview.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseGetDashboardOverview.java new file mode 100644 index 0000000..4b892ba --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseGetDashboardOverview.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGetDashboardOverview + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseGetDashboardOverview { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GetDashboardOverview result; + + public OperationResponseGetDashboardOverview errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGetDashboardOverview msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGetDashboardOverview result(GetDashboardOverview result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GetDashboardOverview getResult() { + return result; + } + + public void setResult(GetDashboardOverview result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGetDashboardOverview operationResponseGetDashboardOverview = (OperationResponseGetDashboardOverview) o; + return Objects.equals(this.errorCode, operationResponseGetDashboardOverview.errorCode) && + Objects.equals(this.msg, operationResponseGetDashboardOverview.msg) && + Objects.equals(this.result, operationResponseGetDashboardOverview.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGetDashboardOverview {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListActiveDevice.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListActiveDevice.java new file mode 100644 index 0000000..63f0173 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListActiveDevice.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListActiveDevice + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseListActiveDevice { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListActiveDevice errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListActiveDevice msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListActiveDevice result(List result) { + this.result = result; + return this; + } + + public OperationResponseListActiveDevice addResultItem(ActiveDevice resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListActiveDevice operationResponseListActiveDevice = (OperationResponseListActiveDevice) o; + return Objects.equals(this.errorCode, operationResponseListActiveDevice.errorCode) && + Objects.equals(this.msg, operationResponseListActiveDevice.msg) && + Objects.equals(this.result, operationResponseListActiveDevice.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListActiveDevice {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListCpuUsage.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListCpuUsage.java new file mode 100644 index 0000000..44a6e22 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListCpuUsage.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListCpuUsage + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseListCpuUsage { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListCpuUsage errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListCpuUsage msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListCpuUsage result(List result) { + this.result = result; + return this; + } + + public OperationResponseListCpuUsage addResultItem(CpuUsage resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListCpuUsage operationResponseListCpuUsage = (OperationResponseListCpuUsage) o; + return Objects.equals(this.errorCode, operationResponseListCpuUsage.errorCode) && + Objects.equals(this.msg, operationResponseListCpuUsage.msg) && + Objects.equals(this.result, operationResponseListCpuUsage.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListCpuUsage {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListDashboardVpnStats.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListDashboardVpnStats.java new file mode 100644 index 0000000..827fd70 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListDashboardVpnStats.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListDashboardVpnStats + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseListDashboardVpnStats { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListDashboardVpnStats errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListDashboardVpnStats msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListDashboardVpnStats result(List result) { + this.result = result; + return this; + } + + public OperationResponseListDashboardVpnStats addResultItem(DashboardVpnStats resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListDashboardVpnStats operationResponseListDashboardVpnStats = (OperationResponseListDashboardVpnStats) o; + return Objects.equals(this.errorCode, operationResponseListDashboardVpnStats.errorCode) && + Objects.equals(this.msg, operationResponseListDashboardVpnStats.msg) && + Objects.equals(this.result, operationResponseListDashboardVpnStats.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListDashboardVpnStats {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListIpsecVpnStats.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListIpsecVpnStats.java new file mode 100644 index 0000000..c68598c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListIpsecVpnStats.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListIpsecVpnStats + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseListIpsecVpnStats { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListIpsecVpnStats errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListIpsecVpnStats msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListIpsecVpnStats result(List result) { + this.result = result; + return this; + } + + public OperationResponseListIpsecVpnStats addResultItem(IpsecVpnStats resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListIpsecVpnStats operationResponseListIpsecVpnStats = (OperationResponseListIpsecVpnStats) o; + return Objects.equals(this.errorCode, operationResponseListIpsecVpnStats.errorCode) && + Objects.equals(this.msg, operationResponseListIpsecVpnStats.msg) && + Objects.equals(this.result, operationResponseListIpsecVpnStats.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListIpsecVpnStats {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListIspLoad.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListIspLoad.java new file mode 100644 index 0000000..6d3605b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListIspLoad.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListIspLoad + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseListIspLoad { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListIspLoad errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListIspLoad msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListIspLoad result(List result) { + this.result = result; + return this; + } + + public OperationResponseListIspLoad addResultItem(IspLoad resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListIspLoad operationResponseListIspLoad = (OperationResponseListIspLoad) o; + return Objects.equals(this.errorCode, operationResponseListIspLoad.errorCode) && + Objects.equals(this.msg, operationResponseListIspLoad.msg) && + Objects.equals(this.result, operationResponseListIspLoad.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListIspLoad {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListListTabs.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListListTabs.java new file mode 100644 index 0000000..64a1579 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListListTabs.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListListTabs + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseListListTabs { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListListTabs errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListListTabs msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListListTabs result(List result) { + this.result = result; + return this; + } + + public OperationResponseListListTabs addResultItem(ListTabs resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListListTabs operationResponseListListTabs = (OperationResponseListListTabs) o; + return Objects.equals(this.errorCode, operationResponseListListTabs.errorCode) && + Objects.equals(this.msg, operationResponseListListTabs.msg) && + Objects.equals(this.result, operationResponseListListTabs.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListListTabs {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListMemUsage.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListMemUsage.java new file mode 100644 index 0000000..35268a6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListMemUsage.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListMemUsage + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseListMemUsage { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListMemUsage errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListMemUsage msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListMemUsage result(List result) { + this.result = result; + return this; + } + + public OperationResponseListMemUsage addResultItem(MemUsage resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListMemUsage operationResponseListMemUsage = (OperationResponseListMemUsage) o; + return Objects.equals(this.errorCode, operationResponseListMemUsage.errorCode) && + Objects.equals(this.msg, operationResponseListMemUsage.msg) && + Objects.equals(this.result, operationResponseListMemUsage.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListMemUsage {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListPoeUsage.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListPoeUsage.java new file mode 100644 index 0000000..fce2759 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseListPoeUsage.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListPoeUsage + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseListPoeUsage { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListPoeUsage errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListPoeUsage msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListPoeUsage result(List result) { + this.result = result; + return this; + } + + public OperationResponseListPoeUsage addResultItem(PoeUsage resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListPoeUsage operationResponseListPoeUsage = (OperationResponseListPoeUsage) o; + return Objects.equals(this.errorCode, operationResponseListPoeUsage.errorCode) && + Objects.equals(this.msg, operationResponseListPoeUsage.msg) && + Objects.equals(this.result, operationResponseListPoeUsage.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListPoeUsage {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseRetryDropRate.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseRetryDropRate.java new file mode 100644 index 0000000..40cfffa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseRetryDropRate.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseRetryDropRate + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseRetryDropRate { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private RetryDropRate result; + + public OperationResponseRetryDropRate errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseRetryDropRate msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseRetryDropRate result(RetryDropRate result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public RetryDropRate getResult() { + return result; + } + + public void setResult(RetryDropRate result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseRetryDropRate operationResponseRetryDropRate = (OperationResponseRetryDropRate) o; + return Objects.equals(this.errorCode, operationResponseRetryDropRate.errorCode) && + Objects.equals(this.msg, operationResponseRetryDropRate.msg) && + Objects.equals(this.result, operationResponseRetryDropRate.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseRetryDropRate {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseSwitchSummary.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseSwitchSummary.java new file mode 100644 index 0000000..a78af95 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseSwitchSummary.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSwitchSummary + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseSwitchSummary { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SwitchSummary result; + + public OperationResponseSwitchSummary errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSwitchSummary msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSwitchSummary result(SwitchSummary result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SwitchSummary getResult() { + return result; + } + + public void setResult(SwitchSummary result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSwitchSummary operationResponseSwitchSummary = (OperationResponseSwitchSummary) o; + return Objects.equals(this.errorCode, operationResponseSwitchSummary.errorCode) && + Objects.equals(this.msg, operationResponseSwitchSummary.msg) && + Objects.equals(this.result, operationResponseSwitchSummary.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSwitchSummary {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseTrafficActivities.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseTrafficActivities.java new file mode 100644 index 0000000..6c3f59e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseTrafficActivities.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseTrafficActivities + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseTrafficActivities { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private TrafficActivities result; + + public OperationResponseTrafficActivities errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseTrafficActivities msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseTrafficActivities result(TrafficActivities result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public TrafficActivities getResult() { + return result; + } + + public void setResult(TrafficActivities result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseTrafficActivities operationResponseTrafficActivities = (OperationResponseTrafficActivities) o; + return Objects.equals(this.errorCode, operationResponseTrafficActivities.errorCode) && + Objects.equals(this.msg, operationResponseTrafficActivities.msg) && + Objects.equals(this.result, operationResponseTrafficActivities.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseTrafficActivities {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseTrafficDistribution.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseTrafficDistribution.java new file mode 100644 index 0000000..b3f5a8f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseTrafficDistribution.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseTrafficDistribution + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseTrafficDistribution { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private TrafficDistribution result; + + public OperationResponseTrafficDistribution errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseTrafficDistribution msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseTrafficDistribution result(TrafficDistribution result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public TrafficDistribution getResult() { + return result; + } + + public void setResult(TrafficDistribution result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseTrafficDistribution operationResponseTrafficDistribution = (OperationResponseTrafficDistribution) o; + return Objects.equals(this.errorCode, operationResponseTrafficDistribution.errorCode) && + Objects.equals(this.msg, operationResponseTrafficDistribution.msg) && + Objects.equals(this.result, operationResponseTrafficDistribution.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseTrafficDistribution {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseWifiSummary.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseWifiSummary.java new file mode 100644 index 0000000..9be554c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseWifiSummary.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseWifiSummary + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseWifiSummary { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private WifiSummary result; + + public OperationResponseWifiSummary errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWifiSummary msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseWifiSummary result(WifiSummary result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public WifiSummary getResult() { + return result; + } + + public void setResult(WifiSummary result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWifiSummary operationResponseWifiSummary = (OperationResponseWifiSummary) o; + return Objects.equals(this.errorCode, operationResponseWifiSummary.errorCode) && + Objects.equals(this.msg, operationResponseWifiSummary.msg) && + Objects.equals(this.result, operationResponseWifiSummary.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWifiSummary {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseWithoutResult.java new file mode 100644 index 0000000..581f977 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/OperationResponseWithoutResult.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class OperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public OperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseWithoutResult.msg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/PoeUsage.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/PoeUsage.java new file mode 100644 index 0000000..332bd22 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/PoeUsage.java @@ -0,0 +1,239 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PoeUsage + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class PoeUsage { + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("portNum") + private Integer portNum; + + @JsonProperty("totalPowerUsed") + private Integer totalPowerUsed; + + @JsonProperty("totalPercentUsed") + private Double totalPercentUsed; + + @JsonProperty("totalPower") + private Integer totalPower; + + @JsonProperty("poePorts") + @Valid + private List poePorts = null; + + public PoeUsage mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC + * @return mac + */ + @ApiModelProperty(value = "Device MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public PoeUsage name(String name) { + this.name = name; + return this; + } + + /** + * Device name + * @return name + */ + @ApiModelProperty(value = "Device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PoeUsage portNum(Integer portNum) { + this.portNum = portNum; + return this; + } + + /** + * Device port Number + * @return portNum + */ + @ApiModelProperty(value = "Device port Number") + + + public Integer getPortNum() { + return portNum; + } + + public void setPortNum(Integer portNum) { + this.portNum = portNum; + } + + public PoeUsage totalPowerUsed(Integer totalPowerUsed) { + this.totalPowerUsed = totalPowerUsed; + return this; + } + + /** + * Total power used (in watts) + * @return totalPowerUsed + */ + @ApiModelProperty(value = "Total power used (in watts)") + + + public Integer getTotalPowerUsed() { + return totalPowerUsed; + } + + public void setTotalPowerUsed(Integer totalPowerUsed) { + this.totalPowerUsed = totalPowerUsed; + } + + public PoeUsage totalPercentUsed(Double totalPercentUsed) { + this.totalPercentUsed = totalPercentUsed; + return this; + } + + /** + * Percentage of total power used (integer reserved) + * @return totalPercentUsed + */ + @ApiModelProperty(value = "Percentage of total power used (integer reserved)") + + + public Double getTotalPercentUsed() { + return totalPercentUsed; + } + + public void setTotalPercentUsed(Double totalPercentUsed) { + this.totalPercentUsed = totalPercentUsed; + } + + public PoeUsage totalPower(Integer totalPower) { + this.totalPower = totalPower; + return this; + } + + /** + * The total power of the switch port's POE (in watts) + * @return totalPower + */ + @ApiModelProperty(value = "The total power of the switch port's POE (in watts)") + + + public Integer getTotalPower() { + return totalPower; + } + + public void setTotalPower(Integer totalPower) { + this.totalPower = totalPower; + } + + public PoeUsage poePorts(List poePorts) { + this.poePorts = poePorts; + return this; + } + + public PoeUsage addPoePortsItem(PortPoe poePortsItem) { + if (this.poePorts == null) { + this.poePorts = new ArrayList<>(); + } + this.poePorts.add(poePortsItem); + return this; + } + + /** + * Device PoE Ports + * @return poePorts + */ + @ApiModelProperty(value = "Device PoE Ports") + + @Valid + + public List getPoePorts() { + return poePorts; + } + + public void setPoePorts(List poePorts) { + this.poePorts = poePorts; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PoeUsage poeUsage = (PoeUsage) o; + return Objects.equals(this.mac, poeUsage.mac) && + Objects.equals(this.name, poeUsage.name) && + Objects.equals(this.portNum, poeUsage.portNum) && + Objects.equals(this.totalPowerUsed, poeUsage.totalPowerUsed) && + Objects.equals(this.totalPercentUsed, poeUsage.totalPercentUsed) && + Objects.equals(this.totalPower, poeUsage.totalPower) && + Objects.equals(this.poePorts, poeUsage.poePorts); + } + + @Override + public int hashCode() { + return Objects.hash(mac, name, portNum, totalPowerUsed, totalPercentUsed, totalPower, poePorts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PoeUsage {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" portNum: ").append(toIndentedString(portNum)).append("\n"); + sb.append(" totalPowerUsed: ").append(toIndentedString(totalPowerUsed)).append("\n"); + sb.append(" totalPercentUsed: ").append(toIndentedString(totalPercentUsed)).append("\n"); + sb.append(" totalPower: ").append(toIndentedString(totalPower)).append("\n"); + sb.append(" poePorts: ").append(toIndentedString(poePorts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/PortPoe.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/PortPoe.java new file mode 100644 index 0000000..4841990 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/PortPoe.java @@ -0,0 +1,178 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Device PoE Ports + */ +@ApiModel(description = "Device PoE Ports") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class PortPoe { + @JsonProperty("portId") + private Integer portId; + + @JsonProperty("poeSupported") + private Boolean poeSupported; + + @JsonProperty("poeEnabled") + private Boolean poeEnabled; + + @JsonProperty("poePower") + private Integer poePower; + + @JsonProperty("poePercent") + private Integer poePercent; + + public PortPoe portId(Integer portId) { + this.portId = portId; + return this; + } + + /** + * Switch port ID + * @return portId + */ + @ApiModelProperty(value = "Switch port ID") + + + public Integer getPortId() { + return portId; + } + + public void setPortId(Integer portId) { + this.portId = portId; + } + + public PortPoe poeSupported(Boolean poeSupported) { + this.poeSupported = poeSupported; + return this; + } + + /** + * Switch port supported + * @return poeSupported + */ + @ApiModelProperty(value = "Switch port supported") + + + public Boolean getPoeSupported() { + return poeSupported; + } + + public void setPoeSupported(Boolean poeSupported) { + this.poeSupported = poeSupported; + } + + public PortPoe poeEnabled(Boolean poeEnabled) { + this.poeEnabled = poeEnabled; + return this; + } + + /** + * Switch port enable + * @return poeEnabled + */ + @ApiModelProperty(value = "Switch port enable") + + + public Boolean getPoeEnabled() { + return poeEnabled; + } + + public void setPoeEnabled(Boolean poeEnabled) { + this.poeEnabled = poeEnabled; + } + + public PortPoe poePower(Integer poePower) { + this.poePower = poePower; + return this; + } + + /** + * Switch port power + * @return poePower + */ + @ApiModelProperty(value = "Switch port power") + + + public Integer getPoePower() { + return poePower; + } + + public void setPoePower(Integer poePower) { + this.poePower = poePower; + } + + public PortPoe poePercent(Integer poePercent) { + this.poePercent = poePercent; + return this; + } + + /** + * Switch port percent + * @return poePercent + */ + @ApiModelProperty(value = "Switch port percent") + + + public Integer getPoePercent() { + return poePercent; + } + + public void setPoePercent(Integer poePercent) { + this.poePercent = poePercent; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortPoe portPoe = (PortPoe) o; + return Objects.equals(this.portId, portPoe.portId) && + Objects.equals(this.poeSupported, portPoe.poeSupported) && + Objects.equals(this.poeEnabled, portPoe.poeEnabled) && + Objects.equals(this.poePower, portPoe.poePower) && + Objects.equals(this.poePercent, portPoe.poePercent); + } + + @Override + public int hashCode() { + return Objects.hash(portId, poeSupported, poeEnabled, poePower, poePercent); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortPoe {\n"); + + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append(" poeSupported: ").append(toIndentedString(poeSupported)).append("\n"); + sb.append(" poeEnabled: ").append(toIndentedString(poeEnabled)).append("\n"); + sb.append(" poePower: ").append(toIndentedString(poePower)).append("\n"); + sb.append(" poePercent: ").append(toIndentedString(poePercent)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/Retry.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/Retry.java new file mode 100644 index 0000000..5832764 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/Retry.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * AP retries timing list + */ +@ApiModel(description = "AP retries timing list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class Retry { + @JsonProperty("time") + private Long time; + + @JsonProperty("retryTimes") + private Integer retryTimes; + + @JsonProperty("retryRate") + private Double retryRate; + + public Retry time(Long time) { + this.time = time; + return this; + } + + /** + * Sampling time second + * @return time + */ + @ApiModelProperty(value = "Sampling time second") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public Retry retryTimes(Integer retryTimes) { + this.retryTimes = retryTimes; + return this; + } + + /** + * Number of new contracts within one hour, such as 60 : 60% + * @return retryTimes + */ + @ApiModelProperty(value = "Number of new contracts within one hour, such as 60 : 60%") + + + public Integer getRetryTimes() { + return retryTimes; + } + + public void setRetryTimes(Integer retryTimes) { + this.retryTimes = retryTimes; + } + + public Retry retryRate(Double retryRate) { + this.retryRate = retryRate; + return this; + } + + /** + * AP re-contracting rate within one hour + * @return retryRate + */ + @ApiModelProperty(value = "AP re-contracting rate within one hour") + + + public Double getRetryRate() { + return retryRate; + } + + public void setRetryRate(Double retryRate) { + this.retryRate = retryRate; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Retry retry = (Retry) o; + return Objects.equals(this.time, retry.time) && + Objects.equals(this.retryTimes, retry.retryTimes) && + Objects.equals(this.retryRate, retry.retryRate); + } + + @Override + public int hashCode() { + return Objects.hash(time, retryTimes, retryRate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Retry {\n"); + + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" retryTimes: ").append(toIndentedString(retryTimes)).append("\n"); + sb.append(" retryRate: ").append(toIndentedString(retryRate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/RetryDropRate.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/RetryDropRate.java new file mode 100644 index 0000000..2894b43 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/RetryDropRate.java @@ -0,0 +1,124 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * RetryDropRate + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class RetryDropRate { + @JsonProperty("retryEaps") + @Valid + private List retryEaps = null; + + @JsonProperty("droppedEaps") + @Valid + private List droppedEaps = null; + + public RetryDropRate retryEaps(List retryEaps) { + this.retryEaps = retryEaps; + return this; + } + + public RetryDropRate addRetryEapsItem(RetryEap retryEapsItem) { + if (this.retryEaps == null) { + this.retryEaps = new ArrayList<>(); + } + this.retryEaps.add(retryEapsItem); + return this; + } + + /** + * AP list of retransmission packet rates tab, in descending order of average + * @return retryEaps + */ + @ApiModelProperty(value = "AP list of retransmission packet rates tab, in descending order of average") + + @Valid + + public List getRetryEaps() { + return retryEaps; + } + + public void setRetryEaps(List retryEaps) { + this.retryEaps = retryEaps; + } + + public RetryDropRate droppedEaps(List droppedEaps) { + this.droppedEaps = droppedEaps; + return this; + } + + public RetryDropRate addDroppedEapsItem(DropEap droppedEapsItem) { + if (this.droppedEaps == null) { + this.droppedEaps = new ArrayList<>(); + } + this.droppedEaps.add(droppedEapsItem); + return this; + } + + /** + * AP list of packet loss rate tab, in descending order of average value + * @return droppedEaps + */ + @ApiModelProperty(value = "AP list of packet loss rate tab, in descending order of average value") + + @Valid + + public List getDroppedEaps() { + return droppedEaps; + } + + public void setDroppedEaps(List droppedEaps) { + this.droppedEaps = droppedEaps; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetryDropRate retryDropRate = (RetryDropRate) o; + return Objects.equals(this.retryEaps, retryDropRate.retryEaps) && + Objects.equals(this.droppedEaps, retryDropRate.droppedEaps); + } + + @Override + public int hashCode() { + return Objects.hash(retryEaps, droppedEaps); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetryDropRate {\n"); + + sb.append(" retryEaps: ").append(toIndentedString(retryEaps)).append("\n"); + sb.append(" droppedEaps: ").append(toIndentedString(droppedEaps)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/RetryEap.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/RetryEap.java new file mode 100644 index 0000000..0b9b536 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/RetryEap.java @@ -0,0 +1,241 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * AP list of retransmission packet rates tab, in descending order of average + */ +@ApiModel(description = "AP list of retransmission packet rates tab, in descending order of average") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class RetryEap { + @JsonProperty("retries") + @Valid + private List retries = null; + + @JsonProperty("apMac") + private String apMac; + + @JsonProperty("name") + private String name; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + @JsonProperty("avg") + private Double avg; + + @JsonProperty("status") + private Integer status; + + public RetryEap retries(List retries) { + this.retries = retries; + return this; + } + + public RetryEap addRetriesItem(Retry retriesItem) { + if (this.retries == null) { + this.retries = new ArrayList<>(); + } + this.retries.add(retriesItem); + return this; + } + + /** + * AP retries timing list + * @return retries + */ + @ApiModelProperty(value = "AP retries timing list") + + @Valid + + public List getRetries() { + return retries; + } + + public void setRetries(List retries) { + this.retries = retries; + } + + public RetryEap apMac(String apMac) { + this.apMac = apMac; + return this; + } + + /** + * AP MAC + * @return apMac + */ + @ApiModelProperty(value = "AP MAC") + + + public String getApMac() { + return apMac; + } + + public void setApMac(String apMac) { + this.apMac = apMac; + } + + public RetryEap name(String name) { + this.name = name; + return this; + } + + /** + * AP name + * @return name + */ + @ApiModelProperty(value = "AP name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public RetryEap model(String model) { + this.model = model; + return this; + } + + /** + * AP model + * @return model + */ + @ApiModelProperty(value = "AP model") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public RetryEap modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * AP model Version + * @return modelVersion + */ + @ApiModelProperty(value = "AP model Version") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public RetryEap avg(Double avg) { + this.avg = avg; + return this; + } + + /** + * Average current AP retransmission packet rate + * @return avg + */ + @ApiModelProperty(value = "Average current AP retransmission packet rate") + + + public Double getAvg() { + return avg; + } + + public void setAvg(Double avg) { + this.avg = avg; + } + + public RetryEap status(Integer status) { + this.status = status; + return this; + } + + /** + * AP status, 0: connected, 1: disconnected + * @return status + */ + @ApiModelProperty(value = "AP status, 0: connected, 1: disconnected") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RetryEap retryEap = (RetryEap) o; + return Objects.equals(this.retries, retryEap.retries) && + Objects.equals(this.apMac, retryEap.apMac) && + Objects.equals(this.name, retryEap.name) && + Objects.equals(this.model, retryEap.model) && + Objects.equals(this.modelVersion, retryEap.modelVersion) && + Objects.equals(this.avg, retryEap.avg) && + Objects.equals(this.status, retryEap.status); + } + + @Override + public int hashCode() { + return Objects.hash(retries, apMac, name, model, modelVersion, avg, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RetryEap {\n"); + + sb.append(" retries: ").append(toIndentedString(retries)).append("\n"); + sb.append(" apMac: ").append(toIndentedString(apMac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" avg: ").append(toIndentedString(avg)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/SwitchSummary.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/SwitchSummary.java new file mode 100644 index 0000000..407aab0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/SwitchSummary.java @@ -0,0 +1,151 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * SwitchSummary + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class SwitchSummary { + @JsonProperty("clients") + private Integer clients; + + @JsonProperty("portUtilization") + private Integer portUtilization; + + @JsonProperty("connectedSwitchNum") + private Integer connectedSwitchNum; + + @JsonProperty("totalTraffic") + private Long totalTraffic; + + public SwitchSummary clients(Integer clients) { + this.clients = clients; + return this; + } + + /** + * Number of wired clients + * @return clients + */ + @ApiModelProperty(value = "Number of wired clients") + + + public Integer getClients() { + return clients; + } + + public void setClients(Integer clients) { + this.clients = clients; + } + + public SwitchSummary portUtilization(Integer portUtilization) { + this.portUtilization = portUtilization; + return this; + } + + /** + * Port occupancy rate (integer) + * @return portUtilization + */ + @ApiModelProperty(value = "Port occupancy rate (integer)") + + + public Integer getPortUtilization() { + return portUtilization; + } + + public void setPortUtilization(Integer portUtilization) { + this.portUtilization = portUtilization; + } + + public SwitchSummary connectedSwitchNum(Integer connectedSwitchNum) { + this.connectedSwitchNum = connectedSwitchNum; + return this; + } + + /** + * Number of online switches + * @return connectedSwitchNum + */ + @ApiModelProperty(value = "Number of online switches") + + + public Integer getConnectedSwitchNum() { + return connectedSwitchNum; + } + + public void setConnectedSwitchNum(Integer connectedSwitchNum) { + this.connectedSwitchNum = connectedSwitchNum; + } + + public SwitchSummary totalTraffic(Long totalTraffic) { + this.totalTraffic = totalTraffic; + return this; + } + + /** + * Upstream and downstream traffic and the unit (Byte) of online switches + * @return totalTraffic + */ + @ApiModelProperty(value = "Upstream and downstream traffic and the unit (Byte) of online switches") + + + public Long getTotalTraffic() { + return totalTraffic; + } + + public void setTotalTraffic(Long totalTraffic) { + this.totalTraffic = totalTraffic; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchSummary switchSummary = (SwitchSummary) o; + return Objects.equals(this.clients, switchSummary.clients) && + Objects.equals(this.portUtilization, switchSummary.portUtilization) && + Objects.equals(this.connectedSwitchNum, switchSummary.connectedSwitchNum) && + Objects.equals(this.totalTraffic, switchSummary.totalTraffic); + } + + @Override + public int hashCode() { + return Objects.hash(clients, portUtilization, connectedSwitchNum, totalTraffic); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchSummary {\n"); + + sb.append(" clients: ").append(toIndentedString(clients)).append("\n"); + sb.append(" portUtilization: ").append(toIndentedString(portUtilization)).append("\n"); + sb.append(" connectedSwitchNum: ").append(toIndentedString(connectedSwitchNum)).append("\n"); + sb.append(" totalTraffic: ").append(toIndentedString(totalTraffic)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/TrafficActivities.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/TrafficActivities.java new file mode 100644 index 0000000..f323465 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/TrafficActivities.java @@ -0,0 +1,124 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * TrafficActivities + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class TrafficActivities { + @JsonProperty("apTrafficActivities") + @Valid + private List apTrafficActivities = null; + + @JsonProperty("switchTrafficActivities") + @Valid + private List switchTrafficActivities = null; + + public TrafficActivities apTrafficActivities(List apTrafficActivities) { + this.apTrafficActivities = apTrafficActivities; + return this; + } + + public TrafficActivities addApTrafficActivitiesItem(DeviceTrafficActivity apTrafficActivitiesItem) { + if (this.apTrafficActivities == null) { + this.apTrafficActivities = new ArrayList<>(); + } + this.apTrafficActivities.add(apTrafficActivitiesItem); + return this; + } + + /** + * Wireless network total traffic timing list + * @return apTrafficActivities + */ + @ApiModelProperty(value = "Wireless network total traffic timing list") + + @Valid + + public List getApTrafficActivities() { + return apTrafficActivities; + } + + public void setApTrafficActivities(List apTrafficActivities) { + this.apTrafficActivities = apTrafficActivities; + } + + public TrafficActivities switchTrafficActivities(List switchTrafficActivities) { + this.switchTrafficActivities = switchTrafficActivities; + return this; + } + + public TrafficActivities addSwitchTrafficActivitiesItem(DeviceTrafficActivity switchTrafficActivitiesItem) { + if (this.switchTrafficActivities == null) { + this.switchTrafficActivities = new ArrayList<>(); + } + this.switchTrafficActivities.add(switchTrafficActivitiesItem); + return this; + } + + /** + * Wireless network total traffic timing list Wired network total traffic timing list, + * @return switchTrafficActivities + */ + @ApiModelProperty(value = "Wireless network total traffic timing list Wired network total traffic timing list,") + + @Valid + + public List getSwitchTrafficActivities() { + return switchTrafficActivities; + } + + public void setSwitchTrafficActivities(List switchTrafficActivities) { + this.switchTrafficActivities = switchTrafficActivities; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TrafficActivities trafficActivities = (TrafficActivities) o; + return Objects.equals(this.apTrafficActivities, trafficActivities.apTrafficActivities) && + Objects.equals(this.switchTrafficActivities, trafficActivities.switchTrafficActivities); + } + + @Override + public int hashCode() { + return Objects.hash(apTrafficActivities, switchTrafficActivities); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TrafficActivities {\n"); + + sb.append(" apTrafficActivities: ").append(toIndentedString(apTrafficActivities)).append("\n"); + sb.append(" switchTrafficActivities: ").append(toIndentedString(switchTrafficActivities)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/TrafficDistribution.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/TrafficDistribution.java new file mode 100644 index 0000000..9c4ea6d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/TrafficDistribution.java @@ -0,0 +1,124 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * TrafficDistribution + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class TrafficDistribution { + @JsonProperty("aps") + @Valid + private List aps = null; + + @JsonProperty("switches") + @Valid + private List switches = null; + + public TrafficDistribution aps(List aps) { + this.aps = aps; + return this; + } + + public TrafficDistribution addApsItem(DeviceTrafficDistribution apsItem) { + if (this.aps == null) { + this.aps = new ArrayList<>(); + } + this.aps.add(apsItem); + return this; + } + + /** + * Current Site Ap List + * @return aps + */ + @ApiModelProperty(value = "Current Site Ap List") + + @Valid + + public List getAps() { + return aps; + } + + public void setAps(List aps) { + this.aps = aps; + } + + public TrafficDistribution switches(List switches) { + this.switches = switches; + return this; + } + + public TrafficDistribution addSwitchesItem(DeviceTrafficDistribution switchesItem) { + if (this.switches == null) { + this.switches = new ArrayList<>(); + } + this.switches.add(switchesItem); + return this; + } + + /** + * Current Site Switch List + * @return switches + */ + @ApiModelProperty(value = "Current Site Switch List") + + @Valid + + public List getSwitches() { + return switches; + } + + public void setSwitches(List switches) { + this.switches = switches; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TrafficDistribution trafficDistribution = (TrafficDistribution) o; + return Objects.equals(this.aps, trafficDistribution.aps) && + Objects.equals(this.switches, trafficDistribution.switches); + } + + @Override + public int hashCode() { + return Objects.hash(aps, switches); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TrafficDistribution {\n"); + + sb.append(" aps: ").append(toIndentedString(aps)).append("\n"); + sb.append(" switches: ").append(toIndentedString(switches)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/UpdateTabOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/UpdateTabOpenApiVo.java new file mode 100644 index 0000000..aa5ee7b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/UpdateTabOpenApiVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * UpdateTabOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class UpdateTabOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("reset") + private Boolean reset; + + public UpdateTabOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name on this Dashboard page must be unique, it should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "Name on this Dashboard page must be unique, it should contain 1 to 64 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateTabOpenApiVo reset(Boolean reset) { + this.reset = reset; + return this; + } + + /** + * True: reset Default TAB (custom TAB cannot be reset). + * @return reset + */ + @ApiModelProperty(value = "True: reset Default TAB (custom TAB cannot be reset).") + + + public Boolean getReset() { + return reset; + } + + public void setReset(Boolean reset) { + this.reset = reset; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateTabOpenApiVo updateTabOpenApiVo = (UpdateTabOpenApiVo) o; + return Objects.equals(this.name, updateTabOpenApiVo.name) && + Objects.equals(this.reset, updateTabOpenApiVo.reset); + } + + @Override + public int hashCode() { + return Objects.hash(name, reset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateTabOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" reset: ").append(toIndentedString(reset)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/WifiSummary.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/WifiSummary.java new file mode 100644 index 0000000..3d9295b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/monitor/model/WifiSummary.java @@ -0,0 +1,151 @@ +package org.wfc.omada.api.monitor.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * WifiSummary + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:38:12.484+08:00[Asia/Shanghai]") + +public class WifiSummary { + @JsonProperty("connectedApNum") + private Integer connectedApNum; + + @JsonProperty("clients") + private Integer clients; + + @JsonProperty("channelUtilization") + private Integer channelUtilization; + + @JsonProperty("totalTraffic") + private Double totalTraffic; + + public WifiSummary connectedApNum(Integer connectedApNum) { + this.connectedApNum = connectedApNum; + return this; + } + + /** + * The number of connected APs + * @return connectedApNum + */ + @ApiModelProperty(value = "The number of connected APs") + + + public Integer getConnectedApNum() { + return connectedApNum; + } + + public void setConnectedApNum(Integer connectedApNum) { + this.connectedApNum = connectedApNum; + } + + public WifiSummary clients(Integer clients) { + this.clients = clients; + return this; + } + + /** + * The number of connected wireless clients + * @return clients + */ + @ApiModelProperty(value = "The number of connected wireless clients") + + + public Integer getClients() { + return clients; + } + + public void setClients(Integer clients) { + this.clients = clients; + } + + public WifiSummary channelUtilization(Integer channelUtilization) { + this.channelUtilization = channelUtilization; + return this; + } + + /** + * The average channel utilization of the 2.4GHz and 5GHz band for each AP in percentage. Null means no value. + * @return channelUtilization + */ + @ApiModelProperty(value = "The average channel utilization of the 2.4GHz and 5GHz band for each AP in percentage. Null means no value.") + + + public Integer getChannelUtilization() { + return channelUtilization; + } + + public void setChannelUtilization(Integer channelUtilization) { + this.channelUtilization = channelUtilization; + } + + public WifiSummary totalTraffic(Double totalTraffic) { + this.totalTraffic = totalTraffic; + return this; + } + + /** + * Total traffic measured in KB + * @return totalTraffic + */ + @ApiModelProperty(value = "Total traffic measured in KB") + + + public Double getTotalTraffic() { + return totalTraffic; + } + + public void setTotalTraffic(Double totalTraffic) { + this.totalTraffic = totalTraffic; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WifiSummary wifiSummary = (WifiSummary) o; + return Objects.equals(this.connectedApNum, wifiSummary.connectedApNum) && + Objects.equals(this.clients, wifiSummary.clients) && + Objects.equals(this.channelUtilization, wifiSummary.channelUtilization) && + Objects.equals(this.totalTraffic, wifiSummary.totalTraffic); + } + + @Override + public int hashCode() { + return Objects.hash(connectedApNum, clients, channelUtilization, totalTraffic); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WifiSummary {\n"); + + sb.append(" connectedApNum: ").append(toIndentedString(connectedApNum)).append("\n"); + sb.append(" clients: ").append(toIndentedString(clients)).append("\n"); + sb.append(" channelUtilization: ").append(toIndentedString(channelUtilization)).append("\n"); + sb.append(" totalTraffic: ").append(toIndentedString(totalTraffic)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaCustomerApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaCustomerApi.java new file mode 100644 index 0000000..b8e3ec4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaCustomerApi.java @@ -0,0 +1,140 @@ +package org.wfc.omada.api.msp; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.msp.model.CustomerOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseCreateCustomerOmadacVo; +import org.wfc.omada.api.msp.model.OperationResponseCustomerInfoOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseGridVoCustomerInfoOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseListCustomerInfoOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:43:59.418+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaCustomer", description = "the OmadaCustomer API") +@FeignClient(name="OmadaCustomerApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaCustomerApi { + + /** + * POST /openapi/v1/msp/{mspId}/customers : Create new customer + * Create new customer(This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.)<br/><br/>The interface requires one of the permissions: <br/>MSP Dashboard Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30145 - The number of omadacs has reached the limit.<br/>-34706 - This name already exists. Please enter another name for this customer.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode. + * + * @param mspId MSP ID (required) + * @param customerOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new customer", nickname = "createCustomer", notes = "Create new customer(This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.)

The interface requires one of the permissions:
MSP Dashboard Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30145 - The number of omadacs has reached the limit.
-34706 - This name already exists. Please enter another name for this customer.
-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseCreateCustomerOmadacVo.class, tags={ "Omada/Customer","Customer", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCreateCustomerOmadacVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/customers", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createCustomer(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CustomerOpenApiVo customerOpenApiVo); + + + /** + * DELETE /openapi/v1/msp/{mspId}/customers/{customerId} : Delete an existing customer + * Delete an existing customer(This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.)<br/><br/>The interface requires one of the permissions: <br/>MSP Dashboard Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34707 - Need to delete all sites of this customer before deleting this customer.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode. + * + * @param mspId MSP ID (required) + * @param customerId Customer ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing customer", nickname = "deleteCustomer", notes = "Delete an existing customer(This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.)

The interface requires one of the permissions:
MSP Dashboard Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34707 - Need to delete all sites of this customer before deleting this customer.
-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseWithoutResult.class, tags={ "Omada/Customer","Customer", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/customers/{customerId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteCustomer(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "Customer ID",required=true) @PathVariable("customerId") String customerId); + + + /** + * GET /openapi/v1/msp/{mspId}/customers/{customerId} : Get customer info + * Get customer info<br/><br/>The interface requires one of the permissions: <br/>MSP Dashboard View Only + * + * @param mspId MSP ID (required) + * @param customerId Customer ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get customer info", nickname = "getCustomerDetail", notes = "Get customer info

The interface requires one of the permissions:
MSP Dashboard View Only", response = OperationResponseCustomerInfoOpenApiVo.class, tags={ "Omada/Customer","Customer", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCustomerInfoOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/customers/{customerId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getCustomerDetail(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "Customer ID",required=true) @PathVariable("customerId") String customerId); + + + /** + * GET /openapi/v1/msp/{mspId}/customers : Get customer list + * Get customer list<br/><br/>The interface requires one of the permissions: <br/>MSP Dashboard View Only + * + * @param mspId MSP ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field name (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get customer list", nickname = "getCustomerList", notes = "Get customer list

The interface requires one of the permissions:
MSP Dashboard View Only", response = OperationResponseGridVoCustomerInfoOpenApiVo.class, tags={ "Omada/Customer","Customer", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoCustomerInfoOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/customers", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getCustomerList(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/copy/site/template/batch/customers : Obtain the customer ID with permission to modify site templates + * Obtain the IDs of customers whose site templates the current user has permission to modify.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Obtain the customer ID with permission to modify site templates", nickname = "getCustomersInGlobalHaveSiteTemplateModify", notes = "Obtain the IDs of customers whose site templates the current user has permission to modify.

The interface requires one of the permissions:
Global Site Template Manager Modify", response = OperationResponseListCustomerInfoOpenApiVo.class, tags={ "Omada/Customer","Customer", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListCustomerInfoOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/copy/site/template/batch/customers", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getCustomersInGlobalHaveSiteTemplateModify(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * PATCH /openapi/v1/msp/{mspId}/customers/{customerId} : Modify an existing customer + * Modify an existing customer<br/><br/>The interface requires one of the permissions: <br/>MSP Dashboard Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34706 - This name already exists. Please enter another name for this customer. + * + * @param mspId MSP ID (required) + * @param customerId Customer ID (required) + * @param customerOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing customer", nickname = "modifyCustomer", notes = "Modify an existing customer

The interface requires one of the permissions:
MSP Dashboard Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34706 - This name already exists. Please enter another name for this customer.", response = OperationResponseWithoutResult.class, tags={ "Omada/Customer","Customer", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/customers/{customerId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyCustomer(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "Customer ID",required=true) @PathVariable("customerId") String customerId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CustomerOpenApiVo customerOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspBatchOpenApiApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspBatchOpenApiApi.java new file mode 100644 index 0000000..77543d7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspBatchOpenApiApi.java @@ -0,0 +1,45 @@ +package org.wfc.omada.api.msp; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.msp.model.BatchRequestEntity; +import org.wfc.omada.api.msp.model.OperationResponseBatchResponseEntity; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:43:59.418+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaMspBatchOpenApi", description = "the OmadaMspBatchOpenApi API") +@FeignClient(name="OmadaMspBatchOpenApiApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaMspBatchOpenApiApi { + + /** + * POST /openapi/v1/msp/{mspId}/batch : Batch Processing MSP OpenAPIs + * Batch processing of multiple OpenAPIs under the same MSP controller through this OpenAPI.<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-1600 - Unsupported request path.<br/>-1619 - Execution has been interrupted due to unsuccessful execution of the pre action request.<br/>-1620 - Error occurred while executing action.<br/>-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.<br/>-44113 - The Access Token is Invalid.<br/>-7132 - Our server is receiving too many requests now. Please try again later. + * + * @param mspId MSP ID (required) + * @param batchRequestEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch Processing MSP OpenAPIs", nickname = "mspBatchController", notes = "Batch processing of multiple OpenAPIs under the same MSP controller through this OpenAPI.

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.
-1600 - Unsupported request path.
-1619 - Execution has been interrupted due to unsuccessful execution of the pre action request.
-1620 - Error occurred while executing action.
-44112 - The access token has expired. Please re-initiate the refreshToken process to obtain the access token.
-44113 - The Access Token is Invalid.
-7132 - Our server is receiving too many requests now. Please try again later.", response = OperationResponseBatchResponseEntity.class, tags={ "Omada/MSP Batch OpenAPI","MSP Batch OpenAPI", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseBatchResponseEntity.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/batch", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity mspBatchController(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchRequestEntity batchRequestEntity); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspDeviceApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspDeviceApi.java new file mode 100644 index 0000000..3f40b6f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspDeviceApi.java @@ -0,0 +1,91 @@ +package org.wfc.omada.api.msp; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.msp.model.OperationResponseGridVoMspKnownDeviceOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseGridVoMspUnknownDeviceOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseListTagRespOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:43:59.418+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaMspDevice", description = "the OmadaMspDevice API") +@FeignClient(name="OmadaMspDeviceApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaMspDeviceApi { + + /** + * GET /openapi/v1/msp/{mspId}/devices/known-devices : Get MSP known device list + * Get MSP known device list<br/><br/>The interface requires one of the permissions: <br/>MSP Device Manager View Only + * + * @param mspId MSP ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param searchMacs Fuzzy query parameters, support field mac (optional) + * @param searchNames Fuzzy query parameters, support field name (optional) + * @param searchModels Fuzzy query parameters, support field model (optional) + * @param searchSns Fuzzy query parameters, support field sn (optional) + * @param filtersTag Filter query parameters, support field tag ID (optional) + * @param filtersDeviceSeriesType Filter query parameters, support field Device series type. 0: basic; 1: pro. (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get MSP known device list", nickname = "getMspKnownDeviceList", notes = "Get MSP known device list

The interface requires one of the permissions:
MSP Device Manager View Only", response = OperationResponseGridVoMspKnownDeviceOpenApiVo.class, tags={ "Omada/MSP Device","MSP Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoMspKnownDeviceOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/devices/known-devices", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getMspKnownDeviceList(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Fuzzy query parameters, support field mac") @Valid @RequestParam(value = "searchMacs", required = false) String searchMacs,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchNames", required = false) String searchNames,@ApiParam(value = "Fuzzy query parameters, support field model") @Valid @RequestParam(value = "searchModels", required = false) String searchModels,@ApiParam(value = "Fuzzy query parameters, support field sn") @Valid @RequestParam(value = "searchSns", required = false) String searchSns,@ApiParam(value = "Filter query parameters, support field tag ID") @Valid @RequestParam(value = "filters.tag", required = false) String filtersTag,@ApiParam(value = "Filter query parameters, support field Device series type. 0: basic; 1: pro.") @Valid @RequestParam(value = "filters.deviceSeriesType", required = false) String filtersDeviceSeriesType); + + + /** + * GET /openapi/v1/msp/{mspId}/devices/unknown-devices : Get MSP unknown device list + * Get MSP unknown device list<br/><br/>The interface requires one of the permissions: <br/>MSP Device Manager View Only + * + * @param mspId MSP ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param searchMacs Fuzzy query parameters, support field mac (optional) + * @param searchNames Fuzzy query parameters, support field name (optional) + * @param searchModels Fuzzy query parameters, support field model (optional) + * @param filtersDeviceSeriesType Filter query parameters, support field Device series type. 0: basic; 1: pro. (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get MSP unknown device list", nickname = "getMspUnknownDeviceList", notes = "Get MSP unknown device list

The interface requires one of the permissions:
MSP Device Manager View Only", response = OperationResponseGridVoMspUnknownDeviceOpenApiVo.class, tags={ "Omada/MSP Device","MSP Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoMspUnknownDeviceOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/devices/unknown-devices", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getMspUnknownDeviceList(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Fuzzy query parameters, support field mac") @Valid @RequestParam(value = "searchMacs", required = false) String searchMacs,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchNames", required = false) String searchNames,@ApiParam(value = "Fuzzy query parameters, support field model") @Valid @RequestParam(value = "searchModels", required = false) String searchModels,@ApiParam(value = "Filter query parameters, support field Device series type. 0: basic; 1: pro.") @Valid @RequestParam(value = "filters.deviceSeriesType", required = false) String filtersDeviceSeriesType); + + + /** + * GET /openapi/v1/msp/{mspId}/devices/tag : Get tag list + * Get tag list.<br/><br/>The interface requires one of the permissions: <br/>Site Device Manager View Only<br/>MSP Device Manager View Only<br/>Site Map Manager View Only + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get tag list", nickname = "getTags1", notes = "Get tag list.

The interface requires one of the permissions:
Site Device Manager View Only
MSP Device Manager View Only
Site Map Manager View Only", response = OperationResponseListTagRespOpenApiVo.class, tags={ "Omada/MSP Device","MSP Device", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListTagRespOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/devices/tag", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getTags1(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspHistoryDataRetentionApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspHistoryDataRetentionApi.java new file mode 100644 index 0000000..951b4e3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspHistoryDataRetentionApi.java @@ -0,0 +1,62 @@ +package org.wfc.omada.api.msp; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.msp.model.ModifyHistoryRetentionOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseHistoryRetentionOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:43:59.418+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaMspHistoryDataRetention", description = "the OmadaMspHistoryDataRetention API") +@FeignClient(name="OmadaMspHistoryDataRetentionApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaMspHistoryDataRetentionApi { + + /** + * GET /openapi/v1/msp/{mspId}/retention : Get MSP history data retention configuration + * Get MSP history data retention configuration.<br/><br/>The interface requires one of the permissions: <br/>MSP Other Settings View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30001 - Controller is not configured.<br/>-7131 - Controller ID not exist. + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get MSP history data retention configuration", nickname = "getMspDataRetention", notes = "Get MSP history data retention configuration.

The interface requires one of the permissions:
MSP Other Settings View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30001 - Controller is not configured.
-7131 - Controller ID not exist.", response = OperationResponseHistoryRetentionOpenApiVo.class, tags={ "Omada/MSP History Data Retention","MSP History Data Retention", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseHistoryRetentionOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/retention", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getMspDataRetention(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + + + /** + * PATCH /openapi/v1/msp/{mspId}/retention : Modify MSP history data retention configuration + * Modify MSP history data retention configuration.<br/><br/>The interface requires one of the permissions: <br/>MSP Other Settings Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30001 - Controller is not configured.<br/>-30028 - The system is busy. Please try again later.<br/>-7131 - Controller ID not exist. + * + * @param mspId MSP ID (required) + * @param modifyHistoryRetentionOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify MSP history data retention configuration", nickname = "modifyMspRetention", notes = "Modify MSP history data retention configuration.

The interface requires one of the permissions:
MSP Other Settings Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30001 - Controller is not configured.
-30028 - The system is busy. Please try again later.
-7131 - Controller ID not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/MSP History Data Retention","MSP History Data Retention", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/retention", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyMspRetention(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyHistoryRetentionOpenApiVo modifyHistoryRetentionOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspLicenseApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspLicenseApi.java new file mode 100644 index 0000000..d867324 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspLicenseApi.java @@ -0,0 +1,159 @@ +package org.wfc.omada.api.msp; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.msp.model.GridVoUsedLicenseDetailOpenApiVo; +import org.wfc.omada.api.msp.model.LicenseAssignmentOpenApiVo; +import org.wfc.omada.api.msp.model.LicenseAutoActiveOpenApiVo; +import org.wfc.omada.api.msp.model.LicenseAvailableAssignOpenApiVo; +import org.wfc.omada.api.msp.model.LicenseAvailableRecycleOpenApiVo; +import org.wfc.omada.api.msp.model.LicenseRecycleOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseLicenseAutoActiveOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:43:59.418+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaMspLicense", description = "the OmadaMspLicense API") +@FeignClient(name="OmadaMspLicenseApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaMspLicenseApi { + + /** + * GET /openapi/v1/msp/{mspId}/license/assign : Get available assign license info + * Get available assign license info.<br/><br/>The interface requires one of the permissions: <br/>MSP License Manager View Only + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get available assign license info", nickname = "assignAvailableLicenseForMsp", notes = "Get available assign license info.

The interface requires one of the permissions:
MSP License Manager View Only", response = LicenseAvailableAssignOpenApiVo.class, tags={ "Omada/Msp License","Msp License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = LicenseAvailableAssignOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/license/assign", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity assignAvailableLicenseForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + + + /** + * POST /openapi/v1/msp/{mspId}/license/assign : Assign license to a customer + * Assign license to a customer.<br/><br/>The interface requires one of the permissions: <br/>MSP License Manager Modify + * + * @param mspId MSP ID (required) + * @param licenseAssignmentOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Assign license to a customer", nickname = "assignmentLicenseForMsp", notes = "Assign license to a customer.

The interface requires one of the permissions:
MSP License Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp License","Msp License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/license/assign", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity assignmentLicenseForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LicenseAssignmentOpenApiVo licenseAssignmentOpenApiVo); + + + /** + * GET /openapi/v1/msp/{mspId}/license/recycle : Get available recycle license info + * Get available recycle license info.<br/><br/>The interface requires one of the permissions: <br/>MSP License Manager View Only + * + * @param mspId MSP ID (required) + * @param customerId Customer ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get available recycle license info", nickname = "getAutoActive", notes = "Get available recycle license info.

The interface requires one of the permissions:
MSP License Manager View Only", response = LicenseAvailableRecycleOpenApiVo.class, tags={ "Omada/Msp License","Msp License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = LicenseAvailableRecycleOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/license/recycle", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAutoActive(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Customer ID", required = true) @Valid @RequestParam(value = "customerId", required = true) String customerId); + + + /** + * GET /openapi/v1/msp/{mspId}/license/auto-active : Get license auto active + * Get license auto active.<br/><br/>The interface requires one of the permissions: <br/>MSP License Manager View Only + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get license auto active", nickname = "getAutoActive1", notes = "Get license auto active.

The interface requires one of the permissions:
MSP License Manager View Only", response = OperationResponseLicenseAutoActiveOpenApiVo.class, tags={ "Omada/Msp License","Msp License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLicenseAutoActiveOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/license/auto-active", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAutoActive1(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + + + /** + * GET /openapi/v1/msp/{mspId}/license/used : Get used license info list for assign or recycle license + * Get used license info list for assign or recycle license.<br/><br/>The interface requires one of the permissions: <br/>MSP License Manager View Only + * + * @param mspId MSP ID (required) + * @param customerId Customer ID (required) + * @param category It should be a value as follows: basic; ap; l2Switch; l3Switch; gateway (required) + * @param assign Assign license: true; recycle license: false (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get used license info list for assign or recycle license", nickname = "getUsedLicenseForMsp", notes = "Get used license info list for assign or recycle license.

The interface requires one of the permissions:
MSP License Manager View Only", response = GridVoUsedLicenseDetailOpenApiVo.class, tags={ "Omada/Msp License","Msp License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = GridVoUsedLicenseDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/license/used", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getUsedLicenseForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Customer ID", required = true) @Valid @RequestParam(value = "customerId", required = true) String customerId,@NotNull @ApiParam(value = "It should be a value as follows: basic; ap; l2Switch; l3Switch; gateway", required = true) @Valid @RequestParam(value = "category", required = true) String category,@NotNull @ApiParam(value = "Assign license: true; recycle license: false", required = true) @Valid @RequestParam(value = "assign", required = true) Boolean assign,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * POST /openapi/v1/msp/{mspId}/license/auto-active : Modify license auto active + * Modify license auto active.<br/><br/>The interface requires one of the permissions: <br/>MSP Bind/Unbind License Manager Modify + * + * @param mspId MSP ID (required) + * @param licenseAutoActiveOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify license auto active", nickname = "modifyAutoActive", notes = "Modify license auto active.

The interface requires one of the permissions:
MSP Bind/Unbind License Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp License","Msp License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/license/auto-active", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity modifyAutoActive(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LicenseAutoActiveOpenApiVo licenseAutoActiveOpenApiVo); + + + /** + * POST /openapi/v1/msp/{mspId}/license/recycle : Recycle license from a customer + * Recycle license from a customer.<br/><br/>The interface requires one of the permissions: <br/>MSP License Manager Modify + * + * @param mspId MSP ID (required) + * @param licenseRecycleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Recycle license from a customer", nickname = "recycleLicenseForMsp", notes = "Recycle license from a customer.

The interface requires one of the permissions:
MSP License Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp License","Msp License", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/license/recycle", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity recycleLicenseForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LicenseRecycleOpenApiVo licenseRecycleOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspLogApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspLogApi.java new file mode 100644 index 0000000..da50b58 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspLogApi.java @@ -0,0 +1,178 @@ +package org.wfc.omada.api.msp; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.msp.model.AuditLogNotificationSettingEditOpenApiVo; +import org.wfc.omada.api.msp.model.LogNotificationSettingEditOpenApiV2Vo; +import org.wfc.omada.api.msp.model.LogNotificationSettingEditOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseAuditLogNotificationSettingOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseGridVoAuditLogOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseLogNotificationSettingOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:43:59.418+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaMspLog", description = "the OmadaMspLog API") +@FeignClient(name="OmadaMspLogApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaMspLogApi { + + /** + * GET /openapi/v1/msp/{mspId}/audit-notification : Get MSP audit log notification + * Get msp audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Log Manager View Only + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get MSP audit log notification", nickname = "getAuditLogSettingForMsp", notes = "Get msp audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Log Manager View Only", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class, tags={ "Omada/Msp Log","Msp Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseAuditLogNotificationSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/audit-notification", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAuditLogSettingForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + + + /** + * GET /openapi/v1/msp/{mspId}/audit-logs : Get MSP audit log list + * Get audit logs in msp audit page.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Log Manager View Only + * + * @param mspId MSP ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000.(value:10,15,20,30,50,100) (required) + * @param sortsTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param filtersResult Filter query parameters, support field result,it should be a value as follows: 0: successful; 1: failed,example:0 (optional) + * @param filtersLevel Filter query parameters, support field level,it should be a value as follows: Error; Warning; Information, example:Error (optional) + * @param filtersAuditTypes Filter query parameters, support field auditTypes, for the values of auditLog type, refer to section 5.2.2 of the Open API Access Guide, example:Log,Cloud Access,User Interface. (optional) + * @param filtersTimes Filter query parameters, support field times, example:[{\"timeStart\":1678060800000,\"timeEnd\":1678665599999}](UrlEncode:%5B%7B%22timeStart%22%3A1678060800000%2C%22timeEnd%22%3A1678665599999%7D%5D).If this parameter is not specified (not included or empty array), the interface will query data within the default time period: [{\"timeStart\": Current timestamp minus milliseconds of 7 days,\"timeEnd\": Current timestamp}]. (optional) + * @param searchKey Fuzzy query parameters, support field content (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get MSP audit log list", nickname = "getAuditLogsForMsp", notes = "Get audit logs in msp audit page.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Log Manager View Only", response = OperationResponseGridVoAuditLogOpenApiVo.class, tags={ "Omada/Msp Log","Msp Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoAuditLogOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/audit-logs", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAuditLogsForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.(value:10,15,20,30,50,100)", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.time", required = false) String sortsTime,@ApiParam(value = "Filter query parameters, support field result,it should be a value as follows: 0: successful; 1: failed,example:0") @Valid @RequestParam(value = "filters.result", required = false) Integer filtersResult,@ApiParam(value = "Filter query parameters, support field level,it should be a value as follows: Error; Warning; Information, example:Error") @Valid @RequestParam(value = "filters.level", required = false) String filtersLevel,@ApiParam(value = "Filter query parameters, support field auditTypes, for the values of auditLog type, refer to section 5.2.2 of the Open API Access Guide, example:Log,Cloud Access,User Interface.") @Valid @RequestParam(value = "filters.auditTypes", required = false) String filtersAuditTypes,@ApiParam(value = "Filter query parameters, support field times, example:[{\"timeStart\":1678060800000,\"timeEnd\":1678665599999}](UrlEncode:%5B%7B%22timeStart%22%3A1678060800000%2C%22timeEnd%22%3A1678665599999%7D%5D).If this parameter is not specified (not included or empty array), the interface will query data within the default time period: [{\"timeStart\": Current timestamp minus milliseconds of 7 days,\"timeEnd\": Current timestamp}].") @Valid @RequestParam(value = "filters.times", required = false) String filtersTimes,@ApiParam(value = "Fuzzy query parameters, support field content") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/msp/{mspId}/log-notification : Get MSP log notification + * Get msp log notification.This interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>MSP Log Manager View Only + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Get MSP log notification", nickname = "getLogSettingForMsp", notes = "Get msp log notification.This interface has been deprecated.

The interface requires one of the permissions:
MSP Log Manager View Only", response = OperationResponseLogNotificationSettingOpenApiVo.class, tags={ "Omada/Msp Log","Msp Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLogNotificationSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/log-notification", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLogSettingForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + + + /** + * GET /openapi/v1/msp/{mspId}/log-notification-setting : Get MSP log notification + * Get msp log notification.<br/><br/>The interface requires one of the permissions: <br/>MSP Log Manager View Only + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get MSP log notification", nickname = "getLogSettingForMspV2", notes = "Get msp log notification.

The interface requires one of the permissions:
MSP Log Manager View Only", response = OperationResponseLogNotificationSettingOpenApiVo.class, tags={ "Omada/Msp Log","Msp Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLogNotificationSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/log-notification-setting", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLogSettingForMspV2(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + + + /** + * PATCH /openapi/v1/msp/{mspId}/audit-notification : Modify MSP audit log notification + * Modify MSP audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Log Manager Modify + * + * @param mspId MSP ID (required) + * @param auditLogNotificationSettingEditOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify MSP audit log notification", nickname = "modifyAuditLogSettingMsp", notes = "Modify MSP audit log notification.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp Log","Msp Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/audit-notification", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyAuditLogSettingMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) AuditLogNotificationSettingEditOpenApiVo auditLogNotificationSettingEditOpenApiVo); + + + /** + * PATCH /openapi/v1/msp/{mspId}/log-notification : Modify MSP log notification + * Modify MSP log notification.This interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>MSP Log Manager Modify + * + * @param mspId MSP ID (required) + * @param logNotificationSettingEditOpenApiVo (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Modify MSP log notification", nickname = "modifyLogSettingMsp", notes = "Modify MSP log notification.This interface has been deprecated.

The interface requires one of the permissions:
MSP Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp Log","Msp Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/log-notification", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyLogSettingMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiVo logNotificationSettingEditOpenApiVo); + + + /** + * PATCH /openapi/v1/msp/{mspId}/log-notification-setting : Modify MSP log notification + * Modify MSP log notification.<br/><br/>The interface requires one of the permissions: <br/>MSP Log Manager Modify + * + * @param mspId MSP ID (required) + * @param logNotificationSettingEditOpenApiV2Vo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify MSP log notification", nickname = "modifyLogSettingMspV2", notes = "Modify MSP log notification.

The interface requires one of the permissions:
MSP Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp Log","Msp Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/log-notification-setting", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyLogSettingMspV2(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LogNotificationSettingEditOpenApiV2Vo logNotificationSettingEditOpenApiV2Vo); + + + /** + * POST /openapi/v1/msp/{mspId}/reset/log-notification : Reset MSP log notification + * Reset MSP log notification.<br/><br/>The interface requires one of the permissions: <br/>MSP Log Manager Modify + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Reset MSP log notification", nickname = "resetLogSettingMsp", notes = "Reset MSP log notification.

The interface requires one of the permissions:
MSP Log Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp Log","Msp Log", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/reset/log-notification", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity resetLogSettingMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSettingApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSettingApi.java new file mode 100644 index 0000000..4284a6a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSettingApi.java @@ -0,0 +1,98 @@ +package org.wfc.omada.api.msp; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.msp.model.ModifyMspGeneralSettingOpenApiVo; +import org.wfc.omada.api.msp.model.MspUiInterfaceOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseMspGeneralSettingOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseMspUiInterfaceOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:43:59.418+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaMspSetting", description = "the OmadaMspSetting API") +@FeignClient(name="OmadaMspSettingApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaMspSettingApi { + + /** + * GET /openapi/v1/msp/{mspId}/general-setting : Get msp general setting + * Get msp general setting<br/><br/>The interface requires one of the permissions: <br/>MSP Other Settings View Only + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get msp general setting", nickname = "getGeneralSetting", notes = "Get msp general setting

The interface requires one of the permissions:
MSP Other Settings View Only", response = OperationResponseMspGeneralSettingOpenApiVo.class, tags={ "Omada/Msp setting","Msp setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseMspGeneralSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/general-setting", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGeneralSetting(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + + + /** + * GET /openapi/v1/msp/{mspId}/ui-interface : Get msp ui interface + * Get msp ui interface<br/><br/>The interface requires one of the permissions: <br/>MSP Other Settings View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-7131 - Controller ID not exist. + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get msp ui interface", nickname = "getUiInterface", notes = "Get msp ui interface

The interface requires one of the permissions:
MSP Other Settings View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-7131 - Controller ID not exist.", response = OperationResponseMspUiInterfaceOpenApiVo.class, tags={ "Omada/Msp setting","Msp setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseMspUiInterfaceOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/ui-interface", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getUiInterface(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + + + /** + * PATCH /openapi/v1/msp/{mspId}/general-setting : Modify msp general setting + * Modify msp general setting<br/><br/>The interface requires one of the permissions: <br/>MSP Other Settings Modify + * + * @param mspId MSP ID (required) + * @param modifyMspGeneralSettingOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify msp general setting", nickname = "modifyGeneralSetting", notes = "Modify msp general setting

The interface requires one of the permissions:
MSP Other Settings Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp setting","Msp setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/general-setting", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyGeneralSetting(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyMspGeneralSettingOpenApiVo modifyMspGeneralSettingOpenApiVo); + + + /** + * PATCH /openapi/v1/msp/{mspId}/ui-interface : Modify msp ui interface + * Modify msp ui interface<br/><br/>The interface requires one of the permissions: <br/>MSP Other Settings Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-7131 - Controller ID not exist. + * + * @param mspId MSP ID (required) + * @param mspUiInterfaceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify msp ui interface", nickname = "modifyUiInterface", notes = "Modify msp ui interface

The interface requires one of the permissions:
MSP Other Settings Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-7131 - Controller ID not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp setting","Msp setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/ui-interface", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyUiInterface(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) MspUiInterfaceOpenApiVo mspUiInterfaceOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSiteApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSiteApi.java new file mode 100644 index 0000000..ccd10d5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSiteApi.java @@ -0,0 +1,67 @@ +package org.wfc.omada.api.msp; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.msp.model.OperationResponseGridVoSiteSummaryInfo; +import org.wfc.omada.api.msp.model.SiteTag; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.List; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:43:59.418+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaMspSite", description = "the OmadaMspSite API") +@FeignClient(name="OmadaMspSiteApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaMspSiteApi { + + /** + * GET /openapi/v1/msp/{mspId}/sites : Get msp site list + * Get msp site list<br/><br/>The interface requires one of the permissions: <br/>MSP Site Manager View Only + * + * @param mspId MSP ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field name (optional) + * @param filtersTag Filter query parameters, support field tag ID (optional) + * @param filtersType Filter query parameters, support field site type. 0: basic site; 1: pro site. (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get msp site list", nickname = "getSiteList", notes = "Get msp site list

The interface requires one of the permissions:
MSP Site Manager View Only", response = OperationResponseGridVoSiteSummaryInfo.class, tags={ "Omada/MSP Site","MSP Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoSiteSummaryInfo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/sites", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteList(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey,@ApiParam(value = "Filter query parameters, support field tag ID") @Valid @RequestParam(value = "filters.tag", required = false) String filtersTag,@ApiParam(value = "Filter query parameters, support field site type. 0: basic site; 1: pro site.") @Valid @RequestParam(value = "filters.type", required = false) String filtersType); + + + /** + * GET /openapi/v1/msp/{mspId}/sites/tags : Get msp site tag list + * Get msp site tag list.<br/><br/>The interface requires one of the permissions: <br/>MSP Site Manager View Only + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get msp site tag list", nickname = "getTags", notes = "Get msp site tag list.

The interface requires one of the permissions:
MSP Site Manager View Only", response = SiteTag.class, responseContainer = "List", tags={ "Omada/MSP Site","MSP Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = SiteTag.class, responseContainer = "List") }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/sites/tags", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity> getTags(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSsoApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSsoApi.java new file mode 100644 index 0000000..5cd10ff --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspSsoApi.java @@ -0,0 +1,201 @@ +package org.wfc.omada.api.msp; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.msp.model.IdpMetadataOpenApiVo; +import org.wfc.omada.api.msp.model.MspExternalUserGroupOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseGridVoIdpMetadataDetailOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseGridVoMspExternalUserDetailOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo; +import org.wfc.omada.api.msp.model.OperationResponseResponseIdVo; +import org.wfc.omada.api.msp.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:43:59.418+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaMspSso", description = "the OmadaMspSso API") +@FeignClient(name="OmadaMspSsoApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaMspSsoApi { + + /** + * POST /openapi/v1/msp/{mspId}/sso/external-user-groups : Create new msp external user group + * Create new msp external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30172 - The SAML role name already exists.<br/>-30179 - The SAML roles number has reached the upper limit.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param mspId MSP ID (required) + * @param mspExternalUserGroupOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new msp external user group", nickname = "createExternalUserGroup", notes = "Create new msp external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Saml Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30102 - This role does not exist.
-30172 - The SAML role name already exists.
-30179 - The SAML roles number has reached the upper limit.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseResponseIdVo.class, tags={ "Omada/MSP SSO","MSP SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/sso/external-user-groups", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createExternalUserGroup(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) MspExternalUserGroupOpenApiVo mspExternalUserGroupOpenApiVo); + + + /** + * POST /openapi/v1/msp/{mspId}/sso/saml-idps : Create new msp idp + * Create new msp idp. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30170 - The SAML sso metadata entityId already exists.<br/>-30171 - The SAML sso metadata name already exist.<br/>-30178 - The SAML sso number has reached the upper limit.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param mspId MSP ID (required) + * @param idpMetadataOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new msp idp", nickname = "createIdpMetadata", notes = "Create new msp idp. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Saml SSO Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30170 - The SAML sso metadata entityId already exists.
-30171 - The SAML sso metadata name already exist.
-30178 - The SAML sso number has reached the upper limit.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseResponseIdVo.class, tags={ "Omada/MSP SSO","MSP SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/sso/saml-idps", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createIdpMetadata(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IdpMetadataOpenApiVo idpMetadataOpenApiVo); + + + /** + * DELETE /openapi/v1/msp/{mspId}/sso/external-user-groups/{externalUserGroupId} : Delete an existing msp external user group + * Delete an existing msp external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param mspId MSP ID (required) + * @param externalUserGroupId External user group ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing msp external user group", nickname = "deleteExternalUserGroup", notes = "Delete an existing msp external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Saml Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/MSP SSO","MSP SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/sso/external-user-groups/{externalUserGroupId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteExternalUserGroup(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "External user group ID",required=true) @PathVariable("externalUserGroupId") String externalUserGroupId); + + + /** + * DELETE /openapi/v1/msp/{mspId}/sso/saml-idps/{idpId} : Delete an existing msp idp + * Delete an existing msp idp. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param mspId MSP ID (required) + * @param idpId Idp ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing msp idp", nickname = "deleteIdpMetadata", notes = "Delete an existing msp idp. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Saml SSO Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/MSP SSO","MSP SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/sso/saml-idps/{idpId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteIdpMetadata(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "Idp ID",required=true) @PathVariable("idpId") String idpId); + + + /** + * GET /openapi/v1/msp/{mspId}/sso/external-user-groups : Get msp external user group list + * Get msp external user group list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Saml Roles Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param mspId MSP ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field name (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get msp external user group list", nickname = "getExternalUserGroupList", notes = "Get msp external user group list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Saml Roles Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo.class, tags={ "Omada/MSP SSO","MSP SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/sso/external-user-groups", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getExternalUserGroupList(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/msp/{mspId}/sso/external-users : Get msp external user list + * Get msp external user list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Saml Users Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param mspId MSP ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsUserName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field userName (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get msp external user list", nickname = "getExternalUserList", notes = "Get msp external user list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Saml Users Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoMspExternalUserDetailOpenApiVo.class, tags={ "Omada/MSP SSO","MSP SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoMspExternalUserDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/sso/external-users", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getExternalUserList(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.userName", required = false) String sortsUserName,@ApiParam(value = "Fuzzy query parameters, support field userName") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/msp/{mspId}/sso/saml-idps : Get msp idp list + * Get msp idp list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Saml SSO Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param mspId MSP ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsIdpName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get msp idp list", nickname = "getIdpMetadataList", notes = "Get msp idp list. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Saml SSO Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoIdpMetadataDetailOpenApiVo.class, tags={ "Omada/MSP SSO","MSP SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoIdpMetadataDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/sso/saml-idps", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getIdpMetadataList(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.idpName", required = false) String sortsIdpName); + + + /** + * PUT /openapi/v1/msp/{mspId}/sso/external-user-groups/{externalUserGroupId} : Modify an existing msp external user group + * Modify an existing msp external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Saml Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30172 - The SAML role name already exists.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param mspId MSP ID (required) + * @param externalUserGroupId External user group ID (required) + * @param mspExternalUserGroupOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing msp external user group", nickname = "modifyExternalUserGroup", notes = "Modify an existing msp external user group. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Saml Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30102 - This role does not exist.
-30172 - The SAML role name already exists.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/MSP SSO","MSP SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/sso/external-user-groups/{externalUserGroupId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyExternalUserGroup(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "External user group ID",required=true) @PathVariable("externalUserGroupId") String externalUserGroupId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) MspExternalUserGroupOpenApiVo mspExternalUserGroupOpenApiVo); + + + /** + * PUT /openapi/v1/msp/{mspId}/sso/saml-idps/{idpId} : Modify an existing msp idp + * Modify an existing msp idp.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Saml SSO Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30170 - The SAML sso metadata entityId already exists.<br/>-30171 - The SAML sso metadata name already exist.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param mspId MSP ID (required) + * @param idpId Idp ID (required) + * @param idpMetadataOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing msp idp", nickname = "modifyIdpMetadata", notes = "Modify an existing msp idp.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Saml SSO Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30170 - The SAML sso metadata entityId already exists.
-30171 - The SAML sso metadata name already exist.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/MSP SSO","MSP SSO", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/sso/saml-idps/{idpId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyIdpMetadata(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "Idp ID",required=true) @PathVariable("idpId") String idpId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IdpMetadataOpenApiVo idpMetadataOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspUserAndRoleApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspUserAndRoleApi.java new file mode 100644 index 0000000..4762d93 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspUserAndRoleApi.java @@ -0,0 +1,239 @@ +package org.wfc.omada.api.msp; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.msp.model.CreateMspUserVo; +import org.wfc.omada.api.msp.model.DeleteUserVo; +import org.wfc.omada.api.msp.model.ModifyMspRoleVo; +import org.wfc.omada.api.msp.model.ModifyMspUserVo; +import org.wfc.omada.api.msp.model.ModifyRoleVo; +import org.wfc.omada.api.msp.model.OperationResponseCreateRoleResultVo; +import org.wfc.omada.api.msp.model.OperationResponseCreateUserResultVo; +import org.wfc.omada.api.msp.model.OperationResponseGridVoMspUserDetailVo; +import org.wfc.omada.api.msp.model.OperationResponseListControllerRoleDetailVo; +import org.wfc.omada.api.msp.model.OperationResponseListMspRoleDetailVo; +import org.wfc.omada.api.msp.model.OperationResponseMspRoleDetailVo; +import org.wfc.omada.api.msp.model.OperationResponseMspUserDetailVo; +import org.wfc.omada.api.msp.model.OperationResponseObject; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:43:59.418+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaMspUserAndRole", description = "the OmadaMspUserAndRole API") +@FeignClient(name="OmadaMspUserAndRoleApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaMspUserAndRoleApi { + + /** + * POST /openapi/v1/msp/{mspId}/roles : Create new msp role + * Create new msp role<br/><br/>The interface requires one of the permissions: <br/>MSP Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30156 - This role already exists.<br/>-30158 - An error occurred while creating the role.<br/>-30161 - The number of roles has reached the limit. + * + * @param mspId MSP ID (required) + * @param modifyMspRoleVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new msp role", nickname = "createNewMspRole", notes = "Create new msp role

The interface requires one of the permissions:
MSP Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30156 - This role already exists.
-30158 - An error occurred while creating the role.
-30161 - The number of roles has reached the limit.", response = OperationResponseCreateRoleResultVo.class, tags={ "Omada/MSP User and Role","MSP User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCreateRoleResultVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/roles", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createNewMspRole(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyMspRoleVo modifyMspRoleVo); + + + /** + * POST /openapi/v1/msp/{mspId}/users : Create new msp user + * Create new msp user. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>MSP Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30103 - Invalid email address.<br/>-30104 - Invalid username.<br/>-30105 - Invalid password.<br/>-30106 - This username is already registered.<br/>-30124 - The number of users has reached the limit.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode. + * + * @param mspId MSP ID (required) + * @param createMspUserVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new msp user", nickname = "createNewMspUser", notes = "Create new msp user. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.

The interface requires one of the permissions:
MSP Users Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30103 - Invalid email address.
-30104 - Invalid username.
-30105 - Invalid password.
-30106 - This username is already registered.
-30124 - The number of users has reached the limit.
-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseCreateUserResultVo.class, tags={ "Omada/MSP User and Role","MSP User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCreateUserResultVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/users", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createNewMspUser(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateMspUserVo createMspUserVo); + + + /** + * DELETE /openapi/v1/msp/{mspId}/roles/{roleId} : Delete an existing msp role + * Delete an existing msp role<br/><br/>The interface requires one of the permissions: <br/>MSP Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30153 - The default role cannot be deleted.<br/>-30154 - An error occurred while deleting the role.<br/>-30155 - The role cannot be deleted since someone has bound to it.<br/>-30173 - The SSO bound role cannot be deleted! + * + * @param mspId MSP ID (required) + * @param roleId Role ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing msp role", nickname = "deleteMspRole", notes = "Delete an existing msp role

The interface requires one of the permissions:
MSP Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30102 - This role does not exist.
-30153 - The default role cannot be deleted.
-30154 - An error occurred while deleting the role.
-30155 - The role cannot be deleted since someone has bound to it.
-30173 - The SSO bound role cannot be deleted!", response = OperationResponseObject.class, tags={ "Omada/MSP User and Role","MSP User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/roles/{roleId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteMspRole(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "Role ID",required=true) @PathVariable("roleId") String roleId); + + + /** + * DELETE /openapi/v1/msp/{mspId}/users/{userID} : Delete an existing msp user + * Delete an existing msp user. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>MSP Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30112 - This user does not exist.<br/>-30114 - An error occurred while deleting the user.<br/>-30132 - Are you sure you want to delete Administrator %Username%? When it is deleted, the viewer accounts it has created will be moved to your account.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode. + * + * @param mspId MSP ID (required) + * @param userID (required) + * @param deleteUserVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing msp user", nickname = "deleteMspUser", notes = "Delete an existing msp user. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.

The interface requires one of the permissions:
MSP Users Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30112 - This user does not exist.
-30114 - An error occurred while deleting the user.
-30132 - Are you sure you want to delete Administrator %Username%? When it is deleted, the viewer accounts it has created will be moved to your account.
-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseObject.class, tags={ "Omada/MSP User and Role","MSP User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/users/{userID}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.DELETE) + ResponseEntity deleteMspUser(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "",required=true) @PathVariable("userID") String userID,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteUserVo deleteUserVo); + + + /** + * GET /openapi/v1/msp/{mspId}/customer-roles : Get customer role list in msp + * Get customer role list in msp<br/><br/>The interface requires one of the permissions: <br/>MSP Roles Manager View Only + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get customer role list in msp", nickname = "getAllCustomerRoles", notes = "Get customer role list in msp

The interface requires one of the permissions:
MSP Roles Manager View Only", response = OperationResponseListControllerRoleDetailVo.class, tags={ "Omada/MSP User and Role","MSP User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListControllerRoleDetailVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/customer-roles", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAllCustomerRoles(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + + + /** + * GET /openapi/v1/msp/{mspId}/roles : Get msp role list + * Get msp role list<br/><br/>The interface requires one of the permissions: <br/>MSP Roles Manager View Only + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get msp role list", nickname = "getAllMspRoles", notes = "Get msp role list

The interface requires one of the permissions:
MSP Roles Manager View Only", response = OperationResponseListMspRoleDetailVo.class, tags={ "Omada/MSP User and Role","MSP User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListMspRoleDetailVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/roles", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAllMspRoles(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + + + /** + * GET /openapi/v1/msp/{mspId}/users : Get msp user list + * Get msp user list. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>MSP Users Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode. + * + * @param mspId MSP ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsRoleId Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsEmail Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsCustomerRoleId Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field userName (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get msp user list", nickname = "getGridUsers", notes = "Get msp user list. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.

The interface requires one of the permissions:
MSP Users Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseGridVoMspUserDetailVo.class, tags={ "Omada/MSP User and Role","MSP User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoMspUserDetailVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/users", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridUsers(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.roleId", required = false) String sortsRoleId,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.email", required = false) String sortsEmail,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.customerRoleId", required = false) String sortsCustomerRoleId,@ApiParam(value = "Fuzzy query parameters, support field userName") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/msp/{mspId}/roles/{roleId} : Get msp role info + * Get msp role info<br/><br/>The interface requires one of the permissions: <br/>MSP Roles Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist. + * + * @param mspId (required) + * @param roleId Role ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get msp role info", nickname = "getMspRole", notes = "Get msp role info

The interface requires one of the permissions:
MSP Roles Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30102 - This role does not exist.", response = OperationResponseMspRoleDetailVo.class, tags={ "Omada/MSP User and Role","MSP User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseMspRoleDetailVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/roles/{roleId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getMspRole(@ApiParam(value = "",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "Role ID",required=true) @PathVariable("roleId") String roleId); + + + /** + * GET /openapi/v1/msp/{mspId}/users/{userID} : Get msp user info + * Get msp user info. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>MSP Users Manager View Only + * + * @param mspId MSP ID (required) + * @param userID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get msp user info", nickname = "getUser", notes = "Get msp user info. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.

The interface requires one of the permissions:
MSP Users Manager View Only", response = OperationResponseMspUserDetailVo.class, tags={ "Omada/MSP User and Role","MSP User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseMspUserDetailVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/users/{userID}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getUser(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "",required=true) @PathVariable("userID") String userID); + + + /** + * PUT /openapi/v1/msp/{mspId}/roles/{roleId} : Modify an existing msp role + * Modify an existing msp role.<br/><br/>The interface requires one of the permissions: <br/>MSP Roles Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30102 - This role does not exist.<br/>-30156 - This role already exists.<br/>-30157 - An error occurred while modifying the role.<br/>-30159 - The default role cannot be modified.<br/>-30162 - Cannot change the target account. Its role permission scope cannot be greater than its manager. + * + * @param mspId MSP ID (required) + * @param roleId Role ID (required) + * @param modifyRoleVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing msp role", nickname = "modifyMspRole", notes = "Modify an existing msp role.

The interface requires one of the permissions:
MSP Roles Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30102 - This role does not exist.
-30156 - This role already exists.
-30157 - An error occurred while modifying the role.
-30159 - The default role cannot be modified.
-30162 - Cannot change the target account. Its role permission scope cannot be greater than its manager.", response = OperationResponseObject.class, tags={ "Omada/MSP User and Role","MSP User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/roles/{roleId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyMspRole(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "Role ID",required=true) @PathVariable("roleId") String roleId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyRoleVo modifyRoleVo); + + + /** + * PUT /openapi/v1/msp/{mspId}/users/{userID} : Modify an existing msp user + * Modify an existing msp user. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.<br/><br/>The interface requires one of the permissions: <br/>MSP Users Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30103 - Invalid email address.<br/>-30104 - Invalid username.<br/>-30105 - Invalid password.<br/>-30106 - This username is already registered.<br/>-30108 - This username does not exist.<br/>-30133 - Failed to remove Site %Site name%. The administrator account should not have privileges to fewer sites than that of the viewer accounts it has created.<br/>-30134 - Failed to add Site %Site name%. The viewer account should not have privileges to more sites thatn that of its immediate superior account.<br/>-30135 - Are you sure you want to change the role of %Username% from Administrator to Viewer?If its role is changed, the viewer accounts it has created will be moved to your account.<br/>-30136 - Failed to save. If the editing is saved, the viewer account will have privileges to more sites than that of its immediate superior account.<br/>-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode. + * + * @param mspId MSP ID (required) + * @param userID (required) + * @param modifyMspUserVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing msp user", nickname = "modifyMspUser", notes = "Modify an existing msp user. This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.

The interface requires one of the permissions:
MSP Users Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30103 - Invalid email address.
-30104 - Invalid username.
-30105 - Invalid password.
-30106 - This username is already registered.
-30108 - This username does not exist.
-30133 - Failed to remove Site %Site name%. The administrator account should not have privileges to fewer sites than that of the viewer accounts it has created.
-30134 - Failed to add Site %Site name%. The viewer account should not have privileges to more sites thatn that of its immediate superior account.
-30135 - Are you sure you want to change the role of %Username% from Administrator to Viewer?If its role is changed, the viewer accounts it has created will be moved to your account.
-30136 - Failed to save. If the editing is saved, the viewer account will have privileges to more sites than that of its immediate superior account.
-44118 - This interface only supports the authorization code mode, not the client mode. Please call this interface in authorization code mode.", response = OperationResponseObject.class, tags={ "Omada/MSP User and Role","MSP User and Role", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/users/{userID}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyMspUser(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "",required=true) @PathVariable("userID") String userID,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyMspUserVo modifyMspUserVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspWebhookSettingApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspWebhookSettingApi.java new file mode 100644 index 0000000..9f674bd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/OmadaMspWebhookSettingApi.java @@ -0,0 +1,143 @@ +package org.wfc.omada.api.msp; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.msp.model.OpenApiWebhookSettingAddVo; +import org.wfc.omada.api.msp.model.OpenApiWebhookSettingEditVo; +import org.wfc.omada.api.msp.model.OpenApiWebhookSettingTestVo; +import org.wfc.omada.api.msp.model.OperationResponseGridVoOpenApiWebhookDispatchLogVo; +import org.wfc.omada.api.msp.model.OperationResponseListWebhookSetting; +import org.wfc.omada.api.msp.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:43:59.418+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaMspWebhookSetting", description = "the OmadaMspWebhookSetting API") +@FeignClient(name="OmadaMspWebhookSettingApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaMspWebhookSettingApi { + + /** + * POST /openapi/v1/msp/{mspId}/webhook/settings : Create MSP webhook setting + * Create MSP webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Webhook Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44200 - The number of webhooks has reached the limit.<br/>-44201 - This webhook name already exists.<br/>-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated. + * + * @param mspId MSP ID (required) + * @param openApiWebhookSettingAddVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create MSP webhook setting", nickname = "createWebhookForMsp", notes = "Create MSP webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Webhook Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44200 - The number of webhooks has reached the limit.
-44201 - This webhook name already exists.
-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated.", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp Webhook Setting","Msp Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/webhook/settings", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createWebhookForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OpenApiWebhookSettingAddVo openApiWebhookSettingAddVo); + + + /** + * DELETE /openapi/v1/msp/{mspId}/webhook/settings/{webhookId} : Delete MSP webhook setting + * Delete MSP webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Webhook Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44202 - This webhook entry does not exist. + * + * @param mspId MSP ID (required) + * @param webhookId Webhook ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete MSP webhook setting", nickname = "deleteWebhookForMsp", notes = "Delete MSP webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Webhook Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44202 - This webhook entry does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp Webhook Setting","Msp Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/webhook/settings/{webhookId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteWebhookForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "Webhook ID",required=true) @PathVariable("webhookId") String webhookId); + + + /** + * GET /openapi/v1/msp/{mspId}/webhook/settings : Get MSP webhook setting list + * Get all MSP webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Webhook Manager View Only + * + * @param mspId MSP ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get MSP webhook setting list", nickname = "getWebhookForMsp", notes = "Get all MSP webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Webhook Manager View Only", response = OperationResponseListWebhookSetting.class, tags={ "Omada/Msp Webhook Setting","Msp Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListWebhookSetting.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/webhook/settings", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWebhookForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId); + + + /** + * GET /openapi/v1/msp/{mspId}/webhook/settings/dispatch-logs : Get MSP webhook dispatch log list + * Get MSP webhook dispatch log list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Webhook Manager View Only + * + * @param mspId MSP ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param filtersWebhookId Filter query parameters, support field d66aed17ea7238154ba610710d9a2890 (required) + * @param filtersTimeStart Filter query parameters, support field 1679297710438 (required) + * @param filtersTimeEnd Filter query parameters, support field 1681889710438 (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get MSP webhook dispatch log list", nickname = "getWebhookLogsForMsp", notes = "Get MSP webhook dispatch log list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Webhook Manager View Only", response = OperationResponseGridVoOpenApiWebhookDispatchLogVo.class, tags={ "Omada/Msp Webhook Setting","Msp Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoOpenApiWebhookDispatchLogVo.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/webhook/settings/dispatch-logs", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWebhookLogsForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@NotNull @ApiParam(value = "Filter query parameters, support field d66aed17ea7238154ba610710d9a2890", required = true) @Valid @RequestParam(value = "filters.webhookId", required = true) String filtersWebhookId,@NotNull @ApiParam(value = "Filter query parameters, support field 1679297710438", required = true) @Valid @RequestParam(value = "filters.timeStart", required = true) Long filtersTimeStart,@NotNull @ApiParam(value = "Filter query parameters, support field 1681889710438", required = true) @Valid @RequestParam(value = "filters.timeEnd", required = true) Long filtersTimeEnd); + + + /** + * PATCH /openapi/v1/msp/{mspId}/webhook/settings/{webhookId} : Modify MSP webhook setting + * Modify MSP webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Webhook Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44202 - This webhook entry does not exist.<br/>-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated. + * + * @param mspId MSP ID (required) + * @param webhookId Webhook ID (required) + * @param openApiWebhookSettingEditVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify MSP webhook setting", nickname = "modifyWebhookForMsp", notes = "Modify MSP webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Webhook Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44202 - This webhook entry does not exist.
-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated.", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp Webhook Setting","Msp Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/webhook/settings/{webhookId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyWebhookForMsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "Webhook ID",required=true) @PathVariable("webhookId") String webhookId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OpenApiWebhookSettingEditVo openApiWebhookSettingEditVo); + + + /** + * POST /openapi/v1/msp/{mspId}/webhook/settings/{webhookId} : Test MSP webhook setting + * Test MSP webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>MSP Webhook Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated. + * + * @param mspId MSP ID (required) + * @param webhookId Webhook ID (required) + * @param openApiWebhookSettingTestVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Test MSP webhook setting", nickname = "testWebhookFormsp", notes = "Test MSP webhook setting.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
MSP Webhook Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44203 - Webhook URL List should contain 1 to 3 URL entries. URL entries cannot be duplicated.", response = OperationResponseWithoutResult.class, tags={ "Omada/Msp Webhook Setting","Msp Webhook Setting", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/msp/{mspId}/webhook/settings/{webhookId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity testWebhookFormsp(@ApiParam(value = "MSP ID",required=true) @PathVariable("mspId") String mspId,@ApiParam(value = "Webhook ID",required=true) @PathVariable("webhookId") String webhookId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OpenApiWebhookSettingTestVo openApiWebhookSettingTestVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationEditOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationEditOpenApiVo.java new file mode 100644 index 0000000..0e421a2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationEditOpenApiVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Audit Log Notification List + */ +@ApiModel(description = "Audit Log Notification List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class AuditLogNotificationEditOpenApiVo { + @JsonProperty("key") + private String key; + + @JsonProperty("webhook") + private Boolean webhook; + + public AuditLogNotificationEditOpenApiVo key(String key) { + this.key = key; + return this; + } + + /** + * For the values of Audit Log Notification Category Key, refer to section 5.2.1 of the Open API Access + * @return key + */ + @ApiModelProperty(required = true, value = "For the values of Audit Log Notification Category Key, refer to section 5.2.1 of the Open API Access") + @NotNull + + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public AuditLogNotificationEditOpenApiVo webhook(Boolean webhook) { + this.webhook = webhook; + return this; + } + + /** + * Audit Log Notification Category Enable or Disable Webhook + * @return webhook + */ + @ApiModelProperty(required = true, value = "Audit Log Notification Category Enable or Disable Webhook") + @NotNull + + + public Boolean getWebhook() { + return webhook; + } + + public void setWebhook(Boolean webhook) { + this.webhook = webhook; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuditLogNotificationEditOpenApiVo auditLogNotificationEditOpenApiVo = (AuditLogNotificationEditOpenApiVo) o; + return Objects.equals(this.key, auditLogNotificationEditOpenApiVo.key) && + Objects.equals(this.webhook, auditLogNotificationEditOpenApiVo.webhook); + } + + @Override + public int hashCode() { + return Objects.hash(key, webhook); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuditLogNotificationEditOpenApiVo {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationOpenApiVo.java new file mode 100644 index 0000000..0dab449 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Audit Log Notification List + */ +@ApiModel(description = "Audit Log Notification List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class AuditLogNotificationOpenApiVo { + @JsonProperty("key") + private String key; + + @JsonProperty("shortMsg") + private String shortMsg; + + @JsonProperty("webhook") + private Boolean webhook; + + public AuditLogNotificationOpenApiVo key(String key) { + this.key = key; + return this; + } + + /** + * Audit Log Notification Category Key + * @return key + */ + @ApiModelProperty(value = "Audit Log Notification Category Key") + + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public AuditLogNotificationOpenApiVo shortMsg(String shortMsg) { + this.shortMsg = shortMsg; + return this; + } + + /** + * Audit Log Notification Category Short Message + * @return shortMsg + */ + @ApiModelProperty(value = "Audit Log Notification Category Short Message") + + + public String getShortMsg() { + return shortMsg; + } + + public void setShortMsg(String shortMsg) { + this.shortMsg = shortMsg; + } + + public AuditLogNotificationOpenApiVo webhook(Boolean webhook) { + this.webhook = webhook; + return this; + } + + /** + * Audit Log Notification Category Enable or Disable Webhook + * @return webhook + */ + @ApiModelProperty(value = "Audit Log Notification Category Enable or Disable Webhook") + + + public Boolean getWebhook() { + return webhook; + } + + public void setWebhook(Boolean webhook) { + this.webhook = webhook; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuditLogNotificationOpenApiVo auditLogNotificationOpenApiVo = (AuditLogNotificationOpenApiVo) o; + return Objects.equals(this.key, auditLogNotificationOpenApiVo.key) && + Objects.equals(this.shortMsg, auditLogNotificationOpenApiVo.shortMsg) && + Objects.equals(this.webhook, auditLogNotificationOpenApiVo.webhook); + } + + @Override + public int hashCode() { + return Objects.hash(key, shortMsg, webhook); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuditLogNotificationOpenApiVo {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" shortMsg: ").append(toIndentedString(shortMsg)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationSettingEditOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationSettingEditOpenApiVo.java new file mode 100644 index 0000000..ff4bcda --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationSettingEditOpenApiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * AuditLogNotificationSettingEditOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class AuditLogNotificationSettingEditOpenApiVo { + @JsonProperty("webhookConfig") + private WebhookConfigEditOpenApiVo webhookConfig; + + @JsonProperty("auditLogNotifications") + @Valid + private List auditLogNotifications = new ArrayList<>(); + + public AuditLogNotificationSettingEditOpenApiVo webhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + return this; + } + + /** + * Get webhookConfig + * @return webhookConfig + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public WebhookConfigEditOpenApiVo getWebhookConfig() { + return webhookConfig; + } + + public void setWebhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + } + + public AuditLogNotificationSettingEditOpenApiVo auditLogNotifications(List auditLogNotifications) { + this.auditLogNotifications = auditLogNotifications; + return this; + } + + public AuditLogNotificationSettingEditOpenApiVo addAuditLogNotificationsItem(AuditLogNotificationEditOpenApiVo auditLogNotificationsItem) { + this.auditLogNotifications.add(auditLogNotificationsItem); + return this; + } + + /** + * Audit Log Notification List + * @return auditLogNotifications + */ + @ApiModelProperty(required = true, value = "Audit Log Notification List") + @NotNull + + @Valid + + public List getAuditLogNotifications() { + return auditLogNotifications; + } + + public void setAuditLogNotifications(List auditLogNotifications) { + this.auditLogNotifications = auditLogNotifications; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuditLogNotificationSettingEditOpenApiVo auditLogNotificationSettingEditOpenApiVo = (AuditLogNotificationSettingEditOpenApiVo) o; + return Objects.equals(this.webhookConfig, auditLogNotificationSettingEditOpenApiVo.webhookConfig) && + Objects.equals(this.auditLogNotifications, auditLogNotificationSettingEditOpenApiVo.auditLogNotifications); + } + + @Override + public int hashCode() { + return Objects.hash(webhookConfig, auditLogNotifications); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuditLogNotificationSettingEditOpenApiVo {\n"); + + sb.append(" webhookConfig: ").append(toIndentedString(webhookConfig)).append("\n"); + sb.append(" auditLogNotifications: ").append(toIndentedString(auditLogNotifications)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationSettingOpenApiVo.java new file mode 100644 index 0000000..95a80b2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogNotificationSettingOpenApiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * AuditLogNotificationSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class AuditLogNotificationSettingOpenApiVo { + @JsonProperty("webhookConfig") + private Object webhookConfig; + + @JsonProperty("auditLogNotifications") + @Valid + private List auditLogNotifications = null; + + public AuditLogNotificationSettingOpenApiVo webhookConfig(Object webhookConfig) { + this.webhookConfig = webhookConfig; + return this; + } + + /** + * Get webhookConfig + * @return webhookConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getWebhookConfig() { + return webhookConfig; + } + + public void setWebhookConfig(Object webhookConfig) { + this.webhookConfig = webhookConfig; + } + + public AuditLogNotificationSettingOpenApiVo auditLogNotifications(List auditLogNotifications) { + this.auditLogNotifications = auditLogNotifications; + return this; + } + + public AuditLogNotificationSettingOpenApiVo addAuditLogNotificationsItem(AuditLogNotificationOpenApiVo auditLogNotificationsItem) { + if (this.auditLogNotifications == null) { + this.auditLogNotifications = new ArrayList<>(); + } + this.auditLogNotifications.add(auditLogNotificationsItem); + return this; + } + + /** + * Audit Log Notification List + * @return auditLogNotifications + */ + @ApiModelProperty(value = "Audit Log Notification List") + + @Valid + + public List getAuditLogNotifications() { + return auditLogNotifications; + } + + public void setAuditLogNotifications(List auditLogNotifications) { + this.auditLogNotifications = auditLogNotifications; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuditLogNotificationSettingOpenApiVo auditLogNotificationSettingOpenApiVo = (AuditLogNotificationSettingOpenApiVo) o; + return Objects.equals(this.webhookConfig, auditLogNotificationSettingOpenApiVo.webhookConfig) && + Objects.equals(this.auditLogNotifications, auditLogNotificationSettingOpenApiVo.auditLogNotifications); + } + + @Override + public int hashCode() { + return Objects.hash(webhookConfig, auditLogNotifications); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuditLogNotificationSettingOpenApiVo {\n"); + + sb.append(" webhookConfig: ").append(toIndentedString(webhookConfig)).append("\n"); + sb.append(" auditLogNotifications: ").append(toIndentedString(auditLogNotifications)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogOpenApiVo.java new file mode 100644 index 0000000..68bd4c8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/AuditLogOpenApiVo.java @@ -0,0 +1,329 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * AuditLogOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class AuditLogOpenApiVo { + @JsonProperty("time") + private Long time; + + @JsonProperty("operator") + private String operator; + + @JsonProperty("resource") + private String resource; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("auditType") + private String auditType; + + @JsonProperty("level") + private String level; + + @JsonProperty("result") + private String result; + + @JsonProperty("content") + private String content; + + @JsonProperty("label") + private String label; + + @JsonProperty("oldValue") + private Object oldValue; + + @JsonProperty("newValue") + private Object newValue; + + public AuditLogOpenApiVo time(Long time) { + this.time = time; + return this; + } + + /** + * Log Creation TimeStamp, Unit:ms + * @return time + */ + @ApiModelProperty(value = "Log Creation TimeStamp, Unit:ms") + + + public Long getTime() { + return time; + } + + public void setTime(Long time) { + this.time = time; + } + + public AuditLogOpenApiVo operator(String operator) { + this.operator = operator; + return this; + } + + /** + * Operator + * @return operator + */ + @ApiModelProperty(value = "Operator") + + + public String getOperator() { + return operator; + } + + public void setOperator(String operator) { + this.operator = operator; + } + + public AuditLogOpenApiVo resource(String resource) { + this.resource = resource; + return this; + } + + /** + * Log Creation Resource. It should be a value as follows: WEB、Open API + * @return resource + */ + @ApiModelProperty(value = "Log Creation Resource. It should be a value as follows: WEB、Open API") + + + public String getResource() { + return resource; + } + + public void setResource(String resource) { + this.resource = resource; + } + + public AuditLogOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * User Login IP address + * @return ip + */ + @ApiModelProperty(value = "User Login IP address") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public AuditLogOpenApiVo auditType(String auditType) { + this.auditType = auditType; + return this; + } + + /** + * Log Type + * @return auditType + */ + @ApiModelProperty(value = "Log Type") + + + public String getAuditType() { + return auditType; + } + + public void setAuditType(String auditType) { + this.auditType = auditType; + } + + public AuditLogOpenApiVo level(String level) { + this.level = level; + return this; + } + + /** + * Log Level. It should be a value as follows: Error, Warning, Information. + * @return level + */ + @ApiModelProperty(value = "Log Level. It should be a value as follows: Error, Warning, Information.") + + + public String getLevel() { + return level; + } + + public void setLevel(String level) { + this.level = level; + } + + public AuditLogOpenApiVo result(String result) { + this.result = result; + return this; + } + + /** + * Operation Result, it should be a value as follows: Succeed、Failed + * @return result + */ + @ApiModelProperty(value = "Operation Result, it should be a value as follows: Succeed、Failed") + + + public String getResult() { + return result; + } + + public void setResult(String result) { + this.result = result; + } + + public AuditLogOpenApiVo content(String content) { + this.content = content; + return this; + } + + /** + * Log Content + * @return content + */ + @ApiModelProperty(value = "Log Content") + + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public AuditLogOpenApiVo label(String label) { + this.label = label; + return this; + } + + /** + * Configuration card or request path, may be empty. + * @return label + */ + @ApiModelProperty(value = "Configuration card or request path, may be empty.") + + + public String getLabel() { + return label; + } + + public void setLabel(String label) { + this.label = label; + } + + public AuditLogOpenApiVo oldValue(Object oldValue) { + this.oldValue = oldValue; + return this; + } + + /** + * Configuration before modification, may be empty. + * @return oldValue + */ + @ApiModelProperty(value = "Configuration before modification, may be empty.") + + @Valid + + public Object getOldValue() { + return oldValue; + } + + public void setOldValue(Object oldValue) { + this.oldValue = oldValue; + } + + public AuditLogOpenApiVo newValue(Object newValue) { + this.newValue = newValue; + return this; + } + + /** + * Configuration after modification, may be empty. + * @return newValue + */ + @ApiModelProperty(value = "Configuration after modification, may be empty.") + + @Valid + + public Object getNewValue() { + return newValue; + } + + public void setNewValue(Object newValue) { + this.newValue = newValue; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuditLogOpenApiVo auditLogOpenApiVo = (AuditLogOpenApiVo) o; + return Objects.equals(this.time, auditLogOpenApiVo.time) && + Objects.equals(this.operator, auditLogOpenApiVo.operator) && + Objects.equals(this.resource, auditLogOpenApiVo.resource) && + Objects.equals(this.ip, auditLogOpenApiVo.ip) && + Objects.equals(this.auditType, auditLogOpenApiVo.auditType) && + Objects.equals(this.level, auditLogOpenApiVo.level) && + Objects.equals(this.result, auditLogOpenApiVo.result) && + Objects.equals(this.content, auditLogOpenApiVo.content) && + Objects.equals(this.label, auditLogOpenApiVo.label) && + Objects.equals(this.oldValue, auditLogOpenApiVo.oldValue) && + Objects.equals(this.newValue, auditLogOpenApiVo.newValue); + } + + @Override + public int hashCode() { + return Objects.hash(time, operator, resource, ip, auditType, level, result, content, label, oldValue, newValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuditLogOpenApiVo {\n"); + + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" operator: ").append(toIndentedString(operator)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" auditType: ").append(toIndentedString(auditType)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" label: ").append(toIndentedString(label)).append("\n"); + sb.append(" oldValue: ").append(toIndentedString(oldValue)).append("\n"); + sb.append(" newValue: ").append(toIndentedString(newValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/BatchRequestEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/BatchRequestEntity.java new file mode 100644 index 0000000..33a3dda --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/BatchRequestEntity.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchRequestEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class BatchRequestEntity { + @JsonProperty("interrupt") + private Boolean interrupt; + + @JsonProperty("actions") + @Valid + private List actions = null; + + public BatchRequestEntity interrupt(Boolean interrupt) { + this.interrupt = interrupt; + return this; + } + + /** + * Indicates whether to interrupt execution when encountering an error while executing openAPI, defaults to true + * @return interrupt + */ + @ApiModelProperty(value = "Indicates whether to interrupt execution when encountering an error while executing openAPI, defaults to true") + + + public Boolean getInterrupt() { + return interrupt; + } + + public void setInterrupt(Boolean interrupt) { + this.interrupt = interrupt; + } + + public BatchRequestEntity actions(List actions) { + this.actions = actions; + return this; + } + + public BatchRequestEntity addActionsItem(RequestActionEntity actionsItem) { + if (this.actions == null) { + this.actions = new ArrayList<>(); + } + this.actions.add(actionsItem); + return this; + } + + /** + * List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list + * @return actions + */ + @ApiModelProperty(value = "List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list") + + @Valid + + public List getActions() { + return actions; + } + + public void setActions(List actions) { + this.actions = actions; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchRequestEntity batchRequestEntity = (BatchRequestEntity) o; + return Objects.equals(this.interrupt, batchRequestEntity.interrupt) && + Objects.equals(this.actions, batchRequestEntity.actions); + } + + @Override + public int hashCode() { + return Objects.hash(interrupt, actions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchRequestEntity {\n"); + + sb.append(" interrupt: ").append(toIndentedString(interrupt)).append("\n"); + sb.append(" actions: ").append(toIndentedString(actions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/BatchResponseEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/BatchResponseEntity.java new file mode 100644 index 0000000..765212b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/BatchResponseEntity.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchResponseEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class BatchResponseEntity { + @JsonProperty("response") + @Valid + private List response = null; + + public BatchResponseEntity response(List response) { + this.response = response; + return this; + } + + public BatchResponseEntity addResponseItem(OperationResponse responseItem) { + if (this.response == null) { + this.response = new ArrayList<>(); + } + this.response.add(responseItem); + return this; + } + + /** + * A response list + * @return response + */ + @ApiModelProperty(value = "A response list") + + @Valid + + public List getResponse() { + return response; + } + + public void setResponse(List response) { + this.response = response; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchResponseEntity batchResponseEntity = (BatchResponseEntity) o; + return Objects.equals(this.response, batchResponseEntity.response); + } + + @Override + public int hashCode() { + return Objects.hash(response); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchResponseEntity {\n"); + + sb.append(" response: ").append(toIndentedString(response)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ControllerRoleDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ControllerRoleDetailVo.java new file mode 100644 index 0000000..1f284d1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ControllerRoleDetailVo.java @@ -0,0 +1,203 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * ControllerRoleDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class ControllerRoleDetailVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("defaultRole") + private Boolean defaultRole; + + @JsonProperty("source") + private Integer source; + + @JsonProperty("privilege") + private ControllerRoleVo privilege; + + public ControllerRoleDetailVo id(String id) { + this.id = id; + return this; + } + + /** + * Role ID + * @return id + */ + @ApiModelProperty(value = "Role ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ControllerRoleDetailVo name(String name) { + this.name = name; + return this; + } + + /** + * Role Name + * @return name + */ + @ApiModelProperty(value = "Role Name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ControllerRoleDetailVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Role Type should be a value as follows: 0: standard; 1: customer; 2: msp. + * @return type + */ + @ApiModelProperty(value = "Role Type should be a value as follows: 0: standard; 1: customer; 2: msp.") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public ControllerRoleDetailVo defaultRole(Boolean defaultRole) { + this.defaultRole = defaultRole; + return this; + } + + /** + * Whether role is default role + * @return defaultRole + */ + @ApiModelProperty(value = "Whether role is default role") + + + public Boolean getDefaultRole() { + return defaultRole; + } + + public void setDefaultRole(Boolean defaultRole) { + this.defaultRole = defaultRole; + } + + public ControllerRoleDetailVo source(Integer source) { + this.source = source; + return this; + } + + /** + * Role created resource. It should be a value as follows: 0: default; 1:create by standard controller or customer controller; 2: create by MSP + * @return source + */ + @ApiModelProperty(value = "Role created resource. It should be a value as follows: 0: default; 1:create by standard controller or customer controller; 2: create by MSP") + + + public Integer getSource() { + return source; + } + + public void setSource(Integer source) { + this.source = source; + } + + public ControllerRoleDetailVo privilege(ControllerRoleVo privilege) { + this.privilege = privilege; + return this; + } + + /** + * Get privilege + * @return privilege + */ + @ApiModelProperty(value = "") + + @Valid + + public ControllerRoleVo getPrivilege() { + return privilege; + } + + public void setPrivilege(ControllerRoleVo privilege) { + this.privilege = privilege; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ControllerRoleDetailVo controllerRoleDetailVo = (ControllerRoleDetailVo) o; + return Objects.equals(this.id, controllerRoleDetailVo.id) && + Objects.equals(this.name, controllerRoleDetailVo.name) && + Objects.equals(this.type, controllerRoleDetailVo.type) && + Objects.equals(this.defaultRole, controllerRoleDetailVo.defaultRole) && + Objects.equals(this.source, controllerRoleDetailVo.source) && + Objects.equals(this.privilege, controllerRoleDetailVo.privilege); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, type, defaultRole, source, privilege); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ControllerRoleDetailVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" defaultRole: ").append(toIndentedString(defaultRole)).append("\n"); + sb.append(" source: ").append(toIndentedString(source)).append("\n"); + sb.append(" privilege: ").append(toIndentedString(privilege)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ControllerRoleVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ControllerRoleVo.java new file mode 100644 index 0000000..9986cd1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ControllerRoleVo.java @@ -0,0 +1,953 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Controller role detail + */ +@ApiModel(description = "Controller role detail") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class ControllerRoleVo { + @JsonProperty("license") + private Integer license; + + @JsonProperty("globalDashboard") + private Integer globalDashboard; + + @JsonProperty("dashboard") + private Integer dashboard; + + @JsonProperty("devices") + private Integer devices; + + @JsonProperty("adopt") + private Integer adopt; + + @JsonProperty("addDevices") + private Integer addDevices; + + @JsonProperty("addAdoptDevice") + private Integer addAdoptDevice; + + @JsonProperty("manualUpgrade") + private Integer manualUpgrade; + + @JsonProperty("globalLog") + private Integer globalLog; + + @JsonProperty("log") + private Integer log; + + @JsonProperty("licenseBind") + private Integer licenseBind; + + @JsonProperty("users") + private Integer users; + + @JsonProperty("roles") + private Integer roles; + + @JsonProperty("samlUsers") + private Integer samlUsers; + + @JsonProperty("samlRoles") + private Integer samlRoles; + + @JsonProperty("samlSsos") + private Integer samlSsos; + + @JsonProperty("globalSetting") + private Integer globalSetting; + + @JsonProperty("exportData") + private Integer exportData; + + @JsonProperty("globalExportData") + private Integer globalExportData; + + @JsonProperty("exportGlobalLog") + private Integer exportGlobalLog; + + @JsonProperty("hotspot") + private Integer hotspot; + + @JsonProperty("statics") + private Integer statics; + + @JsonProperty("map") + private Integer map; + + @JsonProperty("clients") + private Integer clients; + + @JsonProperty("insight") + private Integer insight; + + @JsonProperty("report") + private Integer report; + + @JsonProperty("network") + private Integer network; + + @JsonProperty("deviceAccount") + private Integer deviceAccount; + + @JsonProperty("anomaly") + private Integer anomaly; + + @JsonProperty("analyze") + private Integer analyze; + + @JsonProperty("siteAnalyze") + private Integer siteAnalyze; + + @JsonProperty("globalSecurity") + private Integer globalSecurity; + + @JsonProperty("globalWebhook") + private Integer globalWebhook; + + @JsonProperty("globalMapToken") + private Integer globalMapToken; + + @JsonProperty("siteTemplate") + private Integer siteTemplate; + + @JsonProperty("firmwareManager") + private Integer firmwareManager; + + public ControllerRoleVo license(Integer license) { + this.license = license; + return this; + } + + /** + * License permission, it should be a value as follows: 0:block; 1:view only; 2:modify + * @return license + */ + @ApiModelProperty(value = "License permission, it should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getLicense() { + return license; + } + + public void setLicense(Integer license) { + this.license = license; + } + + public ControllerRoleVo globalDashboard(Integer globalDashboard) { + this.globalDashboard = globalDashboard; + return this; + } + + /** + * Dashboard permission in global view. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return globalDashboard + */ + @ApiModelProperty(value = "Dashboard permission in global view. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getGlobalDashboard() { + return globalDashboard; + } + + public void setGlobalDashboard(Integer globalDashboard) { + this.globalDashboard = globalDashboard; + } + + public ControllerRoleVo dashboard(Integer dashboard) { + this.dashboard = dashboard; + return this; + } + + /** + * Dashboard permission in site view. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return dashboard + */ + @ApiModelProperty(value = "Dashboard permission in site view. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getDashboard() { + return dashboard; + } + + public void setDashboard(Integer dashboard) { + this.dashboard = dashboard; + } + + public ControllerRoleVo devices(Integer devices) { + this.devices = devices; + return this; + } + + /** + * Devices permission in site view and global view. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return devices + */ + @ApiModelProperty(value = "Devices permission in site view and global view. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getDevices() { + return devices; + } + + public void setDevices(Integer devices) { + this.devices = devices; + } + + public ControllerRoleVo adopt(Integer adopt) { + this.adopt = adopt; + return this; + } + + /** + * Adopt permission should be a value as follows: 0:block; 2:access + * @return adopt + */ + @ApiModelProperty(value = "Adopt permission should be a value as follows: 0:block; 2:access") + + + public Integer getAdopt() { + return adopt; + } + + public void setAdopt(Integer adopt) { + this.adopt = adopt; + } + + public ControllerRoleVo addDevices(Integer addDevices) { + this.addDevices = addDevices; + return this; + } + + /** + * Add devices permission should be a value as follows: 0:block; 2:access + * @return addDevices + */ + @ApiModelProperty(value = "Add devices permission should be a value as follows: 0:block; 2:access") + + + public Integer getAddDevices() { + return addDevices; + } + + public void setAddDevices(Integer addDevices) { + this.addDevices = addDevices; + } + + public ControllerRoleVo addAdoptDevice(Integer addAdoptDevice) { + this.addAdoptDevice = addAdoptDevice; + return this; + } + + /** + * Add and adopt devices permission should be a value as follows: 0:block; 2:access + * @return addAdoptDevice + */ + @ApiModelProperty(value = "Add and adopt devices permission should be a value as follows: 0:block; 2:access") + + + public Integer getAddAdoptDevice() { + return addAdoptDevice; + } + + public void setAddAdoptDevice(Integer addAdoptDevice) { + this.addAdoptDevice = addAdoptDevice; + } + + public ControllerRoleVo manualUpgrade(Integer manualUpgrade) { + this.manualUpgrade = manualUpgrade; + return this; + } + + /** + * Manual Upgrade permission should be a value as follows: 0:block; 2:access + * @return manualUpgrade + */ + @ApiModelProperty(value = "Manual Upgrade permission should be a value as follows: 0:block; 2:access") + + + public Integer getManualUpgrade() { + return manualUpgrade; + } + + public void setManualUpgrade(Integer manualUpgrade) { + this.manualUpgrade = manualUpgrade; + } + + public ControllerRoleVo globalLog(Integer globalLog) { + this.globalLog = globalLog; + return this; + } + + /** + * Log permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return globalLog + */ + @ApiModelProperty(value = "Log permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getGlobalLog() { + return globalLog; + } + + public void setGlobalLog(Integer globalLog) { + this.globalLog = globalLog; + } + + public ControllerRoleVo log(Integer log) { + this.log = log; + return this; + } + + /** + * Log permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return log + */ + @ApiModelProperty(value = "Log permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getLog() { + return log; + } + + public void setLog(Integer log) { + this.log = log; + } + + public ControllerRoleVo licenseBind(Integer licenseBind) { + this.licenseBind = licenseBind; + return this; + } + + /** + * License bind permission should be a value as follows: 0:block; 1:view only; 2:modify + * @return licenseBind + */ + @ApiModelProperty(value = "License bind permission should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getLicenseBind() { + return licenseBind; + } + + public void setLicenseBind(Integer licenseBind) { + this.licenseBind = licenseBind; + } + + public ControllerRoleVo users(Integer users) { + this.users = users; + return this; + } + + /** + * Users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return users + */ + @ApiModelProperty(value = "Users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getUsers() { + return users; + } + + public void setUsers(Integer users) { + this.users = users; + } + + public ControllerRoleVo roles(Integer roles) { + this.roles = roles; + return this; + } + + /** + * Roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return roles + */ + @ApiModelProperty(value = "Roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getRoles() { + return roles; + } + + public void setRoles(Integer roles) { + this.roles = roles; + } + + public ControllerRoleVo samlUsers(Integer samlUsers) { + this.samlUsers = samlUsers; + return this; + } + + /** + * Saml users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return samlUsers + */ + @ApiModelProperty(value = "Saml users permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getSamlUsers() { + return samlUsers; + } + + public void setSamlUsers(Integer samlUsers) { + this.samlUsers = samlUsers; + } + + public ControllerRoleVo samlRoles(Integer samlRoles) { + this.samlRoles = samlRoles; + return this; + } + + /** + * Saml roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return samlRoles + */ + @ApiModelProperty(value = "Saml roles permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getSamlRoles() { + return samlRoles; + } + + public void setSamlRoles(Integer samlRoles) { + this.samlRoles = samlRoles; + } + + public ControllerRoleVo samlSsos(Integer samlSsos) { + this.samlSsos = samlSsos; + return this; + } + + /** + * Saml ssos permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return samlSsos + */ + @ApiModelProperty(value = "Saml ssos permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getSamlSsos() { + return samlSsos; + } + + public void setSamlSsos(Integer samlSsos) { + this.samlSsos = samlSsos; + } + + public ControllerRoleVo globalSetting(Integer globalSetting) { + this.globalSetting = globalSetting; + return this; + } + + /** + * Settings permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return globalSetting + */ + @ApiModelProperty(value = "Settings permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getGlobalSetting() { + return globalSetting; + } + + public void setGlobalSetting(Integer globalSetting) { + this.globalSetting = globalSetting; + } + + public ControllerRoleVo exportData(Integer exportData) { + this.exportData = exportData; + return this; + } + + /** + * Export data permission in site view should be a value as follows: 0:block; 2:access + * @return exportData + */ + @ApiModelProperty(value = "Export data permission in site view should be a value as follows: 0:block; 2:access") + + + public Integer getExportData() { + return exportData; + } + + public void setExportData(Integer exportData) { + this.exportData = exportData; + } + + public ControllerRoleVo globalExportData(Integer globalExportData) { + this.globalExportData = globalExportData; + return this; + } + + /** + * Export data permission in global view should be a value as follows: 0:block; 2:access + * @return globalExportData + */ + @ApiModelProperty(value = "Export data permission in global view should be a value as follows: 0:block; 2:access") + + + public Integer getGlobalExportData() { + return globalExportData; + } + + public void setGlobalExportData(Integer globalExportData) { + this.globalExportData = globalExportData; + } + + public ControllerRoleVo exportGlobalLog(Integer exportGlobalLog) { + this.exportGlobalLog = exportGlobalLog; + return this; + } + + /** + * Export global log data permission in global view should be a value as follows: 0:block; 2:access + * @return exportGlobalLog + */ + @ApiModelProperty(value = "Export global log data permission in global view should be a value as follows: 0:block; 2:access") + + + public Integer getExportGlobalLog() { + return exportGlobalLog; + } + + public void setExportGlobalLog(Integer exportGlobalLog) { + this.exportGlobalLog = exportGlobalLog; + } + + public ControllerRoleVo hotspot(Integer hotspot) { + this.hotspot = hotspot; + return this; + } + + /** + * Hotspot permission should be a value as follows: 0:block; 1:view only; 2:modify + * @return hotspot + */ + @ApiModelProperty(value = "Hotspot permission should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getHotspot() { + return hotspot; + } + + public void setHotspot(Integer hotspot) { + this.hotspot = hotspot; + } + + public ControllerRoleVo statics(Integer statics) { + this.statics = statics; + return this; + } + + /** + * Statics permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return statics + */ + @ApiModelProperty(value = "Statics permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getStatics() { + return statics; + } + + public void setStatics(Integer statics) { + this.statics = statics; + } + + public ControllerRoleVo map(Integer map) { + this.map = map; + return this; + } + + /** + * Map permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return map + */ + @ApiModelProperty(value = "Map permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMap() { + return map; + } + + public void setMap(Integer map) { + this.map = map; + } + + public ControllerRoleVo clients(Integer clients) { + this.clients = clients; + return this; + } + + /** + * Clients permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return clients + */ + @ApiModelProperty(value = "Clients permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getClients() { + return clients; + } + + public void setClients(Integer clients) { + this.clients = clients; + } + + public ControllerRoleVo insight(Integer insight) { + this.insight = insight; + return this; + } + + /** + * Insight permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return insight + */ + @ApiModelProperty(value = "Insight permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getInsight() { + return insight; + } + + public void setInsight(Integer insight) { + this.insight = insight; + } + + public ControllerRoleVo report(Integer report) { + this.report = report; + return this; + } + + /** + * Network report permission in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return report + */ + @ApiModelProperty(value = "Network report permission in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getReport() { + return report; + } + + public void setReport(Integer report) { + this.report = report; + } + + public ControllerRoleVo network(Integer network) { + this.network = network; + return this; + } + + /** + * Site network settings permission in site view -> settings should be a value as follows: 0:block; 1:view only; 2:modify + * @return network + */ + @ApiModelProperty(value = "Site network settings permission in site view -> settings should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getNetwork() { + return network; + } + + public void setNetwork(Integer network) { + this.network = network; + } + + public ControllerRoleVo deviceAccount(Integer deviceAccount) { + this.deviceAccount = deviceAccount; + return this; + } + + /** + * Device account permission in site view -> site settings should be a value as follows: 0:block; 1:view only; 2:modify + * @return deviceAccount + */ + @ApiModelProperty(value = "Device account permission in site view -> site settings should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getDeviceAccount() { + return deviceAccount; + } + + public void setDeviceAccount(Integer deviceAccount) { + this.deviceAccount = deviceAccount; + } + + public ControllerRoleVo anomaly(Integer anomaly) { + this.anomaly = anomaly; + return this; + } + + /** + * Anomaly permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return anomaly + */ + @ApiModelProperty(value = "Anomaly permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getAnomaly() { + return anomaly; + } + + public void setAnomaly(Integer anomaly) { + this.anomaly = anomaly; + } + + public ControllerRoleVo analyze(Integer analyze) { + this.analyze = analyze; + return this; + } + + /** + * Tools permission in global view. Only for hardware controller should be a value as follows: 0:block; 1:view only; 2:modify + * @return analyze + */ + @ApiModelProperty(value = "Tools permission in global view. Only for hardware controller should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getAnalyze() { + return analyze; + } + + public void setAnalyze(Integer analyze) { + this.analyze = analyze; + } + + public ControllerRoleVo siteAnalyze(Integer siteAnalyze) { + this.siteAnalyze = siteAnalyze; + return this; + } + + /** + * Tools in site view should be a value as follows: 0:block; 1:view only; 2:modify + * @return siteAnalyze + */ + @ApiModelProperty(value = "Tools in site view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getSiteAnalyze() { + return siteAnalyze; + } + + public void setSiteAnalyze(Integer siteAnalyze) { + this.siteAnalyze = siteAnalyze; + } + + public ControllerRoleVo globalSecurity(Integer globalSecurity) { + this.globalSecurity = globalSecurity; + return this; + } + + /** + * Security permission in global view should be a value as follows: 0:block; 1:view only; 2:modify + * @return globalSecurity + */ + @ApiModelProperty(value = "Security permission in global view should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getGlobalSecurity() { + return globalSecurity; + } + + public void setGlobalSecurity(Integer globalSecurity) { + this.globalSecurity = globalSecurity; + } + + public ControllerRoleVo globalWebhook(Integer globalWebhook) { + this.globalWebhook = globalWebhook; + return this; + } + + /** + * Webhook in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller + * @return globalWebhook + */ + @ApiModelProperty(value = "Webhook in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller") + + + public Integer getGlobalWebhook() { + return globalWebhook; + } + + public void setGlobalWebhook(Integer globalWebhook) { + this.globalWebhook = globalWebhook; + } + + public ControllerRoleVo globalMapToken(Integer globalMapToken) { + this.globalMapToken = globalMapToken; + return this; + } + + /** + * MapToken in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller + * @return globalMapToken + */ + @ApiModelProperty(value = "MapToken in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller") + + + public Integer getGlobalMapToken() { + return globalMapToken; + } + + public void setGlobalMapToken(Integer globalMapToken) { + this.globalMapToken = globalMapToken; + } + + public ControllerRoleVo siteTemplate(Integer siteTemplate) { + this.siteTemplate = siteTemplate; + return this; + } + + /** + * SiteTemplate in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller + * @return siteTemplate + */ + @ApiModelProperty(value = "SiteTemplate in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller") + + + public Integer getSiteTemplate() { + return siteTemplate; + } + + public void setSiteTemplate(Integer siteTemplate) { + this.siteTemplate = siteTemplate; + } + + public ControllerRoleVo firmwareManager(Integer firmwareManager) { + this.firmwareManager = firmwareManager; + return this; + } + + /** + * FirmwareManager in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller + * @return firmwareManager + */ + @ApiModelProperty(value = "FirmwareManager in global view should be a value as follows: 0:block; 1:view only; 2:modify, only for pro controller") + + + public Integer getFirmwareManager() { + return firmwareManager; + } + + public void setFirmwareManager(Integer firmwareManager) { + this.firmwareManager = firmwareManager; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ControllerRoleVo controllerRoleVo = (ControllerRoleVo) o; + return Objects.equals(this.license, controllerRoleVo.license) && + Objects.equals(this.globalDashboard, controllerRoleVo.globalDashboard) && + Objects.equals(this.dashboard, controllerRoleVo.dashboard) && + Objects.equals(this.devices, controllerRoleVo.devices) && + Objects.equals(this.adopt, controllerRoleVo.adopt) && + Objects.equals(this.addDevices, controllerRoleVo.addDevices) && + Objects.equals(this.addAdoptDevice, controllerRoleVo.addAdoptDevice) && + Objects.equals(this.manualUpgrade, controllerRoleVo.manualUpgrade) && + Objects.equals(this.globalLog, controllerRoleVo.globalLog) && + Objects.equals(this.log, controllerRoleVo.log) && + Objects.equals(this.licenseBind, controllerRoleVo.licenseBind) && + Objects.equals(this.users, controllerRoleVo.users) && + Objects.equals(this.roles, controllerRoleVo.roles) && + Objects.equals(this.samlUsers, controllerRoleVo.samlUsers) && + Objects.equals(this.samlRoles, controllerRoleVo.samlRoles) && + Objects.equals(this.samlSsos, controllerRoleVo.samlSsos) && + Objects.equals(this.globalSetting, controllerRoleVo.globalSetting) && + Objects.equals(this.exportData, controllerRoleVo.exportData) && + Objects.equals(this.globalExportData, controllerRoleVo.globalExportData) && + Objects.equals(this.exportGlobalLog, controllerRoleVo.exportGlobalLog) && + Objects.equals(this.hotspot, controllerRoleVo.hotspot) && + Objects.equals(this.statics, controllerRoleVo.statics) && + Objects.equals(this.map, controllerRoleVo.map) && + Objects.equals(this.clients, controllerRoleVo.clients) && + Objects.equals(this.insight, controllerRoleVo.insight) && + Objects.equals(this.report, controllerRoleVo.report) && + Objects.equals(this.network, controllerRoleVo.network) && + Objects.equals(this.deviceAccount, controllerRoleVo.deviceAccount) && + Objects.equals(this.anomaly, controllerRoleVo.anomaly) && + Objects.equals(this.analyze, controllerRoleVo.analyze) && + Objects.equals(this.siteAnalyze, controllerRoleVo.siteAnalyze) && + Objects.equals(this.globalSecurity, controllerRoleVo.globalSecurity) && + Objects.equals(this.globalWebhook, controllerRoleVo.globalWebhook) && + Objects.equals(this.globalMapToken, controllerRoleVo.globalMapToken) && + Objects.equals(this.siteTemplate, controllerRoleVo.siteTemplate) && + Objects.equals(this.firmwareManager, controllerRoleVo.firmwareManager); + } + + @Override + public int hashCode() { + return Objects.hash(license, globalDashboard, dashboard, devices, adopt, addDevices, addAdoptDevice, manualUpgrade, globalLog, log, licenseBind, users, roles, samlUsers, samlRoles, samlSsos, globalSetting, exportData, globalExportData, exportGlobalLog, hotspot, statics, map, clients, insight, report, network, deviceAccount, anomaly, analyze, siteAnalyze, globalSecurity, globalWebhook, globalMapToken, siteTemplate, firmwareManager); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ControllerRoleVo {\n"); + + sb.append(" license: ").append(toIndentedString(license)).append("\n"); + sb.append(" globalDashboard: ").append(toIndentedString(globalDashboard)).append("\n"); + sb.append(" dashboard: ").append(toIndentedString(dashboard)).append("\n"); + sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); + sb.append(" adopt: ").append(toIndentedString(adopt)).append("\n"); + sb.append(" addDevices: ").append(toIndentedString(addDevices)).append("\n"); + sb.append(" addAdoptDevice: ").append(toIndentedString(addAdoptDevice)).append("\n"); + sb.append(" manualUpgrade: ").append(toIndentedString(manualUpgrade)).append("\n"); + sb.append(" globalLog: ").append(toIndentedString(globalLog)).append("\n"); + sb.append(" log: ").append(toIndentedString(log)).append("\n"); + sb.append(" licenseBind: ").append(toIndentedString(licenseBind)).append("\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); + sb.append(" samlUsers: ").append(toIndentedString(samlUsers)).append("\n"); + sb.append(" samlRoles: ").append(toIndentedString(samlRoles)).append("\n"); + sb.append(" samlSsos: ").append(toIndentedString(samlSsos)).append("\n"); + sb.append(" globalSetting: ").append(toIndentedString(globalSetting)).append("\n"); + sb.append(" exportData: ").append(toIndentedString(exportData)).append("\n"); + sb.append(" globalExportData: ").append(toIndentedString(globalExportData)).append("\n"); + sb.append(" exportGlobalLog: ").append(toIndentedString(exportGlobalLog)).append("\n"); + sb.append(" hotspot: ").append(toIndentedString(hotspot)).append("\n"); + sb.append(" statics: ").append(toIndentedString(statics)).append("\n"); + sb.append(" map: ").append(toIndentedString(map)).append("\n"); + sb.append(" clients: ").append(toIndentedString(clients)).append("\n"); + sb.append(" insight: ").append(toIndentedString(insight)).append("\n"); + sb.append(" report: ").append(toIndentedString(report)).append("\n"); + sb.append(" network: ").append(toIndentedString(network)).append("\n"); + sb.append(" deviceAccount: ").append(toIndentedString(deviceAccount)).append("\n"); + sb.append(" anomaly: ").append(toIndentedString(anomaly)).append("\n"); + sb.append(" analyze: ").append(toIndentedString(analyze)).append("\n"); + sb.append(" siteAnalyze: ").append(toIndentedString(siteAnalyze)).append("\n"); + sb.append(" globalSecurity: ").append(toIndentedString(globalSecurity)).append("\n"); + sb.append(" globalWebhook: ").append(toIndentedString(globalWebhook)).append("\n"); + sb.append(" globalMapToken: ").append(toIndentedString(globalMapToken)).append("\n"); + sb.append(" siteTemplate: ").append(toIndentedString(siteTemplate)).append("\n"); + sb.append(" firmwareManager: ").append(toIndentedString(firmwareManager)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateCustomerOmadacVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateCustomerOmadacVo.java new file mode 100644 index 0000000..ebfd058 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateCustomerOmadacVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CreateCustomerOmadacVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class CreateCustomerOmadacVo { + @JsonProperty("customerId") + private String customerId; + + public CreateCustomerOmadacVo customerId(String customerId) { + this.customerId = customerId; + return this; + } + + /** + * Get customerId + * @return customerId + */ + @ApiModelProperty(value = "") + + + public String getCustomerId() { + return customerId; + } + + public void setCustomerId(String customerId) { + this.customerId = customerId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateCustomerOmadacVo createCustomerOmadacVo = (CreateCustomerOmadacVo) o; + return Objects.equals(this.customerId, createCustomerOmadacVo.customerId); + } + + @Override + public int hashCode() { + return Objects.hash(customerId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCustomerOmadacVo {\n"); + + sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateMspUserVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateMspUserVo.java new file mode 100644 index 0000000..69223ce --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateMspUserVo.java @@ -0,0 +1,295 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateMspUserVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class CreateMspUserVo { + @JsonProperty("type") + private Integer type; + + @JsonProperty("name") + private String name; + + @JsonProperty("password") + private String password; + + @JsonProperty("email") + private String email; + + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("customerRoleId") + private String customerRoleId; + + @JsonProperty("allCustomer") + private Boolean allCustomer; + + @JsonProperty("customers") + @Valid + private List customers = null; + + @JsonProperty("alert") + private Boolean alert; + + public CreateMspUserVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of user should be a value as follows: 0:local user; 1: cloud user + * @return type + */ + @ApiModelProperty(required = true, value = "Type of user should be a value as follows: 0:local user; 1: cloud user") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public CreateMspUserVo name(String name) { + this.name = name; + return this; + } + + /** + * User name. When creating cloud user, you should set TP-LINK ID. It should contain 1 to 128 ASCII visible characters. + * @return name + */ + @ApiModelProperty(required = true, value = "User name. When creating cloud user, you should set TP-LINK ID. It should contain 1 to 128 ASCII visible characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateMspUserVo password(String password) { + this.password = password; + return this; + } + + /** + * Password of local user should contain 8 to 128 ASCII visible characters.And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported. + * @return password + */ + @ApiModelProperty(value = "Password of local user should contain 8 to 128 ASCII visible characters.And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported.") + +@Pattern(regexp="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[\\!\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\-\\./\\:\\;\\<\\=\\>\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~])(?!.*[\\00-\\040\\042\\077\\0177]).{8,128}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public CreateMspUserVo email(String email) { + this.email = email; + return this; + } + + /** + * Email of user + * @return email + */ + @ApiModelProperty(value = "Email of user") + + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public CreateMspUserVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * Msp role ID of user + * @return roleId + */ + @ApiModelProperty(required = true, value = "Msp role ID of user") + @NotNull + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public CreateMspUserVo customerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + return this; + } + + /** + * Msp user's customer role ID when visit customer + * @return customerRoleId + */ + @ApiModelProperty(required = true, value = "Msp user's customer role ID when visit customer") + @NotNull + + + public String getCustomerRoleId() { + return customerRoleId; + } + + public void setCustomerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + } + + public CreateMspUserVo allCustomer(Boolean allCustomer) { + this.allCustomer = allCustomer; + return this; + } + + /** + * Whether msp user has all customer permission, including new created customer. + * @return allCustomer + */ + @ApiModelProperty(required = true, value = "Whether msp user has all customer permission, including new created customer.") + @NotNull + + + public Boolean getAllCustomer() { + return allCustomer; + } + + public void setAllCustomer(Boolean allCustomer) { + this.allCustomer = allCustomer; + } + + public CreateMspUserVo customers(List customers) { + this.customers = customers; + return this; + } + + public CreateMspUserVo addCustomersItem(String customersItem) { + if (this.customers == null) { + this.customers = new ArrayList<>(); + } + this.customers.add(customersItem); + return this; + } + + /** + * User customer privilege list + * @return customers + */ + @ApiModelProperty(value = "User customer privilege list") + + + public List getCustomers() { + return customers; + } + + public void setCustomers(List customers) { + this.customers = customers; + } + + public CreateMspUserVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * Whether this user want to receive alert emails + * @return alert + */ + @ApiModelProperty(value = "Whether this user want to receive alert emails") + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateMspUserVo createMspUserVo = (CreateMspUserVo) o; + return Objects.equals(this.type, createMspUserVo.type) && + Objects.equals(this.name, createMspUserVo.name) && + Objects.equals(this.password, createMspUserVo.password) && + Objects.equals(this.email, createMspUserVo.email) && + Objects.equals(this.roleId, createMspUserVo.roleId) && + Objects.equals(this.customerRoleId, createMspUserVo.customerRoleId) && + Objects.equals(this.allCustomer, createMspUserVo.allCustomer) && + Objects.equals(this.customers, createMspUserVo.customers) && + Objects.equals(this.alert, createMspUserVo.alert); + } + + @Override + public int hashCode() { + return Objects.hash(type, name, password, email, roleId, customerRoleId, allCustomer, customers, alert); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateMspUserVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" customerRoleId: ").append(toIndentedString(customerRoleId)).append("\n"); + sb.append(" allCustomer: ").append(toIndentedString(allCustomer)).append("\n"); + sb.append(" customers: ").append(toIndentedString(customers)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateRoleResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateRoleResultVo.java new file mode 100644 index 0000000..08b7bd0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateRoleResultVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CreateRoleResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class CreateRoleResultVo { + @JsonProperty("roleId") + private String roleId; + + public CreateRoleResultVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * Role ID + * @return roleId + */ + @ApiModelProperty(value = "Role ID") + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateRoleResultVo createRoleResultVo = (CreateRoleResultVo) o; + return Objects.equals(this.roleId, createRoleResultVo.roleId); + } + + @Override + public int hashCode() { + return Objects.hash(roleId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRoleResultVo {\n"); + + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateUserResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateUserResultVo.java new file mode 100644 index 0000000..5444e10 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CreateUserResultVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CreateUserResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class CreateUserResultVo { + @JsonProperty("userId") + private String userId; + + public CreateUserResultVo userId(String userId) { + this.userId = userId; + return this; + } + + /** + * User ID + * @return userId + */ + @ApiModelProperty(value = "User ID") + + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateUserResultVo createUserResultVo = (CreateUserResultVo) o; + return Objects.equals(this.userId, createUserResultVo.userId); + } + + @Override + public int hashCode() { + return Objects.hash(userId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateUserResultVo {\n"); + + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CustomerInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CustomerInfoOpenApiVo.java new file mode 100644 index 0000000..cdbe3fd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CustomerInfoOpenApiVo.java @@ -0,0 +1,126 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CustomerInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class CustomerInfoOpenApiVo { + @JsonProperty("customerName") + private String customerName; + + @JsonProperty("customerId") + private String customerId; + + @JsonProperty("description") + private String description; + + public CustomerInfoOpenApiVo customerName(String customerName) { + this.customerName = customerName; + return this; + } + + /** + * Customer name + * @return customerName + */ + @ApiModelProperty(value = "Customer name") + + + public String getCustomerName() { + return customerName; + } + + public void setCustomerName(String customerName) { + this.customerName = customerName; + } + + public CustomerInfoOpenApiVo customerId(String customerId) { + this.customerId = customerId; + return this; + } + + /** + * Customer ID + * @return customerId + */ + @ApiModelProperty(value = "Customer ID") + + + public String getCustomerId() { + return customerId; + } + + public void setCustomerId(String customerId) { + this.customerId = customerId; + } + + public CustomerInfoOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Customer description + * @return description + */ + @ApiModelProperty(value = "Customer description") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomerInfoOpenApiVo customerInfoOpenApiVo = (CustomerInfoOpenApiVo) o; + return Objects.equals(this.customerName, customerInfoOpenApiVo.customerName) && + Objects.equals(this.customerId, customerInfoOpenApiVo.customerId) && + Objects.equals(this.description, customerInfoOpenApiVo.description); + } + + @Override + public int hashCode() { + return Objects.hash(customerName, customerId, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomerInfoOpenApiVo {\n"); + + sb.append(" customerName: ").append(toIndentedString(customerName)).append("\n"); + sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CustomerOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CustomerOpenApiVo.java new file mode 100644 index 0000000..2f8fc7d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/CustomerOpenApiVo.java @@ -0,0 +1,102 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CustomerOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class CustomerOpenApiVo { + @JsonProperty("customerName") + private String customerName; + + @JsonProperty("description") + private String description; + + public CustomerOpenApiVo customerName(String customerName) { + this.customerName = customerName; + return this; + } + + /** + * Customer name should contain 1 to 31 characters. + * @return customerName + */ + @ApiModelProperty(value = "Customer name should contain 1 to 31 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,30}[^ ]$") + public String getCustomerName() { + return customerName; + } + + public void setCustomerName(String customerName) { + this.customerName = customerName; + } + + public CustomerOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Customer description should contain 1 to 128 characters. + * @return description + */ + @ApiModelProperty(value = "Customer description should contain 1 to 128 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].*\\r?\\n?.*{0,126}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomerOpenApiVo customerOpenApiVo = (CustomerOpenApiVo) o; + return Objects.equals(this.customerName, customerOpenApiVo.customerName) && + Objects.equals(this.description, customerOpenApiVo.description); + } + + @Override + public int hashCode() { + return Objects.hash(customerName, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomerOpenApiVo {\n"); + + sb.append(" customerName: ").append(toIndentedString(customerName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DeleteUserVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DeleteUserVo.java new file mode 100644 index 0000000..c19b8f4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DeleteUserVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * DeleteUserVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class DeleteUserVo { + @JsonProperty("forceDelete") + private Boolean forceDelete; + + public DeleteUserVo forceDelete(Boolean forceDelete) { + this.forceDelete = forceDelete; + return this; + } + + /** + * Force delete target user. If false, target user can not be deleted, when target user has child users. If true, target user will be deleted anyway. Target user's child users will be root's child user. + * @return forceDelete + */ + @ApiModelProperty(value = "Force delete target user. If false, target user can not be deleted, when target user has child users. If true, target user will be deleted anyway. Target user's child users will be root's child user.") + + + public Boolean getForceDelete() { + return forceDelete; + } + + public void setForceDelete(Boolean forceDelete) { + this.forceDelete = forceDelete; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteUserVo deleteUserVo = (DeleteUserVo) o; + return Objects.equals(this.forceDelete, deleteUserVo.forceDelete); + } + + @Override + public int hashCode() { + return Objects.hash(forceDelete); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteUserVo {\n"); + + sb.append(" forceDelete: ").append(toIndentedString(forceDelete)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstDto.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstDto.java new file mode 100644 index 0000000..f2c2ace --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstDto.java @@ -0,0 +1,356 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Daylight Saving Time + */ +@ApiModel(description = "Daylight Saving Time") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class DstDto { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("start") + private DstTimeDto start; + + @JsonProperty("end") + private DstTimeDto end; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("startTime") + private Long startTime; + + @JsonProperty("endTime") + private Long endTime; + + @JsonProperty("offset") + private Long offset; + + @JsonProperty("nextStart") + private Long nextStart; + + @JsonProperty("nextEnd") + private Long nextEnd; + + @JsonProperty("timeZone") + private String timeZone; + + @JsonProperty("lastStart") + private Long lastStart; + + @JsonProperty("lastEnd") + private Long lastEnd; + + public DstDto enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * DST config status; If false, other parameters are not required. + * @return enable + */ + @ApiModelProperty(value = "DST config status; If false, other parameters are not required.") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public DstDto start(DstTimeDto start) { + this.start = start; + return this; + } + + /** + * Get start + * @return start + */ + @ApiModelProperty(value = "") + + @Valid + + public DstTimeDto getStart() { + return start; + } + + public void setStart(DstTimeDto start) { + this.start = start; + } + + public DstDto end(DstTimeDto end) { + this.end = end; + return this; + } + + /** + * Get end + * @return end + */ + @ApiModelProperty(value = "") + + @Valid + + public DstTimeDto getEnd() { + return end; + } + + public void setEnd(DstTimeDto end) { + this.end = end; + } + + public DstDto status(Boolean status) { + this.status = status; + return this; + } + + /** + * DST available status + * @return status + */ + @ApiModelProperty(value = "DST available status") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public DstDto startTime(Long startTime) { + this.startTime = startTime; + return this; + } + + /** + * The timeStamp of the DST available start time + * @return startTime + */ + @ApiModelProperty(value = "The timeStamp of the DST available start time") + + + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public DstDto endTime(Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * The timeStamp of the DST available end time + * @return endTime + */ + @ApiModelProperty(value = "The timeStamp of the DST available end time") + + + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public DstDto offset(Long offset) { + this.offset = offset; + return this; + } + + /** + * DST offset config(Unit: ms); It should be a value as follows: [1800000, 3600000, 5400000, 7200000]. + * @return offset + */ + @ApiModelProperty(value = "DST offset config(Unit: ms); It should be a value as follows: [1800000, 3600000, 5400000, 7200000].") + + + public Long getOffset() { + return offset; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public DstDto nextStart(Long nextStart) { + this.nextStart = nextStart; + return this; + } + + /** + * The timeStamp of the DST start time of the next year(Unit: ms) + * @return nextStart + */ + @ApiModelProperty(value = "The timeStamp of the DST start time of the next year(Unit: ms)") + + + public Long getNextStart() { + return nextStart; + } + + public void setNextStart(Long nextStart) { + this.nextStart = nextStart; + } + + public DstDto nextEnd(Long nextEnd) { + this.nextEnd = nextEnd; + return this; + } + + /** + * The timeStamp of the DST end time of the next year(Unit: ms) + * @return nextEnd + */ + @ApiModelProperty(value = "The timeStamp of the DST end time of the next year(Unit: ms)") + + + public Long getNextEnd() { + return nextEnd; + } + + public void setNextEnd(Long nextEnd) { + this.nextEnd = nextEnd; + } + + public DstDto timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Timezone of the site + * @return timeZone + */ + @ApiModelProperty(value = "Timezone of the site") + + + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public DstDto lastStart(Long lastStart) { + this.lastStart = lastStart; + return this; + } + + /** + * The timeStamp of the DST start time of the last year(Unit: ms) + * @return lastStart + */ + @ApiModelProperty(value = "The timeStamp of the DST start time of the last year(Unit: ms)") + + + public Long getLastStart() { + return lastStart; + } + + public void setLastStart(Long lastStart) { + this.lastStart = lastStart; + } + + public DstDto lastEnd(Long lastEnd) { + this.lastEnd = lastEnd; + return this; + } + + /** + * The timeStamp of the DST end time of the last year(Unit: ms) + * @return lastEnd + */ + @ApiModelProperty(value = "The timeStamp of the DST end time of the last year(Unit: ms)") + + + public Long getLastEnd() { + return lastEnd; + } + + public void setLastEnd(Long lastEnd) { + this.lastEnd = lastEnd; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DstDto dstDto = (DstDto) o; + return Objects.equals(this.enable, dstDto.enable) && + Objects.equals(this.start, dstDto.start) && + Objects.equals(this.end, dstDto.end) && + Objects.equals(this.status, dstDto.status) && + Objects.equals(this.startTime, dstDto.startTime) && + Objects.equals(this.endTime, dstDto.endTime) && + Objects.equals(this.offset, dstDto.offset) && + Objects.equals(this.nextStart, dstDto.nextStart) && + Objects.equals(this.nextEnd, dstDto.nextEnd) && + Objects.equals(this.timeZone, dstDto.timeZone) && + Objects.equals(this.lastStart, dstDto.lastStart) && + Objects.equals(this.lastEnd, dstDto.lastEnd); + } + + @Override + public int hashCode() { + return Objects.hash(enable, start, end, status, startTime, endTime, offset, nextStart, nextEnd, timeZone, lastStart, lastEnd); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DstDto {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" nextStart: ").append(toIndentedString(nextStart)).append("\n"); + sb.append(" nextEnd: ").append(toIndentedString(nextEnd)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" lastStart: ").append(toIndentedString(lastStart)).append("\n"); + sb.append(" lastEnd: ").append(toIndentedString(lastEnd)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstTimeDto.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstTimeDto.java new file mode 100644 index 0000000..8316937 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstTimeDto.java @@ -0,0 +1,184 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DST end time config + */ +@ApiModel(description = "DST end time config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class DstTimeDto { + @JsonProperty("month") + private Integer month; + + @JsonProperty("serial") + private Integer serial; + + @JsonProperty("day") + private Integer day; + + @JsonProperty("hour") + private Integer hour; + + @JsonProperty("minute") + private Integer minute; + + public DstTimeDto month(Integer month) { + this.month = month; + return this; + } + + /** + * Month of the DST config should be a value as follows: 1: January; 2: February; 3: March; 4: April; 5: May; 6: June; 7: July; 8: August; 9: September; 10: October; 11: November; 12: December. + * @return month + */ + @ApiModelProperty(required = true, value = "Month of the DST config should be a value as follows: 1: January; 2: February; 3: March; 4: April; 5: May; 6: June; 7: July; 8: August; 9: September; 10: October; 11: November; 12: December.") + @NotNull + + + public Integer getMonth() { + return month; + } + + public void setMonth(Integer month) { + this.month = month; + } + + public DstTimeDto serial(Integer serial) { + this.serial = serial; + return this; + } + + /** + * Week of the DST config should be a value as follows: 1: 1st; 2: 2nd; 3: 3rd; 4: 4th; 5: Last. + * @return serial + */ + @ApiModelProperty(required = true, value = "Week of the DST config should be a value as follows: 1: 1st; 2: 2nd; 3: 3rd; 4: 4th; 5: Last.") + @NotNull + + + public Integer getSerial() { + return serial; + } + + public void setSerial(Integer serial) { + this.serial = serial; + } + + public DstTimeDto day(Integer day) { + this.day = day; + return this; + } + + /** + * Day of the DST config should be a value as follows: 1: Monday; 2: Tuesday; 3: Wednesday; 4: Thursday; 5: Friday; 6: Saturday; 7: Sunday. + * @return day + */ + @ApiModelProperty(required = true, value = "Day of the DST config should be a value as follows: 1: Monday; 2: Tuesday; 3: Wednesday; 4: Thursday; 5: Friday; 6: Saturday; 7: Sunday.") + @NotNull + + + public Integer getDay() { + return day; + } + + public void setDay(Integer day) { + this.day = day; + } + + public DstTimeDto hour(Integer hour) { + this.hour = hour; + return this; + } + + /** + * Hour of the DST config should be within the range of 0–23. + * @return hour + */ + @ApiModelProperty(required = true, value = "Hour of the DST config should be within the range of 0–23.") + @NotNull + + + public Integer getHour() { + return hour; + } + + public void setHour(Integer hour) { + this.hour = hour; + } + + public DstTimeDto minute(Integer minute) { + this.minute = minute; + return this; + } + + /** + * Minute of the DST config should be within the range of 0–59. + * @return minute + */ + @ApiModelProperty(required = true, value = "Minute of the DST config should be within the range of 0–59.") + @NotNull + + + public Integer getMinute() { + return minute; + } + + public void setMinute(Integer minute) { + this.minute = minute; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DstTimeDto dstTimeDto = (DstTimeDto) o; + return Objects.equals(this.month, dstTimeDto.month) && + Objects.equals(this.serial, dstTimeDto.serial) && + Objects.equals(this.day, dstTimeDto.day) && + Objects.equals(this.hour, dstTimeDto.hour) && + Objects.equals(this.minute, dstTimeDto.minute); + } + + @Override + public int hashCode() { + return Objects.hash(month, serial, day, hour, minute); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DstTimeDto {\n"); + + sb.append(" month: ").append(toIndentedString(month)).append("\n"); + sb.append(" serial: ").append(toIndentedString(serial)).append("\n"); + sb.append(" day: ").append(toIndentedString(day)).append("\n"); + sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); + sb.append(" minute: ").append(toIndentedString(minute)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstTimeOpenApiDto.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstTimeOpenApiDto.java new file mode 100644 index 0000000..52ea397 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/DstTimeOpenApiDto.java @@ -0,0 +1,184 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DST end time config + */ +@ApiModel(description = "DST end time config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class DstTimeOpenApiDto { + @JsonProperty("month") + private Integer month; + + @JsonProperty("serial") + private Integer serial; + + @JsonProperty("day") + private Integer day; + + @JsonProperty("hour") + private Integer hour; + + @JsonProperty("minute") + private Integer minute; + + public DstTimeOpenApiDto month(Integer month) { + this.month = month; + return this; + } + + /** + * Month of the DST config should be a value as follows: 1: January; 2: February; 3: March; 4: April; 5: May; 6: June; 7: July; 8: August; 9: September; 10: October; 11: November; 12: December. + * @return month + */ + @ApiModelProperty(required = true, value = "Month of the DST config should be a value as follows: 1: January; 2: February; 3: March; 4: April; 5: May; 6: June; 7: July; 8: August; 9: September; 10: October; 11: November; 12: December.") + @NotNull + + + public Integer getMonth() { + return month; + } + + public void setMonth(Integer month) { + this.month = month; + } + + public DstTimeOpenApiDto serial(Integer serial) { + this.serial = serial; + return this; + } + + /** + * Week of the DST config should be a value as follows: 1: 1st; 2: 2nd; 3: 3rd; 4: 4th; 5: Last. + * @return serial + */ + @ApiModelProperty(required = true, value = "Week of the DST config should be a value as follows: 1: 1st; 2: 2nd; 3: 3rd; 4: 4th; 5: Last.") + @NotNull + + + public Integer getSerial() { + return serial; + } + + public void setSerial(Integer serial) { + this.serial = serial; + } + + public DstTimeOpenApiDto day(Integer day) { + this.day = day; + return this; + } + + /** + * Day of the DST config should be a value as follows: 1: Monday; 2: Tuesday; 3: Wednesday; 4: Thursday; 5: Friday; 6: Saturday; 7: Sunday. + * @return day + */ + @ApiModelProperty(required = true, value = "Day of the DST config should be a value as follows: 1: Monday; 2: Tuesday; 3: Wednesday; 4: Thursday; 5: Friday; 6: Saturday; 7: Sunday.") + @NotNull + + + public Integer getDay() { + return day; + } + + public void setDay(Integer day) { + this.day = day; + } + + public DstTimeOpenApiDto hour(Integer hour) { + this.hour = hour; + return this; + } + + /** + * Hour of the DST config should be within the range of 0–23. + * @return hour + */ + @ApiModelProperty(required = true, value = "Hour of the DST config should be within the range of 0–23.") + @NotNull + + + public Integer getHour() { + return hour; + } + + public void setHour(Integer hour) { + this.hour = hour; + } + + public DstTimeOpenApiDto minute(Integer minute) { + this.minute = minute; + return this; + } + + /** + * Minute of the DST config should be within the range of 0–59. + * @return minute + */ + @ApiModelProperty(required = true, value = "Minute of the DST config should be within the range of 0–59.") + @NotNull + + + public Integer getMinute() { + return minute; + } + + public void setMinute(Integer minute) { + this.minute = minute; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DstTimeOpenApiDto dstTimeOpenApiDto = (DstTimeOpenApiDto) o; + return Objects.equals(this.month, dstTimeOpenApiDto.month) && + Objects.equals(this.serial, dstTimeOpenApiDto.serial) && + Objects.equals(this.day, dstTimeOpenApiDto.day) && + Objects.equals(this.hour, dstTimeOpenApiDto.hour) && + Objects.equals(this.minute, dstTimeOpenApiDto.minute); + } + + @Override + public int hashCode() { + return Objects.hash(month, serial, day, hour, minute); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DstTimeOpenApiDto {\n"); + + sb.append(" month: ").append(toIndentedString(month)).append("\n"); + sb.append(" serial: ").append(toIndentedString(serial)).append("\n"); + sb.append(" day: ").append(toIndentedString(day)).append("\n"); + sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); + sb.append(" minute: ").append(toIndentedString(minute)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoAuditLogOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoAuditLogOpenApiVo.java new file mode 100644 index 0000000..99ddd7b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoAuditLogOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoAuditLogOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class GridVoAuditLogOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoAuditLogOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoAuditLogOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoAuditLogOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoAuditLogOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoAuditLogOpenApiVo addDataItem(AuditLogOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoAuditLogOpenApiVo gridVoAuditLogOpenApiVo = (GridVoAuditLogOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoAuditLogOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoAuditLogOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoAuditLogOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoAuditLogOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoAuditLogOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoCustomerInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoCustomerInfoOpenApiVo.java new file mode 100644 index 0000000..dc7138b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoCustomerInfoOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoCustomerInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class GridVoCustomerInfoOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoCustomerInfoOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoCustomerInfoOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoCustomerInfoOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoCustomerInfoOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoCustomerInfoOpenApiVo addDataItem(CustomerInfoOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoCustomerInfoOpenApiVo gridVoCustomerInfoOpenApiVo = (GridVoCustomerInfoOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoCustomerInfoOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoCustomerInfoOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoCustomerInfoOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoCustomerInfoOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoCustomerInfoOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoIdpMetadataDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoIdpMetadataDetailOpenApiVo.java new file mode 100644 index 0000000..aea35be --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoIdpMetadataDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoIdpMetadataDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class GridVoIdpMetadataDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoIdpMetadataDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoIdpMetadataDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoIdpMetadataDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoIdpMetadataDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoIdpMetadataDetailOpenApiVo addDataItem(IdpMetadataDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoIdpMetadataDetailOpenApiVo gridVoIdpMetadataDetailOpenApiVo = (GridVoIdpMetadataDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoIdpMetadataDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoIdpMetadataDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoIdpMetadataDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoIdpMetadataDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoIdpMetadataDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspExternalUserDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspExternalUserDetailOpenApiVo.java new file mode 100644 index 0000000..c8fbfe8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspExternalUserDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoMspExternalUserDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class GridVoMspExternalUserDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoMspExternalUserDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoMspExternalUserDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoMspExternalUserDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoMspExternalUserDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoMspExternalUserDetailOpenApiVo addDataItem(MspExternalUserDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoMspExternalUserDetailOpenApiVo gridVoMspExternalUserDetailOpenApiVo = (GridVoMspExternalUserDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoMspExternalUserDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoMspExternalUserDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoMspExternalUserDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoMspExternalUserDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoMspExternalUserDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspExternalUserGroupDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspExternalUserGroupDetailOpenApiVo.java new file mode 100644 index 0000000..e687983 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspExternalUserGroupDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoMspExternalUserGroupDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class GridVoMspExternalUserGroupDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoMspExternalUserGroupDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoMspExternalUserGroupDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoMspExternalUserGroupDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoMspExternalUserGroupDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoMspExternalUserGroupDetailOpenApiVo addDataItem(MspExternalUserGroupDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoMspExternalUserGroupDetailOpenApiVo gridVoMspExternalUserGroupDetailOpenApiVo = (GridVoMspExternalUserGroupDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoMspExternalUserGroupDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoMspExternalUserGroupDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoMspExternalUserGroupDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoMspExternalUserGroupDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoMspExternalUserGroupDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspKnownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspKnownDeviceOpenApiVo.java new file mode 100644 index 0000000..4e918e0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspKnownDeviceOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoMspKnownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class GridVoMspKnownDeviceOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoMspKnownDeviceOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoMspKnownDeviceOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoMspKnownDeviceOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoMspKnownDeviceOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoMspKnownDeviceOpenApiVo addDataItem(MspKnownDeviceOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoMspKnownDeviceOpenApiVo gridVoMspKnownDeviceOpenApiVo = (GridVoMspKnownDeviceOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoMspKnownDeviceOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoMspKnownDeviceOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoMspKnownDeviceOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoMspKnownDeviceOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoMspKnownDeviceOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspUnknownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspUnknownDeviceOpenApiVo.java new file mode 100644 index 0000000..28c2eb4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspUnknownDeviceOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoMspUnknownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class GridVoMspUnknownDeviceOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoMspUnknownDeviceOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoMspUnknownDeviceOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoMspUnknownDeviceOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoMspUnknownDeviceOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoMspUnknownDeviceOpenApiVo addDataItem(MspUnknownDeviceOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoMspUnknownDeviceOpenApiVo gridVoMspUnknownDeviceOpenApiVo = (GridVoMspUnknownDeviceOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoMspUnknownDeviceOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoMspUnknownDeviceOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoMspUnknownDeviceOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoMspUnknownDeviceOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoMspUnknownDeviceOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspUserDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspUserDetailVo.java new file mode 100644 index 0000000..d67f0ce --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoMspUserDetailVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoMspUserDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class GridVoMspUserDetailVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoMspUserDetailVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoMspUserDetailVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoMspUserDetailVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoMspUserDetailVo data(List data) { + this.data = data; + return this; + } + + public GridVoMspUserDetailVo addDataItem(MspUserDetailVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoMspUserDetailVo gridVoMspUserDetailVo = (GridVoMspUserDetailVo) o; + return Objects.equals(this.totalRows, gridVoMspUserDetailVo.totalRows) && + Objects.equals(this.currentPage, gridVoMspUserDetailVo.currentPage) && + Objects.equals(this.currentSize, gridVoMspUserDetailVo.currentSize) && + Objects.equals(this.data, gridVoMspUserDetailVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoMspUserDetailVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoOpenApiWebhookDispatchLogVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoOpenApiWebhookDispatchLogVo.java new file mode 100644 index 0000000..e26bd87 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoOpenApiWebhookDispatchLogVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoOpenApiWebhookDispatchLogVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class GridVoOpenApiWebhookDispatchLogVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoOpenApiWebhookDispatchLogVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoOpenApiWebhookDispatchLogVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoOpenApiWebhookDispatchLogVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoOpenApiWebhookDispatchLogVo data(List data) { + this.data = data; + return this; + } + + public GridVoOpenApiWebhookDispatchLogVo addDataItem(OpenApiWebhookDispatchLogVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoOpenApiWebhookDispatchLogVo gridVoOpenApiWebhookDispatchLogVo = (GridVoOpenApiWebhookDispatchLogVo) o; + return Objects.equals(this.totalRows, gridVoOpenApiWebhookDispatchLogVo.totalRows) && + Objects.equals(this.currentPage, gridVoOpenApiWebhookDispatchLogVo.currentPage) && + Objects.equals(this.currentSize, gridVoOpenApiWebhookDispatchLogVo.currentSize) && + Objects.equals(this.data, gridVoOpenApiWebhookDispatchLogVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoOpenApiWebhookDispatchLogVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoSiteSummaryInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoSiteSummaryInfo.java new file mode 100644 index 0000000..fa6bb40 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoSiteSummaryInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoSiteSummaryInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class GridVoSiteSummaryInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoSiteSummaryInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoSiteSummaryInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoSiteSummaryInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoSiteSummaryInfo data(List data) { + this.data = data; + return this; + } + + public GridVoSiteSummaryInfo addDataItem(SiteSummaryInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoSiteSummaryInfo gridVoSiteSummaryInfo = (GridVoSiteSummaryInfo) o; + return Objects.equals(this.totalRows, gridVoSiteSummaryInfo.totalRows) && + Objects.equals(this.currentPage, gridVoSiteSummaryInfo.currentPage) && + Objects.equals(this.currentSize, gridVoSiteSummaryInfo.currentSize) && + Objects.equals(this.data, gridVoSiteSummaryInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoSiteSummaryInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoUsedLicenseDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoUsedLicenseDetailOpenApiVo.java new file mode 100644 index 0000000..e0b0312 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/GridVoUsedLicenseDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoUsedLicenseDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class GridVoUsedLicenseDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoUsedLicenseDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoUsedLicenseDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoUsedLicenseDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoUsedLicenseDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoUsedLicenseDetailOpenApiVo addDataItem(UsedLicenseDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoUsedLicenseDetailOpenApiVo gridVoUsedLicenseDetailOpenApiVo = (GridVoUsedLicenseDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoUsedLicenseDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoUsedLicenseDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoUsedLicenseDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoUsedLicenseDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoUsedLicenseDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/HistoryRetentionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/HistoryRetentionOpenApiVo.java new file mode 100644 index 0000000..1ea784e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/HistoryRetentionOpenApiVo.java @@ -0,0 +1,351 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * HistoryRetentionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class HistoryRetentionOpenApiVo { + @JsonProperty("override") + private Boolean override; + + @JsonProperty("clientsDataEnable") + private Boolean clientsDataEnable; + + @JsonProperty("knownClient") + private Integer knownClient; + + @JsonProperty("clientHistory") + private Integer clientHistory; + + @JsonProperty("fiveMin") + private Integer fiveMin; + + @JsonProperty("hourly") + private Integer hourly; + + @JsonProperty("daily") + private Integer daily; + + @JsonProperty("weekly") + private Integer weekly; + + @JsonProperty("portalAuth") + private Integer portalAuth; + + @JsonProperty("log") + private Integer log; + + @JsonProperty("rogueAp") + private Integer rogueAp; + + @JsonProperty("widsData") + private Integer widsData; + + public HistoryRetentionOpenApiVo override(Boolean override) { + this.override = override; + return this; + } + + /** + * Whether the customer overrides the retention configuration of MSP. + * @return override + */ + @ApiModelProperty(value = "Whether the customer overrides the retention configuration of MSP.") + + + public Boolean getOverride() { + return override; + } + + public void setOverride(Boolean override) { + this.override = override; + } + + public HistoryRetentionOpenApiVo clientsDataEnable(Boolean clientsDataEnable) { + this.clientsDataEnable = clientsDataEnable; + return this; + } + + /** + * Whether the clients' history data is recorded. + * @return clientsDataEnable + */ + @ApiModelProperty(value = "Whether the clients' history data is recorded.") + + + public Boolean getClientsDataEnable() { + return clientsDataEnable; + } + + public void setClientsDataEnable(Boolean clientsDataEnable) { + this.clientsDataEnable = clientsDataEnable; + } + + public HistoryRetentionOpenApiVo knownClient(Integer knownClient) { + this.knownClient = knownClient; + return this; + } + + /** + * Retention configuration of known client Data, knownClient should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 1: 1day; 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return knownClient + */ + @ApiModelProperty(value = "Retention configuration of known client Data, knownClient should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 1: 1day; 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getKnownClient() { + return knownClient; + } + + public void setKnownClient(Integer knownClient) { + this.knownClient = knownClient; + } + + public HistoryRetentionOpenApiVo clientHistory(Integer clientHistory) { + this.clientHistory = clientHistory; + return this; + } + + /** + * Retention configuration of client History(only effective in local controller), clientHistory should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return clientHistory + */ + @ApiModelProperty(value = "Retention configuration of client History(only effective in local controller), clientHistory should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getClientHistory() { + return clientHistory; + } + + public void setClientHistory(Integer clientHistory) { + this.clientHistory = clientHistory; + } + + public HistoryRetentionOpenApiVo fiveMin(Integer fiveMin) { + this.fiveMin = fiveMin; + return this; + } + + /** + * Retention configuration of Time Series with 5 Minutes Granularity, fiveMin should be a value as follows: 2: 2days. + * @return fiveMin + */ + @ApiModelProperty(value = "Retention configuration of Time Series with 5 Minutes Granularity, fiveMin should be a value as follows: 2: 2days.") + + + public Integer getFiveMin() { + return fiveMin; + } + + public void setFiveMin(Integer fiveMin) { + this.fiveMin = fiveMin; + } + + public HistoryRetentionOpenApiVo hourly(Integer hourly) { + this.hourly = hourly; + return this; + } + + /** + * Retention configuration of time series with hourly granularity, hourly should be a value as follows: 7: 7days. + * @return hourly + */ + @ApiModelProperty(value = "Retention configuration of time series with hourly granularity, hourly should be a value as follows: 7: 7days.") + + + public Integer getHourly() { + return hourly; + } + + public void setHourly(Integer hourly) { + this.hourly = hourly; + } + + public HistoryRetentionOpenApiVo daily(Integer daily) { + this.daily = daily; + return this; + } + + /** + * Retention configuration of time series with daily granularity, daily should be a value as follows: 90: 90days; 180: 180days; 365: 365days(Fixed value in Cloud Based Controller as 365 days). + * @return daily + */ + @ApiModelProperty(value = "Retention configuration of time series with daily granularity, daily should be a value as follows: 90: 90days; 180: 180days; 365: 365days(Fixed value in Cloud Based Controller as 365 days).") + + + public Integer getDaily() { + return daily; + } + + public void setDaily(Integer daily) { + this.daily = daily; + } + + public HistoryRetentionOpenApiVo weekly(Integer weekly) { + this.weekly = weekly; + return this; + } + + /** + * Retention configuration of time series with weekly granularity, weekly should be a value as follows: 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return weekly + */ + @ApiModelProperty(value = "Retention configuration of time series with weekly granularity, weekly should be a value as follows: 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getWeekly() { + return weekly; + } + + public void setWeekly(Integer weekly) { + this.weekly = weekly; + } + + public HistoryRetentionOpenApiVo portalAuth(Integer portalAuth) { + this.portalAuth = portalAuth; + return this; + } + + /** + * Retention configuration of portal authentication records, portalAuth should be a value as follows: 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return portalAuth + */ + @ApiModelProperty(value = "Retention configuration of portal authentication records, portalAuth should be a value as follows: 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getPortalAuth() { + return portalAuth; + } + + public void setPortalAuth(Integer portalAuth) { + this.portalAuth = portalAuth; + } + + public HistoryRetentionOpenApiVo log(Integer log) { + this.log = log; + return this; + } + + /** + * Retention Configuration of log data(only effective in local controller), log should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return log + */ + @ApiModelProperty(value = "Retention Configuration of log data(only effective in local controller), log should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getLog() { + return log; + } + + public void setLog(Integer log) { + this.log = log; + } + + public HistoryRetentionOpenApiVo rogueAp(Integer rogueAp) { + this.rogueAp = rogueAp; + return this; + } + + /** + * Retention Configuration of rogue ap data, rogueAp should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return rogueAp + */ + @ApiModelProperty(value = "Retention Configuration of rogue ap data, rogueAp should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getRogueAp() { + return rogueAp; + } + + public void setRogueAp(Integer rogueAp) { + this.rogueAp = rogueAp; + } + + public HistoryRetentionOpenApiVo widsData(Integer widsData) { + this.widsData = widsData; + return this; + } + + /** + * Retention Configuration of wids data(only effective in local pro controller), widsData should be a value as follows: 0: All Time(Windows, Linux Only); 90: 90days; 180: 180days; 365: 365days. + * @return widsData + */ + @ApiModelProperty(value = "Retention Configuration of wids data(only effective in local pro controller), widsData should be a value as follows: 0: All Time(Windows, Linux Only); 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getWidsData() { + return widsData; + } + + public void setWidsData(Integer widsData) { + this.widsData = widsData; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HistoryRetentionOpenApiVo historyRetentionOpenApiVo = (HistoryRetentionOpenApiVo) o; + return Objects.equals(this.override, historyRetentionOpenApiVo.override) && + Objects.equals(this.clientsDataEnable, historyRetentionOpenApiVo.clientsDataEnable) && + Objects.equals(this.knownClient, historyRetentionOpenApiVo.knownClient) && + Objects.equals(this.clientHistory, historyRetentionOpenApiVo.clientHistory) && + Objects.equals(this.fiveMin, historyRetentionOpenApiVo.fiveMin) && + Objects.equals(this.hourly, historyRetentionOpenApiVo.hourly) && + Objects.equals(this.daily, historyRetentionOpenApiVo.daily) && + Objects.equals(this.weekly, historyRetentionOpenApiVo.weekly) && + Objects.equals(this.portalAuth, historyRetentionOpenApiVo.portalAuth) && + Objects.equals(this.log, historyRetentionOpenApiVo.log) && + Objects.equals(this.rogueAp, historyRetentionOpenApiVo.rogueAp) && + Objects.equals(this.widsData, historyRetentionOpenApiVo.widsData); + } + + @Override + public int hashCode() { + return Objects.hash(override, clientsDataEnable, knownClient, clientHistory, fiveMin, hourly, daily, weekly, portalAuth, log, rogueAp, widsData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HistoryRetentionOpenApiVo {\n"); + + sb.append(" override: ").append(toIndentedString(override)).append("\n"); + sb.append(" clientsDataEnable: ").append(toIndentedString(clientsDataEnable)).append("\n"); + sb.append(" knownClient: ").append(toIndentedString(knownClient)).append("\n"); + sb.append(" clientHistory: ").append(toIndentedString(clientHistory)).append("\n"); + sb.append(" fiveMin: ").append(toIndentedString(fiveMin)).append("\n"); + sb.append(" hourly: ").append(toIndentedString(hourly)).append("\n"); + sb.append(" daily: ").append(toIndentedString(daily)).append("\n"); + sb.append(" weekly: ").append(toIndentedString(weekly)).append("\n"); + sb.append(" portalAuth: ").append(toIndentedString(portalAuth)).append("\n"); + sb.append(" log: ").append(toIndentedString(log)).append("\n"); + sb.append(" rogueAp: ").append(toIndentedString(rogueAp)).append("\n"); + sb.append(" widsData: ").append(toIndentedString(widsData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/IdpMetadataDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/IdpMetadataDetailOpenApiVo.java new file mode 100644 index 0000000..024a963 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/IdpMetadataDetailOpenApiVo.java @@ -0,0 +1,251 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * IdpMetadataDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class IdpMetadataDetailOpenApiVo { + @JsonProperty("idpId") + private String idpId; + + @JsonProperty("name") + private String name; + + @JsonProperty("description") + private String description; + + @JsonProperty("entityId") + private String entityId; + + @JsonProperty("loginUrl") + private String loginUrl; + + @JsonProperty("x509Certificate") + private String x509Certificate; + + @JsonProperty("entityUrl") + private String entityUrl; + + @JsonProperty("signOnUrl") + private String signOnUrl; + + public IdpMetadataDetailOpenApiVo idpId(String idpId) { + this.idpId = idpId; + return this; + } + + /** + * IdP ID(resource ID). + * @return idpId + */ + @ApiModelProperty(value = "IdP ID(resource ID).") + + + public String getIdpId() { + return idpId; + } + + public void setIdpId(String idpId) { + this.idpId = idpId; + } + + public IdpMetadataDetailOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * IdP name. + * @return name + */ + @ApiModelProperty(value = "IdP name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public IdpMetadataDetailOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description. + * @return description + */ + @ApiModelProperty(value = "Description.") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public IdpMetadataDetailOpenApiVo entityId(String entityId) { + this.entityId = entityId; + return this; + } + + /** + * The IdP entity ID which must be unique in same Omadac. + * @return entityId + */ + @ApiModelProperty(value = "The IdP entity ID which must be unique in same Omadac.") + + + public String getEntityId() { + return entityId; + } + + public void setEntityId(String entityId) { + this.entityId = entityId; + } + + public IdpMetadataDetailOpenApiVo loginUrl(String loginUrl) { + this.loginUrl = loginUrl; + return this; + } + + /** + * Login url. + * @return loginUrl + */ + @ApiModelProperty(value = "Login url.") + + + public String getLoginUrl() { + return loginUrl; + } + + public void setLoginUrl(String loginUrl) { + this.loginUrl = loginUrl; + } + + public IdpMetadataDetailOpenApiVo x509Certificate(String x509Certificate) { + this.x509Certificate = x509Certificate; + return this; + } + + /** + * BASE64 encoded string of x509 certificate. + * @return x509Certificate + */ + @ApiModelProperty(value = "BASE64 encoded string of x509 certificate.") + + + public String getX509Certificate() { + return x509Certificate; + } + + public void setX509Certificate(String x509Certificate) { + this.x509Certificate = x509Certificate; + } + + public IdpMetadataDetailOpenApiVo entityUrl(String entityUrl) { + this.entityUrl = entityUrl; + return this; + } + + /** + * Entity url. + * @return entityUrl + */ + @ApiModelProperty(value = "Entity url.") + + + public String getEntityUrl() { + return entityUrl; + } + + public void setEntityUrl(String entityUrl) { + this.entityUrl = entityUrl; + } + + public IdpMetadataDetailOpenApiVo signOnUrl(String signOnUrl) { + this.signOnUrl = signOnUrl; + return this; + } + + /** + * Sign On url. + * @return signOnUrl + */ + @ApiModelProperty(value = "Sign On url.") + + + public String getSignOnUrl() { + return signOnUrl; + } + + public void setSignOnUrl(String signOnUrl) { + this.signOnUrl = signOnUrl; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IdpMetadataDetailOpenApiVo idpMetadataDetailOpenApiVo = (IdpMetadataDetailOpenApiVo) o; + return Objects.equals(this.idpId, idpMetadataDetailOpenApiVo.idpId) && + Objects.equals(this.name, idpMetadataDetailOpenApiVo.name) && + Objects.equals(this.description, idpMetadataDetailOpenApiVo.description) && + Objects.equals(this.entityId, idpMetadataDetailOpenApiVo.entityId) && + Objects.equals(this.loginUrl, idpMetadataDetailOpenApiVo.loginUrl) && + Objects.equals(this.x509Certificate, idpMetadataDetailOpenApiVo.x509Certificate) && + Objects.equals(this.entityUrl, idpMetadataDetailOpenApiVo.entityUrl) && + Objects.equals(this.signOnUrl, idpMetadataDetailOpenApiVo.signOnUrl); + } + + @Override + public int hashCode() { + return Objects.hash(idpId, name, description, entityId, loginUrl, x509Certificate, entityUrl, signOnUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IdpMetadataDetailOpenApiVo {\n"); + + sb.append(" idpId: ").append(toIndentedString(idpId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); + sb.append(" loginUrl: ").append(toIndentedString(loginUrl)).append("\n"); + sb.append(" x509Certificate: ").append(toIndentedString(x509Certificate)).append("\n"); + sb.append(" entityUrl: ").append(toIndentedString(entityUrl)).append("\n"); + sb.append(" signOnUrl: ").append(toIndentedString(signOnUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/IdpMetadataOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/IdpMetadataOpenApiVo.java new file mode 100644 index 0000000..f15a266 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/IdpMetadataOpenApiVo.java @@ -0,0 +1,182 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * IdpMetadataOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class IdpMetadataOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("description") + private String description; + + @JsonProperty("entityId") + private String entityId; + + @JsonProperty("loginUrl") + private String loginUrl; + + @JsonProperty("x509Certificate") + private String x509Certificate; + + public IdpMetadataOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * IdP name should contain 1 to 32 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "IdP name should contain 1 to 32 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,30}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public IdpMetadataOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * IdP description should contain 0 to 128 characters. + * @return description + */ + @ApiModelProperty(value = "IdP description should contain 0 to 128 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public IdpMetadataOpenApiVo entityId(String entityId) { + this.entityId = entityId; + return this; + } + + /** + * The IdP entity id which must be unique in same Omadac. + * @return entityId + */ + @ApiModelProperty(required = true, value = "The IdP entity id which must be unique in same Omadac.") + @NotNull + +@Pattern(regexp="^(?=^.{3,255}$)(http(s)?://)(www\\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\\d+)*(/[\\w-]*(\\.[\\w-]+)?)*([\\?&][\\w-]+=[\\w-]*)*$") + public String getEntityId() { + return entityId; + } + + public void setEntityId(String entityId) { + this.entityId = entityId; + } + + public IdpMetadataOpenApiVo loginUrl(String loginUrl) { + this.loginUrl = loginUrl; + return this; + } + + /** + * Login url + * @return loginUrl + */ + @ApiModelProperty(required = true, value = "Login url") + @NotNull + +@Pattern(regexp="^(?=^.{3,255}$)(http(s)?://)(www\\.)?[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+(:\\d+)*(/[\\w-]*(\\.[\\w-]+)?)*([\\?&][\\w-]+=[\\w-]*)*$") + public String getLoginUrl() { + return loginUrl; + } + + public void setLoginUrl(String loginUrl) { + this.loginUrl = loginUrl; + } + + public IdpMetadataOpenApiVo x509Certificate(String x509Certificate) { + this.x509Certificate = x509Certificate; + return this; + } + + /** + * BASE64 encoded string of x509 certificate. + * @return x509Certificate + */ + @ApiModelProperty(required = true, value = "BASE64 encoded string of x509 certificate.") + @NotNull + + + public String getX509Certificate() { + return x509Certificate; + } + + public void setX509Certificate(String x509Certificate) { + this.x509Certificate = x509Certificate; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IdpMetadataOpenApiVo idpMetadataOpenApiVo = (IdpMetadataOpenApiVo) o; + return Objects.equals(this.name, idpMetadataOpenApiVo.name) && + Objects.equals(this.description, idpMetadataOpenApiVo.description) && + Objects.equals(this.entityId, idpMetadataOpenApiVo.entityId) && + Objects.equals(this.loginUrl, idpMetadataOpenApiVo.loginUrl) && + Objects.equals(this.x509Certificate, idpMetadataOpenApiVo.x509Certificate); + } + + @Override + public int hashCode() { + return Objects.hash(name, description, entityId, loginUrl, x509Certificate); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IdpMetadataOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" entityId: ").append(toIndentedString(entityId)).append("\n"); + sb.append(" loginUrl: ").append(toIndentedString(loginUrl)).append("\n"); + sb.append(" x509Certificate: ").append(toIndentedString(x509Certificate)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAssignmentOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAssignmentOpenApiVo.java new file mode 100644 index 0000000..4ce1a3d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAssignmentOpenApiVo.java @@ -0,0 +1,141 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LicenseAssignmentOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LicenseAssignmentOpenApiVo { + @JsonProperty("customerId") + private String customerId; + + @JsonProperty("licenseNum") + @Valid + private List licenseNum = new ArrayList<>(); + + @JsonProperty("others") + private LicenseOthersIdsOpenApiVo others; + + public LicenseAssignmentOpenApiVo customerId(String customerId) { + this.customerId = customerId; + return this; + } + + /** + * Customer ID + * @return customerId + */ + @ApiModelProperty(required = true, value = "Customer ID") + @NotNull + + + public String getCustomerId() { + return customerId; + } + + public void setCustomerId(String customerId) { + this.customerId = customerId; + } + + public LicenseAssignmentOpenApiVo licenseNum(List licenseNum) { + this.licenseNum = licenseNum; + return this; + } + + public LicenseAssignmentOpenApiVo addLicenseNumItem(LicenseNumOpenApiVo licenseNumItem) { + this.licenseNum.add(licenseNumItem); + return this; + } + + /** + * License num + * @return licenseNum + */ + @ApiModelProperty(required = true, value = "License num") + @NotNull + + @Valid + + public List getLicenseNum() { + return licenseNum; + } + + public void setLicenseNum(List licenseNum) { + this.licenseNum = licenseNum; + } + + public LicenseAssignmentOpenApiVo others(LicenseOthersIdsOpenApiVo others) { + this.others = others; + return this; + } + + /** + * Get others + * @return others + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public LicenseOthersIdsOpenApiVo getOthers() { + return others; + } + + public void setOthers(LicenseOthersIdsOpenApiVo others) { + this.others = others; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseAssignmentOpenApiVo licenseAssignmentOpenApiVo = (LicenseAssignmentOpenApiVo) o; + return Objects.equals(this.customerId, licenseAssignmentOpenApiVo.customerId) && + Objects.equals(this.licenseNum, licenseAssignmentOpenApiVo.licenseNum) && + Objects.equals(this.others, licenseAssignmentOpenApiVo.others); + } + + @Override + public int hashCode() { + return Objects.hash(customerId, licenseNum, others); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseAssignmentOpenApiVo {\n"); + + sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); + sb.append(" licenseNum: ").append(toIndentedString(licenseNum)).append("\n"); + sb.append(" others: ").append(toIndentedString(others)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAutoActiveOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAutoActiveOpenApiVo.java new file mode 100644 index 0000000..198be71 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAutoActiveOpenApiVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * LicenseAutoActiveOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LicenseAutoActiveOpenApiVo { + @JsonProperty("autoActive") + private Boolean autoActive; + + public LicenseAutoActiveOpenApiVo autoActive(Boolean autoActive) { + this.autoActive = autoActive; + return this; + } + + /** + * Get autoActive + * @return autoActive + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getAutoActive() { + return autoActive; + } + + public void setAutoActive(Boolean autoActive) { + this.autoActive = autoActive; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseAutoActiveOpenApiVo licenseAutoActiveOpenApiVo = (LicenseAutoActiveOpenApiVo) o; + return Objects.equals(this.autoActive, licenseAutoActiveOpenApiVo.autoActive); + } + + @Override + public int hashCode() { + return Objects.hash(autoActive); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseAutoActiveOpenApiVo {\n"); + + sb.append(" autoActive: ").append(toIndentedString(autoActive)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAvailableAssignOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAvailableAssignOpenApiVo.java new file mode 100644 index 0000000..e61dcfe --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAvailableAssignOpenApiVo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LicenseAvailableAssignOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LicenseAvailableAssignOpenApiVo { + @JsonProperty("licenseNum") + @Valid + private List licenseNum = null; + + public LicenseAvailableAssignOpenApiVo licenseNum(List licenseNum) { + this.licenseNum = licenseNum; + return this; + } + + public LicenseAvailableAssignOpenApiVo addLicenseNumItem(LicenseNumOpenApiVo licenseNumItem) { + if (this.licenseNum == null) { + this.licenseNum = new ArrayList<>(); + } + this.licenseNum.add(licenseNumItem); + return this; + } + + /** + * Get licenseNum + * @return licenseNum + */ + @ApiModelProperty(value = "") + + @Valid + + public List getLicenseNum() { + return licenseNum; + } + + public void setLicenseNum(List licenseNum) { + this.licenseNum = licenseNum; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseAvailableAssignOpenApiVo licenseAvailableAssignOpenApiVo = (LicenseAvailableAssignOpenApiVo) o; + return Objects.equals(this.licenseNum, licenseAvailableAssignOpenApiVo.licenseNum); + } + + @Override + public int hashCode() { + return Objects.hash(licenseNum); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseAvailableAssignOpenApiVo {\n"); + + sb.append(" licenseNum: ").append(toIndentedString(licenseNum)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAvailableRecycleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAvailableRecycleOpenApiVo.java new file mode 100644 index 0000000..a8f07a6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseAvailableRecycleOpenApiVo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LicenseAvailableRecycleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LicenseAvailableRecycleOpenApiVo { + @JsonProperty("licenseNum") + @Valid + private List licenseNum = null; + + public LicenseAvailableRecycleOpenApiVo licenseNum(List licenseNum) { + this.licenseNum = licenseNum; + return this; + } + + public LicenseAvailableRecycleOpenApiVo addLicenseNumItem(LicenseNumOpenApiVo licenseNumItem) { + if (this.licenseNum == null) { + this.licenseNum = new ArrayList<>(); + } + this.licenseNum.add(licenseNumItem); + return this; + } + + /** + * Get licenseNum + * @return licenseNum + */ + @ApiModelProperty(value = "") + + @Valid + + public List getLicenseNum() { + return licenseNum; + } + + public void setLicenseNum(List licenseNum) { + this.licenseNum = licenseNum; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseAvailableRecycleOpenApiVo licenseAvailableRecycleOpenApiVo = (LicenseAvailableRecycleOpenApiVo) o; + return Objects.equals(this.licenseNum, licenseAvailableRecycleOpenApiVo.licenseNum); + } + + @Override + public int hashCode() { + return Objects.hash(licenseNum); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseAvailableRecycleOpenApiVo {\n"); + + sb.append(" licenseNum: ").append(toIndentedString(licenseNum)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseCategoryOtherIdsOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseCategoryOtherIdsOpenApiVo.java new file mode 100644 index 0000000..1a99095 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseCategoryOtherIdsOpenApiVo.java @@ -0,0 +1,142 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Min; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Gateway used license + */ +@ApiModel(description = "Gateway used license") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LicenseCategoryOtherIdsOpenApiVo { + @JsonProperty("licenseKeyList") + @Valid + private List licenseKeyList = null; + + @JsonProperty("selectAll") + private Boolean selectAll; + + @JsonProperty("total") + private Integer total; + + public LicenseCategoryOtherIdsOpenApiVo licenseKeyList(List licenseKeyList) { + this.licenseKeyList = licenseKeyList; + return this; + } + + public LicenseCategoryOtherIdsOpenApiVo addLicenseKeyListItem(String licenseKeyListItem) { + if (this.licenseKeyList == null) { + this.licenseKeyList = new ArrayList<>(); + } + this.licenseKeyList.add(licenseKeyListItem); + return this; + } + + /** + * License key list + * @return licenseKeyList + */ + @ApiModelProperty(value = "License key list") + + + public List getLicenseKeyList() { + return licenseKeyList; + } + + public void setLicenseKeyList(List licenseKeyList) { + this.licenseKeyList = licenseKeyList; + } + + public LicenseCategoryOtherIdsOpenApiVo selectAll(Boolean selectAll) { + this.selectAll = selectAll; + return this; + } + + /** + * Select all used license + * @return selectAll + */ + @ApiModelProperty(value = "Select all used license") + + + public Boolean getSelectAll() { + return selectAll; + } + + public void setSelectAll(Boolean selectAll) { + this.selectAll = selectAll; + } + + public LicenseCategoryOtherIdsOpenApiVo total(Integer total) { + this.total = total; + return this; + } + + /** + * Total select used license + * minimum: 0 + * @return total + */ + @ApiModelProperty(value = "Total select used license") + +@Min(0) + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseCategoryOtherIdsOpenApiVo licenseCategoryOtherIdsOpenApiVo = (LicenseCategoryOtherIdsOpenApiVo) o; + return Objects.equals(this.licenseKeyList, licenseCategoryOtherIdsOpenApiVo.licenseKeyList) && + Objects.equals(this.selectAll, licenseCategoryOtherIdsOpenApiVo.selectAll) && + Objects.equals(this.total, licenseCategoryOtherIdsOpenApiVo.total); + } + + @Override + public int hashCode() { + return Objects.hash(licenseKeyList, selectAll, total); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseCategoryOtherIdsOpenApiVo {\n"); + + sb.append(" licenseKeyList: ").append(toIndentedString(licenseKeyList)).append("\n"); + sb.append(" selectAll: ").append(toIndentedString(selectAll)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseNumOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseNumOpenApiVo.java new file mode 100644 index 0000000..c1ca2f4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseNumOpenApiVo.java @@ -0,0 +1,211 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Min; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * License num + */ +@ApiModel(description = "License num") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LicenseNumOpenApiVo { + @JsonProperty("basic") + private Integer basic; + + @JsonProperty("ap") + private Integer ap; + + @JsonProperty("l2Switch") + private Integer l2Switch; + + @JsonProperty("l3Switch") + private Integer l3Switch; + + @JsonProperty("gateway") + private Integer gateway; + + @JsonProperty("type") + private String type; + + public LicenseNumOpenApiVo basic(Integer basic) { + this.basic = basic; + return this; + } + + /** + * Basic + * minimum: 0 + * @return basic + */ + @ApiModelProperty(value = "Basic") + +@Min(0) + public Integer getBasic() { + return basic; + } + + public void setBasic(Integer basic) { + this.basic = basic; + } + + public LicenseNumOpenApiVo ap(Integer ap) { + this.ap = ap; + return this; + } + + /** + * Pro ap + * minimum: 0 + * @return ap + */ + @ApiModelProperty(value = "Pro ap") + +@Min(0) + public Integer getAp() { + return ap; + } + + public void setAp(Integer ap) { + this.ap = ap; + } + + public LicenseNumOpenApiVo l2Switch(Integer l2Switch) { + this.l2Switch = l2Switch; + return this; + } + + /** + * Pro l2Switch + * minimum: 0 + * @return l2Switch + */ + @ApiModelProperty(value = "Pro l2Switch") + +@Min(0) + public Integer getL2Switch() { + return l2Switch; + } + + public void setL2Switch(Integer l2Switch) { + this.l2Switch = l2Switch; + } + + public LicenseNumOpenApiVo l3Switch(Integer l3Switch) { + this.l3Switch = l3Switch; + return this; + } + + /** + * Pro l3Switch + * minimum: 0 + * @return l3Switch + */ + @ApiModelProperty(value = "Pro l3Switch") + +@Min(0) + public Integer getL3Switch() { + return l3Switch; + } + + public void setL3Switch(Integer l3Switch) { + this.l3Switch = l3Switch; + } + + public LicenseNumOpenApiVo gateway(Integer gateway) { + this.gateway = gateway; + return this; + } + + /** + * Pro gateway + * minimum: 0 + * @return gateway + */ + @ApiModelProperty(value = "Pro gateway") + +@Min(0) + public Integer getGateway() { + return gateway; + } + + public void setGateway(Integer gateway) { + this.gateway = gateway; + } + + public LicenseNumOpenApiVo type(String type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: 1year; 2years; 3years; 4years; 5years; trial + * @return type + */ + @ApiModelProperty(required = true, value = "Type should be a value as follows: 1year; 2years; 3years; 4years; 5years; trial") + @NotNull + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseNumOpenApiVo licenseNumOpenApiVo = (LicenseNumOpenApiVo) o; + return Objects.equals(this.basic, licenseNumOpenApiVo.basic) && + Objects.equals(this.ap, licenseNumOpenApiVo.ap) && + Objects.equals(this.l2Switch, licenseNumOpenApiVo.l2Switch) && + Objects.equals(this.l3Switch, licenseNumOpenApiVo.l3Switch) && + Objects.equals(this.gateway, licenseNumOpenApiVo.gateway) && + Objects.equals(this.type, licenseNumOpenApiVo.type); + } + + @Override + public int hashCode() { + return Objects.hash(basic, ap, l2Switch, l3Switch, gateway, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseNumOpenApiVo {\n"); + + sb.append(" basic: ").append(toIndentedString(basic)).append("\n"); + sb.append(" ap: ").append(toIndentedString(ap)).append("\n"); + sb.append(" l2Switch: ").append(toIndentedString(l2Switch)).append("\n"); + sb.append(" l3Switch: ").append(toIndentedString(l3Switch)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseOthersIdsOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseOthersIdsOpenApiVo.java new file mode 100644 index 0000000..1a65c81 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseOthersIdsOpenApiVo.java @@ -0,0 +1,184 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Used license + */ +@ApiModel(description = "Used license") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LicenseOthersIdsOpenApiVo { + @JsonProperty("basic") + private LicenseCategoryOtherIdsOpenApiVo basic; + + @JsonProperty("ap") + private LicenseCategoryOtherIdsOpenApiVo ap; + + @JsonProperty("l2Switch") + private LicenseCategoryOtherIdsOpenApiVo l2Switch; + + @JsonProperty("l3Switch") + private LicenseCategoryOtherIdsOpenApiVo l3Switch; + + @JsonProperty("gateway") + private LicenseCategoryOtherIdsOpenApiVo gateway; + + public LicenseOthersIdsOpenApiVo basic(LicenseCategoryOtherIdsOpenApiVo basic) { + this.basic = basic; + return this; + } + + /** + * Get basic + * @return basic + */ + @ApiModelProperty(value = "") + + @Valid + + public LicenseCategoryOtherIdsOpenApiVo getBasic() { + return basic; + } + + public void setBasic(LicenseCategoryOtherIdsOpenApiVo basic) { + this.basic = basic; + } + + public LicenseOthersIdsOpenApiVo ap(LicenseCategoryOtherIdsOpenApiVo ap) { + this.ap = ap; + return this; + } + + /** + * Get ap + * @return ap + */ + @ApiModelProperty(value = "") + + @Valid + + public LicenseCategoryOtherIdsOpenApiVo getAp() { + return ap; + } + + public void setAp(LicenseCategoryOtherIdsOpenApiVo ap) { + this.ap = ap; + } + + public LicenseOthersIdsOpenApiVo l2Switch(LicenseCategoryOtherIdsOpenApiVo l2Switch) { + this.l2Switch = l2Switch; + return this; + } + + /** + * Get l2Switch + * @return l2Switch + */ + @ApiModelProperty(value = "") + + @Valid + + public LicenseCategoryOtherIdsOpenApiVo getL2Switch() { + return l2Switch; + } + + public void setL2Switch(LicenseCategoryOtherIdsOpenApiVo l2Switch) { + this.l2Switch = l2Switch; + } + + public LicenseOthersIdsOpenApiVo l3Switch(LicenseCategoryOtherIdsOpenApiVo l3Switch) { + this.l3Switch = l3Switch; + return this; + } + + /** + * Get l3Switch + * @return l3Switch + */ + @ApiModelProperty(value = "") + + @Valid + + public LicenseCategoryOtherIdsOpenApiVo getL3Switch() { + return l3Switch; + } + + public void setL3Switch(LicenseCategoryOtherIdsOpenApiVo l3Switch) { + this.l3Switch = l3Switch; + } + + public LicenseOthersIdsOpenApiVo gateway(LicenseCategoryOtherIdsOpenApiVo gateway) { + this.gateway = gateway; + return this; + } + + /** + * Get gateway + * @return gateway + */ + @ApiModelProperty(value = "") + + @Valid + + public LicenseCategoryOtherIdsOpenApiVo getGateway() { + return gateway; + } + + public void setGateway(LicenseCategoryOtherIdsOpenApiVo gateway) { + this.gateway = gateway; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseOthersIdsOpenApiVo licenseOthersIdsOpenApiVo = (LicenseOthersIdsOpenApiVo) o; + return Objects.equals(this.basic, licenseOthersIdsOpenApiVo.basic) && + Objects.equals(this.ap, licenseOthersIdsOpenApiVo.ap) && + Objects.equals(this.l2Switch, licenseOthersIdsOpenApiVo.l2Switch) && + Objects.equals(this.l3Switch, licenseOthersIdsOpenApiVo.l3Switch) && + Objects.equals(this.gateway, licenseOthersIdsOpenApiVo.gateway); + } + + @Override + public int hashCode() { + return Objects.hash(basic, ap, l2Switch, l3Switch, gateway); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseOthersIdsOpenApiVo {\n"); + + sb.append(" basic: ").append(toIndentedString(basic)).append("\n"); + sb.append(" ap: ").append(toIndentedString(ap)).append("\n"); + sb.append(" l2Switch: ").append(toIndentedString(l2Switch)).append("\n"); + sb.append(" l3Switch: ").append(toIndentedString(l3Switch)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseRecycleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseRecycleOpenApiVo.java new file mode 100644 index 0000000..08d225a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LicenseRecycleOpenApiVo.java @@ -0,0 +1,141 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LicenseRecycleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LicenseRecycleOpenApiVo { + @JsonProperty("customerId") + private String customerId; + + @JsonProperty("licenseNum") + @Valid + private List licenseNum = new ArrayList<>(); + + @JsonProperty("others") + private LicenseOthersIdsOpenApiVo others; + + public LicenseRecycleOpenApiVo customerId(String customerId) { + this.customerId = customerId; + return this; + } + + /** + * Customer ID + * @return customerId + */ + @ApiModelProperty(required = true, value = "Customer ID") + @NotNull + + + public String getCustomerId() { + return customerId; + } + + public void setCustomerId(String customerId) { + this.customerId = customerId; + } + + public LicenseRecycleOpenApiVo licenseNum(List licenseNum) { + this.licenseNum = licenseNum; + return this; + } + + public LicenseRecycleOpenApiVo addLicenseNumItem(LicenseNumOpenApiVo licenseNumItem) { + this.licenseNum.add(licenseNumItem); + return this; + } + + /** + * License num + * @return licenseNum + */ + @ApiModelProperty(required = true, value = "License num") + @NotNull + + @Valid + + public List getLicenseNum() { + return licenseNum; + } + + public void setLicenseNum(List licenseNum) { + this.licenseNum = licenseNum; + } + + public LicenseRecycleOpenApiVo others(LicenseOthersIdsOpenApiVo others) { + this.others = others; + return this; + } + + /** + * Get others + * @return others + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public LicenseOthersIdsOpenApiVo getOthers() { + return others; + } + + public void setOthers(LicenseOthersIdsOpenApiVo others) { + this.others = others; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LicenseRecycleOpenApiVo licenseRecycleOpenApiVo = (LicenseRecycleOpenApiVo) o; + return Objects.equals(this.customerId, licenseRecycleOpenApiVo.customerId) && + Objects.equals(this.licenseNum, licenseRecycleOpenApiVo.licenseNum) && + Objects.equals(this.others, licenseRecycleOpenApiVo.others); + } + + @Override + public int hashCode() { + return Objects.hash(customerId, licenseNum, others); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LicenseRecycleOpenApiVo {\n"); + + sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); + sb.append(" licenseNum: ").append(toIndentedString(licenseNum)).append("\n"); + sb.append(" others: ").append(toIndentedString(others)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogAlertEmailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogAlertEmailOpenApiVo.java new file mode 100644 index 0000000..ead0e73 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogAlertEmailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Log Alert Email (This config applies to the log site view) + */ +@ApiModel(description = "Log Alert Email (This config applies to the log site view)") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LogAlertEmailOpenApiVo { + @JsonProperty("alertEmailEnable") + private Boolean alertEmailEnable; + + @JsonProperty("delayEnable") + private Boolean delayEnable; + + @JsonProperty("delay") + private Integer delay; + + public LogAlertEmailOpenApiVo alertEmailEnable(Boolean alertEmailEnable) { + this.alertEmailEnable = alertEmailEnable; + return this; + } + + /** + * Log Enable or Disable email + * @return alertEmailEnable + */ + @ApiModelProperty(value = "Log Enable or Disable email") + + + public Boolean getAlertEmailEnable() { + return alertEmailEnable; + } + + public void setAlertEmailEnable(Boolean alertEmailEnable) { + this.alertEmailEnable = alertEmailEnable; + } + + public LogAlertEmailOpenApiVo delayEnable(Boolean delayEnable) { + this.delayEnable = delayEnable; + return this; + } + + /** + * Log Enable or Disable delay email + * @return delayEnable + */ + @ApiModelProperty(value = "Log Enable or Disable delay email") + + + public Boolean getDelayEnable() { + return delayEnable; + } + + public void setDelayEnable(Boolean delayEnable) { + this.delayEnable = delayEnable; + } + + public LogAlertEmailOpenApiVo delay(Integer delay) { + this.delay = delay; + return this; + } + + /** + * Time of Log delay email (unit:s). The value should be within the range of 0–99999. + * @return delay + */ + @ApiModelProperty(value = "Time of Log delay email (unit:s). The value should be within the range of 0–99999.") + + + public Integer getDelay() { + return delay; + } + + public void setDelay(Integer delay) { + this.delay = delay; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogAlertEmailOpenApiVo logAlertEmailOpenApiVo = (LogAlertEmailOpenApiVo) o; + return Objects.equals(this.alertEmailEnable, logAlertEmailOpenApiVo.alertEmailEnable) && + Objects.equals(this.delayEnable, logAlertEmailOpenApiVo.delayEnable) && + Objects.equals(this.delay, logAlertEmailOpenApiVo.delay); + } + + @Override + public int hashCode() { + return Objects.hash(alertEmailEnable, delayEnable, delay); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogAlertEmailOpenApiVo {\n"); + + sb.append(" alertEmailEnable: ").append(toIndentedString(alertEmailEnable)).append("\n"); + sb.append(" delayEnable: ").append(toIndentedString(delayEnable)).append("\n"); + sb.append(" delay: ").append(toIndentedString(delay)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationEditOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationEditOpenApiV2Vo.java new file mode 100644 index 0000000..ef939e4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationEditOpenApiV2Vo.java @@ -0,0 +1,157 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Event Notification List + */ +@ApiModel(description = "Event Notification List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LogNotificationEditOpenApiV2Vo { + @JsonProperty("key") + private String key; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("email") + private Boolean email; + + @JsonProperty("webhook") + private Boolean webhook; + + public LogNotificationEditOpenApiV2Vo key(String key) { + this.key = key; + return this; + } + + /** + * For the values of Log Notification Key, refer to section 5.6.1 of the Open API Access + * @return key + */ + @ApiModelProperty(required = true, value = "For the values of Log Notification Key, refer to section 5.6.1 of the Open API Access") + @NotNull + + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public LogNotificationEditOpenApiV2Vo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Log Notification Enable or Disable + * @return enable + */ + @ApiModelProperty(required = true, value = "Log Notification Enable or Disable") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public LogNotificationEditOpenApiV2Vo email(Boolean email) { + this.email = email; + return this; + } + + /** + * Log Notification Enable or Disable Email + * @return email + */ + @ApiModelProperty(required = true, value = "Log Notification Enable or Disable Email") + @NotNull + + + public Boolean getEmail() { + return email; + } + + public void setEmail(Boolean email) { + this.email = email; + } + + public LogNotificationEditOpenApiV2Vo webhook(Boolean webhook) { + this.webhook = webhook; + return this; + } + + /** + * Log Notification Category Enable or Disable Webhook (This config applies to the Omada Pro Controller only and should not bu null) + * @return webhook + */ + @ApiModelProperty(value = "Log Notification Category Enable or Disable Webhook (This config applies to the Omada Pro Controller only and should not bu null)") + + + public Boolean getWebhook() { + return webhook; + } + + public void setWebhook(Boolean webhook) { + this.webhook = webhook; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationEditOpenApiV2Vo logNotificationEditOpenApiV2Vo = (LogNotificationEditOpenApiV2Vo) o; + return Objects.equals(this.key, logNotificationEditOpenApiV2Vo.key) && + Objects.equals(this.enable, logNotificationEditOpenApiV2Vo.enable) && + Objects.equals(this.email, logNotificationEditOpenApiV2Vo.email) && + Objects.equals(this.webhook, logNotificationEditOpenApiV2Vo.webhook); + } + + @Override + public int hashCode() { + return Objects.hash(key, enable, email, webhook); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationEditOpenApiV2Vo {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationEditOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationEditOpenApiVo.java new file mode 100644 index 0000000..992b22f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationEditOpenApiVo.java @@ -0,0 +1,183 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Log Notification List + */ +@ApiModel(description = "Log Notification List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LogNotificationEditOpenApiVo { + @JsonProperty("key") + private String key; + + @JsonProperty("alert") + private Boolean alert; + + @JsonProperty("event") + private Boolean event; + + @JsonProperty("email") + private Boolean email; + + @JsonProperty("webhook") + private Boolean webhook; + + public LogNotificationEditOpenApiVo key(String key) { + this.key = key; + return this; + } + + /** + * For the values of Log Notification Key, refer to section 5.6.1 of the Open API Access + * @return key + */ + @ApiModelProperty(required = true, value = "For the values of Log Notification Key, refer to section 5.6.1 of the Open API Access") + @NotNull + + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public LogNotificationEditOpenApiVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * Log Notification Enable or Disable Alert + * @return alert + */ + @ApiModelProperty(required = true, value = "Log Notification Enable or Disable Alert") + @NotNull + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + public LogNotificationEditOpenApiVo event(Boolean event) { + this.event = event; + return this; + } + + /** + * Log Notification Enable or Disable Event + * @return event + */ + @ApiModelProperty(required = true, value = "Log Notification Enable or Disable Event") + @NotNull + + + public Boolean getEvent() { + return event; + } + + public void setEvent(Boolean event) { + this.event = event; + } + + public LogNotificationEditOpenApiVo email(Boolean email) { + this.email = email; + return this; + } + + /** + * Log Notification Enable or Disable Email + * @return email + */ + @ApiModelProperty(required = true, value = "Log Notification Enable or Disable Email") + @NotNull + + + public Boolean getEmail() { + return email; + } + + public void setEmail(Boolean email) { + this.email = email; + } + + public LogNotificationEditOpenApiVo webhook(Boolean webhook) { + this.webhook = webhook; + return this; + } + + /** + * Log Notification Category Enable or Disable Webhook (This config applies to the Omada Pro Controller only and should not bu null) + * @return webhook + */ + @ApiModelProperty(value = "Log Notification Category Enable or Disable Webhook (This config applies to the Omada Pro Controller only and should not bu null)") + + + public Boolean getWebhook() { + return webhook; + } + + public void setWebhook(Boolean webhook) { + this.webhook = webhook; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationEditOpenApiVo logNotificationEditOpenApiVo = (LogNotificationEditOpenApiVo) o; + return Objects.equals(this.key, logNotificationEditOpenApiVo.key) && + Objects.equals(this.alert, logNotificationEditOpenApiVo.alert) && + Objects.equals(this.event, logNotificationEditOpenApiVo.event) && + Objects.equals(this.email, logNotificationEditOpenApiVo.email) && + Objects.equals(this.webhook, logNotificationEditOpenApiVo.webhook); + } + + @Override + public int hashCode() { + return Objects.hash(key, alert, event, email, webhook); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationEditOpenApiVo {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append(" event: ").append(toIndentedString(event)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationOpenApiVo.java new file mode 100644 index 0000000..fde941c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationOpenApiVo.java @@ -0,0 +1,203 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Log Notification List + */ +@ApiModel(description = "Log Notification List") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LogNotificationOpenApiVo { + @JsonProperty("key") + private String key; + + @JsonProperty("shortMsg") + private String shortMsg; + + @JsonProperty("alert") + private Boolean alert; + + @JsonProperty("event") + private Boolean event; + + @JsonProperty("email") + private Boolean email; + + @JsonProperty("webhook") + private Boolean webhook; + + public LogNotificationOpenApiVo key(String key) { + this.key = key; + return this; + } + + /** + * Log Notification Key + * @return key + */ + @ApiModelProperty(value = "Log Notification Key") + + + public String getKey() { + return key; + } + + public void setKey(String key) { + this.key = key; + } + + public LogNotificationOpenApiVo shortMsg(String shortMsg) { + this.shortMsg = shortMsg; + return this; + } + + /** + * Log Notification Short Message + * @return shortMsg + */ + @ApiModelProperty(value = "Log Notification Short Message") + + + public String getShortMsg() { + return shortMsg; + } + + public void setShortMsg(String shortMsg) { + this.shortMsg = shortMsg; + } + + public LogNotificationOpenApiVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * Log Notification Enable or Disable Alert + * @return alert + */ + @ApiModelProperty(value = "Log Notification Enable or Disable Alert") + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + public LogNotificationOpenApiVo event(Boolean event) { + this.event = event; + return this; + } + + /** + * Log Notification Enable or Disable Event + * @return event + */ + @ApiModelProperty(value = "Log Notification Enable or Disable Event") + + + public Boolean getEvent() { + return event; + } + + public void setEvent(Boolean event) { + this.event = event; + } + + public LogNotificationOpenApiVo email(Boolean email) { + this.email = email; + return this; + } + + /** + * Log Notification Enable or Disable Email + * @return email + */ + @ApiModelProperty(value = "Log Notification Enable or Disable Email") + + + public Boolean getEmail() { + return email; + } + + public void setEmail(Boolean email) { + this.email = email; + } + + public LogNotificationOpenApiVo webhook(Boolean webhook) { + this.webhook = webhook; + return this; + } + + /** + * Log Notification Enable or Disable Webhook (This config applies to the Omada Pro Controller only) + * @return webhook + */ + @ApiModelProperty(value = "Log Notification Enable or Disable Webhook (This config applies to the Omada Pro Controller only)") + + + public Boolean getWebhook() { + return webhook; + } + + public void setWebhook(Boolean webhook) { + this.webhook = webhook; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationOpenApiVo logNotificationOpenApiVo = (LogNotificationOpenApiVo) o; + return Objects.equals(this.key, logNotificationOpenApiVo.key) && + Objects.equals(this.shortMsg, logNotificationOpenApiVo.shortMsg) && + Objects.equals(this.alert, logNotificationOpenApiVo.alert) && + Objects.equals(this.event, logNotificationOpenApiVo.event) && + Objects.equals(this.email, logNotificationOpenApiVo.email) && + Objects.equals(this.webhook, logNotificationOpenApiVo.webhook); + } + + @Override + public int hashCode() { + return Objects.hash(key, shortMsg, alert, event, email, webhook); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationOpenApiVo {\n"); + + sb.append(" key: ").append(toIndentedString(key)).append("\n"); + sb.append(" shortMsg: ").append(toIndentedString(shortMsg)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append(" event: ").append(toIndentedString(event)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" webhook: ").append(toIndentedString(webhook)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingEditOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingEditOpenApiV2Vo.java new file mode 100644 index 0000000..e7b38f0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingEditOpenApiV2Vo.java @@ -0,0 +1,202 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LogNotificationSettingEditOpenApiV2Vo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LogNotificationSettingEditOpenApiV2Vo { + @JsonProperty("webhookConfig") + private WebhookConfigEditOpenApiVo webhookConfig; + + @JsonProperty("alertNotifications") + @Valid + private List alertNotifications = null; + + @JsonProperty("eventNotifications") + @Valid + private List eventNotifications = null; + + @JsonProperty("alertEmailSetting") + private LogAlertEmailOpenApiVo alertEmailSetting; + + @JsonProperty("eventEmailSetting") + private LogAlertEmailOpenApiVo eventEmailSetting; + + public LogNotificationSettingEditOpenApiV2Vo webhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + return this; + } + + /** + * Get webhookConfig + * @return webhookConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public WebhookConfigEditOpenApiVo getWebhookConfig() { + return webhookConfig; + } + + public void setWebhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + } + + public LogNotificationSettingEditOpenApiV2Vo alertNotifications(List alertNotifications) { + this.alertNotifications = alertNotifications; + return this; + } + + public LogNotificationSettingEditOpenApiV2Vo addAlertNotificationsItem(LogNotificationEditOpenApiV2Vo alertNotificationsItem) { + if (this.alertNotifications == null) { + this.alertNotifications = new ArrayList<>(); + } + this.alertNotifications.add(alertNotificationsItem); + return this; + } + + /** + * Alert Notification List + * @return alertNotifications + */ + @ApiModelProperty(value = "Alert Notification List") + + @Valid + + public List getAlertNotifications() { + return alertNotifications; + } + + public void setAlertNotifications(List alertNotifications) { + this.alertNotifications = alertNotifications; + } + + public LogNotificationSettingEditOpenApiV2Vo eventNotifications(List eventNotifications) { + this.eventNotifications = eventNotifications; + return this; + } + + public LogNotificationSettingEditOpenApiV2Vo addEventNotificationsItem(LogNotificationEditOpenApiV2Vo eventNotificationsItem) { + if (this.eventNotifications == null) { + this.eventNotifications = new ArrayList<>(); + } + this.eventNotifications.add(eventNotificationsItem); + return this; + } + + /** + * Event Notification List + * @return eventNotifications + */ + @ApiModelProperty(value = "Event Notification List") + + @Valid + + public List getEventNotifications() { + return eventNotifications; + } + + public void setEventNotifications(List eventNotifications) { + this.eventNotifications = eventNotifications; + } + + public LogNotificationSettingEditOpenApiV2Vo alertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + return this; + } + + /** + * Get alertEmailSetting + * @return alertEmailSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LogAlertEmailOpenApiVo getAlertEmailSetting() { + return alertEmailSetting; + } + + public void setAlertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + } + + public LogNotificationSettingEditOpenApiV2Vo eventEmailSetting(LogAlertEmailOpenApiVo eventEmailSetting) { + this.eventEmailSetting = eventEmailSetting; + return this; + } + + /** + * Get eventEmailSetting + * @return eventEmailSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LogAlertEmailOpenApiVo getEventEmailSetting() { + return eventEmailSetting; + } + + public void setEventEmailSetting(LogAlertEmailOpenApiVo eventEmailSetting) { + this.eventEmailSetting = eventEmailSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationSettingEditOpenApiV2Vo logNotificationSettingEditOpenApiV2Vo = (LogNotificationSettingEditOpenApiV2Vo) o; + return Objects.equals(this.webhookConfig, logNotificationSettingEditOpenApiV2Vo.webhookConfig) && + Objects.equals(this.alertNotifications, logNotificationSettingEditOpenApiV2Vo.alertNotifications) && + Objects.equals(this.eventNotifications, logNotificationSettingEditOpenApiV2Vo.eventNotifications) && + Objects.equals(this.alertEmailSetting, logNotificationSettingEditOpenApiV2Vo.alertEmailSetting) && + Objects.equals(this.eventEmailSetting, logNotificationSettingEditOpenApiV2Vo.eventEmailSetting); + } + + @Override + public int hashCode() { + return Objects.hash(webhookConfig, alertNotifications, eventNotifications, alertEmailSetting, eventEmailSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationSettingEditOpenApiV2Vo {\n"); + + sb.append(" webhookConfig: ").append(toIndentedString(webhookConfig)).append("\n"); + sb.append(" alertNotifications: ").append(toIndentedString(alertNotifications)).append("\n"); + sb.append(" eventNotifications: ").append(toIndentedString(eventNotifications)).append("\n"); + sb.append(" alertEmailSetting: ").append(toIndentedString(alertEmailSetting)).append("\n"); + sb.append(" eventEmailSetting: ").append(toIndentedString(eventEmailSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingEditOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingEditOpenApiVo.java new file mode 100644 index 0000000..2050368 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingEditOpenApiVo.java @@ -0,0 +1,140 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LogNotificationSettingEditOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LogNotificationSettingEditOpenApiVo { + @JsonProperty("webhookConfig") + private WebhookConfigEditOpenApiVo webhookConfig; + + @JsonProperty("logNotifications") + @Valid + private List logNotifications = new ArrayList<>(); + + @JsonProperty("alertEmailSetting") + private LogAlertEmailOpenApiVo alertEmailSetting; + + public LogNotificationSettingEditOpenApiVo webhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + return this; + } + + /** + * Get webhookConfig + * @return webhookConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public WebhookConfigEditOpenApiVo getWebhookConfig() { + return webhookConfig; + } + + public void setWebhookConfig(WebhookConfigEditOpenApiVo webhookConfig) { + this.webhookConfig = webhookConfig; + } + + public LogNotificationSettingEditOpenApiVo logNotifications(List logNotifications) { + this.logNotifications = logNotifications; + return this; + } + + public LogNotificationSettingEditOpenApiVo addLogNotificationsItem(LogNotificationEditOpenApiVo logNotificationsItem) { + this.logNotifications.add(logNotificationsItem); + return this; + } + + /** + * Log Notification List + * @return logNotifications + */ + @ApiModelProperty(required = true, value = "Log Notification List") + @NotNull + + @Valid + + public List getLogNotifications() { + return logNotifications; + } + + public void setLogNotifications(List logNotifications) { + this.logNotifications = logNotifications; + } + + public LogNotificationSettingEditOpenApiVo alertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + return this; + } + + /** + * Get alertEmailSetting + * @return alertEmailSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LogAlertEmailOpenApiVo getAlertEmailSetting() { + return alertEmailSetting; + } + + public void setAlertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationSettingEditOpenApiVo logNotificationSettingEditOpenApiVo = (LogNotificationSettingEditOpenApiVo) o; + return Objects.equals(this.webhookConfig, logNotificationSettingEditOpenApiVo.webhookConfig) && + Objects.equals(this.logNotifications, logNotificationSettingEditOpenApiVo.logNotifications) && + Objects.equals(this.alertEmailSetting, logNotificationSettingEditOpenApiVo.alertEmailSetting); + } + + @Override + public int hashCode() { + return Objects.hash(webhookConfig, logNotifications, alertEmailSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationSettingEditOpenApiVo {\n"); + + sb.append(" webhookConfig: ").append(toIndentedString(webhookConfig)).append("\n"); + sb.append(" logNotifications: ").append(toIndentedString(logNotifications)).append("\n"); + sb.append(" alertEmailSetting: ").append(toIndentedString(alertEmailSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingOpenApiVo.java new file mode 100644 index 0000000..154e974 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/LogNotificationSettingOpenApiVo.java @@ -0,0 +1,141 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LogNotificationSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class LogNotificationSettingOpenApiVo { + @JsonProperty("webhookConfig") + private Object webhookConfig; + + @JsonProperty("logNotifications") + @Valid + private List logNotifications = null; + + @JsonProperty("alertEmailSetting") + private LogAlertEmailOpenApiVo alertEmailSetting; + + public LogNotificationSettingOpenApiVo webhookConfig(Object webhookConfig) { + this.webhookConfig = webhookConfig; + return this; + } + + /** + * Get webhookConfig + * @return webhookConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getWebhookConfig() { + return webhookConfig; + } + + public void setWebhookConfig(Object webhookConfig) { + this.webhookConfig = webhookConfig; + } + + public LogNotificationSettingOpenApiVo logNotifications(List logNotifications) { + this.logNotifications = logNotifications; + return this; + } + + public LogNotificationSettingOpenApiVo addLogNotificationsItem(LogNotificationOpenApiVo logNotificationsItem) { + if (this.logNotifications == null) { + this.logNotifications = new ArrayList<>(); + } + this.logNotifications.add(logNotificationsItem); + return this; + } + + /** + * Log Notification List + * @return logNotifications + */ + @ApiModelProperty(value = "Log Notification List") + + @Valid + + public List getLogNotifications() { + return logNotifications; + } + + public void setLogNotifications(List logNotifications) { + this.logNotifications = logNotifications; + } + + public LogNotificationSettingOpenApiVo alertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + return this; + } + + /** + * Get alertEmailSetting + * @return alertEmailSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LogAlertEmailOpenApiVo getAlertEmailSetting() { + return alertEmailSetting; + } + + public void setAlertEmailSetting(LogAlertEmailOpenApiVo alertEmailSetting) { + this.alertEmailSetting = alertEmailSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LogNotificationSettingOpenApiVo logNotificationSettingOpenApiVo = (LogNotificationSettingOpenApiVo) o; + return Objects.equals(this.webhookConfig, logNotificationSettingOpenApiVo.webhookConfig) && + Objects.equals(this.logNotifications, logNotificationSettingOpenApiVo.logNotifications) && + Objects.equals(this.alertEmailSetting, logNotificationSettingOpenApiVo.alertEmailSetting); + } + + @Override + public int hashCode() { + return Objects.hash(webhookConfig, logNotifications, alertEmailSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LogNotificationSettingOpenApiVo {\n"); + + sb.append(" webhookConfig: ").append(toIndentedString(webhookConfig)).append("\n"); + sb.append(" logNotifications: ").append(toIndentedString(logNotifications)).append("\n"); + sb.append(" alertEmailSetting: ").append(toIndentedString(alertEmailSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyDstDto.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyDstDto.java new file mode 100644 index 0000000..3c7bd2a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyDstDto.java @@ -0,0 +1,156 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Daylight Saving Time + */ +@ApiModel(description = "Daylight Saving Time") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class ModifyDstDto { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("start") + private DstTimeOpenApiDto start; + + @JsonProperty("end") + private DstTimeOpenApiDto end; + + @JsonProperty("offset") + private Long offset; + + public ModifyDstDto enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * DST config status; If false, other parameters are not required. + * @return enable + */ + @ApiModelProperty(value = "DST config status; If false, other parameters are not required.") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public ModifyDstDto start(DstTimeOpenApiDto start) { + this.start = start; + return this; + } + + /** + * Get start + * @return start + */ + @ApiModelProperty(value = "") + + @Valid + + public DstTimeOpenApiDto getStart() { + return start; + } + + public void setStart(DstTimeOpenApiDto start) { + this.start = start; + } + + public ModifyDstDto end(DstTimeOpenApiDto end) { + this.end = end; + return this; + } + + /** + * Get end + * @return end + */ + @ApiModelProperty(value = "") + + @Valid + + public DstTimeOpenApiDto getEnd() { + return end; + } + + public void setEnd(DstTimeOpenApiDto end) { + this.end = end; + } + + public ModifyDstDto offset(Long offset) { + this.offset = offset; + return this; + } + + /** + * DST offset config(Unit: ms); It should be a value as follows: [1800000, 3600000, 5400000, 7200000]. + * @return offset + */ + @ApiModelProperty(value = "DST offset config(Unit: ms); It should be a value as follows: [1800000, 3600000, 5400000, 7200000].") + + + public Long getOffset() { + return offset; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyDstDto modifyDstDto = (ModifyDstDto) o; + return Objects.equals(this.enable, modifyDstDto.enable) && + Objects.equals(this.start, modifyDstDto.start) && + Objects.equals(this.end, modifyDstDto.end) && + Objects.equals(this.offset, modifyDstDto.offset); + } + + @Override + public int hashCode() { + return Objects.hash(enable, start, end, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyDstDto {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyHistoryRetentionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyHistoryRetentionOpenApiVo.java new file mode 100644 index 0000000..c9cb4c5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyHistoryRetentionOpenApiVo.java @@ -0,0 +1,303 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ModifyHistoryRetentionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class ModifyHistoryRetentionOpenApiVo { + @JsonProperty("override") + private Boolean override; + + @JsonProperty("clientsDataEnable") + private Boolean clientsDataEnable; + + @JsonProperty("knownClient") + private Integer knownClient; + + @JsonProperty("clientHistory") + private Integer clientHistory; + + @JsonProperty("daily") + private Integer daily; + + @JsonProperty("weekly") + private Integer weekly; + + @JsonProperty("portalAuth") + private Integer portalAuth; + + @JsonProperty("log") + private Integer log; + + @JsonProperty("rogueAp") + private Integer rogueAp; + + @JsonProperty("widsData") + private Integer widsData; + + public ModifyHistoryRetentionOpenApiVo override(Boolean override) { + this.override = override; + return this; + } + + /** + * Whether the customer overrides the retention configuration of MSP. This configuration applies to the customer in MSP mode only. If true, customer retention configuration will be used (excluding daily, clientHistory, log and widsData). + * @return override + */ + @ApiModelProperty(value = "Whether the customer overrides the retention configuration of MSP. This configuration applies to the customer in MSP mode only. If true, customer retention configuration will be used (excluding daily, clientHistory, log and widsData).") + + + public Boolean getOverride() { + return override; + } + + public void setOverride(Boolean override) { + this.override = override; + } + + public ModifyHistoryRetentionOpenApiVo clientsDataEnable(Boolean clientsDataEnable) { + this.clientsDataEnable = clientsDataEnable; + return this; + } + + /** + * Whether the clients' history data is recorded. + * @return clientsDataEnable + */ + @ApiModelProperty(required = true, value = "Whether the clients' history data is recorded.") + @NotNull + + + public Boolean getClientsDataEnable() { + return clientsDataEnable; + } + + public void setClientsDataEnable(Boolean clientsDataEnable) { + this.clientsDataEnable = clientsDataEnable; + } + + public ModifyHistoryRetentionOpenApiVo knownClient(Integer knownClient) { + this.knownClient = knownClient; + return this; + } + + /** + * Retention configuration of known client Data, knownClient should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 1: 1day; 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return knownClient + */ + @ApiModelProperty(value = "Retention configuration of known client Data, knownClient should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 1: 1day; 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getKnownClient() { + return knownClient; + } + + public void setKnownClient(Integer knownClient) { + this.knownClient = knownClient; + } + + public ModifyHistoryRetentionOpenApiVo clientHistory(Integer clientHistory) { + this.clientHistory = clientHistory; + return this; + } + + /** + * Retention configuration of client History(only effective in local controller), clientHistory should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return clientHistory + */ + @ApiModelProperty(value = "Retention configuration of client History(only effective in local controller), clientHistory should be a value as follows: -1: Disabled; 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getClientHistory() { + return clientHistory; + } + + public void setClientHistory(Integer clientHistory) { + this.clientHistory = clientHistory; + } + + public ModifyHistoryRetentionOpenApiVo daily(Integer daily) { + this.daily = daily; + return this; + } + + /** + * Retention configuration of time series with daily granularity, daily should be a value as follows: 90: 90days; 180: 180days; 365: 365days(Fixed value in Cloud Based Controller as 365 days). + * @return daily + */ + @ApiModelProperty(value = "Retention configuration of time series with daily granularity, daily should be a value as follows: 90: 90days; 180: 180days; 365: 365days(Fixed value in Cloud Based Controller as 365 days).") + + + public Integer getDaily() { + return daily; + } + + public void setDaily(Integer daily) { + this.daily = daily; + } + + public ModifyHistoryRetentionOpenApiVo weekly(Integer weekly) { + this.weekly = weekly; + return this; + } + + /** + * Retention configuration of time series with weekly granularity, weekly should be a value as follows: 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return weekly + */ + @ApiModelProperty(value = "Retention configuration of time series with weekly granularity, weekly should be a value as follows: 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getWeekly() { + return weekly; + } + + public void setWeekly(Integer weekly) { + this.weekly = weekly; + } + + public ModifyHistoryRetentionOpenApiVo portalAuth(Integer portalAuth) { + this.portalAuth = portalAuth; + return this; + } + + /** + * Retention configuration of portal authentication records, portalAuth should be a value as follows: 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return portalAuth + */ + @ApiModelProperty(value = "Retention configuration of portal authentication records, portalAuth should be a value as follows: 0: All Time(Windows, Linux Only); 7: 7days; 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getPortalAuth() { + return portalAuth; + } + + public void setPortalAuth(Integer portalAuth) { + this.portalAuth = portalAuth; + } + + public ModifyHistoryRetentionOpenApiVo log(Integer log) { + this.log = log; + return this; + } + + /** + * Retention Configuration of log data(only effective in local controller), log should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return log + */ + @ApiModelProperty(value = "Retention Configuration of log data(only effective in local controller), log should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getLog() { + return log; + } + + public void setLog(Integer log) { + this.log = log; + } + + public ModifyHistoryRetentionOpenApiVo rogueAp(Integer rogueAp) { + this.rogueAp = rogueAp; + return this; + } + + /** + * Retention Configuration of rogue ap data, rogueAp should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days. + * @return rogueAp + */ + @ApiModelProperty(value = "Retention Configuration of rogue ap data, rogueAp should be a value as follows: 0: All Time(Windows, Linux Only); 31: 31days; 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getRogueAp() { + return rogueAp; + } + + public void setRogueAp(Integer rogueAp) { + this.rogueAp = rogueAp; + } + + public ModifyHistoryRetentionOpenApiVo widsData(Integer widsData) { + this.widsData = widsData; + return this; + } + + /** + * Retention Configuration of wids data(only effective in local pro controller), widsData should be a value as follows: 0: All Time(Windows, Linux Only); 90: 90days; 180: 180days; 365: 365days. + * @return widsData + */ + @ApiModelProperty(value = "Retention Configuration of wids data(only effective in local pro controller), widsData should be a value as follows: 0: All Time(Windows, Linux Only); 90: 90days; 180: 180days; 365: 365days.") + + + public Integer getWidsData() { + return widsData; + } + + public void setWidsData(Integer widsData) { + this.widsData = widsData; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyHistoryRetentionOpenApiVo modifyHistoryRetentionOpenApiVo = (ModifyHistoryRetentionOpenApiVo) o; + return Objects.equals(this.override, modifyHistoryRetentionOpenApiVo.override) && + Objects.equals(this.clientsDataEnable, modifyHistoryRetentionOpenApiVo.clientsDataEnable) && + Objects.equals(this.knownClient, modifyHistoryRetentionOpenApiVo.knownClient) && + Objects.equals(this.clientHistory, modifyHistoryRetentionOpenApiVo.clientHistory) && + Objects.equals(this.daily, modifyHistoryRetentionOpenApiVo.daily) && + Objects.equals(this.weekly, modifyHistoryRetentionOpenApiVo.weekly) && + Objects.equals(this.portalAuth, modifyHistoryRetentionOpenApiVo.portalAuth) && + Objects.equals(this.log, modifyHistoryRetentionOpenApiVo.log) && + Objects.equals(this.rogueAp, modifyHistoryRetentionOpenApiVo.rogueAp) && + Objects.equals(this.widsData, modifyHistoryRetentionOpenApiVo.widsData); + } + + @Override + public int hashCode() { + return Objects.hash(override, clientsDataEnable, knownClient, clientHistory, daily, weekly, portalAuth, log, rogueAp, widsData); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyHistoryRetentionOpenApiVo {\n"); + + sb.append(" override: ").append(toIndentedString(override)).append("\n"); + sb.append(" clientsDataEnable: ").append(toIndentedString(clientsDataEnable)).append("\n"); + sb.append(" knownClient: ").append(toIndentedString(knownClient)).append("\n"); + sb.append(" clientHistory: ").append(toIndentedString(clientHistory)).append("\n"); + sb.append(" daily: ").append(toIndentedString(daily)).append("\n"); + sb.append(" weekly: ").append(toIndentedString(weekly)).append("\n"); + sb.append(" portalAuth: ").append(toIndentedString(portalAuth)).append("\n"); + sb.append(" log: ").append(toIndentedString(log)).append("\n"); + sb.append(" rogueAp: ").append(toIndentedString(rogueAp)).append("\n"); + sb.append(" widsData: ").append(toIndentedString(widsData)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspGeneralSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspGeneralSettingOpenApiVo.java new file mode 100644 index 0000000..60c4fe9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspGeneralSettingOpenApiVo.java @@ -0,0 +1,129 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ModifyMspGeneralSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class ModifyMspGeneralSettingOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("timeZone") + private String timeZone; + + @JsonProperty("dst") + private ModifyDstDto dst; + + public ModifyMspGeneralSettingOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Parameter [name] should be within the range of 1–32 visible ASCII characters. + * @return name + */ + @ApiModelProperty(value = "Parameter [name] should be within the range of 1–32 visible ASCII characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,30}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ModifyMspGeneralSettingOpenApiVo timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * For the values of timeZone, refer to section 5.1 of the Open API Access Guide. + * @return timeZone + */ + @ApiModelProperty(value = "For the values of timeZone, refer to section 5.1 of the Open API Access Guide.") + + + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public ModifyMspGeneralSettingOpenApiVo dst(ModifyDstDto dst) { + this.dst = dst; + return this; + } + + /** + * Get dst + * @return dst + */ + @ApiModelProperty(value = "") + + @Valid + + public ModifyDstDto getDst() { + return dst; + } + + public void setDst(ModifyDstDto dst) { + this.dst = dst; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyMspGeneralSettingOpenApiVo modifyMspGeneralSettingOpenApiVo = (ModifyMspGeneralSettingOpenApiVo) o; + return Objects.equals(this.name, modifyMspGeneralSettingOpenApiVo.name) && + Objects.equals(this.timeZone, modifyMspGeneralSettingOpenApiVo.timeZone) && + Objects.equals(this.dst, modifyMspGeneralSettingOpenApiVo.dst); + } + + @Override + public int hashCode() { + return Objects.hash(name, timeZone, dst); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyMspGeneralSettingOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" dst: ").append(toIndentedString(dst)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspRoleVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspRoleVo.java new file mode 100644 index 0000000..2552384 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspRoleVo.java @@ -0,0 +1,107 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ModifyMspRoleVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class ModifyMspRoleVo { + @JsonProperty("name") + private String name; + + @JsonProperty("privilege") + private MspRoleVo privilege; + + public ModifyMspRoleVo name(String name) { + this.name = name; + return this; + } + + /** + * Role name should contain 1 to 128 ASCII characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Role name should contain 1 to 128 ASCII characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ModifyMspRoleVo privilege(MspRoleVo privilege) { + this.privilege = privilege; + return this; + } + + /** + * Get privilege + * @return privilege + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public MspRoleVo getPrivilege() { + return privilege; + } + + public void setPrivilege(MspRoleVo privilege) { + this.privilege = privilege; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyMspRoleVo modifyMspRoleVo = (ModifyMspRoleVo) o; + return Objects.equals(this.name, modifyMspRoleVo.name) && + Objects.equals(this.privilege, modifyMspRoleVo.privilege); + } + + @Override + public int hashCode() { + return Objects.hash(name, privilege); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyMspRoleVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" privilege: ").append(toIndentedString(privilege)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspUserVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspUserVo.java new file mode 100644 index 0000000..f77054b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyMspUserVo.java @@ -0,0 +1,294 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ModifyMspUserVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class ModifyMspUserVo { + @JsonProperty("name") + private String name; + + @JsonProperty("password") + private String password; + + @JsonProperty("email") + private String email; + + @JsonProperty("customerRoleId") + private String customerRoleId; + + @JsonProperty("allCustomer") + private Boolean allCustomer; + + @JsonProperty("customers") + @Valid + private List customers = null; + + @JsonProperty("alert") + private Boolean alert; + + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("forceModify") + private Boolean forceModify; + + public ModifyMspUserVo name(String name) { + this.name = name; + return this; + } + + /** + * User name. When creating cloud user, you should set TP-LINK ID. It should contain 1 to 128 ASCII characters. + * @return name + */ + @ApiModelProperty(required = true, value = "User name. When creating cloud user, you should set TP-LINK ID. It should contain 1 to 128 ASCII characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ModifyMspUserVo password(String password) { + this.password = password; + return this; + } + + /** + * Password of local user. User can only modify his child local user's password. It should contain 8 to 128 ASCII characters.And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported. + * @return password + */ + @ApiModelProperty(value = "Password of local user. User can only modify his child local user's password. It should contain 8 to 128 ASCII characters.And password must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported.") + +@Pattern(regexp="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[\\!\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\-\\./\\:\\;\\<\\=\\>\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~])(?!.*[\\00-\\040\\042\\077\\0177]).{8,128}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public ModifyMspUserVo email(String email) { + this.email = email; + return this; + } + + /** + * Email of user + * @return email + */ + @ApiModelProperty(value = "Email of user") + + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public ModifyMspUserVo customerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + return this; + } + + /** + * Customer role ID of msp user + * @return customerRoleId + */ + @ApiModelProperty(required = true, value = "Customer role ID of msp user") + @NotNull + + + public String getCustomerRoleId() { + return customerRoleId; + } + + public void setCustomerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + } + + public ModifyMspUserVo allCustomer(Boolean allCustomer) { + this.allCustomer = allCustomer; + return this; + } + + /** + * All customers including new created customer + * @return allCustomer + */ + @ApiModelProperty(required = true, value = "All customers including new created customer") + @NotNull + + + public Boolean getAllCustomer() { + return allCustomer; + } + + public void setAllCustomer(Boolean allCustomer) { + this.allCustomer = allCustomer; + } + + public ModifyMspUserVo customers(List customers) { + this.customers = customers; + return this; + } + + public ModifyMspUserVo addCustomersItem(String customersItem) { + if (this.customers == null) { + this.customers = new ArrayList<>(); + } + this.customers.add(customersItem); + return this; + } + + /** + * Customer ID list of msp user + * @return customers + */ + @ApiModelProperty(value = "Customer ID list of msp user") + + + public List getCustomers() { + return customers; + } + + public void setCustomers(List customers) { + this.customers = customers; + } + + public ModifyMspUserVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * Alert email + * @return alert + */ + @ApiModelProperty(value = "Alert email") + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + public ModifyMspUserVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * Role ID of user + * @return roleId + */ + @ApiModelProperty(required = true, value = "Role ID of user") + @NotNull + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public ModifyMspUserVo forceModify(Boolean forceModify) { + this.forceModify = forceModify; + return this; + } + + /** + * Force modify + * @return forceModify + */ + @ApiModelProperty(value = "Force modify") + + + public Boolean getForceModify() { + return forceModify; + } + + public void setForceModify(Boolean forceModify) { + this.forceModify = forceModify; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyMspUserVo modifyMspUserVo = (ModifyMspUserVo) o; + return Objects.equals(this.name, modifyMspUserVo.name) && + Objects.equals(this.password, modifyMspUserVo.password) && + Objects.equals(this.email, modifyMspUserVo.email) && + Objects.equals(this.customerRoleId, modifyMspUserVo.customerRoleId) && + Objects.equals(this.allCustomer, modifyMspUserVo.allCustomer) && + Objects.equals(this.customers, modifyMspUserVo.customers) && + Objects.equals(this.alert, modifyMspUserVo.alert) && + Objects.equals(this.roleId, modifyMspUserVo.roleId) && + Objects.equals(this.forceModify, modifyMspUserVo.forceModify); + } + + @Override + public int hashCode() { + return Objects.hash(name, password, email, customerRoleId, allCustomer, customers, alert, roleId, forceModify); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyMspUserVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" customerRoleId: ").append(toIndentedString(customerRoleId)).append("\n"); + sb.append(" allCustomer: ").append(toIndentedString(allCustomer)).append("\n"); + sb.append(" customers: ").append(toIndentedString(customers)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" forceModify: ").append(toIndentedString(forceModify)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyRoleVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyRoleVo.java new file mode 100644 index 0000000..e21835c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ModifyRoleVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ModifyRoleVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class ModifyRoleVo { + @JsonProperty("name") + private String name; + + @JsonProperty("privilege") + private RoleVo privilege; + + public ModifyRoleVo name(String name) { + this.name = name; + return this; + } + + /** + * Role name should contain 1 to 128 ASCII characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Role name should contain 1 to 128 ASCII characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ModifyRoleVo privilege(RoleVo privilege) { + this.privilege = privilege; + return this; + } + + /** + * Get privilege + * @return privilege + */ + @ApiModelProperty(value = "") + + @Valid + + public RoleVo getPrivilege() { + return privilege; + } + + public void setPrivilege(RoleVo privilege) { + this.privilege = privilege; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyRoleVo modifyRoleVo = (ModifyRoleVo) o; + return Objects.equals(this.name, modifyRoleVo.name) && + Objects.equals(this.privilege, modifyRoleVo.privilege); + } + + @Override + public int hashCode() { + return Objects.hash(name, privilege); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyRoleVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" privilege: ").append(toIndentedString(privilege)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserDetailOpenApiVo.java new file mode 100644 index 0000000..3ad7a59 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserDetailOpenApiVo.java @@ -0,0 +1,278 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * MspExternalUserDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class MspExternalUserDetailOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("idpId") + private String idpId; + + @JsonProperty("idpName") + private String idpName; + + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("roleName") + private String roleName; + + @JsonProperty("customerRoleId") + private String customerRoleId; + + @JsonProperty("customerRoleName") + private String customerRoleName; + + @JsonProperty("mspPrivilege") + private MspPrivilegeOpenApiVo mspPrivilege; + + public MspExternalUserDetailOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * External user ID. + * @return id + */ + @ApiModelProperty(value = "External user ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public MspExternalUserDetailOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * External user name. + * @return name + */ + @ApiModelProperty(value = "External user name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MspExternalUserDetailOpenApiVo idpId(String idpId) { + this.idpId = idpId; + return this; + } + + /** + * The ID of IdP which is used by this user. + * @return idpId + */ + @ApiModelProperty(value = "The ID of IdP which is used by this user.") + + + public String getIdpId() { + return idpId; + } + + public void setIdpId(String idpId) { + this.idpId = idpId; + } + + public MspExternalUserDetailOpenApiVo idpName(String idpName) { + this.idpName = idpName; + return this; + } + + /** + * The name of IdP which is used by this user. + * @return idpName + */ + @ApiModelProperty(value = "The name of IdP which is used by this user.") + + + public String getIdpName() { + return idpName; + } + + public void setIdpName(String idpName) { + this.idpName = idpName; + } + + public MspExternalUserDetailOpenApiVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * The ID of role which is used by this user. + * @return roleId + */ + @ApiModelProperty(value = "The ID of role which is used by this user.") + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public MspExternalUserDetailOpenApiVo roleName(String roleName) { + this.roleName = roleName; + return this; + } + + /** + * The name of role which is used by this user. + * @return roleName + */ + @ApiModelProperty(value = "The name of role which is used by this user.") + + + public String getRoleName() { + return roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + } + + public MspExternalUserDetailOpenApiVo customerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + return this; + } + + /** + * The ID of customer role which is used by this user. + * @return customerRoleId + */ + @ApiModelProperty(value = "The ID of customer role which is used by this user.") + + + public String getCustomerRoleId() { + return customerRoleId; + } + + public void setCustomerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + } + + public MspExternalUserDetailOpenApiVo customerRoleName(String customerRoleName) { + this.customerRoleName = customerRoleName; + return this; + } + + /** + * The name of customer role which is used by this user. + * @return customerRoleName + */ + @ApiModelProperty(value = "The name of customer role which is used by this user.") + + + public String getCustomerRoleName() { + return customerRoleName; + } + + public void setCustomerRoleName(String customerRoleName) { + this.customerRoleName = customerRoleName; + } + + public MspExternalUserDetailOpenApiVo mspPrivilege(MspPrivilegeOpenApiVo mspPrivilege) { + this.mspPrivilege = mspPrivilege; + return this; + } + + /** + * Get mspPrivilege + * @return mspPrivilege + */ + @ApiModelProperty(value = "") + + @Valid + + public MspPrivilegeOpenApiVo getMspPrivilege() { + return mspPrivilege; + } + + public void setMspPrivilege(MspPrivilegeOpenApiVo mspPrivilege) { + this.mspPrivilege = mspPrivilege; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MspExternalUserDetailOpenApiVo mspExternalUserDetailOpenApiVo = (MspExternalUserDetailOpenApiVo) o; + return Objects.equals(this.id, mspExternalUserDetailOpenApiVo.id) && + Objects.equals(this.name, mspExternalUserDetailOpenApiVo.name) && + Objects.equals(this.idpId, mspExternalUserDetailOpenApiVo.idpId) && + Objects.equals(this.idpName, mspExternalUserDetailOpenApiVo.idpName) && + Objects.equals(this.roleId, mspExternalUserDetailOpenApiVo.roleId) && + Objects.equals(this.roleName, mspExternalUserDetailOpenApiVo.roleName) && + Objects.equals(this.customerRoleId, mspExternalUserDetailOpenApiVo.customerRoleId) && + Objects.equals(this.customerRoleName, mspExternalUserDetailOpenApiVo.customerRoleName) && + Objects.equals(this.mspPrivilege, mspExternalUserDetailOpenApiVo.mspPrivilege); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, idpId, idpName, roleId, roleName, customerRoleId, customerRoleName, mspPrivilege); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MspExternalUserDetailOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" idpId: ").append(toIndentedString(idpId)).append("\n"); + sb.append(" idpName: ").append(toIndentedString(idpName)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n"); + sb.append(" customerRoleId: ").append(toIndentedString(customerRoleId)).append("\n"); + sb.append(" customerRoleName: ").append(toIndentedString(customerRoleName)).append("\n"); + sb.append(" mspPrivilege: ").append(toIndentedString(mspPrivilege)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserGroupDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserGroupDetailOpenApiVo.java new file mode 100644 index 0000000..5503c4a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserGroupDetailOpenApiVo.java @@ -0,0 +1,314 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * MspExternalUserGroupDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class MspExternalUserGroupDetailOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("roleName") + private String roleName; + + @JsonProperty("roleType") + private Integer roleType; + + @JsonProperty("customerRoleId") + private String customerRoleId; + + @JsonProperty("customerRoleName") + private String customerRoleName; + + @JsonProperty("customerRoleType") + private Integer customerRoleType; + + @JsonProperty("allCustomer") + private Boolean allCustomer; + + @JsonProperty("customers") + @Valid + private List customers = null; + + public MspExternalUserGroupDetailOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Msp external user group ID. + * @return id + */ + @ApiModelProperty(value = "Msp external user group ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public MspExternalUserGroupDetailOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Msp external user group name. + * @return name + */ + @ApiModelProperty(value = "Msp external user group name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MspExternalUserGroupDetailOpenApiVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * Msp role ID. + * @return roleId + */ + @ApiModelProperty(value = "Msp role ID.") + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public MspExternalUserGroupDetailOpenApiVo roleName(String roleName) { + this.roleName = roleName; + return this; + } + + /** + * Msp role name. + * @return roleName + */ + @ApiModelProperty(value = "Msp role name.") + + + public String getRoleName() { + return roleName; + } + + public void setRoleName(String roleName) { + this.roleName = roleName; + } + + public MspExternalUserGroupDetailOpenApiVo roleType(Integer roleType) { + this.roleType = roleType; + return this; + } + + /** + * Msp role type. + * @return roleType + */ + @ApiModelProperty(value = "Msp role type.") + + + public Integer getRoleType() { + return roleType; + } + + public void setRoleType(Integer roleType) { + this.roleType = roleType; + } + + public MspExternalUserGroupDetailOpenApiVo customerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + return this; + } + + /** + * Customer role ID. + * @return customerRoleId + */ + @ApiModelProperty(value = "Customer role ID.") + + + public String getCustomerRoleId() { + return customerRoleId; + } + + public void setCustomerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + } + + public MspExternalUserGroupDetailOpenApiVo customerRoleName(String customerRoleName) { + this.customerRoleName = customerRoleName; + return this; + } + + /** + * Customer role name. + * @return customerRoleName + */ + @ApiModelProperty(value = "Customer role name.") + + + public String getCustomerRoleName() { + return customerRoleName; + } + + public void setCustomerRoleName(String customerRoleName) { + this.customerRoleName = customerRoleName; + } + + public MspExternalUserGroupDetailOpenApiVo customerRoleType(Integer customerRoleType) { + this.customerRoleType = customerRoleType; + return this; + } + + /** + * Customer role type. + * @return customerRoleType + */ + @ApiModelProperty(value = "Customer role type.") + + + public Integer getCustomerRoleType() { + return customerRoleType; + } + + public void setCustomerRoleType(Integer customerRoleType) { + this.customerRoleType = customerRoleType; + } + + public MspExternalUserGroupDetailOpenApiVo allCustomer(Boolean allCustomer) { + this.allCustomer = allCustomer; + return this; + } + + /** + * Whether having all customer permissions. + * @return allCustomer + */ + @ApiModelProperty(value = "Whether having all customer permissions.") + + + public Boolean getAllCustomer() { + return allCustomer; + } + + public void setAllCustomer(Boolean allCustomer) { + this.allCustomer = allCustomer; + } + + public MspExternalUserGroupDetailOpenApiVo customers(List customers) { + this.customers = customers; + return this; + } + + public MspExternalUserGroupDetailOpenApiVo addCustomersItem(OmadacInfoOpenApiVo customersItem) { + if (this.customers == null) { + this.customers = new ArrayList<>(); + } + this.customers.add(customersItem); + return this; + } + + /** + * The customers which can be accessed. Required when allCustomer is false. + * @return customers + */ + @ApiModelProperty(value = "The customers which can be accessed. Required when allCustomer is false.") + + @Valid + + public List getCustomers() { + return customers; + } + + public void setCustomers(List customers) { + this.customers = customers; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MspExternalUserGroupDetailOpenApiVo mspExternalUserGroupDetailOpenApiVo = (MspExternalUserGroupDetailOpenApiVo) o; + return Objects.equals(this.id, mspExternalUserGroupDetailOpenApiVo.id) && + Objects.equals(this.name, mspExternalUserGroupDetailOpenApiVo.name) && + Objects.equals(this.roleId, mspExternalUserGroupDetailOpenApiVo.roleId) && + Objects.equals(this.roleName, mspExternalUserGroupDetailOpenApiVo.roleName) && + Objects.equals(this.roleType, mspExternalUserGroupDetailOpenApiVo.roleType) && + Objects.equals(this.customerRoleId, mspExternalUserGroupDetailOpenApiVo.customerRoleId) && + Objects.equals(this.customerRoleName, mspExternalUserGroupDetailOpenApiVo.customerRoleName) && + Objects.equals(this.customerRoleType, mspExternalUserGroupDetailOpenApiVo.customerRoleType) && + Objects.equals(this.allCustomer, mspExternalUserGroupDetailOpenApiVo.allCustomer) && + Objects.equals(this.customers, mspExternalUserGroupDetailOpenApiVo.customers); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, roleId, roleName, roleType, customerRoleId, customerRoleName, customerRoleType, allCustomer, customers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MspExternalUserGroupDetailOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" roleName: ").append(toIndentedString(roleName)).append("\n"); + sb.append(" roleType: ").append(toIndentedString(roleType)).append("\n"); + sb.append(" customerRoleId: ").append(toIndentedString(customerRoleId)).append("\n"); + sb.append(" customerRoleName: ").append(toIndentedString(customerRoleName)).append("\n"); + sb.append(" customerRoleType: ").append(toIndentedString(customerRoleType)).append("\n"); + sb.append(" allCustomer: ").append(toIndentedString(allCustomer)).append("\n"); + sb.append(" customers: ").append(toIndentedString(customers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserGroupOpenApiVo.java new file mode 100644 index 0000000..07b7c1f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspExternalUserGroupOpenApiVo.java @@ -0,0 +1,194 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * MspExternalUserGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class MspExternalUserGroupOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("customerRoleId") + private String customerRoleId; + + @JsonProperty("allCustomer") + private Boolean allCustomer; + + @JsonProperty("customers") + @Valid + private List customers = null; + + public MspExternalUserGroupOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Msp external user group name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Msp external user group name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MspExternalUserGroupOpenApiVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * Msp role ID which can be obtained from 'Get msp role list' interface. + * @return roleId + */ + @ApiModelProperty(required = true, value = "Msp role ID which can be obtained from 'Get msp role list' interface.") + @NotNull + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public MspExternalUserGroupOpenApiVo customerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + return this; + } + + /** + * Customer role ID which can be obtained from 'Get customer list' interface. + * @return customerRoleId + */ + @ApiModelProperty(required = true, value = "Customer role ID which can be obtained from 'Get customer list' interface.") + @NotNull + + + public String getCustomerRoleId() { + return customerRoleId; + } + + public void setCustomerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + } + + public MspExternalUserGroupOpenApiVo allCustomer(Boolean allCustomer) { + this.allCustomer = allCustomer; + return this; + } + + /** + * Whether having all customer permissions. + * @return allCustomer + */ + @ApiModelProperty(required = true, value = "Whether having all customer permissions.") + @NotNull + + + public Boolean getAllCustomer() { + return allCustomer; + } + + public void setAllCustomer(Boolean allCustomer) { + this.allCustomer = allCustomer; + } + + public MspExternalUserGroupOpenApiVo customers(List customers) { + this.customers = customers; + return this; + } + + public MspExternalUserGroupOpenApiVo addCustomersItem(String customersItem) { + if (this.customers == null) { + this.customers = new ArrayList<>(); + } + this.customers.add(customersItem); + return this; + } + + /** + * The customer IDs that can be accessed. Effective when allCustomer is false. + * @return customers + */ + @ApiModelProperty(value = "The customer IDs that can be accessed. Effective when allCustomer is false.") + + + public List getCustomers() { + return customers; + } + + public void setCustomers(List customers) { + this.customers = customers; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MspExternalUserGroupOpenApiVo mspExternalUserGroupOpenApiVo = (MspExternalUserGroupOpenApiVo) o; + return Objects.equals(this.name, mspExternalUserGroupOpenApiVo.name) && + Objects.equals(this.roleId, mspExternalUserGroupOpenApiVo.roleId) && + Objects.equals(this.customerRoleId, mspExternalUserGroupOpenApiVo.customerRoleId) && + Objects.equals(this.allCustomer, mspExternalUserGroupOpenApiVo.allCustomer) && + Objects.equals(this.customers, mspExternalUserGroupOpenApiVo.customers); + } + + @Override + public int hashCode() { + return Objects.hash(name, roleId, customerRoleId, allCustomer, customers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MspExternalUserGroupOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" customerRoleId: ").append(toIndentedString(customerRoleId)).append("\n"); + sb.append(" allCustomer: ").append(toIndentedString(allCustomer)).append("\n"); + sb.append(" customers: ").append(toIndentedString(customers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspGeneralSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspGeneralSettingOpenApiVo.java new file mode 100644 index 0000000..40c27ee --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspGeneralSettingOpenApiVo.java @@ -0,0 +1,129 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * MspGeneralSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class MspGeneralSettingOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("timeZone") + private String timeZone; + + @JsonProperty("dst") + private DstDto dst; + + public MspGeneralSettingOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Parameter [name] should be within the range of 1–32 visible ASCII characters. + * @return name + */ + @ApiModelProperty(value = "Parameter [name] should be within the range of 1–32 visible ASCII characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,30}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MspGeneralSettingOpenApiVo timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * For the values of timeZone, refer to section 5.1 of the Open API Access Guide. + * @return timeZone + */ + @ApiModelProperty(value = "For the values of timeZone, refer to section 5.1 of the Open API Access Guide.") + + + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public MspGeneralSettingOpenApiVo dst(DstDto dst) { + this.dst = dst; + return this; + } + + /** + * Get dst + * @return dst + */ + @ApiModelProperty(value = "") + + @Valid + + public DstDto getDst() { + return dst; + } + + public void setDst(DstDto dst) { + this.dst = dst; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MspGeneralSettingOpenApiVo mspGeneralSettingOpenApiVo = (MspGeneralSettingOpenApiVo) o; + return Objects.equals(this.name, mspGeneralSettingOpenApiVo.name) && + Objects.equals(this.timeZone, mspGeneralSettingOpenApiVo.timeZone) && + Objects.equals(this.dst, mspGeneralSettingOpenApiVo.dst); + } + + @Override + public int hashCode() { + return Objects.hash(name, timeZone, dst); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MspGeneralSettingOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" dst: ").append(toIndentedString(dst)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspKnownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspKnownDeviceOpenApiVo.java new file mode 100644 index 0000000..d777431 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspKnownDeviceOpenApiVo.java @@ -0,0 +1,538 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * MspKnownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class MspKnownDeviceOpenApiVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private String type; + + @JsonProperty("subtype") + private String subtype; + + @JsonProperty("deviceSeriesType") + private Integer deviceSeriesType; + + @JsonProperty("model") + private String model; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("ipv6") + @Valid + private List ipv6 = null; + + @JsonProperty("uptime") + private String uptime; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("lastSeen") + private Long lastSeen; + + @JsonProperty("cpuUtil") + private Integer cpuUtil; + + @JsonProperty("memUtil") + private Integer memUtil; + + @JsonProperty("sn") + private String sn; + + @JsonProperty("licenseStatus") + private Integer licenseStatus; + + @JsonProperty("needActive") + private Boolean needActive; + + @JsonProperty("customerName") + private String customerName; + + @JsonProperty("siteName") + private String siteName; + + @JsonProperty("tagName") + private String tagName; + + public MspKnownDeviceOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC + * @return mac + */ + @ApiModelProperty(value = "Device MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public MspKnownDeviceOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Device name + * @return name + */ + @ApiModelProperty(value = "Device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MspKnownDeviceOpenApiVo type(String type) { + this.type = type; + return this; + } + + /** + * Device type + * @return type + */ + @ApiModelProperty(value = "Device type") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public MspKnownDeviceOpenApiVo subtype(String subtype) { + this.subtype = subtype; + return this; + } + + /** + * Switch subtype should be a value as follows: smart: Smart Switch; es: Easy Managed Switch. + * @return subtype + */ + @ApiModelProperty(value = "Switch subtype should be a value as follows: smart: Smart Switch; es: Easy Managed Switch.") + + + public String getSubtype() { + return subtype; + } + + public void setSubtype(String subtype) { + this.subtype = subtype; + } + + public MspKnownDeviceOpenApiVo deviceSeriesType(Integer deviceSeriesType) { + this.deviceSeriesType = deviceSeriesType; + return this; + } + + /** + * Device series type. 0 means basic, 1 means pro. + * @return deviceSeriesType + */ + @ApiModelProperty(value = "Device series type. 0 means basic, 1 means pro.") + + + public Integer getDeviceSeriesType() { + return deviceSeriesType; + } + + public void setDeviceSeriesType(Integer deviceSeriesType) { + this.deviceSeriesType = deviceSeriesType; + } + + public MspKnownDeviceOpenApiVo model(String model) { + this.model = model; + return this; + } + + /** + * Device model name + * @return model + */ + @ApiModelProperty(value = "Device model name") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public MspKnownDeviceOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Device IP + * @return ip + */ + @ApiModelProperty(value = "Device IP") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public MspKnownDeviceOpenApiVo ipv6(List ipv6) { + this.ipv6 = ipv6; + return this; + } + + public MspKnownDeviceOpenApiVo addIpv6Item(String ipv6Item) { + if (this.ipv6 == null) { + this.ipv6 = new ArrayList<>(); + } + this.ipv6.add(ipv6Item); + return this; + } + + /** + * Device IPv6 list + * @return ipv6 + */ + @ApiModelProperty(value = "Device IPv6 list") + + + public List getIpv6() { + return ipv6; + } + + public void setIpv6(List ipv6) { + this.ipv6 = ipv6; + } + + public MspKnownDeviceOpenApiVo uptime(String uptime) { + this.uptime = uptime; + return this; + } + + /** + * Device uptime + * @return uptime + */ + @ApiModelProperty(value = "Device uptime") + + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public MspKnownDeviceOpenApiVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Device status should be a value as follows: 0: Disconnected; 1: Connected; 2: Pending; 3: Heartbeat Missed; 4: Isolated + * @return status + */ + @ApiModelProperty(value = "Device status should be a value as follows: 0: Disconnected; 1: Connected; 2: Pending; 3: Heartbeat Missed; 4: Isolated") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public MspKnownDeviceOpenApiVo lastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + return this; + } + + /** + * Device lastSeen, unit: ms + * @return lastSeen + */ + @ApiModelProperty(value = "Device lastSeen, unit: ms") + + + public Long getLastSeen() { + return lastSeen; + } + + public void setLastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + } + + public MspKnownDeviceOpenApiVo cpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + return this; + } + + /** + * Device cpuUtil + * @return cpuUtil + */ + @ApiModelProperty(value = "Device cpuUtil") + + + public Integer getCpuUtil() { + return cpuUtil; + } + + public void setCpuUtil(Integer cpuUtil) { + this.cpuUtil = cpuUtil; + } + + public MspKnownDeviceOpenApiVo memUtil(Integer memUtil) { + this.memUtil = memUtil; + return this; + } + + /** + * Device memUtil + * @return memUtil + */ + @ApiModelProperty(value = "Device memUtil") + + + public Integer getMemUtil() { + return memUtil; + } + + public void setMemUtil(Integer memUtil) { + this.memUtil = memUtil; + } + + public MspKnownDeviceOpenApiVo sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Device serial number + * @return sn + */ + @ApiModelProperty(value = "Device serial number") + + + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public MspKnownDeviceOpenApiVo licenseStatus(Integer licenseStatus) { + this.licenseStatus = licenseStatus; + return this; + } + + /** + * Device license status(Only for pro site) should be a value as follows: 0:unActive; 1:Unbind; 2:Expired; 3:active + * @return licenseStatus + */ + @ApiModelProperty(value = "Device license status(Only for pro site) should be a value as follows: 0:unActive; 1:Unbind; 2:Expired; 3:active") + + + public Integer getLicenseStatus() { + return licenseStatus; + } + + public void setLicenseStatus(Integer licenseStatus) { + this.licenseStatus = licenseStatus; + } + + public MspKnownDeviceOpenApiVo needActive(Boolean needActive) { + this.needActive = needActive; + return this; + } + + /** + * Device license status(Only for pro site).If the value is true, the device is ready to be activated;If the value is false, the device cannot be activated or has already been activated. + * @return needActive + */ + @ApiModelProperty(value = "Device license status(Only for pro site).If the value is true, the device is ready to be activated;If the value is false, the device cannot be activated or has already been activated.") + + + public Boolean getNeedActive() { + return needActive; + } + + public void setNeedActive(Boolean needActive) { + this.needActive = needActive; + } + + public MspKnownDeviceOpenApiVo customerName(String customerName) { + this.customerName = customerName; + return this; + } + + /** + * The name of the customer where the device is located + * @return customerName + */ + @ApiModelProperty(value = "The name of the customer where the device is located") + + + public String getCustomerName() { + return customerName; + } + + public void setCustomerName(String customerName) { + this.customerName = customerName; + } + + public MspKnownDeviceOpenApiVo siteName(String siteName) { + this.siteName = siteName; + return this; + } + + /** + * The name of the site where the device is located + * @return siteName + */ + @ApiModelProperty(value = "The name of the site where the device is located") + + + public String getSiteName() { + return siteName; + } + + public void setSiteName(String siteName) { + this.siteName = siteName; + } + + public MspKnownDeviceOpenApiVo tagName(String tagName) { + this.tagName = tagName; + return this; + } + + /** + * Device tag name + * @return tagName + */ + @ApiModelProperty(value = "Device tag name") + + + public String getTagName() { + return tagName; + } + + public void setTagName(String tagName) { + this.tagName = tagName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MspKnownDeviceOpenApiVo mspKnownDeviceOpenApiVo = (MspKnownDeviceOpenApiVo) o; + return Objects.equals(this.mac, mspKnownDeviceOpenApiVo.mac) && + Objects.equals(this.name, mspKnownDeviceOpenApiVo.name) && + Objects.equals(this.type, mspKnownDeviceOpenApiVo.type) && + Objects.equals(this.subtype, mspKnownDeviceOpenApiVo.subtype) && + Objects.equals(this.deviceSeriesType, mspKnownDeviceOpenApiVo.deviceSeriesType) && + Objects.equals(this.model, mspKnownDeviceOpenApiVo.model) && + Objects.equals(this.ip, mspKnownDeviceOpenApiVo.ip) && + Objects.equals(this.ipv6, mspKnownDeviceOpenApiVo.ipv6) && + Objects.equals(this.uptime, mspKnownDeviceOpenApiVo.uptime) && + Objects.equals(this.status, mspKnownDeviceOpenApiVo.status) && + Objects.equals(this.lastSeen, mspKnownDeviceOpenApiVo.lastSeen) && + Objects.equals(this.cpuUtil, mspKnownDeviceOpenApiVo.cpuUtil) && + Objects.equals(this.memUtil, mspKnownDeviceOpenApiVo.memUtil) && + Objects.equals(this.sn, mspKnownDeviceOpenApiVo.sn) && + Objects.equals(this.licenseStatus, mspKnownDeviceOpenApiVo.licenseStatus) && + Objects.equals(this.needActive, mspKnownDeviceOpenApiVo.needActive) && + Objects.equals(this.customerName, mspKnownDeviceOpenApiVo.customerName) && + Objects.equals(this.siteName, mspKnownDeviceOpenApiVo.siteName) && + Objects.equals(this.tagName, mspKnownDeviceOpenApiVo.tagName); + } + + @Override + public int hashCode() { + return Objects.hash(mac, name, type, subtype, deviceSeriesType, model, ip, ipv6, uptime, status, lastSeen, cpuUtil, memUtil, sn, licenseStatus, needActive, customerName, siteName, tagName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MspKnownDeviceOpenApiVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" deviceSeriesType: ").append(toIndentedString(deviceSeriesType)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" ipv6: ").append(toIndentedString(ipv6)).append("\n"); + sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append(" cpuUtil: ").append(toIndentedString(cpuUtil)).append("\n"); + sb.append(" memUtil: ").append(toIndentedString(memUtil)).append("\n"); + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" licenseStatus: ").append(toIndentedString(licenseStatus)).append("\n"); + sb.append(" needActive: ").append(toIndentedString(needActive)).append("\n"); + sb.append(" customerName: ").append(toIndentedString(customerName)).append("\n"); + sb.append(" siteName: ").append(toIndentedString(siteName)).append("\n"); + sb.append(" tagName: ").append(toIndentedString(tagName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspPrivilegeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspPrivilegeOpenApiVo.java new file mode 100644 index 0000000..8761591 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspPrivilegeOpenApiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * The customer's privilege of this user. + */ +@ApiModel(description = "The customer's privilege of this user.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class MspPrivilegeOpenApiVo { + @JsonProperty("all") + private Boolean all; + + @JsonProperty("customers") + @Valid + private List customers = null; + + public MspPrivilegeOpenApiVo all(Boolean all) { + this.all = all; + return this; + } + + /** + * Whether having all customer privilege. + * @return all + */ + @ApiModelProperty(value = "Whether having all customer privilege.") + + + public Boolean getAll() { + return all; + } + + public void setAll(Boolean all) { + this.all = all; + } + + public MspPrivilegeOpenApiVo customers(List customers) { + this.customers = customers; + return this; + } + + public MspPrivilegeOpenApiVo addCustomersItem(String customersItem) { + if (this.customers == null) { + this.customers = new ArrayList<>(); + } + this.customers.add(customersItem); + return this; + } + + /** + * The IDs of customer that can be accessed by this user. + * @return customers + */ + @ApiModelProperty(value = "The IDs of customer that can be accessed by this user.") + + + public List getCustomers() { + return customers; + } + + public void setCustomers(List customers) { + this.customers = customers; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MspPrivilegeOpenApiVo mspPrivilegeOpenApiVo = (MspPrivilegeOpenApiVo) o; + return Objects.equals(this.all, mspPrivilegeOpenApiVo.all) && + Objects.equals(this.customers, mspPrivilegeOpenApiVo.customers); + } + + @Override + public int hashCode() { + return Objects.hash(all, customers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MspPrivilegeOpenApiVo {\n"); + + sb.append(" all: ").append(toIndentedString(all)).append("\n"); + sb.append(" customers: ").append(toIndentedString(customers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspRoleDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspRoleDetailVo.java new file mode 100644 index 0000000..3c50642 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspRoleDetailVo.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * MspRoleDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class MspRoleDetailVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private Integer name; + + @JsonProperty("defaultRole") + private Boolean defaultRole; + + @JsonProperty("privilege") + private MspRoleVo privilege; + + public MspRoleDetailVo id(String id) { + this.id = id; + return this; + } + + /** + * Role ID + * @return id + */ + @ApiModelProperty(value = "Role ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public MspRoleDetailVo name(Integer name) { + this.name = name; + return this; + } + + /** + * Role type + * @return name + */ + @ApiModelProperty(value = "Role type") + + + public Integer getName() { + return name; + } + + public void setName(Integer name) { + this.name = name; + } + + public MspRoleDetailVo defaultRole(Boolean defaultRole) { + this.defaultRole = defaultRole; + return this; + } + + /** + * Whether role is default role + * @return defaultRole + */ + @ApiModelProperty(value = "Whether role is default role") + + + public Boolean getDefaultRole() { + return defaultRole; + } + + public void setDefaultRole(Boolean defaultRole) { + this.defaultRole = defaultRole; + } + + public MspRoleDetailVo privilege(MspRoleVo privilege) { + this.privilege = privilege; + return this; + } + + /** + * Get privilege + * @return privilege + */ + @ApiModelProperty(value = "") + + @Valid + + public MspRoleVo getPrivilege() { + return privilege; + } + + public void setPrivilege(MspRoleVo privilege) { + this.privilege = privilege; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MspRoleDetailVo mspRoleDetailVo = (MspRoleDetailVo) o; + return Objects.equals(this.id, mspRoleDetailVo.id) && + Objects.equals(this.name, mspRoleDetailVo.name) && + Objects.equals(this.defaultRole, mspRoleDetailVo.defaultRole) && + Objects.equals(this.privilege, mspRoleDetailVo.privilege); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, defaultRole, privilege); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MspRoleDetailVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" defaultRole: ").append(toIndentedString(defaultRole)).append("\n"); + sb.append(" privilege: ").append(toIndentedString(privilege)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspRoleVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspRoleVo.java new file mode 100644 index 0000000..e7db4be --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspRoleVo.java @@ -0,0 +1,478 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Role privilege. + */ +@ApiModel(description = "Role privilege.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class MspRoleVo { + @JsonProperty("mspDashboard") + private Integer mspDashboard; + + @JsonProperty("mspDevice") + private Integer mspDevice; + + @JsonProperty("mspLog") + private Integer mspLog; + + @JsonProperty("mspLicense") + private Integer mspLicense; + + @JsonProperty("mspLicenseBind") + private Integer mspLicenseBind; + + @JsonProperty("mspAdopt") + private Integer mspAdopt; + + @JsonProperty("mspAddDevices") + private Integer mspAddDevices; + + @JsonProperty("mspAddAdoptDevice") + private Integer mspAddAdoptDevice; + + @JsonProperty("mspUsers") + private Integer mspUsers; + + @JsonProperty("mspRoles") + private Integer mspRoles; + + @JsonProperty("mspSamlUsers") + private Integer mspSamlUsers; + + @JsonProperty("mspSamlRoles") + private Integer mspSamlRoles; + + @JsonProperty("mspSamlSsos") + private Integer mspSamlSsos; + + @JsonProperty("mspSetting") + private Integer mspSetting; + + @JsonProperty("mspExportData") + private Integer mspExportData; + + @JsonProperty("mspWebhook") + private Integer mspWebhook; + + @JsonProperty("mspSites") + private Integer mspSites; + + public MspRoleVo mspDashboard(Integer mspDashboard) { + this.mspDashboard = mspDashboard; + return this; + } + + /** + * Msp dashboard permission. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return mspDashboard + */ + @ApiModelProperty(value = "Msp dashboard permission. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMspDashboard() { + return mspDashboard; + } + + public void setMspDashboard(Integer mspDashboard) { + this.mspDashboard = mspDashboard; + } + + public MspRoleVo mspDevice(Integer mspDevice) { + this.mspDevice = mspDevice; + return this; + } + + /** + * Msp device. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return mspDevice + */ + @ApiModelProperty(value = "Msp device. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMspDevice() { + return mspDevice; + } + + public void setMspDevice(Integer mspDevice) { + this.mspDevice = mspDevice; + } + + public MspRoleVo mspLog(Integer mspLog) { + this.mspLog = mspLog; + return this; + } + + /** + * Msp log. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return mspLog + */ + @ApiModelProperty(value = "Msp log. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMspLog() { + return mspLog; + } + + public void setMspLog(Integer mspLog) { + this.mspLog = mspLog; + } + + public MspRoleVo mspLicense(Integer mspLicense) { + this.mspLicense = mspLicense; + return this; + } + + /** + * Msp license. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return mspLicense + */ + @ApiModelProperty(value = "Msp license. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMspLicense() { + return mspLicense; + } + + public void setMspLicense(Integer mspLicense) { + this.mspLicense = mspLicense; + } + + public MspRoleVo mspLicenseBind(Integer mspLicenseBind) { + this.mspLicenseBind = mspLicenseBind; + return this; + } + + /** + * msp license bind + * @return mspLicenseBind + */ + @ApiModelProperty(value = "msp license bind") + + + public Integer getMspLicenseBind() { + return mspLicenseBind; + } + + public void setMspLicenseBind(Integer mspLicenseBind) { + this.mspLicenseBind = mspLicenseBind; + } + + public MspRoleVo mspAdopt(Integer mspAdopt) { + this.mspAdopt = mspAdopt; + return this; + } + + /** + * Msp adopt. It should be a value as follows: 0:block; 2:access + * @return mspAdopt + */ + @ApiModelProperty(value = "Msp adopt. It should be a value as follows: 0:block; 2:access") + + + public Integer getMspAdopt() { + return mspAdopt; + } + + public void setMspAdopt(Integer mspAdopt) { + this.mspAdopt = mspAdopt; + } + + public MspRoleVo mspAddDevices(Integer mspAddDevices) { + this.mspAddDevices = mspAddDevices; + return this; + } + + /** + * Msp add devices. It should be a value as follows: 0:block; 2:access + * @return mspAddDevices + */ + @ApiModelProperty(value = "Msp add devices. It should be a value as follows: 0:block; 2:access") + + + public Integer getMspAddDevices() { + return mspAddDevices; + } + + public void setMspAddDevices(Integer mspAddDevices) { + this.mspAddDevices = mspAddDevices; + } + + public MspRoleVo mspAddAdoptDevice(Integer mspAddAdoptDevice) { + this.mspAddAdoptDevice = mspAddAdoptDevice; + return this; + } + + /** + * Msp add and adopt devices. It should be a value as follows: 0:block; 2:access + * @return mspAddAdoptDevice + */ + @ApiModelProperty(value = "Msp add and adopt devices. It should be a value as follows: 0:block; 2:access") + + + public Integer getMspAddAdoptDevice() { + return mspAddAdoptDevice; + } + + public void setMspAddAdoptDevice(Integer mspAddAdoptDevice) { + this.mspAddAdoptDevice = mspAddAdoptDevice; + } + + public MspRoleVo mspUsers(Integer mspUsers) { + this.mspUsers = mspUsers; + return this; + } + + /** + * Msp users. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return mspUsers + */ + @ApiModelProperty(value = "Msp users. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMspUsers() { + return mspUsers; + } + + public void setMspUsers(Integer mspUsers) { + this.mspUsers = mspUsers; + } + + public MspRoleVo mspRoles(Integer mspRoles) { + this.mspRoles = mspRoles; + return this; + } + + /** + * Msp roles. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return mspRoles + */ + @ApiModelProperty(value = "Msp roles. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMspRoles() { + return mspRoles; + } + + public void setMspRoles(Integer mspRoles) { + this.mspRoles = mspRoles; + } + + public MspRoleVo mspSamlUsers(Integer mspSamlUsers) { + this.mspSamlUsers = mspSamlUsers; + return this; + } + + /** + * Saml users in msp view. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return mspSamlUsers + */ + @ApiModelProperty(value = "Saml users in msp view. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMspSamlUsers() { + return mspSamlUsers; + } + + public void setMspSamlUsers(Integer mspSamlUsers) { + this.mspSamlUsers = mspSamlUsers; + } + + public MspRoleVo mspSamlRoles(Integer mspSamlRoles) { + this.mspSamlRoles = mspSamlRoles; + return this; + } + + /** + * Saml roles in msp view. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return mspSamlRoles + */ + @ApiModelProperty(value = "Saml roles in msp view. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMspSamlRoles() { + return mspSamlRoles; + } + + public void setMspSamlRoles(Integer mspSamlRoles) { + this.mspSamlRoles = mspSamlRoles; + } + + public MspRoleVo mspSamlSsos(Integer mspSamlSsos) { + this.mspSamlSsos = mspSamlSsos; + return this; + } + + /** + * Saml ssos in msp view. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return mspSamlSsos + */ + @ApiModelProperty(value = "Saml ssos in msp view. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMspSamlSsos() { + return mspSamlSsos; + } + + public void setMspSamlSsos(Integer mspSamlSsos) { + this.mspSamlSsos = mspSamlSsos; + } + + public MspRoleVo mspSetting(Integer mspSetting) { + this.mspSetting = mspSetting; + return this; + } + + /** + * Msp setting. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return mspSetting + */ + @ApiModelProperty(value = "Msp setting. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMspSetting() { + return mspSetting; + } + + public void setMspSetting(Integer mspSetting) { + this.mspSetting = mspSetting; + } + + public MspRoleVo mspExportData(Integer mspExportData) { + this.mspExportData = mspExportData; + return this; + } + + /** + * Export data in msp view. It should be a value as follows: 0:block; 2:access + * @return mspExportData + */ + @ApiModelProperty(value = "Export data in msp view. It should be a value as follows: 0:block; 2:access") + + + public Integer getMspExportData() { + return mspExportData; + } + + public void setMspExportData(Integer mspExportData) { + this.mspExportData = mspExportData; + } + + public MspRoleVo mspWebhook(Integer mspWebhook) { + this.mspWebhook = mspWebhook; + return this; + } + + /** + * Msp webhook. It should be a value as follows: 0:block; 1:view only; 2:modify + * @return mspWebhook + */ + @ApiModelProperty(value = "Msp webhook. It should be a value as follows: 0:block; 1:view only; 2:modify") + + + public Integer getMspWebhook() { + return mspWebhook; + } + + public void setMspWebhook(Integer mspWebhook) { + this.mspWebhook = mspWebhook; + } + + public MspRoleVo mspSites(Integer mspSites) { + this.mspSites = mspSites; + return this; + } + + /** + * Msp sites. It should be a value as follows: 0:block; 2:access + * @return mspSites + */ + @ApiModelProperty(value = "Msp sites. It should be a value as follows: 0:block; 2:access") + + + public Integer getMspSites() { + return mspSites; + } + + public void setMspSites(Integer mspSites) { + this.mspSites = mspSites; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MspRoleVo mspRoleVo = (MspRoleVo) o; + return Objects.equals(this.mspDashboard, mspRoleVo.mspDashboard) && + Objects.equals(this.mspDevice, mspRoleVo.mspDevice) && + Objects.equals(this.mspLog, mspRoleVo.mspLog) && + Objects.equals(this.mspLicense, mspRoleVo.mspLicense) && + Objects.equals(this.mspLicenseBind, mspRoleVo.mspLicenseBind) && + Objects.equals(this.mspAdopt, mspRoleVo.mspAdopt) && + Objects.equals(this.mspAddDevices, mspRoleVo.mspAddDevices) && + Objects.equals(this.mspAddAdoptDevice, mspRoleVo.mspAddAdoptDevice) && + Objects.equals(this.mspUsers, mspRoleVo.mspUsers) && + Objects.equals(this.mspRoles, mspRoleVo.mspRoles) && + Objects.equals(this.mspSamlUsers, mspRoleVo.mspSamlUsers) && + Objects.equals(this.mspSamlRoles, mspRoleVo.mspSamlRoles) && + Objects.equals(this.mspSamlSsos, mspRoleVo.mspSamlSsos) && + Objects.equals(this.mspSetting, mspRoleVo.mspSetting) && + Objects.equals(this.mspExportData, mspRoleVo.mspExportData) && + Objects.equals(this.mspWebhook, mspRoleVo.mspWebhook) && + Objects.equals(this.mspSites, mspRoleVo.mspSites); + } + + @Override + public int hashCode() { + return Objects.hash(mspDashboard, mspDevice, mspLog, mspLicense, mspLicenseBind, mspAdopt, mspAddDevices, mspAddAdoptDevice, mspUsers, mspRoles, mspSamlUsers, mspSamlRoles, mspSamlSsos, mspSetting, mspExportData, mspWebhook, mspSites); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MspRoleVo {\n"); + + sb.append(" mspDashboard: ").append(toIndentedString(mspDashboard)).append("\n"); + sb.append(" mspDevice: ").append(toIndentedString(mspDevice)).append("\n"); + sb.append(" mspLog: ").append(toIndentedString(mspLog)).append("\n"); + sb.append(" mspLicense: ").append(toIndentedString(mspLicense)).append("\n"); + sb.append(" mspLicenseBind: ").append(toIndentedString(mspLicenseBind)).append("\n"); + sb.append(" mspAdopt: ").append(toIndentedString(mspAdopt)).append("\n"); + sb.append(" mspAddDevices: ").append(toIndentedString(mspAddDevices)).append("\n"); + sb.append(" mspAddAdoptDevice: ").append(toIndentedString(mspAddAdoptDevice)).append("\n"); + sb.append(" mspUsers: ").append(toIndentedString(mspUsers)).append("\n"); + sb.append(" mspRoles: ").append(toIndentedString(mspRoles)).append("\n"); + sb.append(" mspSamlUsers: ").append(toIndentedString(mspSamlUsers)).append("\n"); + sb.append(" mspSamlRoles: ").append(toIndentedString(mspSamlRoles)).append("\n"); + sb.append(" mspSamlSsos: ").append(toIndentedString(mspSamlSsos)).append("\n"); + sb.append(" mspSetting: ").append(toIndentedString(mspSetting)).append("\n"); + sb.append(" mspExportData: ").append(toIndentedString(mspExportData)).append("\n"); + sb.append(" mspWebhook: ").append(toIndentedString(mspWebhook)).append("\n"); + sb.append(" mspSites: ").append(toIndentedString(mspSites)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUiInterfaceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUiInterfaceOpenApiVo.java new file mode 100644 index 0000000..37d0b72 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUiInterfaceOpenApiVo.java @@ -0,0 +1,382 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * MspUiInterfaceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class MspUiInterfaceOpenApiVo { + @JsonProperty("language") + private Integer language; + + @JsonProperty("use24hour") + private Boolean use24hour; + + @JsonProperty("fixedMenu") + private Boolean fixedMenu; + + @JsonProperty("theme") + private Integer theme; + + @JsonProperty("showPDevices") + private Boolean showPDevices; + + @JsonProperty("refreshBtnEnable") + private Boolean refreshBtnEnable; + + @JsonProperty("refreshRate") + private Integer refreshRate; + + @JsonProperty("websocketEnable") + private Boolean websocketEnable; + + @JsonProperty("controllerNotification") + private Boolean controllerNotification; + + @JsonProperty("privateLabelingEnable") + private Boolean privateLabelingEnable; + + @JsonProperty("privateLabelingUrl") + private String privateLabelingUrl; + + @JsonProperty("privateLabelingFileId") + private String privateLabelingFileId; + + @JsonProperty("privateLabelingFileName") + private String privateLabelingFileName; + + public MspUiInterfaceOpenApiVo language(Integer language) { + this.language = language; + return this; + } + + /** + * It should be a value as follows: 1: English; 4: German; 7: French; 8: Spanish; 10: Italian; 12: Portuguese; 13: Russian; 15: Turkish; 17: Japanese; 18: Traditional Chinese; 21: Korean + * @return language + */ + @ApiModelProperty(value = "It should be a value as follows: 1: English; 4: German; 7: French; 8: Spanish; 10: Italian; 12: Portuguese; 13: Russian; 15: Turkish; 17: Japanese; 18: Traditional Chinese; 21: Korean") + + + public Integer getLanguage() { + return language; + } + + public void setLanguage(Integer language) { + this.language = language; + } + + public MspUiInterfaceOpenApiVo use24hour(Boolean use24hour) { + this.use24hour = use24hour; + return this; + } + + /** + * Get use24hour + * @return use24hour + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getUse24hour() { + return use24hour; + } + + public void setUse24hour(Boolean use24hour) { + this.use24hour = use24hour; + } + + public MspUiInterfaceOpenApiVo fixedMenu(Boolean fixedMenu) { + this.fixedMenu = fixedMenu; + return this; + } + + /** + * Get fixedMenu + * @return fixedMenu + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getFixedMenu() { + return fixedMenu; + } + + public void setFixedMenu(Boolean fixedMenu) { + this.fixedMenu = fixedMenu; + } + + public MspUiInterfaceOpenApiVo theme(Integer theme) { + this.theme = theme; + return this; + } + + /** + * It should be a value as follows: 0: default; 1: dark + * @return theme + */ + @ApiModelProperty(value = "It should be a value as follows: 0: default; 1: dark") + + + public Integer getTheme() { + return theme; + } + + public void setTheme(Integer theme) { + this.theme = theme; + } + + public MspUiInterfaceOpenApiVo showPDevices(Boolean showPDevices) { + this.showPDevices = showPDevices; + return this; + } + + /** + * Show pending devices + * @return showPDevices + */ + @ApiModelProperty(value = "Show pending devices") + + + public Boolean getShowPDevices() { + return showPDevices; + } + + public void setShowPDevices(Boolean showPDevices) { + this.showPDevices = showPDevices; + } + + public MspUiInterfaceOpenApiVo refreshBtnEnable(Boolean refreshBtnEnable) { + this.refreshBtnEnable = refreshBtnEnable; + return this; + } + + /** + * Enable refresh button + * @return refreshBtnEnable + */ + @ApiModelProperty(required = true, value = "Enable refresh button") + @NotNull + + + public Boolean getRefreshBtnEnable() { + return refreshBtnEnable; + } + + public void setRefreshBtnEnable(Boolean refreshBtnEnable) { + this.refreshBtnEnable = refreshBtnEnable; + } + + public MspUiInterfaceOpenApiVo refreshRate(Integer refreshRate) { + this.refreshRate = refreshRate; + return this; + } + + /** + * It should be a value as follows: 0: 15 seconds; 1: 1 minute; 2: 2 minutes; 3: 5 minutes; 4: never refresh + * @return refreshRate + */ + @ApiModelProperty(required = true, value = "It should be a value as follows: 0: 15 seconds; 1: 1 minute; 2: 2 minutes; 3: 5 minutes; 4: never refresh") + @NotNull + + + public Integer getRefreshRate() { + return refreshRate; + } + + public void setRefreshRate(Integer refreshRate) { + this.refreshRate = refreshRate; + } + + public MspUiInterfaceOpenApiVo websocketEnable(Boolean websocketEnable) { + this.websocketEnable = websocketEnable; + return this; + } + + /** + * Enable websocket connection + * @return websocketEnable + */ + @ApiModelProperty(required = true, value = "Enable websocket connection") + @NotNull + + + public Boolean getWebsocketEnable() { + return websocketEnable; + } + + public void setWebsocketEnable(Boolean websocketEnable) { + this.websocketEnable = websocketEnable; + } + + public MspUiInterfaceOpenApiVo controllerNotification(Boolean controllerNotification) { + this.controllerNotification = controllerNotification; + return this; + } + + /** + * Enable controller upgrade notification + * @return controllerNotification + */ + @ApiModelProperty(value = "Enable controller upgrade notification") + + + public Boolean getControllerNotification() { + return controllerNotification; + } + + public void setControllerNotification(Boolean controllerNotification) { + this.controllerNotification = controllerNotification; + } + + public MspUiInterfaceOpenApiVo privateLabelingEnable(Boolean privateLabelingEnable) { + this.privateLabelingEnable = privateLabelingEnable; + return this; + } + + /** + * Enable private label + * @return privateLabelingEnable + */ + @ApiModelProperty(value = "Enable private label") + + + public Boolean getPrivateLabelingEnable() { + return privateLabelingEnable; + } + + public void setPrivateLabelingEnable(Boolean privateLabelingEnable) { + this.privateLabelingEnable = privateLabelingEnable; + } + + public MspUiInterfaceOpenApiVo privateLabelingUrl(String privateLabelingUrl) { + this.privateLabelingUrl = privateLabelingUrl; + return this; + } + + /** + * The url of private label + * @return privateLabelingUrl + */ + @ApiModelProperty(value = "The url of private label") + + + public String getPrivateLabelingUrl() { + return privateLabelingUrl; + } + + public void setPrivateLabelingUrl(String privateLabelingUrl) { + this.privateLabelingUrl = privateLabelingUrl; + } + + public MspUiInterfaceOpenApiVo privateLabelingFileId(String privateLabelingFileId) { + this.privateLabelingFileId = privateLabelingFileId; + return this; + } + + /** + * The file id of private label picture + * @return privateLabelingFileId + */ + @ApiModelProperty(value = "The file id of private label picture") + + + public String getPrivateLabelingFileId() { + return privateLabelingFileId; + } + + public void setPrivateLabelingFileId(String privateLabelingFileId) { + this.privateLabelingFileId = privateLabelingFileId; + } + + public MspUiInterfaceOpenApiVo privateLabelingFileName(String privateLabelingFileName) { + this.privateLabelingFileName = privateLabelingFileName; + return this; + } + + /** + * The file name of private label picture + * @return privateLabelingFileName + */ + @ApiModelProperty(value = "The file name of private label picture") + + + public String getPrivateLabelingFileName() { + return privateLabelingFileName; + } + + public void setPrivateLabelingFileName(String privateLabelingFileName) { + this.privateLabelingFileName = privateLabelingFileName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MspUiInterfaceOpenApiVo mspUiInterfaceOpenApiVo = (MspUiInterfaceOpenApiVo) o; + return Objects.equals(this.language, mspUiInterfaceOpenApiVo.language) && + Objects.equals(this.use24hour, mspUiInterfaceOpenApiVo.use24hour) && + Objects.equals(this.fixedMenu, mspUiInterfaceOpenApiVo.fixedMenu) && + Objects.equals(this.theme, mspUiInterfaceOpenApiVo.theme) && + Objects.equals(this.showPDevices, mspUiInterfaceOpenApiVo.showPDevices) && + Objects.equals(this.refreshBtnEnable, mspUiInterfaceOpenApiVo.refreshBtnEnable) && + Objects.equals(this.refreshRate, mspUiInterfaceOpenApiVo.refreshRate) && + Objects.equals(this.websocketEnable, mspUiInterfaceOpenApiVo.websocketEnable) && + Objects.equals(this.controllerNotification, mspUiInterfaceOpenApiVo.controllerNotification) && + Objects.equals(this.privateLabelingEnable, mspUiInterfaceOpenApiVo.privateLabelingEnable) && + Objects.equals(this.privateLabelingUrl, mspUiInterfaceOpenApiVo.privateLabelingUrl) && + Objects.equals(this.privateLabelingFileId, mspUiInterfaceOpenApiVo.privateLabelingFileId) && + Objects.equals(this.privateLabelingFileName, mspUiInterfaceOpenApiVo.privateLabelingFileName); + } + + @Override + public int hashCode() { + return Objects.hash(language, use24hour, fixedMenu, theme, showPDevices, refreshBtnEnable, refreshRate, websocketEnable, controllerNotification, privateLabelingEnable, privateLabelingUrl, privateLabelingFileId, privateLabelingFileName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MspUiInterfaceOpenApiVo {\n"); + + sb.append(" language: ").append(toIndentedString(language)).append("\n"); + sb.append(" use24hour: ").append(toIndentedString(use24hour)).append("\n"); + sb.append(" fixedMenu: ").append(toIndentedString(fixedMenu)).append("\n"); + sb.append(" theme: ").append(toIndentedString(theme)).append("\n"); + sb.append(" showPDevices: ").append(toIndentedString(showPDevices)).append("\n"); + sb.append(" refreshBtnEnable: ").append(toIndentedString(refreshBtnEnable)).append("\n"); + sb.append(" refreshRate: ").append(toIndentedString(refreshRate)).append("\n"); + sb.append(" websocketEnable: ").append(toIndentedString(websocketEnable)).append("\n"); + sb.append(" controllerNotification: ").append(toIndentedString(controllerNotification)).append("\n"); + sb.append(" privateLabelingEnable: ").append(toIndentedString(privateLabelingEnable)).append("\n"); + sb.append(" privateLabelingUrl: ").append(toIndentedString(privateLabelingUrl)).append("\n"); + sb.append(" privateLabelingFileId: ").append(toIndentedString(privateLabelingFileId)).append("\n"); + sb.append(" privateLabelingFileName: ").append(toIndentedString(privateLabelingFileName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUnknownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUnknownDeviceOpenApiVo.java new file mode 100644 index 0000000..56aa39b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUnknownDeviceOpenApiVo.java @@ -0,0 +1,301 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * MspUnknownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class MspUnknownDeviceOpenApiVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private String type; + + @JsonProperty("subtype") + private String subtype; + + @JsonProperty("deviceSeriesType") + private Integer deviceSeriesType; + + @JsonProperty("model") + private String model; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("uptime") + private String uptime; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("lastSeen") + private Long lastSeen; + + public MspUnknownDeviceOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC + * @return mac + */ + @ApiModelProperty(value = "Device MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public MspUnknownDeviceOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Device name + * @return name + */ + @ApiModelProperty(value = "Device name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MspUnknownDeviceOpenApiVo type(String type) { + this.type = type; + return this; + } + + /** + * Device type + * @return type + */ + @ApiModelProperty(value = "Device type") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public MspUnknownDeviceOpenApiVo subtype(String subtype) { + this.subtype = subtype; + return this; + } + + /** + * Switch subtype should be a value as follows: smart: Smart Switch; es: Easy Managed Switch. + * @return subtype + */ + @ApiModelProperty(value = "Switch subtype should be a value as follows: smart: Smart Switch; es: Easy Managed Switch.") + + + public String getSubtype() { + return subtype; + } + + public void setSubtype(String subtype) { + this.subtype = subtype; + } + + public MspUnknownDeviceOpenApiVo deviceSeriesType(Integer deviceSeriesType) { + this.deviceSeriesType = deviceSeriesType; + return this; + } + + /** + * Device series type. 0 means basic, 1 means pro. + * @return deviceSeriesType + */ + @ApiModelProperty(value = "Device series type. 0 means basic, 1 means pro.") + + + public Integer getDeviceSeriesType() { + return deviceSeriesType; + } + + public void setDeviceSeriesType(Integer deviceSeriesType) { + this.deviceSeriesType = deviceSeriesType; + } + + public MspUnknownDeviceOpenApiVo model(String model) { + this.model = model; + return this; + } + + /** + * Device model name + * @return model + */ + @ApiModelProperty(value = "Device model name") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public MspUnknownDeviceOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Device IP + * @return ip + */ + @ApiModelProperty(value = "Device IP") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public MspUnknownDeviceOpenApiVo uptime(String uptime) { + this.uptime = uptime; + return this; + } + + /** + * Device uptime + * @return uptime + */ + @ApiModelProperty(value = "Device uptime") + + + public String getUptime() { + return uptime; + } + + public void setUptime(String uptime) { + this.uptime = uptime; + } + + public MspUnknownDeviceOpenApiVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Device status should be a value as follows: 0: Disconnected; 1: Connected; 2: Pending; 3: Heartbeat Missed; 4: Isolated + * @return status + */ + @ApiModelProperty(value = "Device status should be a value as follows: 0: Disconnected; 1: Connected; 2: Pending; 3: Heartbeat Missed; 4: Isolated") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public MspUnknownDeviceOpenApiVo lastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + return this; + } + + /** + * Device lastSeen, unit: ms + * @return lastSeen + */ + @ApiModelProperty(value = "Device lastSeen, unit: ms") + + + public Long getLastSeen() { + return lastSeen; + } + + public void setLastSeen(Long lastSeen) { + this.lastSeen = lastSeen; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MspUnknownDeviceOpenApiVo mspUnknownDeviceOpenApiVo = (MspUnknownDeviceOpenApiVo) o; + return Objects.equals(this.mac, mspUnknownDeviceOpenApiVo.mac) && + Objects.equals(this.name, mspUnknownDeviceOpenApiVo.name) && + Objects.equals(this.type, mspUnknownDeviceOpenApiVo.type) && + Objects.equals(this.subtype, mspUnknownDeviceOpenApiVo.subtype) && + Objects.equals(this.deviceSeriesType, mspUnknownDeviceOpenApiVo.deviceSeriesType) && + Objects.equals(this.model, mspUnknownDeviceOpenApiVo.model) && + Objects.equals(this.ip, mspUnknownDeviceOpenApiVo.ip) && + Objects.equals(this.uptime, mspUnknownDeviceOpenApiVo.uptime) && + Objects.equals(this.status, mspUnknownDeviceOpenApiVo.status) && + Objects.equals(this.lastSeen, mspUnknownDeviceOpenApiVo.lastSeen); + } + + @Override + public int hashCode() { + return Objects.hash(mac, name, type, subtype, deviceSeriesType, model, ip, uptime, status, lastSeen); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MspUnknownDeviceOpenApiVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" subtype: ").append(toIndentedString(subtype)).append("\n"); + sb.append(" deviceSeriesType: ").append(toIndentedString(deviceSeriesType)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" uptime: ").append(toIndentedString(uptime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" lastSeen: ").append(toIndentedString(lastSeen)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUserDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUserDetailVo.java new file mode 100644 index 0000000..18e8cd3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/MspUserDetailVo.java @@ -0,0 +1,363 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * MspUserDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class MspUserDetailVo { + @JsonProperty("id") + private String id; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("roleId") + private String roleId; + + @JsonProperty("name") + private String name; + + @JsonProperty("email") + private String email; + + @JsonProperty("mspId") + private String mspId; + + @JsonProperty("verified") + private Boolean verified; + + @JsonProperty("alert") + private Boolean alert; + + @JsonProperty("parentUserId") + private String parentUserId; + + @JsonProperty("customerRoleId") + private String customerRoleId; + + @JsonProperty("customerIds") + @Valid + private List customerIds = null; + + @JsonProperty("allCustomer") + private Boolean allCustomer; + + public MspUserDetailVo id(String id) { + this.id = id; + return this; + } + + /** + * User ID + * @return id + */ + @ApiModelProperty(value = "User ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public MspUserDetailVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of user should be a value as follows: 0:local user; 1: cloud user + * @return type + */ + @ApiModelProperty(value = "Type of user should be a value as follows: 0:local user; 1: cloud user") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public MspUserDetailVo roleId(String roleId) { + this.roleId = roleId; + return this; + } + + /** + * Msp user role ID in MSP + * @return roleId + */ + @ApiModelProperty(value = "Msp user role ID in MSP") + + + public String getRoleId() { + return roleId; + } + + public void setRoleId(String roleId) { + this.roleId = roleId; + } + + public MspUserDetailVo name(String name) { + this.name = name; + return this; + } + + /** + * User name + * @return name + */ + @ApiModelProperty(value = "User name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MspUserDetailVo email(String email) { + this.email = email; + return this; + } + + /** + * User email + * @return email + */ + @ApiModelProperty(value = "User email") + + + public String getEmail() { + return email; + } + + public void setEmail(String email) { + this.email = email; + } + + public MspUserDetailVo mspId(String mspId) { + this.mspId = mspId; + return this; + } + + /** + * MSP ID + * @return mspId + */ + @ApiModelProperty(value = "MSP ID") + + + public String getMspId() { + return mspId; + } + + public void setMspId(String mspId) { + this.mspId = mspId; + } + + public MspUserDetailVo verified(Boolean verified) { + this.verified = verified; + return this; + } + + /** + * Whether this cloud user has verified + * @return verified + */ + @ApiModelProperty(value = "Whether this cloud user has verified") + + + public Boolean getVerified() { + return verified; + } + + public void setVerified(Boolean verified) { + this.verified = verified; + } + + public MspUserDetailVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * Whether this user want to receive alert emails + * @return alert + */ + @ApiModelProperty(value = "Whether this user want to receive alert emails") + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + public MspUserDetailVo parentUserId(String parentUserId) { + this.parentUserId = parentUserId; + return this; + } + + /** + * User's parent user ID + * @return parentUserId + */ + @ApiModelProperty(value = "User's parent user ID") + + + public String getParentUserId() { + return parentUserId; + } + + public void setParentUserId(String parentUserId) { + this.parentUserId = parentUserId; + } + + public MspUserDetailVo customerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + return this; + } + + /** + * Msp user's customer role ID when visit customer + * @return customerRoleId + */ + @ApiModelProperty(value = "Msp user's customer role ID when visit customer") + + + public String getCustomerRoleId() { + return customerRoleId; + } + + public void setCustomerRoleId(String customerRoleId) { + this.customerRoleId = customerRoleId; + } + + public MspUserDetailVo customerIds(List customerIds) { + this.customerIds = customerIds; + return this; + } + + public MspUserDetailVo addCustomerIdsItem(String customerIdsItem) { + if (this.customerIds == null) { + this.customerIds = new ArrayList<>(); + } + this.customerIds.add(customerIdsItem); + return this; + } + + /** + * User customer privilege list + * @return customerIds + */ + @ApiModelProperty(value = "User customer privilege list") + + + public List getCustomerIds() { + return customerIds; + } + + public void setCustomerIds(List customerIds) { + this.customerIds = customerIds; + } + + public MspUserDetailVo allCustomer(Boolean allCustomer) { + this.allCustomer = allCustomer; + return this; + } + + /** + * Whether msp user has all customer permission, including new created customer + * @return allCustomer + */ + @ApiModelProperty(value = "Whether msp user has all customer permission, including new created customer") + + + public Boolean getAllCustomer() { + return allCustomer; + } + + public void setAllCustomer(Boolean allCustomer) { + this.allCustomer = allCustomer; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MspUserDetailVo mspUserDetailVo = (MspUserDetailVo) o; + return Objects.equals(this.id, mspUserDetailVo.id) && + Objects.equals(this.type, mspUserDetailVo.type) && + Objects.equals(this.roleId, mspUserDetailVo.roleId) && + Objects.equals(this.name, mspUserDetailVo.name) && + Objects.equals(this.email, mspUserDetailVo.email) && + Objects.equals(this.mspId, mspUserDetailVo.mspId) && + Objects.equals(this.verified, mspUserDetailVo.verified) && + Objects.equals(this.alert, mspUserDetailVo.alert) && + Objects.equals(this.parentUserId, mspUserDetailVo.parentUserId) && + Objects.equals(this.customerRoleId, mspUserDetailVo.customerRoleId) && + Objects.equals(this.customerIds, mspUserDetailVo.customerIds) && + Objects.equals(this.allCustomer, mspUserDetailVo.allCustomer); + } + + @Override + public int hashCode() { + return Objects.hash(id, type, roleId, name, email, mspId, verified, alert, parentUserId, customerRoleId, customerIds, allCustomer); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MspUserDetailVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" roleId: ").append(toIndentedString(roleId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" email: ").append(toIndentedString(email)).append("\n"); + sb.append(" mspId: ").append(toIndentedString(mspId)).append("\n"); + sb.append(" verified: ").append(toIndentedString(verified)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append(" parentUserId: ").append(toIndentedString(parentUserId)).append("\n"); + sb.append(" customerRoleId: ").append(toIndentedString(customerRoleId)).append("\n"); + sb.append(" customerIds: ").append(toIndentedString(customerIds)).append("\n"); + sb.append(" allCustomer: ").append(toIndentedString(allCustomer)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OmadacInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OmadacInfoOpenApiVo.java new file mode 100644 index 0000000..7d4d617 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OmadacInfoOpenApiVo.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * The customers which can be accessed. Required when allCustomer is false. + */ +@ApiModel(description = "The customers which can be accessed. Required when allCustomer is false.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OmadacInfoOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + public OmadacInfoOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Customer ID. + * @return id + */ + @ApiModelProperty(value = "Customer ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public OmadacInfoOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Customer name should contain 1 to 32 characters. + * @return name + */ + @ApiModelProperty(value = "Customer name should contain 1 to 32 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,30}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OmadacInfoOpenApiVo omadacInfoOpenApiVo = (OmadacInfoOpenApiVo) o; + return Objects.equals(this.id, omadacInfoOpenApiVo.id) && + Objects.equals(this.name, omadacInfoOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OmadacInfoOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiDispatchLogDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiDispatchLogDetailVo.java new file mode 100644 index 0000000..afb3d52 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiDispatchLogDetailVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Dispatch Log Detail + */ +@ApiModel(description = "Dispatch Log Detail") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OpenApiDispatchLogDetailVo { + @JsonProperty("headers") + private String headers; + + @JsonProperty("content") + private String content; + + @JsonProperty("attemptNumber") + private Integer attemptNumber; + + public OpenApiDispatchLogDetailVo headers(String headers) { + this.headers = headers; + return this; + } + + /** + * Http Headers of Webhook Push + * @return headers + */ + @ApiModelProperty(value = "Http Headers of Webhook Push") + + + public String getHeaders() { + return headers; + } + + public void setHeaders(String headers) { + this.headers = headers; + } + + public OpenApiDispatchLogDetailVo content(String content) { + this.content = content; + return this; + } + + /** + * Webhook Push Content + * @return content + */ + @ApiModelProperty(value = "Webhook Push Content") + + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public OpenApiDispatchLogDetailVo attemptNumber(Integer attemptNumber) { + this.attemptNumber = attemptNumber; + return this; + } + + /** + * Webhook Attempt Number + * @return attemptNumber + */ + @ApiModelProperty(value = "Webhook Attempt Number") + + + public Integer getAttemptNumber() { + return attemptNumber; + } + + public void setAttemptNumber(Integer attemptNumber) { + this.attemptNumber = attemptNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiDispatchLogDetailVo openApiDispatchLogDetailVo = (OpenApiDispatchLogDetailVo) o; + return Objects.equals(this.headers, openApiDispatchLogDetailVo.headers) && + Objects.equals(this.content, openApiDispatchLogDetailVo.content) && + Objects.equals(this.attemptNumber, openApiDispatchLogDetailVo.attemptNumber); + } + + @Override + public int hashCode() { + return Objects.hash(headers, content, attemptNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiDispatchLogDetailVo {\n"); + + sb.append(" headers: ").append(toIndentedString(headers)).append("\n"); + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" attemptNumber: ").append(toIndentedString(attemptNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookAttemptMessageVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookAttemptMessageVo.java new file mode 100644 index 0000000..7978205 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookAttemptMessageVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Attempt Message of Dispatch Log Detail + */ +@ApiModel(description = "Attempt Message of Dispatch Log Detail") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OpenApiWebhookAttemptMessageVo { + @JsonProperty("status") + private Integer status; + + @JsonProperty("messageCode") + private Integer messageCode; + + @JsonProperty("attemptTime") + private Long attemptTime; + + public OpenApiWebhookAttemptMessageVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Webhook Attempt Push Status: 0/1 (Success/Failed) + * @return status + */ + @ApiModelProperty(value = "Webhook Attempt Push Status: 0/1 (Success/Failed)") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public OpenApiWebhookAttemptMessageVo messageCode(Integer messageCode) { + this.messageCode = messageCode; + return this; + } + + /** + * Http Message Code of Webhook Attempt Push + * @return messageCode + */ + @ApiModelProperty(value = "Http Message Code of Webhook Attempt Push") + + + public Integer getMessageCode() { + return messageCode; + } + + public void setMessageCode(Integer messageCode) { + this.messageCode = messageCode; + } + + public OpenApiWebhookAttemptMessageVo attemptTime(Long attemptTime) { + this.attemptTime = attemptTime; + return this; + } + + /** + * Webhook Attempt Push Time, Unit (ms) + * @return attemptTime + */ + @ApiModelProperty(value = "Webhook Attempt Push Time, Unit (ms)") + + + public Long getAttemptTime() { + return attemptTime; + } + + public void setAttemptTime(Long attemptTime) { + this.attemptTime = attemptTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookAttemptMessageVo openApiWebhookAttemptMessageVo = (OpenApiWebhookAttemptMessageVo) o; + return Objects.equals(this.status, openApiWebhookAttemptMessageVo.status) && + Objects.equals(this.messageCode, openApiWebhookAttemptMessageVo.messageCode) && + Objects.equals(this.attemptTime, openApiWebhookAttemptMessageVo.attemptTime); + } + + @Override + public int hashCode() { + return Objects.hash(status, messageCode, attemptTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookAttemptMessageVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" messageCode: ").append(toIndentedString(messageCode)).append("\n"); + sb.append(" attemptTime: ").append(toIndentedString(attemptTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookDispatchLogVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookDispatchLogVo.java new file mode 100644 index 0000000..56c5eea --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookDispatchLogVo.java @@ -0,0 +1,141 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OpenApiWebhookDispatchLogVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OpenApiWebhookDispatchLogVo { + @JsonProperty("dispatchMessage") + private OpenApiWebhookLogMessageVo dispatchMessage; + + @JsonProperty("dispatchDetail") + private OpenApiDispatchLogDetailVo dispatchDetail; + + @JsonProperty("attemptMessages") + @Valid + private List attemptMessages = null; + + public OpenApiWebhookDispatchLogVo dispatchMessage(OpenApiWebhookLogMessageVo dispatchMessage) { + this.dispatchMessage = dispatchMessage; + return this; + } + + /** + * Get dispatchMessage + * @return dispatchMessage + */ + @ApiModelProperty(value = "") + + @Valid + + public OpenApiWebhookLogMessageVo getDispatchMessage() { + return dispatchMessage; + } + + public void setDispatchMessage(OpenApiWebhookLogMessageVo dispatchMessage) { + this.dispatchMessage = dispatchMessage; + } + + public OpenApiWebhookDispatchLogVo dispatchDetail(OpenApiDispatchLogDetailVo dispatchDetail) { + this.dispatchDetail = dispatchDetail; + return this; + } + + /** + * Get dispatchDetail + * @return dispatchDetail + */ + @ApiModelProperty(value = "") + + @Valid + + public OpenApiDispatchLogDetailVo getDispatchDetail() { + return dispatchDetail; + } + + public void setDispatchDetail(OpenApiDispatchLogDetailVo dispatchDetail) { + this.dispatchDetail = dispatchDetail; + } + + public OpenApiWebhookDispatchLogVo attemptMessages(List attemptMessages) { + this.attemptMessages = attemptMessages; + return this; + } + + public OpenApiWebhookDispatchLogVo addAttemptMessagesItem(OpenApiWebhookAttemptMessageVo attemptMessagesItem) { + if (this.attemptMessages == null) { + this.attemptMessages = new ArrayList<>(); + } + this.attemptMessages.add(attemptMessagesItem); + return this; + } + + /** + * Attempt Message of Dispatch Log Detail + * @return attemptMessages + */ + @ApiModelProperty(value = "Attempt Message of Dispatch Log Detail") + + @Valid + + public List getAttemptMessages() { + return attemptMessages; + } + + public void setAttemptMessages(List attemptMessages) { + this.attemptMessages = attemptMessages; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookDispatchLogVo openApiWebhookDispatchLogVo = (OpenApiWebhookDispatchLogVo) o; + return Objects.equals(this.dispatchMessage, openApiWebhookDispatchLogVo.dispatchMessage) && + Objects.equals(this.dispatchDetail, openApiWebhookDispatchLogVo.dispatchDetail) && + Objects.equals(this.attemptMessages, openApiWebhookDispatchLogVo.attemptMessages); + } + + @Override + public int hashCode() { + return Objects.hash(dispatchMessage, dispatchDetail, attemptMessages); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookDispatchLogVo {\n"); + + sb.append(" dispatchMessage: ").append(toIndentedString(dispatchMessage)).append("\n"); + sb.append(" dispatchDetail: ").append(toIndentedString(dispatchDetail)).append("\n"); + sb.append(" attemptMessages: ").append(toIndentedString(attemptMessages)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookLogMessageVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookLogMessageVo.java new file mode 100644 index 0000000..d50c6b3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookLogMessageVo.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Dispatch Log Message + */ +@ApiModel(description = "Dispatch Log Message") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OpenApiWebhookLogMessageVo { + @JsonProperty("url") + private String url; + + @JsonProperty("webhookMessage") + private OpenApiWebhookMessageVo webhookMessage; + + @JsonProperty("dispatchTime") + private Long dispatchTime; + + public OpenApiWebhookLogMessageVo url(String url) { + this.url = url; + return this; + } + + /** + * Webhook URL + * @return url + */ + @ApiModelProperty(value = "Webhook URL") + + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + public OpenApiWebhookLogMessageVo webhookMessage(OpenApiWebhookMessageVo webhookMessage) { + this.webhookMessage = webhookMessage; + return this; + } + + /** + * Get webhookMessage + * @return webhookMessage + */ + @ApiModelProperty(value = "") + + @Valid + + public OpenApiWebhookMessageVo getWebhookMessage() { + return webhookMessage; + } + + public void setWebhookMessage(OpenApiWebhookMessageVo webhookMessage) { + this.webhookMessage = webhookMessage; + } + + public OpenApiWebhookLogMessageVo dispatchTime(Long dispatchTime) { + this.dispatchTime = dispatchTime; + return this; + } + + /** + * Webhook Dispatch Log Time, Unit (ms) + * @return dispatchTime + */ + @ApiModelProperty(value = "Webhook Dispatch Log Time, Unit (ms)") + + + public Long getDispatchTime() { + return dispatchTime; + } + + public void setDispatchTime(Long dispatchTime) { + this.dispatchTime = dispatchTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookLogMessageVo openApiWebhookLogMessageVo = (OpenApiWebhookLogMessageVo) o; + return Objects.equals(this.url, openApiWebhookLogMessageVo.url) && + Objects.equals(this.webhookMessage, openApiWebhookLogMessageVo.webhookMessage) && + Objects.equals(this.dispatchTime, openApiWebhookLogMessageVo.dispatchTime); + } + + @Override + public int hashCode() { + return Objects.hash(url, webhookMessage, dispatchTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookLogMessageVo {\n"); + + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append(" webhookMessage: ").append(toIndentedString(webhookMessage)).append("\n"); + sb.append(" dispatchTime: ").append(toIndentedString(dispatchTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookMessageVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookMessageVo.java new file mode 100644 index 0000000..7b59636 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookMessageVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Webhook Message + */ +@ApiModel(description = "Webhook Message") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OpenApiWebhookMessageVo { + @JsonProperty("status") + private Integer status; + + @JsonProperty("messageCode") + private Integer messageCode; + + public OpenApiWebhookMessageVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Webhook Push Status. It should be a value as follows: 0: Success; 1: Failed + * @return status + */ + @ApiModelProperty(value = "Webhook Push Status. It should be a value as follows: 0: Success; 1: Failed") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public OpenApiWebhookMessageVo messageCode(Integer messageCode) { + this.messageCode = messageCode; + return this; + } + + /** + * Http Message Code of Webhook Push + * @return messageCode + */ + @ApiModelProperty(value = "Http Message Code of Webhook Push") + + + public Integer getMessageCode() { + return messageCode; + } + + public void setMessageCode(Integer messageCode) { + this.messageCode = messageCode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookMessageVo openApiWebhookMessageVo = (OpenApiWebhookMessageVo) o; + return Objects.equals(this.status, openApiWebhookMessageVo.status) && + Objects.equals(this.messageCode, openApiWebhookMessageVo.messageCode); + } + + @Override + public int hashCode() { + return Objects.hash(status, messageCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookMessageVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" messageCode: ").append(toIndentedString(messageCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingAddVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingAddVo.java new file mode 100644 index 0000000..8dd70c1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingAddVo.java @@ -0,0 +1,189 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OpenApiWebhookSettingAddVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OpenApiWebhookSettingAddVo { + @JsonProperty("name") + private String name; + + @JsonProperty("urlList") + @Valid + private List urlList = new ArrayList<>(); + + @JsonProperty("retryPolicy") + private Integer retryPolicy; + + @JsonProperty("shardedSecret") + private String shardedSecret; + + @JsonProperty("template") + private Integer template; + + public OpenApiWebhookSettingAddVo name(String name) { + this.name = name; + return this; + } + + /** + * Webhook name. It should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Webhook name. It should contain 1 to 128 characters.") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OpenApiWebhookSettingAddVo urlList(List urlList) { + this.urlList = urlList; + return this; + } + + public OpenApiWebhookSettingAddVo addUrlListItem(String urlListItem) { + this.urlList.add(urlListItem); + return this; + } + + /** + * Webhook URL List. Up to 3 entries are allowed for the URL list + * @return urlList + */ + @ApiModelProperty(required = true, value = "Webhook URL List. Up to 3 entries are allowed for the URL list") + @NotNull + + + public List getUrlList() { + return urlList; + } + + public void setUrlList(List urlList) { + this.urlList = urlList; + } + + public OpenApiWebhookSettingAddVo retryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours) + * @return retryPolicy + */ + @ApiModelProperty(required = true, value = "Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours)") + @NotNull + + + public Integer getRetryPolicy() { + return retryPolicy; + } + + public void setRetryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + } + + public OpenApiWebhookSettingAddVo shardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + return this; + } + + /** + * Webhook Sharded Secret. It should contain 0 to 128 characters. + * @return shardedSecret + */ + @ApiModelProperty(value = "Webhook Sharded Secret. It should contain 0 to 128 characters.") + + + public String getShardedSecret() { + return shardedSecret; + } + + public void setShardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + } + + public OpenApiWebhookSettingAddVo template(Integer template) { + this.template = template; + return this; + } + + /** + * Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. + * @return template + */ + @ApiModelProperty(value = "Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. ") + + + public Integer getTemplate() { + return template; + } + + public void setTemplate(Integer template) { + this.template = template; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookSettingAddVo openApiWebhookSettingAddVo = (OpenApiWebhookSettingAddVo) o; + return Objects.equals(this.name, openApiWebhookSettingAddVo.name) && + Objects.equals(this.urlList, openApiWebhookSettingAddVo.urlList) && + Objects.equals(this.retryPolicy, openApiWebhookSettingAddVo.retryPolicy) && + Objects.equals(this.shardedSecret, openApiWebhookSettingAddVo.shardedSecret) && + Objects.equals(this.template, openApiWebhookSettingAddVo.template); + } + + @Override + public int hashCode() { + return Objects.hash(name, urlList, retryPolicy, shardedSecret, template); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookSettingAddVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" urlList: ").append(toIndentedString(urlList)).append("\n"); + sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n"); + sb.append(" shardedSecret: ").append(toIndentedString(shardedSecret)).append("\n"); + sb.append(" template: ").append(toIndentedString(template)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingEditVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingEditVo.java new file mode 100644 index 0000000..fe0edb8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingEditVo.java @@ -0,0 +1,163 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OpenApiWebhookSettingEditVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OpenApiWebhookSettingEditVo { + @JsonProperty("urlList") + @Valid + private List urlList = new ArrayList<>(); + + @JsonProperty("retryPolicy") + private Integer retryPolicy; + + @JsonProperty("shardedSecret") + private String shardedSecret; + + @JsonProperty("template") + private Integer template; + + public OpenApiWebhookSettingEditVo urlList(List urlList) { + this.urlList = urlList; + return this; + } + + public OpenApiWebhookSettingEditVo addUrlListItem(String urlListItem) { + this.urlList.add(urlListItem); + return this; + } + + /** + * Webhook URL List. Up to 3 entries are allowed for the URL list + * @return urlList + */ + @ApiModelProperty(required = true, value = "Webhook URL List. Up to 3 entries are allowed for the URL list ") + @NotNull + + + public List getUrlList() { + return urlList; + } + + public void setUrlList(List urlList) { + this.urlList = urlList; + } + + public OpenApiWebhookSettingEditVo retryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours) + * @return retryPolicy + */ + @ApiModelProperty(required = true, value = "Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours)") + @NotNull + + + public Integer getRetryPolicy() { + return retryPolicy; + } + + public void setRetryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + } + + public OpenApiWebhookSettingEditVo shardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + return this; + } + + /** + * Webhook Sharded Secret. It should contain 0 to 128 characters. + * @return shardedSecret + */ + @ApiModelProperty(value = "Webhook Sharded Secret. It should contain 0 to 128 characters.") + + + public String getShardedSecret() { + return shardedSecret; + } + + public void setShardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + } + + public OpenApiWebhookSettingEditVo template(Integer template) { + this.template = template; + return this; + } + + /** + * Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. + * @return template + */ + @ApiModelProperty(value = "Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. ") + + + public Integer getTemplate() { + return template; + } + + public void setTemplate(Integer template) { + this.template = template; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookSettingEditVo openApiWebhookSettingEditVo = (OpenApiWebhookSettingEditVo) o; + return Objects.equals(this.urlList, openApiWebhookSettingEditVo.urlList) && + Objects.equals(this.retryPolicy, openApiWebhookSettingEditVo.retryPolicy) && + Objects.equals(this.shardedSecret, openApiWebhookSettingEditVo.shardedSecret) && + Objects.equals(this.template, openApiWebhookSettingEditVo.template); + } + + @Override + public int hashCode() { + return Objects.hash(urlList, retryPolicy, shardedSecret, template); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookSettingEditVo {\n"); + + sb.append(" urlList: ").append(toIndentedString(urlList)).append("\n"); + sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n"); + sb.append(" shardedSecret: ").append(toIndentedString(shardedSecret)).append("\n"); + sb.append(" template: ").append(toIndentedString(template)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingTestVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingTestVo.java new file mode 100644 index 0000000..a3ab1ea --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OpenApiWebhookSettingTestVo.java @@ -0,0 +1,163 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OpenApiWebhookSettingTestVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OpenApiWebhookSettingTestVo { + @JsonProperty("name") + private String name; + + @JsonProperty("shardedSecret") + private String shardedSecret; + + @JsonProperty("urlList") + @Valid + private List urlList = new ArrayList<>(); + + @JsonProperty("template") + private Integer template; + + public OpenApiWebhookSettingTestVo name(String name) { + this.name = name; + return this; + } + + /** + * Webhook name. It should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Webhook name. It should contain 1 to 128 characters.") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OpenApiWebhookSettingTestVo shardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + return this; + } + + /** + * Webhook Sharded Secret. It should contain 0 to 128 characters. + * @return shardedSecret + */ + @ApiModelProperty(value = "Webhook Sharded Secret. It should contain 0 to 128 characters.") + + + public String getShardedSecret() { + return shardedSecret; + } + + public void setShardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + } + + public OpenApiWebhookSettingTestVo urlList(List urlList) { + this.urlList = urlList; + return this; + } + + public OpenApiWebhookSettingTestVo addUrlListItem(String urlListItem) { + this.urlList.add(urlListItem); + return this; + } + + /** + * Webhook URL List. Up to 3 entries are allowed for the URL list + * @return urlList + */ + @ApiModelProperty(required = true, value = "Webhook URL List. Up to 3 entries are allowed for the URL list") + @NotNull + + + public List getUrlList() { + return urlList; + } + + public void setUrlList(List urlList) { + this.urlList = urlList; + } + + public OpenApiWebhookSettingTestVo template(Integer template) { + this.template = template; + return this; + } + + /** + * Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. + * @return template + */ + @ApiModelProperty(value = "Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. ") + + + public Integer getTemplate() { + return template; + } + + public void setTemplate(Integer template) { + this.template = template; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OpenApiWebhookSettingTestVo openApiWebhookSettingTestVo = (OpenApiWebhookSettingTestVo) o; + return Objects.equals(this.name, openApiWebhookSettingTestVo.name) && + Objects.equals(this.shardedSecret, openApiWebhookSettingTestVo.shardedSecret) && + Objects.equals(this.urlList, openApiWebhookSettingTestVo.urlList) && + Objects.equals(this.template, openApiWebhookSettingTestVo.template); + } + + @Override + public int hashCode() { + return Objects.hash(name, shardedSecret, urlList, template); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OpenApiWebhookSettingTestVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" shardedSecret: ").append(toIndentedString(shardedSecret)).append("\n"); + sb.append(" urlList: ").append(toIndentedString(urlList)).append("\n"); + sb.append(" template: ").append(toIndentedString(template)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponse.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponse.java new file mode 100644 index 0000000..a571a63 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponse.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * A response list + */ +@ApiModel(description = "A response list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponse { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private Object result; + + public OperationResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponse msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponse result(Object result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getResult() { + return result; + } + + public void setResult(Object result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponse operationResponse = (OperationResponse) o; + return Objects.equals(this.errorCode, operationResponse.errorCode) && + Objects.equals(this.msg, operationResponse.msg) && + Objects.equals(this.result, operationResponse.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponse {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseAuditLogNotificationSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseAuditLogNotificationSettingOpenApiVo.java new file mode 100644 index 0000000..22e8d40 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseAuditLogNotificationSettingOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseAuditLogNotificationSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseAuditLogNotificationSettingOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private AuditLogNotificationSettingOpenApiVo result; + + public OperationResponseAuditLogNotificationSettingOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseAuditLogNotificationSettingOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseAuditLogNotificationSettingOpenApiVo result(AuditLogNotificationSettingOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public AuditLogNotificationSettingOpenApiVo getResult() { + return result; + } + + public void setResult(AuditLogNotificationSettingOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseAuditLogNotificationSettingOpenApiVo operationResponseAuditLogNotificationSettingOpenApiVo = (OperationResponseAuditLogNotificationSettingOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseAuditLogNotificationSettingOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseAuditLogNotificationSettingOpenApiVo.msg) && + Objects.equals(this.result, operationResponseAuditLogNotificationSettingOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseAuditLogNotificationSettingOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseBatchResponseEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseBatchResponseEntity.java new file mode 100644 index 0000000..8b1dc37 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseBatchResponseEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseBatchResponseEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseBatchResponseEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private BatchResponseEntity result; + + public OperationResponseBatchResponseEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseBatchResponseEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseBatchResponseEntity result(BatchResponseEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public BatchResponseEntity getResult() { + return result; + } + + public void setResult(BatchResponseEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseBatchResponseEntity operationResponseBatchResponseEntity = (OperationResponseBatchResponseEntity) o; + return Objects.equals(this.errorCode, operationResponseBatchResponseEntity.errorCode) && + Objects.equals(this.msg, operationResponseBatchResponseEntity.msg) && + Objects.equals(this.result, operationResponseBatchResponseEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseBatchResponseEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateCustomerOmadacVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateCustomerOmadacVo.java new file mode 100644 index 0000000..bde9ee0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateCustomerOmadacVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCreateCustomerOmadacVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseCreateCustomerOmadacVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CreateCustomerOmadacVo result; + + public OperationResponseCreateCustomerOmadacVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCreateCustomerOmadacVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCreateCustomerOmadacVo result(CreateCustomerOmadacVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CreateCustomerOmadacVo getResult() { + return result; + } + + public void setResult(CreateCustomerOmadacVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCreateCustomerOmadacVo operationResponseCreateCustomerOmadacVo = (OperationResponseCreateCustomerOmadacVo) o; + return Objects.equals(this.errorCode, operationResponseCreateCustomerOmadacVo.errorCode) && + Objects.equals(this.msg, operationResponseCreateCustomerOmadacVo.msg) && + Objects.equals(this.result, operationResponseCreateCustomerOmadacVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCreateCustomerOmadacVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateRoleResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateRoleResultVo.java new file mode 100644 index 0000000..331a58f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateRoleResultVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCreateRoleResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseCreateRoleResultVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CreateRoleResultVo result; + + public OperationResponseCreateRoleResultVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCreateRoleResultVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCreateRoleResultVo result(CreateRoleResultVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CreateRoleResultVo getResult() { + return result; + } + + public void setResult(CreateRoleResultVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCreateRoleResultVo operationResponseCreateRoleResultVo = (OperationResponseCreateRoleResultVo) o; + return Objects.equals(this.errorCode, operationResponseCreateRoleResultVo.errorCode) && + Objects.equals(this.msg, operationResponseCreateRoleResultVo.msg) && + Objects.equals(this.result, operationResponseCreateRoleResultVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCreateRoleResultVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateUserResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateUserResultVo.java new file mode 100644 index 0000000..47773dc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCreateUserResultVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCreateUserResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseCreateUserResultVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CreateUserResultVo result; + + public OperationResponseCreateUserResultVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCreateUserResultVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCreateUserResultVo result(CreateUserResultVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CreateUserResultVo getResult() { + return result; + } + + public void setResult(CreateUserResultVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCreateUserResultVo operationResponseCreateUserResultVo = (OperationResponseCreateUserResultVo) o; + return Objects.equals(this.errorCode, operationResponseCreateUserResultVo.errorCode) && + Objects.equals(this.msg, operationResponseCreateUserResultVo.msg) && + Objects.equals(this.result, operationResponseCreateUserResultVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCreateUserResultVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCustomerInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCustomerInfoOpenApiVo.java new file mode 100644 index 0000000..a887474 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseCustomerInfoOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCustomerInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseCustomerInfoOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CustomerInfoOpenApiVo result; + + public OperationResponseCustomerInfoOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCustomerInfoOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCustomerInfoOpenApiVo result(CustomerInfoOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CustomerInfoOpenApiVo getResult() { + return result; + } + + public void setResult(CustomerInfoOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCustomerInfoOpenApiVo operationResponseCustomerInfoOpenApiVo = (OperationResponseCustomerInfoOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseCustomerInfoOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseCustomerInfoOpenApiVo.msg) && + Objects.equals(this.result, operationResponseCustomerInfoOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCustomerInfoOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoAuditLogOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoAuditLogOpenApiVo.java new file mode 100644 index 0000000..34ee192 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoAuditLogOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoAuditLogOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoAuditLogOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoAuditLogOpenApiVo result; + + public OperationResponseGridVoAuditLogOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoAuditLogOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoAuditLogOpenApiVo result(GridVoAuditLogOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoAuditLogOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoAuditLogOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoAuditLogOpenApiVo operationResponseGridVoAuditLogOpenApiVo = (OperationResponseGridVoAuditLogOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoAuditLogOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoAuditLogOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoAuditLogOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoAuditLogOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoCustomerInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoCustomerInfoOpenApiVo.java new file mode 100644 index 0000000..f765d33 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoCustomerInfoOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoCustomerInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoCustomerInfoOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoCustomerInfoOpenApiVo result; + + public OperationResponseGridVoCustomerInfoOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoCustomerInfoOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoCustomerInfoOpenApiVo result(GridVoCustomerInfoOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoCustomerInfoOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoCustomerInfoOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoCustomerInfoOpenApiVo operationResponseGridVoCustomerInfoOpenApiVo = (OperationResponseGridVoCustomerInfoOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoCustomerInfoOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoCustomerInfoOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoCustomerInfoOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoCustomerInfoOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoIdpMetadataDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoIdpMetadataDetailOpenApiVo.java new file mode 100644 index 0000000..84effbb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoIdpMetadataDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoIdpMetadataDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoIdpMetadataDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoIdpMetadataDetailOpenApiVo result; + + public OperationResponseGridVoIdpMetadataDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoIdpMetadataDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoIdpMetadataDetailOpenApiVo result(GridVoIdpMetadataDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoIdpMetadataDetailOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoIdpMetadataDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoIdpMetadataDetailOpenApiVo operationResponseGridVoIdpMetadataDetailOpenApiVo = (OperationResponseGridVoIdpMetadataDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoIdpMetadataDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoIdpMetadataDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoIdpMetadataDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoIdpMetadataDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspExternalUserDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspExternalUserDetailOpenApiVo.java new file mode 100644 index 0000000..b1aee4e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspExternalUserDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoMspExternalUserDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoMspExternalUserDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoMspExternalUserDetailOpenApiVo result; + + public OperationResponseGridVoMspExternalUserDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoMspExternalUserDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoMspExternalUserDetailOpenApiVo result(GridVoMspExternalUserDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoMspExternalUserDetailOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoMspExternalUserDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoMspExternalUserDetailOpenApiVo operationResponseGridVoMspExternalUserDetailOpenApiVo = (OperationResponseGridVoMspExternalUserDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoMspExternalUserDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoMspExternalUserDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoMspExternalUserDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoMspExternalUserDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo.java new file mode 100644 index 0000000..abff687 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoMspExternalUserGroupDetailOpenApiVo result; + + public OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo result(GridVoMspExternalUserGroupDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoMspExternalUserGroupDetailOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoMspExternalUserGroupDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo operationResponseGridVoMspExternalUserGroupDetailOpenApiVo = (OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoMspExternalUserGroupDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoMspExternalUserGroupDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoMspExternalUserGroupDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoMspExternalUserGroupDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspKnownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspKnownDeviceOpenApiVo.java new file mode 100644 index 0000000..9e34475 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspKnownDeviceOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoMspKnownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoMspKnownDeviceOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoMspKnownDeviceOpenApiVo result; + + public OperationResponseGridVoMspKnownDeviceOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoMspKnownDeviceOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoMspKnownDeviceOpenApiVo result(GridVoMspKnownDeviceOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoMspKnownDeviceOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoMspKnownDeviceOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoMspKnownDeviceOpenApiVo operationResponseGridVoMspKnownDeviceOpenApiVo = (OperationResponseGridVoMspKnownDeviceOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoMspKnownDeviceOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoMspKnownDeviceOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoMspKnownDeviceOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoMspKnownDeviceOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspUnknownDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspUnknownDeviceOpenApiVo.java new file mode 100644 index 0000000..c530409 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspUnknownDeviceOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoMspUnknownDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoMspUnknownDeviceOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoMspUnknownDeviceOpenApiVo result; + + public OperationResponseGridVoMspUnknownDeviceOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoMspUnknownDeviceOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoMspUnknownDeviceOpenApiVo result(GridVoMspUnknownDeviceOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoMspUnknownDeviceOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoMspUnknownDeviceOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoMspUnknownDeviceOpenApiVo operationResponseGridVoMspUnknownDeviceOpenApiVo = (OperationResponseGridVoMspUnknownDeviceOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoMspUnknownDeviceOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoMspUnknownDeviceOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoMspUnknownDeviceOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoMspUnknownDeviceOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspUserDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspUserDetailVo.java new file mode 100644 index 0000000..3dfbc98 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoMspUserDetailVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoMspUserDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoMspUserDetailVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoMspUserDetailVo result; + + public OperationResponseGridVoMspUserDetailVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoMspUserDetailVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoMspUserDetailVo result(GridVoMspUserDetailVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoMspUserDetailVo getResult() { + return result; + } + + public void setResult(GridVoMspUserDetailVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoMspUserDetailVo operationResponseGridVoMspUserDetailVo = (OperationResponseGridVoMspUserDetailVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoMspUserDetailVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoMspUserDetailVo.msg) && + Objects.equals(this.result, operationResponseGridVoMspUserDetailVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoMspUserDetailVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoOpenApiWebhookDispatchLogVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoOpenApiWebhookDispatchLogVo.java new file mode 100644 index 0000000..a7732b7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoOpenApiWebhookDispatchLogVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoOpenApiWebhookDispatchLogVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoOpenApiWebhookDispatchLogVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoOpenApiWebhookDispatchLogVo result; + + public OperationResponseGridVoOpenApiWebhookDispatchLogVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoOpenApiWebhookDispatchLogVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoOpenApiWebhookDispatchLogVo result(GridVoOpenApiWebhookDispatchLogVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoOpenApiWebhookDispatchLogVo getResult() { + return result; + } + + public void setResult(GridVoOpenApiWebhookDispatchLogVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoOpenApiWebhookDispatchLogVo operationResponseGridVoOpenApiWebhookDispatchLogVo = (OperationResponseGridVoOpenApiWebhookDispatchLogVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoOpenApiWebhookDispatchLogVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoOpenApiWebhookDispatchLogVo.msg) && + Objects.equals(this.result, operationResponseGridVoOpenApiWebhookDispatchLogVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoOpenApiWebhookDispatchLogVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoSiteSummaryInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoSiteSummaryInfo.java new file mode 100644 index 0000000..688306a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseGridVoSiteSummaryInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoSiteSummaryInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoSiteSummaryInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoSiteSummaryInfo result; + + public OperationResponseGridVoSiteSummaryInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoSiteSummaryInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoSiteSummaryInfo result(GridVoSiteSummaryInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoSiteSummaryInfo getResult() { + return result; + } + + public void setResult(GridVoSiteSummaryInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoSiteSummaryInfo operationResponseGridVoSiteSummaryInfo = (OperationResponseGridVoSiteSummaryInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoSiteSummaryInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoSiteSummaryInfo.msg) && + Objects.equals(this.result, operationResponseGridVoSiteSummaryInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoSiteSummaryInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseHistoryRetentionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseHistoryRetentionOpenApiVo.java new file mode 100644 index 0000000..8b5678d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseHistoryRetentionOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseHistoryRetentionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseHistoryRetentionOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private HistoryRetentionOpenApiVo result; + + public OperationResponseHistoryRetentionOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseHistoryRetentionOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseHistoryRetentionOpenApiVo result(HistoryRetentionOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public HistoryRetentionOpenApiVo getResult() { + return result; + } + + public void setResult(HistoryRetentionOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseHistoryRetentionOpenApiVo operationResponseHistoryRetentionOpenApiVo = (OperationResponseHistoryRetentionOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseHistoryRetentionOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseHistoryRetentionOpenApiVo.msg) && + Objects.equals(this.result, operationResponseHistoryRetentionOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseHistoryRetentionOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseLicenseAutoActiveOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseLicenseAutoActiveOpenApiVo.java new file mode 100644 index 0000000..c224ce2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseLicenseAutoActiveOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseLicenseAutoActiveOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseLicenseAutoActiveOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private LicenseAutoActiveOpenApiVo result; + + public OperationResponseLicenseAutoActiveOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseLicenseAutoActiveOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseLicenseAutoActiveOpenApiVo result(LicenseAutoActiveOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public LicenseAutoActiveOpenApiVo getResult() { + return result; + } + + public void setResult(LicenseAutoActiveOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseLicenseAutoActiveOpenApiVo operationResponseLicenseAutoActiveOpenApiVo = (OperationResponseLicenseAutoActiveOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseLicenseAutoActiveOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseLicenseAutoActiveOpenApiVo.msg) && + Objects.equals(this.result, operationResponseLicenseAutoActiveOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseLicenseAutoActiveOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListControllerRoleDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListControllerRoleDetailVo.java new file mode 100644 index 0000000..a9adbc8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListControllerRoleDetailVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListControllerRoleDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseListControllerRoleDetailVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListControllerRoleDetailVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListControllerRoleDetailVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListControllerRoleDetailVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListControllerRoleDetailVo addResultItem(ControllerRoleDetailVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListControllerRoleDetailVo operationResponseListControllerRoleDetailVo = (OperationResponseListControllerRoleDetailVo) o; + return Objects.equals(this.errorCode, operationResponseListControllerRoleDetailVo.errorCode) && + Objects.equals(this.msg, operationResponseListControllerRoleDetailVo.msg) && + Objects.equals(this.result, operationResponseListControllerRoleDetailVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListControllerRoleDetailVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListCustomerInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListCustomerInfoOpenApiVo.java new file mode 100644 index 0000000..3685712 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListCustomerInfoOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListCustomerInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseListCustomerInfoOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListCustomerInfoOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListCustomerInfoOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListCustomerInfoOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListCustomerInfoOpenApiVo addResultItem(CustomerInfoOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListCustomerInfoOpenApiVo operationResponseListCustomerInfoOpenApiVo = (OperationResponseListCustomerInfoOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListCustomerInfoOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListCustomerInfoOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListCustomerInfoOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListCustomerInfoOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListMspRoleDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListMspRoleDetailVo.java new file mode 100644 index 0000000..43e05e7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListMspRoleDetailVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListMspRoleDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseListMspRoleDetailVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListMspRoleDetailVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListMspRoleDetailVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListMspRoleDetailVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListMspRoleDetailVo addResultItem(MspRoleDetailVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListMspRoleDetailVo operationResponseListMspRoleDetailVo = (OperationResponseListMspRoleDetailVo) o; + return Objects.equals(this.errorCode, operationResponseListMspRoleDetailVo.errorCode) && + Objects.equals(this.msg, operationResponseListMspRoleDetailVo.msg) && + Objects.equals(this.result, operationResponseListMspRoleDetailVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListMspRoleDetailVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListTagRespOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListTagRespOpenApiVo.java new file mode 100644 index 0000000..0bb9d67 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListTagRespOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListTagRespOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseListTagRespOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListTagRespOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListTagRespOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListTagRespOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListTagRespOpenApiVo addResultItem(TagRespOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListTagRespOpenApiVo operationResponseListTagRespOpenApiVo = (OperationResponseListTagRespOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListTagRespOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListTagRespOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListTagRespOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListTagRespOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListWebhookSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListWebhookSetting.java new file mode 100644 index 0000000..42c865c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseListWebhookSetting.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListWebhookSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseListWebhookSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListWebhookSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListWebhookSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListWebhookSetting result(List result) { + this.result = result; + return this; + } + + public OperationResponseListWebhookSetting addResultItem(WebhookSetting resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListWebhookSetting operationResponseListWebhookSetting = (OperationResponseListWebhookSetting) o; + return Objects.equals(this.errorCode, operationResponseListWebhookSetting.errorCode) && + Objects.equals(this.msg, operationResponseListWebhookSetting.msg) && + Objects.equals(this.result, operationResponseListWebhookSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListWebhookSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseLogNotificationSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseLogNotificationSettingOpenApiVo.java new file mode 100644 index 0000000..43c72c0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseLogNotificationSettingOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseLogNotificationSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseLogNotificationSettingOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private LogNotificationSettingOpenApiVo result; + + public OperationResponseLogNotificationSettingOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseLogNotificationSettingOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseLogNotificationSettingOpenApiVo result(LogNotificationSettingOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public LogNotificationSettingOpenApiVo getResult() { + return result; + } + + public void setResult(LogNotificationSettingOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseLogNotificationSettingOpenApiVo operationResponseLogNotificationSettingOpenApiVo = (OperationResponseLogNotificationSettingOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseLogNotificationSettingOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseLogNotificationSettingOpenApiVo.msg) && + Objects.equals(this.result, operationResponseLogNotificationSettingOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseLogNotificationSettingOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspGeneralSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspGeneralSettingOpenApiVo.java new file mode 100644 index 0000000..d9b2197 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspGeneralSettingOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseMspGeneralSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseMspGeneralSettingOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private MspGeneralSettingOpenApiVo result; + + public OperationResponseMspGeneralSettingOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseMspGeneralSettingOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseMspGeneralSettingOpenApiVo result(MspGeneralSettingOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public MspGeneralSettingOpenApiVo getResult() { + return result; + } + + public void setResult(MspGeneralSettingOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseMspGeneralSettingOpenApiVo operationResponseMspGeneralSettingOpenApiVo = (OperationResponseMspGeneralSettingOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseMspGeneralSettingOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseMspGeneralSettingOpenApiVo.msg) && + Objects.equals(this.result, operationResponseMspGeneralSettingOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseMspGeneralSettingOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspRoleDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspRoleDetailVo.java new file mode 100644 index 0000000..39f6786 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspRoleDetailVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseMspRoleDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseMspRoleDetailVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private MspRoleDetailVo result; + + public OperationResponseMspRoleDetailVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseMspRoleDetailVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseMspRoleDetailVo result(MspRoleDetailVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public MspRoleDetailVo getResult() { + return result; + } + + public void setResult(MspRoleDetailVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseMspRoleDetailVo operationResponseMspRoleDetailVo = (OperationResponseMspRoleDetailVo) o; + return Objects.equals(this.errorCode, operationResponseMspRoleDetailVo.errorCode) && + Objects.equals(this.msg, operationResponseMspRoleDetailVo.msg) && + Objects.equals(this.result, operationResponseMspRoleDetailVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseMspRoleDetailVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspUiInterfaceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspUiInterfaceOpenApiVo.java new file mode 100644 index 0000000..7920c9a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspUiInterfaceOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseMspUiInterfaceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseMspUiInterfaceOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private MspUiInterfaceOpenApiVo result; + + public OperationResponseMspUiInterfaceOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseMspUiInterfaceOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseMspUiInterfaceOpenApiVo result(MspUiInterfaceOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public MspUiInterfaceOpenApiVo getResult() { + return result; + } + + public void setResult(MspUiInterfaceOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseMspUiInterfaceOpenApiVo operationResponseMspUiInterfaceOpenApiVo = (OperationResponseMspUiInterfaceOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseMspUiInterfaceOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseMspUiInterfaceOpenApiVo.msg) && + Objects.equals(this.result, operationResponseMspUiInterfaceOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseMspUiInterfaceOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspUserDetailVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspUserDetailVo.java new file mode 100644 index 0000000..983c234 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseMspUserDetailVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseMspUserDetailVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseMspUserDetailVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private MspUserDetailVo result; + + public OperationResponseMspUserDetailVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseMspUserDetailVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseMspUserDetailVo result(MspUserDetailVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public MspUserDetailVo getResult() { + return result; + } + + public void setResult(MspUserDetailVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseMspUserDetailVo operationResponseMspUserDetailVo = (OperationResponseMspUserDetailVo) o; + return Objects.equals(this.errorCode, operationResponseMspUserDetailVo.errorCode) && + Objects.equals(this.msg, operationResponseMspUserDetailVo.msg) && + Objects.equals(this.result, operationResponseMspUserDetailVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseMspUserDetailVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseObject.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseObject.java new file mode 100644 index 0000000..1708884 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseObject.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseObject + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseObject { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private Object result; + + public OperationResponseObject errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseObject msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseObject result(Object result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getResult() { + return result; + } + + public void setResult(Object result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseObject operationResponseObject = (OperationResponseObject) o; + return Objects.equals(this.errorCode, operationResponseObject.errorCode) && + Objects.equals(this.msg, operationResponseObject.msg) && + Objects.equals(this.result, operationResponseObject.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseObject {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseResponseIdVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseResponseIdVo.java new file mode 100644 index 0000000..f8eb9b1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseResponseIdVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseResponseIdVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseResponseIdVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ResponseIdVo result; + + public OperationResponseResponseIdVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseResponseIdVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseResponseIdVo result(ResponseIdVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ResponseIdVo getResult() { + return result; + } + + public void setResult(ResponseIdVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseResponseIdVo operationResponseResponseIdVo = (OperationResponseResponseIdVo) o; + return Objects.equals(this.errorCode, operationResponseResponseIdVo.errorCode) && + Objects.equals(this.msg, operationResponseResponseIdVo.msg) && + Objects.equals(this.result, operationResponseResponseIdVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseResponseIdVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseWithoutResult.java new file mode 100644 index 0000000..3b1bd4a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/OperationResponseWithoutResult.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class OperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public OperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseWithoutResult.msg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/RequestActionEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/RequestActionEntity.java new file mode 100644 index 0000000..0ea6e47 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/RequestActionEntity.java @@ -0,0 +1,156 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list + */ +@ApiModel(description = "List of OpenAPIs that require batch execution. Up to 20 entries are allowed for the action list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class RequestActionEntity { + @JsonProperty("path") + private String path; + + @JsonProperty("method") + private String method; + + @JsonProperty("body") + private String body; + + @JsonProperty("query") + private String query; + + public RequestActionEntity path(String path) { + this.path = path; + return this; + } + + /** + * OpenAPI request path. Same as regular OpenAPI, file upload and download are not supported. + * @return path + */ + @ApiModelProperty(required = true, value = "OpenAPI request path. Same as regular OpenAPI, file upload and download are not supported.") + @NotNull + + + public String getPath() { + return path; + } + + public void setPath(String path) { + this.path = path; + } + + public RequestActionEntity method(String method) { + this.method = method; + return this; + } + + /** + * OpenAPI request method. Same as regular OpenAPI, it should be a value as follows: POST, PATCH, PUT, DELETE. + * @return method + */ + @ApiModelProperty(required = true, value = "OpenAPI request method. Same as regular OpenAPI, it should be a value as follows: POST, PATCH, PUT, DELETE.") + @NotNull + + + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + public RequestActionEntity body(String body) { + this.body = body; + return this; + } + + /** + * OpenAPI request body, same as regular OpenAPI. Should be a JSON object but not a string. + * @return body + */ + @ApiModelProperty(value = "OpenAPI request body, same as regular OpenAPI. Should be a JSON object but not a string.") + + + public String getBody() { + return body; + } + + public void setBody(String body) { + this.body = body; + } + + public RequestActionEntity query(String query) { + this.query = query; + return this; + } + + /** + * OpenAPI request query of the path, same as regular OpenAPI. + * @return query + */ + @ApiModelProperty(value = "OpenAPI request query of the path, same as regular OpenAPI.") + + + public String getQuery() { + return query; + } + + public void setQuery(String query) { + this.query = query; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RequestActionEntity requestActionEntity = (RequestActionEntity) o; + return Objects.equals(this.path, requestActionEntity.path) && + Objects.equals(this.method, requestActionEntity.method) && + Objects.equals(this.body, requestActionEntity.body) && + Objects.equals(this.query, requestActionEntity.query); + } + + @Override + public int hashCode() { + return Objects.hash(path, method, body, query); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RequestActionEntity {\n"); + + sb.append(" path: ").append(toIndentedString(path)).append("\n"); + sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" body: ").append(toIndentedString(body)).append("\n"); + sb.append(" query: ").append(toIndentedString(query)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ResponseIdVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ResponseIdVo.java new file mode 100644 index 0000000..778a560 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/ResponseIdVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ResponseIdVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class ResponseIdVo { + @JsonProperty("id") + private String id; + + public ResponseIdVo id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @ApiModelProperty(value = "") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseIdVo responseIdVo = (ResponseIdVo) o; + return Objects.equals(this.id, responseIdVo.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseIdVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/RoleVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/RoleVo.java new file mode 100644 index 0000000..89e46c4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/RoleVo.java @@ -0,0 +1,1378 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Role privilege + */ +@ApiModel(description = "Role privilege") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class RoleVo { + @JsonProperty("mspDashboard") + private Integer mspDashboard; + + @JsonProperty("mspDevice") + private Integer mspDevice; + + @JsonProperty("mspLog") + private Integer mspLog; + + @JsonProperty("mspLicense") + private Integer mspLicense; + + @JsonProperty("mspLicenseBind") + private Integer mspLicenseBind; + + @JsonProperty("mspUsers") + private Integer mspUsers; + + @JsonProperty("mspRoles") + private Integer mspRoles; + + @JsonProperty("mspSamlUsers") + private Integer mspSamlUsers; + + @JsonProperty("mspSamlRoles") + private Integer mspSamlRoles; + + @JsonProperty("mspSamlSsos") + private Integer mspSamlSsos; + + @JsonProperty("mspSetting") + private Integer mspSetting; + + @JsonProperty("mspExportData") + private Integer mspExportData; + + @JsonProperty("mspAdopt") + private Integer mspAdopt; + + @JsonProperty("mspAddDevices") + private Integer mspAddDevices; + + @JsonProperty("mspAddAdoptDevice") + private Integer mspAddAdoptDevice; + + @JsonProperty("mspWebhook") + private Integer mspWebhook; + + @JsonProperty("mspSites") + private Integer mspSites; + + @JsonProperty("globalDashboard") + private Integer globalDashboard; + + @JsonProperty("dashboard") + private Integer dashboard; + + @JsonProperty("devices") + private Integer devices; + + @JsonProperty("adopt") + private Integer adopt; + + @JsonProperty("addDevices") + private Integer addDevices; + + @JsonProperty("addAdoptDevice") + private Integer addAdoptDevice; + + @JsonProperty("globalLog") + private Integer globalLog; + + @JsonProperty("manualUpgrade") + private Integer manualUpgrade; + + @JsonProperty("log") + private Integer log; + + @JsonProperty("license") + private Integer license; + + @JsonProperty("licenseBind") + private Integer licenseBind; + + @JsonProperty("users") + private Integer users; + + @JsonProperty("roles") + private Integer roles; + + @JsonProperty("samlUsers") + private Integer samlUsers; + + @JsonProperty("samlRoles") + private Integer samlRoles; + + @JsonProperty("samlSsos") + private Integer samlSsos; + + @JsonProperty("globalSetting") + private Integer globalSetting; + + @JsonProperty("exportData") + private Integer exportData; + + @JsonProperty("globalExportData") + private Integer globalExportData; + + @JsonProperty("exportGlobalLog") + private Integer exportGlobalLog; + + @JsonProperty("hotspot") + private Integer hotspot; + + @JsonProperty("statics") + private Integer statics; + + @JsonProperty("map") + private Integer map; + + @JsonProperty("clients") + private Integer clients; + + @JsonProperty("insight") + private Integer insight; + + @JsonProperty("report") + private Integer report; + + @JsonProperty("network") + private Integer network; + + @JsonProperty("deviceAccount") + private Integer deviceAccount; + + @JsonProperty("anomaly") + private Integer anomaly; + + @JsonProperty("analyze") + private Integer analyze; + + @JsonProperty("siteAnalyze") + private Integer siteAnalyze; + + @JsonProperty("globalSecurity") + private Integer globalSecurity; + + @JsonProperty("globalWebhook") + private Integer globalWebhook; + + @JsonProperty("globalMapToken") + private Integer globalMapToken; + + @JsonProperty("siteTemplate") + private Integer siteTemplate; + + @JsonProperty("globalFirmware") + private Integer globalFirmware; + + public RoleVo mspDashboard(Integer mspDashboard) { + this.mspDashboard = mspDashboard; + return this; + } + + /** + * msp dashboard + * @return mspDashboard + */ + @ApiModelProperty(value = "msp dashboard") + + + public Integer getMspDashboard() { + return mspDashboard; + } + + public void setMspDashboard(Integer mspDashboard) { + this.mspDashboard = mspDashboard; + } + + public RoleVo mspDevice(Integer mspDevice) { + this.mspDevice = mspDevice; + return this; + } + + /** + * msp device + * @return mspDevice + */ + @ApiModelProperty(value = "msp device") + + + public Integer getMspDevice() { + return mspDevice; + } + + public void setMspDevice(Integer mspDevice) { + this.mspDevice = mspDevice; + } + + public RoleVo mspLog(Integer mspLog) { + this.mspLog = mspLog; + return this; + } + + /** + * msp log + * @return mspLog + */ + @ApiModelProperty(value = "msp log") + + + public Integer getMspLog() { + return mspLog; + } + + public void setMspLog(Integer mspLog) { + this.mspLog = mspLog; + } + + public RoleVo mspLicense(Integer mspLicense) { + this.mspLicense = mspLicense; + return this; + } + + /** + * msp license + * @return mspLicense + */ + @ApiModelProperty(value = "msp license") + + + public Integer getMspLicense() { + return mspLicense; + } + + public void setMspLicense(Integer mspLicense) { + this.mspLicense = mspLicense; + } + + public RoleVo mspLicenseBind(Integer mspLicenseBind) { + this.mspLicenseBind = mspLicenseBind; + return this; + } + + /** + * msp license bind + * @return mspLicenseBind + */ + @ApiModelProperty(value = "msp license bind") + + + public Integer getMspLicenseBind() { + return mspLicenseBind; + } + + public void setMspLicenseBind(Integer mspLicenseBind) { + this.mspLicenseBind = mspLicenseBind; + } + + public RoleVo mspUsers(Integer mspUsers) { + this.mspUsers = mspUsers; + return this; + } + + /** + * msp user + * @return mspUsers + */ + @ApiModelProperty(value = "msp user") + + + public Integer getMspUsers() { + return mspUsers; + } + + public void setMspUsers(Integer mspUsers) { + this.mspUsers = mspUsers; + } + + public RoleVo mspRoles(Integer mspRoles) { + this.mspRoles = mspRoles; + return this; + } + + /** + * msp role + * @return mspRoles + */ + @ApiModelProperty(value = "msp role") + + + public Integer getMspRoles() { + return mspRoles; + } + + public void setMspRoles(Integer mspRoles) { + this.mspRoles = mspRoles; + } + + public RoleVo mspSamlUsers(Integer mspSamlUsers) { + this.mspSamlUsers = mspSamlUsers; + return this; + } + + /** + * saml users in msp view + * @return mspSamlUsers + */ + @ApiModelProperty(value = "saml users in msp view") + + + public Integer getMspSamlUsers() { + return mspSamlUsers; + } + + public void setMspSamlUsers(Integer mspSamlUsers) { + this.mspSamlUsers = mspSamlUsers; + } + + public RoleVo mspSamlRoles(Integer mspSamlRoles) { + this.mspSamlRoles = mspSamlRoles; + return this; + } + + /** + * saml roles in msp view + * @return mspSamlRoles + */ + @ApiModelProperty(value = "saml roles in msp view") + + + public Integer getMspSamlRoles() { + return mspSamlRoles; + } + + public void setMspSamlRoles(Integer mspSamlRoles) { + this.mspSamlRoles = mspSamlRoles; + } + + public RoleVo mspSamlSsos(Integer mspSamlSsos) { + this.mspSamlSsos = mspSamlSsos; + return this; + } + + /** + * saml ssos in msp view + * @return mspSamlSsos + */ + @ApiModelProperty(value = "saml ssos in msp view") + + + public Integer getMspSamlSsos() { + return mspSamlSsos; + } + + public void setMspSamlSsos(Integer mspSamlSsos) { + this.mspSamlSsos = mspSamlSsos; + } + + public RoleVo mspSetting(Integer mspSetting) { + this.mspSetting = mspSetting; + return this; + } + + /** + * msp setting + * @return mspSetting + */ + @ApiModelProperty(value = "msp setting") + + + public Integer getMspSetting() { + return mspSetting; + } + + public void setMspSetting(Integer mspSetting) { + this.mspSetting = mspSetting; + } + + public RoleVo mspExportData(Integer mspExportData) { + this.mspExportData = mspExportData; + return this; + } + + /** + * export data in msp view + * @return mspExportData + */ + @ApiModelProperty(value = "export data in msp view") + + + public Integer getMspExportData() { + return mspExportData; + } + + public void setMspExportData(Integer mspExportData) { + this.mspExportData = mspExportData; + } + + public RoleVo mspAdopt(Integer mspAdopt) { + this.mspAdopt = mspAdopt; + return this; + } + + /** + * msp adopt in msp view + * @return mspAdopt + */ + @ApiModelProperty(value = "msp adopt in msp view") + + + public Integer getMspAdopt() { + return mspAdopt; + } + + public void setMspAdopt(Integer mspAdopt) { + this.mspAdopt = mspAdopt; + } + + public RoleVo mspAddDevices(Integer mspAddDevices) { + this.mspAddDevices = mspAddDevices; + return this; + } + + /** + * msp add devices in msp view + * @return mspAddDevices + */ + @ApiModelProperty(value = "msp add devices in msp view") + + + public Integer getMspAddDevices() { + return mspAddDevices; + } + + public void setMspAddDevices(Integer mspAddDevices) { + this.mspAddDevices = mspAddDevices; + } + + public RoleVo mspAddAdoptDevice(Integer mspAddAdoptDevice) { + this.mspAddAdoptDevice = mspAddAdoptDevice; + return this; + } + + /** + * msp add and adopt devices in msp view + * @return mspAddAdoptDevice + */ + @ApiModelProperty(value = "msp add and adopt devices in msp view") + + + public Integer getMspAddAdoptDevice() { + return mspAddAdoptDevice; + } + + public void setMspAddAdoptDevice(Integer mspAddAdoptDevice) { + this.mspAddAdoptDevice = mspAddAdoptDevice; + } + + public RoleVo mspWebhook(Integer mspWebhook) { + this.mspWebhook = mspWebhook; + return this; + } + + /** + * msp webhook in msp view + * @return mspWebhook + */ + @ApiModelProperty(value = "msp webhook in msp view") + + + public Integer getMspWebhook() { + return mspWebhook; + } + + public void setMspWebhook(Integer mspWebhook) { + this.mspWebhook = mspWebhook; + } + + public RoleVo mspSites(Integer mspSites) { + this.mspSites = mspSites; + return this; + } + + /** + * msp sites in msp view + * @return mspSites + */ + @ApiModelProperty(value = "msp sites in msp view") + + + public Integer getMspSites() { + return mspSites; + } + + public void setMspSites(Integer mspSites) { + this.mspSites = mspSites; + } + + public RoleVo globalDashboard(Integer globalDashboard) { + this.globalDashboard = globalDashboard; + return this; + } + + /** + * dashboard in global view + * @return globalDashboard + */ + @ApiModelProperty(value = "dashboard in global view") + + + public Integer getGlobalDashboard() { + return globalDashboard; + } + + public void setGlobalDashboard(Integer globalDashboard) { + this.globalDashboard = globalDashboard; + } + + public RoleVo dashboard(Integer dashboard) { + this.dashboard = dashboard; + return this; + } + + /** + * dashboard + * @return dashboard + */ + @ApiModelProperty(value = "dashboard") + + + public Integer getDashboard() { + return dashboard; + } + + public void setDashboard(Integer dashboard) { + this.dashboard = dashboard; + } + + public RoleVo devices(Integer devices) { + this.devices = devices; + return this; + } + + /** + * devices + * @return devices + */ + @ApiModelProperty(value = "devices") + + + public Integer getDevices() { + return devices; + } + + public void setDevices(Integer devices) { + this.devices = devices; + } + + public RoleVo adopt(Integer adopt) { + this.adopt = adopt; + return this; + } + + /** + * adopt + * @return adopt + */ + @ApiModelProperty(value = "adopt") + + + public Integer getAdopt() { + return adopt; + } + + public void setAdopt(Integer adopt) { + this.adopt = adopt; + } + + public RoleVo addDevices(Integer addDevices) { + this.addDevices = addDevices; + return this; + } + + /** + * add devices in global/customer view + * @return addDevices + */ + @ApiModelProperty(value = "add devices in global/customer view") + + + public Integer getAddDevices() { + return addDevices; + } + + public void setAddDevices(Integer addDevices) { + this.addDevices = addDevices; + } + + public RoleVo addAdoptDevice(Integer addAdoptDevice) { + this.addAdoptDevice = addAdoptDevice; + return this; + } + + /** + * add and adopt devices in global/customer view + * @return addAdoptDevice + */ + @ApiModelProperty(value = "add and adopt devices in global/customer view") + + + public Integer getAddAdoptDevice() { + return addAdoptDevice; + } + + public void setAddAdoptDevice(Integer addAdoptDevice) { + this.addAdoptDevice = addAdoptDevice; + } + + public RoleVo globalLog(Integer globalLog) { + this.globalLog = globalLog; + return this; + } + + /** + * log in global view + * @return globalLog + */ + @ApiModelProperty(value = "log in global view") + + + public Integer getGlobalLog() { + return globalLog; + } + + public void setGlobalLog(Integer globalLog) { + this.globalLog = globalLog; + } + + public RoleVo manualUpgrade(Integer manualUpgrade) { + this.manualUpgrade = manualUpgrade; + return this; + } + + /** + * manual upgrade in global view + * @return manualUpgrade + */ + @ApiModelProperty(value = "manual upgrade in global view") + + + public Integer getManualUpgrade() { + return manualUpgrade; + } + + public void setManualUpgrade(Integer manualUpgrade) { + this.manualUpgrade = manualUpgrade; + } + + public RoleVo log(Integer log) { + this.log = log; + return this; + } + + /** + * log in site view + * @return log + */ + @ApiModelProperty(value = "log in site view") + + + public Integer getLog() { + return log; + } + + public void setLog(Integer log) { + this.log = log; + } + + public RoleVo license(Integer license) { + this.license = license; + return this; + } + + /** + * license + * @return license + */ + @ApiModelProperty(value = "license") + + + public Integer getLicense() { + return license; + } + + public void setLicense(Integer license) { + this.license = license; + } + + public RoleVo licenseBind(Integer licenseBind) { + this.licenseBind = licenseBind; + return this; + } + + /** + * license bind + * @return licenseBind + */ + @ApiModelProperty(value = "license bind") + + + public Integer getLicenseBind() { + return licenseBind; + } + + public void setLicenseBind(Integer licenseBind) { + this.licenseBind = licenseBind; + } + + public RoleVo users(Integer users) { + this.users = users; + return this; + } + + /** + * users in global view + * @return users + */ + @ApiModelProperty(value = "users in global view") + + + public Integer getUsers() { + return users; + } + + public void setUsers(Integer users) { + this.users = users; + } + + public RoleVo roles(Integer roles) { + this.roles = roles; + return this; + } + + /** + * roles in global view + * @return roles + */ + @ApiModelProperty(value = "roles in global view") + + + public Integer getRoles() { + return roles; + } + + public void setRoles(Integer roles) { + this.roles = roles; + } + + public RoleVo samlUsers(Integer samlUsers) { + this.samlUsers = samlUsers; + return this; + } + + /** + * saml users in global view + * @return samlUsers + */ + @ApiModelProperty(value = "saml users in global view") + + + public Integer getSamlUsers() { + return samlUsers; + } + + public void setSamlUsers(Integer samlUsers) { + this.samlUsers = samlUsers; + } + + public RoleVo samlRoles(Integer samlRoles) { + this.samlRoles = samlRoles; + return this; + } + + /** + * saml roles in global view + * @return samlRoles + */ + @ApiModelProperty(value = "saml roles in global view") + + + public Integer getSamlRoles() { + return samlRoles; + } + + public void setSamlRoles(Integer samlRoles) { + this.samlRoles = samlRoles; + } + + public RoleVo samlSsos(Integer samlSsos) { + this.samlSsos = samlSsos; + return this; + } + + /** + * saml ssos in global view + * @return samlSsos + */ + @ApiModelProperty(value = "saml ssos in global view") + + + public Integer getSamlSsos() { + return samlSsos; + } + + public void setSamlSsos(Integer samlSsos) { + this.samlSsos = samlSsos; + } + + public RoleVo globalSetting(Integer globalSetting) { + this.globalSetting = globalSetting; + return this; + } + + /** + * settings in global view + * @return globalSetting + */ + @ApiModelProperty(value = "settings in global view") + + + public Integer getGlobalSetting() { + return globalSetting; + } + + public void setGlobalSetting(Integer globalSetting) { + this.globalSetting = globalSetting; + } + + public RoleVo exportData(Integer exportData) { + this.exportData = exportData; + return this; + } + + /** + * export data in site view + * @return exportData + */ + @ApiModelProperty(value = "export data in site view") + + + public Integer getExportData() { + return exportData; + } + + public void setExportData(Integer exportData) { + this.exportData = exportData; + } + + public RoleVo globalExportData(Integer globalExportData) { + this.globalExportData = globalExportData; + return this; + } + + /** + * export data in global view + * @return globalExportData + */ + @ApiModelProperty(value = "export data in global view") + + + public Integer getGlobalExportData() { + return globalExportData; + } + + public void setGlobalExportData(Integer globalExportData) { + this.globalExportData = globalExportData; + } + + public RoleVo exportGlobalLog(Integer exportGlobalLog) { + this.exportGlobalLog = exportGlobalLog; + return this; + } + + /** + * export global log data in global view + * @return exportGlobalLog + */ + @ApiModelProperty(value = "export global log data in global view") + + + public Integer getExportGlobalLog() { + return exportGlobalLog; + } + + public void setExportGlobalLog(Integer exportGlobalLog) { + this.exportGlobalLog = exportGlobalLog; + } + + public RoleVo hotspot(Integer hotspot) { + this.hotspot = hotspot; + return this; + } + + /** + * hotspot + * @return hotspot + */ + @ApiModelProperty(value = "hotspot") + + + public Integer getHotspot() { + return hotspot; + } + + public void setHotspot(Integer hotspot) { + this.hotspot = hotspot; + } + + public RoleVo statics(Integer statics) { + this.statics = statics; + return this; + } + + /** + * statics + * @return statics + */ + @ApiModelProperty(value = "statics") + + + public Integer getStatics() { + return statics; + } + + public void setStatics(Integer statics) { + this.statics = statics; + } + + public RoleVo map(Integer map) { + this.map = map; + return this; + } + + /** + * map + * @return map + */ + @ApiModelProperty(value = "map") + + + public Integer getMap() { + return map; + } + + public void setMap(Integer map) { + this.map = map; + } + + public RoleVo clients(Integer clients) { + this.clients = clients; + return this; + } + + /** + * clients + * @return clients + */ + @ApiModelProperty(value = "clients") + + + public Integer getClients() { + return clients; + } + + public void setClients(Integer clients) { + this.clients = clients; + } + + public RoleVo insight(Integer insight) { + this.insight = insight; + return this; + } + + /** + * insight + * @return insight + */ + @ApiModelProperty(value = "insight") + + + public Integer getInsight() { + return insight; + } + + public void setInsight(Integer insight) { + this.insight = insight; + } + + public RoleVo report(Integer report) { + this.report = report; + return this; + } + + /** + * network report + * @return report + */ + @ApiModelProperty(value = "network report") + + + public Integer getReport() { + return report; + } + + public void setReport(Integer report) { + this.report = report; + } + + public RoleVo network(Integer network) { + this.network = network; + return this; + } + + /** + * site network settings + * @return network + */ + @ApiModelProperty(value = "site network settings") + + + public Integer getNetwork() { + return network; + } + + public void setNetwork(Integer network) { + this.network = network; + } + + public RoleVo deviceAccount(Integer deviceAccount) { + this.deviceAccount = deviceAccount; + return this; + } + + /** + * device account + * @return deviceAccount + */ + @ApiModelProperty(value = "device account") + + + public Integer getDeviceAccount() { + return deviceAccount; + } + + public void setDeviceAccount(Integer deviceAccount) { + this.deviceAccount = deviceAccount; + } + + public RoleVo anomaly(Integer anomaly) { + this.anomaly = anomaly; + return this; + } + + /** + * anomaly + * @return anomaly + */ + @ApiModelProperty(value = "anomaly") + + + public Integer getAnomaly() { + return anomaly; + } + + public void setAnomaly(Integer anomaly) { + this.anomaly = anomaly; + } + + public RoleVo analyze(Integer analyze) { + this.analyze = analyze; + return this; + } + + /** + * analyze + * @return analyze + */ + @ApiModelProperty(value = "analyze") + + + public Integer getAnalyze() { + return analyze; + } + + public void setAnalyze(Integer analyze) { + this.analyze = analyze; + } + + public RoleVo siteAnalyze(Integer siteAnalyze) { + this.siteAnalyze = siteAnalyze; + return this; + } + + /** + * analyze in site view + * @return siteAnalyze + */ + @ApiModelProperty(value = "analyze in site view") + + + public Integer getSiteAnalyze() { + return siteAnalyze; + } + + public void setSiteAnalyze(Integer siteAnalyze) { + this.siteAnalyze = siteAnalyze; + } + + public RoleVo globalSecurity(Integer globalSecurity) { + this.globalSecurity = globalSecurity; + return this; + } + + /** + * security + * @return globalSecurity + */ + @ApiModelProperty(value = "security") + + + public Integer getGlobalSecurity() { + return globalSecurity; + } + + public void setGlobalSecurity(Integer globalSecurity) { + this.globalSecurity = globalSecurity; + } + + public RoleVo globalWebhook(Integer globalWebhook) { + this.globalWebhook = globalWebhook; + return this; + } + + /** + * Webhook + * @return globalWebhook + */ + @ApiModelProperty(value = "Webhook") + + + public Integer getGlobalWebhook() { + return globalWebhook; + } + + public void setGlobalWebhook(Integer globalWebhook) { + this.globalWebhook = globalWebhook; + } + + public RoleVo globalMapToken(Integer globalMapToken) { + this.globalMapToken = globalMapToken; + return this; + } + + /** + * Map Token + * @return globalMapToken + */ + @ApiModelProperty(value = "Map Token") + + + public Integer getGlobalMapToken() { + return globalMapToken; + } + + public void setGlobalMapToken(Integer globalMapToken) { + this.globalMapToken = globalMapToken; + } + + public RoleVo siteTemplate(Integer siteTemplate) { + this.siteTemplate = siteTemplate; + return this; + } + + /** + * Site Template + * @return siteTemplate + */ + @ApiModelProperty(value = "Site Template") + + + public Integer getSiteTemplate() { + return siteTemplate; + } + + public void setSiteTemplate(Integer siteTemplate) { + this.siteTemplate = siteTemplate; + } + + public RoleVo globalFirmware(Integer globalFirmware) { + this.globalFirmware = globalFirmware; + return this; + } + + /** + * Firmware Manager + * @return globalFirmware + */ + @ApiModelProperty(value = "Firmware Manager") + + + public Integer getGlobalFirmware() { + return globalFirmware; + } + + public void setGlobalFirmware(Integer globalFirmware) { + this.globalFirmware = globalFirmware; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RoleVo roleVo = (RoleVo) o; + return Objects.equals(this.mspDashboard, roleVo.mspDashboard) && + Objects.equals(this.mspDevice, roleVo.mspDevice) && + Objects.equals(this.mspLog, roleVo.mspLog) && + Objects.equals(this.mspLicense, roleVo.mspLicense) && + Objects.equals(this.mspLicenseBind, roleVo.mspLicenseBind) && + Objects.equals(this.mspUsers, roleVo.mspUsers) && + Objects.equals(this.mspRoles, roleVo.mspRoles) && + Objects.equals(this.mspSamlUsers, roleVo.mspSamlUsers) && + Objects.equals(this.mspSamlRoles, roleVo.mspSamlRoles) && + Objects.equals(this.mspSamlSsos, roleVo.mspSamlSsos) && + Objects.equals(this.mspSetting, roleVo.mspSetting) && + Objects.equals(this.mspExportData, roleVo.mspExportData) && + Objects.equals(this.mspAdopt, roleVo.mspAdopt) && + Objects.equals(this.mspAddDevices, roleVo.mspAddDevices) && + Objects.equals(this.mspAddAdoptDevice, roleVo.mspAddAdoptDevice) && + Objects.equals(this.mspWebhook, roleVo.mspWebhook) && + Objects.equals(this.mspSites, roleVo.mspSites) && + Objects.equals(this.globalDashboard, roleVo.globalDashboard) && + Objects.equals(this.dashboard, roleVo.dashboard) && + Objects.equals(this.devices, roleVo.devices) && + Objects.equals(this.adopt, roleVo.adopt) && + Objects.equals(this.addDevices, roleVo.addDevices) && + Objects.equals(this.addAdoptDevice, roleVo.addAdoptDevice) && + Objects.equals(this.globalLog, roleVo.globalLog) && + Objects.equals(this.manualUpgrade, roleVo.manualUpgrade) && + Objects.equals(this.log, roleVo.log) && + Objects.equals(this.license, roleVo.license) && + Objects.equals(this.licenseBind, roleVo.licenseBind) && + Objects.equals(this.users, roleVo.users) && + Objects.equals(this.roles, roleVo.roles) && + Objects.equals(this.samlUsers, roleVo.samlUsers) && + Objects.equals(this.samlRoles, roleVo.samlRoles) && + Objects.equals(this.samlSsos, roleVo.samlSsos) && + Objects.equals(this.globalSetting, roleVo.globalSetting) && + Objects.equals(this.exportData, roleVo.exportData) && + Objects.equals(this.globalExportData, roleVo.globalExportData) && + Objects.equals(this.exportGlobalLog, roleVo.exportGlobalLog) && + Objects.equals(this.hotspot, roleVo.hotspot) && + Objects.equals(this.statics, roleVo.statics) && + Objects.equals(this.map, roleVo.map) && + Objects.equals(this.clients, roleVo.clients) && + Objects.equals(this.insight, roleVo.insight) && + Objects.equals(this.report, roleVo.report) && + Objects.equals(this.network, roleVo.network) && + Objects.equals(this.deviceAccount, roleVo.deviceAccount) && + Objects.equals(this.anomaly, roleVo.anomaly) && + Objects.equals(this.analyze, roleVo.analyze) && + Objects.equals(this.siteAnalyze, roleVo.siteAnalyze) && + Objects.equals(this.globalSecurity, roleVo.globalSecurity) && + Objects.equals(this.globalWebhook, roleVo.globalWebhook) && + Objects.equals(this.globalMapToken, roleVo.globalMapToken) && + Objects.equals(this.siteTemplate, roleVo.siteTemplate) && + Objects.equals(this.globalFirmware, roleVo.globalFirmware); + } + + @Override + public int hashCode() { + return Objects.hash(mspDashboard, mspDevice, mspLog, mspLicense, mspLicenseBind, mspUsers, mspRoles, mspSamlUsers, mspSamlRoles, mspSamlSsos, mspSetting, mspExportData, mspAdopt, mspAddDevices, mspAddAdoptDevice, mspWebhook, mspSites, globalDashboard, dashboard, devices, adopt, addDevices, addAdoptDevice, globalLog, manualUpgrade, log, license, licenseBind, users, roles, samlUsers, samlRoles, samlSsos, globalSetting, exportData, globalExportData, exportGlobalLog, hotspot, statics, map, clients, insight, report, network, deviceAccount, anomaly, analyze, siteAnalyze, globalSecurity, globalWebhook, globalMapToken, siteTemplate, globalFirmware); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RoleVo {\n"); + + sb.append(" mspDashboard: ").append(toIndentedString(mspDashboard)).append("\n"); + sb.append(" mspDevice: ").append(toIndentedString(mspDevice)).append("\n"); + sb.append(" mspLog: ").append(toIndentedString(mspLog)).append("\n"); + sb.append(" mspLicense: ").append(toIndentedString(mspLicense)).append("\n"); + sb.append(" mspLicenseBind: ").append(toIndentedString(mspLicenseBind)).append("\n"); + sb.append(" mspUsers: ").append(toIndentedString(mspUsers)).append("\n"); + sb.append(" mspRoles: ").append(toIndentedString(mspRoles)).append("\n"); + sb.append(" mspSamlUsers: ").append(toIndentedString(mspSamlUsers)).append("\n"); + sb.append(" mspSamlRoles: ").append(toIndentedString(mspSamlRoles)).append("\n"); + sb.append(" mspSamlSsos: ").append(toIndentedString(mspSamlSsos)).append("\n"); + sb.append(" mspSetting: ").append(toIndentedString(mspSetting)).append("\n"); + sb.append(" mspExportData: ").append(toIndentedString(mspExportData)).append("\n"); + sb.append(" mspAdopt: ").append(toIndentedString(mspAdopt)).append("\n"); + sb.append(" mspAddDevices: ").append(toIndentedString(mspAddDevices)).append("\n"); + sb.append(" mspAddAdoptDevice: ").append(toIndentedString(mspAddAdoptDevice)).append("\n"); + sb.append(" mspWebhook: ").append(toIndentedString(mspWebhook)).append("\n"); + sb.append(" mspSites: ").append(toIndentedString(mspSites)).append("\n"); + sb.append(" globalDashboard: ").append(toIndentedString(globalDashboard)).append("\n"); + sb.append(" dashboard: ").append(toIndentedString(dashboard)).append("\n"); + sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); + sb.append(" adopt: ").append(toIndentedString(adopt)).append("\n"); + sb.append(" addDevices: ").append(toIndentedString(addDevices)).append("\n"); + sb.append(" addAdoptDevice: ").append(toIndentedString(addAdoptDevice)).append("\n"); + sb.append(" globalLog: ").append(toIndentedString(globalLog)).append("\n"); + sb.append(" manualUpgrade: ").append(toIndentedString(manualUpgrade)).append("\n"); + sb.append(" log: ").append(toIndentedString(log)).append("\n"); + sb.append(" license: ").append(toIndentedString(license)).append("\n"); + sb.append(" licenseBind: ").append(toIndentedString(licenseBind)).append("\n"); + sb.append(" users: ").append(toIndentedString(users)).append("\n"); + sb.append(" roles: ").append(toIndentedString(roles)).append("\n"); + sb.append(" samlUsers: ").append(toIndentedString(samlUsers)).append("\n"); + sb.append(" samlRoles: ").append(toIndentedString(samlRoles)).append("\n"); + sb.append(" samlSsos: ").append(toIndentedString(samlSsos)).append("\n"); + sb.append(" globalSetting: ").append(toIndentedString(globalSetting)).append("\n"); + sb.append(" exportData: ").append(toIndentedString(exportData)).append("\n"); + sb.append(" globalExportData: ").append(toIndentedString(globalExportData)).append("\n"); + sb.append(" exportGlobalLog: ").append(toIndentedString(exportGlobalLog)).append("\n"); + sb.append(" hotspot: ").append(toIndentedString(hotspot)).append("\n"); + sb.append(" statics: ").append(toIndentedString(statics)).append("\n"); + sb.append(" map: ").append(toIndentedString(map)).append("\n"); + sb.append(" clients: ").append(toIndentedString(clients)).append("\n"); + sb.append(" insight: ").append(toIndentedString(insight)).append("\n"); + sb.append(" report: ").append(toIndentedString(report)).append("\n"); + sb.append(" network: ").append(toIndentedString(network)).append("\n"); + sb.append(" deviceAccount: ").append(toIndentedString(deviceAccount)).append("\n"); + sb.append(" anomaly: ").append(toIndentedString(anomaly)).append("\n"); + sb.append(" analyze: ").append(toIndentedString(analyze)).append("\n"); + sb.append(" siteAnalyze: ").append(toIndentedString(siteAnalyze)).append("\n"); + sb.append(" globalSecurity: ").append(toIndentedString(globalSecurity)).append("\n"); + sb.append(" globalWebhook: ").append(toIndentedString(globalWebhook)).append("\n"); + sb.append(" globalMapToken: ").append(toIndentedString(globalMapToken)).append("\n"); + sb.append(" siteTemplate: ").append(toIndentedString(siteTemplate)).append("\n"); + sb.append(" globalFirmware: ").append(toIndentedString(globalFirmware)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/SiteSummaryInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/SiteSummaryInfo.java new file mode 100644 index 0000000..2896658 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/SiteSummaryInfo.java @@ -0,0 +1,563 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SiteSummaryInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class SiteSummaryInfo { + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("siteName") + private String siteName; + + @JsonProperty("tagIds") + @Valid + private List tagIds = null; + + @JsonProperty("customerId") + private String customerId; + + @JsonProperty("customerName") + private String customerName; + + @JsonProperty("region") + private String region; + + @JsonProperty("timeZone") + private String timeZone; + + @JsonProperty("scenario") + private String scenario; + + @JsonProperty("longitude") + private Double longitude; + + @JsonProperty("latitude") + private Double latitude; + + @JsonProperty("address") + private String address; + + @JsonProperty("wan") + private Boolean wan; + + @JsonProperty("connectedApNum") + private Long connectedApNum; + + @JsonProperty("disconnectedApNum") + private Long disconnectedApNum; + + @JsonProperty("isolatedApNum") + private Long isolatedApNum; + + @JsonProperty("connectedSwitchNum") + private Long connectedSwitchNum; + + @JsonProperty("disconnectedSwitchNum") + private Long disconnectedSwitchNum; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("supportES") + private Boolean supportES; + + @JsonProperty("supportL2") + private Boolean supportL2; + + public SiteSummaryInfo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public SiteSummaryInfo siteName(String siteName) { + this.siteName = siteName; + return this; + } + + /** + * Site name + * @return siteName + */ + @ApiModelProperty(value = "Site name") + + + public String getSiteName() { + return siteName; + } + + public void setSiteName(String siteName) { + this.siteName = siteName; + } + + public SiteSummaryInfo tagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + public SiteSummaryInfo addTagIdsItem(String tagIdsItem) { + if (this.tagIds == null) { + this.tagIds = new ArrayList<>(); + } + this.tagIds.add(tagIdsItem); + return this; + } + + /** + * Site tag ID + * @return tagIds + */ + @ApiModelProperty(value = "Site tag ID") + + + public List getTagIds() { + return tagIds; + } + + public void setTagIds(List tagIds) { + this.tagIds = tagIds; + } + + public SiteSummaryInfo customerId(String customerId) { + this.customerId = customerId; + return this; + } + + /** + * Customer ID + * @return customerId + */ + @ApiModelProperty(value = "Customer ID") + + + public String getCustomerId() { + return customerId; + } + + public void setCustomerId(String customerId) { + this.customerId = customerId; + } + + public SiteSummaryInfo customerName(String customerName) { + this.customerName = customerName; + return this; + } + + /** + * Customer name + * @return customerName + */ + @ApiModelProperty(value = "Customer name") + + + public String getCustomerName() { + return customerName; + } + + public void setCustomerName(String customerName) { + this.customerName = customerName; + } + + public SiteSummaryInfo region(String region) { + this.region = region; + return this; + } + + /** + * Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America. + * @return region + */ + @ApiModelProperty(value = "Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America.") + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public SiteSummaryInfo timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * For the values of the timezone of the site, refer to section 5.1 of the Open API Access Guide. + * @return timeZone + */ + @ApiModelProperty(value = "For the values of the timezone of the site, refer to section 5.1 of the Open API Access Guide.") + + + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public SiteSummaryInfo scenario(String scenario) { + this.scenario = scenario; + return this; + } + + /** + * Site scenario + * @return scenario + */ + @ApiModelProperty(value = "Site scenario") + + + public String getScenario() { + return scenario; + } + + public void setScenario(String scenario) { + this.scenario = scenario; + } + + public SiteSummaryInfo longitude(Double longitude) { + this.longitude = longitude; + return this; + } + + /** + * Site longitude should be within the range of -180~180 + * @return longitude + */ + @ApiModelProperty(value = "Site longitude should be within the range of -180~180") + + + public Double getLongitude() { + return longitude; + } + + public void setLongitude(Double longitude) { + this.longitude = longitude; + } + + public SiteSummaryInfo latitude(Double latitude) { + this.latitude = latitude; + return this; + } + + /** + * Site latitude should be within the range of -90~90 + * @return latitude + */ + @ApiModelProperty(value = "Site latitude should be within the range of -90~90") + + + public Double getLatitude() { + return latitude; + } + + public void setLatitude(Double latitude) { + this.latitude = latitude; + } + + public SiteSummaryInfo address(String address) { + this.address = address; + return this; + } + + /** + * Site address + * @return address + */ + @ApiModelProperty(value = "Site address") + + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public SiteSummaryInfo wan(Boolean wan) { + this.wan = wan; + return this; + } + + /** + * Whether exists gateway is connected of current site + * @return wan + */ + @ApiModelProperty(value = "Whether exists gateway is connected of current site") + + + public Boolean getWan() { + return wan; + } + + public void setWan(Boolean wan) { + this.wan = wan; + } + + public SiteSummaryInfo connectedApNum(Long connectedApNum) { + this.connectedApNum = connectedApNum; + return this; + } + + /** + * Connected ap num of current site + * @return connectedApNum + */ + @ApiModelProperty(value = "Connected ap num of current site") + + + public Long getConnectedApNum() { + return connectedApNum; + } + + public void setConnectedApNum(Long connectedApNum) { + this.connectedApNum = connectedApNum; + } + + public SiteSummaryInfo disconnectedApNum(Long disconnectedApNum) { + this.disconnectedApNum = disconnectedApNum; + return this; + } + + /** + * Disconnected ap num of current site + * @return disconnectedApNum + */ + @ApiModelProperty(value = "Disconnected ap num of current site") + + + public Long getDisconnectedApNum() { + return disconnectedApNum; + } + + public void setDisconnectedApNum(Long disconnectedApNum) { + this.disconnectedApNum = disconnectedApNum; + } + + public SiteSummaryInfo isolatedApNum(Long isolatedApNum) { + this.isolatedApNum = isolatedApNum; + return this; + } + + /** + * Isolated ap num of current site + * @return isolatedApNum + */ + @ApiModelProperty(value = "Isolated ap num of current site") + + + public Long getIsolatedApNum() { + return isolatedApNum; + } + + public void setIsolatedApNum(Long isolatedApNum) { + this.isolatedApNum = isolatedApNum; + } + + public SiteSummaryInfo connectedSwitchNum(Long connectedSwitchNum) { + this.connectedSwitchNum = connectedSwitchNum; + return this; + } + + /** + * Connected switch num of current site + * @return connectedSwitchNum + */ + @ApiModelProperty(value = "Connected switch num of current site") + + + public Long getConnectedSwitchNum() { + return connectedSwitchNum; + } + + public void setConnectedSwitchNum(Long connectedSwitchNum) { + this.connectedSwitchNum = connectedSwitchNum; + } + + public SiteSummaryInfo disconnectedSwitchNum(Long disconnectedSwitchNum) { + this.disconnectedSwitchNum = disconnectedSwitchNum; + return this; + } + + /** + * Disconnected switch num of current site + * @return disconnectedSwitchNum + */ + @ApiModelProperty(value = "Disconnected switch num of current site") + + + public Long getDisconnectedSwitchNum() { + return disconnectedSwitchNum; + } + + public void setDisconnectedSwitchNum(Long disconnectedSwitchNum) { + this.disconnectedSwitchNum = disconnectedSwitchNum; + } + + public SiteSummaryInfo type(Integer type) { + this.type = type; + return this; + } + + /** + * Site type(only for pro controller). It should be a value as follows: 0: Basic Site; 1: Pro Site + * @return type + */ + @ApiModelProperty(value = "Site type(only for pro controller). It should be a value as follows: 0: Basic Site; 1: Pro Site") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SiteSummaryInfo supportES(Boolean supportES) { + this.supportES = supportES; + return this; + } + + /** + * Whether the site supports adopting Easy Managed switches + * @return supportES + */ + @ApiModelProperty(value = "Whether the site supports adopting Easy Managed switches") + + + public Boolean getSupportES() { + return supportES; + } + + public void setSupportES(Boolean supportES) { + this.supportES = supportES; + } + + public SiteSummaryInfo supportL2(Boolean supportL2) { + this.supportL2 = supportL2; + return this; + } + + /** + * Whether the site supports adopting Smart+ or L2+ or L3 switches + * @return supportL2 + */ + @ApiModelProperty(value = "Whether the site supports adopting Smart+ or L2+ or L3 switches") + + + public Boolean getSupportL2() { + return supportL2; + } + + public void setSupportL2(Boolean supportL2) { + this.supportL2 = supportL2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteSummaryInfo siteSummaryInfo = (SiteSummaryInfo) o; + return Objects.equals(this.siteId, siteSummaryInfo.siteId) && + Objects.equals(this.siteName, siteSummaryInfo.siteName) && + Objects.equals(this.tagIds, siteSummaryInfo.tagIds) && + Objects.equals(this.customerId, siteSummaryInfo.customerId) && + Objects.equals(this.customerName, siteSummaryInfo.customerName) && + Objects.equals(this.region, siteSummaryInfo.region) && + Objects.equals(this.timeZone, siteSummaryInfo.timeZone) && + Objects.equals(this.scenario, siteSummaryInfo.scenario) && + Objects.equals(this.longitude, siteSummaryInfo.longitude) && + Objects.equals(this.latitude, siteSummaryInfo.latitude) && + Objects.equals(this.address, siteSummaryInfo.address) && + Objects.equals(this.wan, siteSummaryInfo.wan) && + Objects.equals(this.connectedApNum, siteSummaryInfo.connectedApNum) && + Objects.equals(this.disconnectedApNum, siteSummaryInfo.disconnectedApNum) && + Objects.equals(this.isolatedApNum, siteSummaryInfo.isolatedApNum) && + Objects.equals(this.connectedSwitchNum, siteSummaryInfo.connectedSwitchNum) && + Objects.equals(this.disconnectedSwitchNum, siteSummaryInfo.disconnectedSwitchNum) && + Objects.equals(this.type, siteSummaryInfo.type) && + Objects.equals(this.supportES, siteSummaryInfo.supportES) && + Objects.equals(this.supportL2, siteSummaryInfo.supportL2); + } + + @Override + public int hashCode() { + return Objects.hash(siteId, siteName, tagIds, customerId, customerName, region, timeZone, scenario, longitude, latitude, address, wan, connectedApNum, disconnectedApNum, isolatedApNum, connectedSwitchNum, disconnectedSwitchNum, type, supportES, supportL2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteSummaryInfo {\n"); + + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" siteName: ").append(toIndentedString(siteName)).append("\n"); + sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); + sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); + sb.append(" customerName: ").append(toIndentedString(customerName)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" scenario: ").append(toIndentedString(scenario)).append("\n"); + sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); + sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" wan: ").append(toIndentedString(wan)).append("\n"); + sb.append(" connectedApNum: ").append(toIndentedString(connectedApNum)).append("\n"); + sb.append(" disconnectedApNum: ").append(toIndentedString(disconnectedApNum)).append("\n"); + sb.append(" isolatedApNum: ").append(toIndentedString(isolatedApNum)).append("\n"); + sb.append(" connectedSwitchNum: ").append(toIndentedString(connectedSwitchNum)).append("\n"); + sb.append(" disconnectedSwitchNum: ").append(toIndentedString(disconnectedSwitchNum)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" supportES: ").append(toIndentedString(supportES)).append("\n"); + sb.append(" supportL2: ").append(toIndentedString(supportL2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/SiteTag.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/SiteTag.java new file mode 100644 index 0000000..8e95cfe --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/SiteTag.java @@ -0,0 +1,102 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SiteTag + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class SiteTag { + @JsonProperty("name") + private String name; + + @JsonProperty("tagId") + private String tagId; + + public SiteTag name(String name) { + this.name = name; + return this; + } + + /** + * Tag name should contain 1 to 128 ASCII characters. + * @return name + */ + @ApiModelProperty(value = "Tag name should contain 1 to 128 ASCII characters.") + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SiteTag tagId(String tagId) { + this.tagId = tagId; + return this; + } + + /** + * Tag ID + * @return tagId + */ + @ApiModelProperty(value = "Tag ID") + + + public String getTagId() { + return tagId; + } + + public void setTagId(String tagId) { + this.tagId = tagId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteTag siteTag = (SiteTag) o; + return Objects.equals(this.name, siteTag.name) && + Objects.equals(this.tagId, siteTag.tagId); + } + + @Override + public int hashCode() { + return Objects.hash(name, tagId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteTag {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" tagId: ").append(toIndentedString(tagId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/TagRespOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/TagRespOpenApiVo.java new file mode 100644 index 0000000..e847065 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/TagRespOpenApiVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * TagRespOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class TagRespOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("tagId") + private String tagId; + + public TagRespOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Tag name + * @return name + */ + @ApiModelProperty(value = "Tag name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TagRespOpenApiVo tagId(String tagId) { + this.tagId = tagId; + return this; + } + + /** + * Tag ID + * @return tagId + */ + @ApiModelProperty(value = "Tag ID") + + + public String getTagId() { + return tagId; + } + + public void setTagId(String tagId) { + this.tagId = tagId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagRespOpenApiVo tagRespOpenApiVo = (TagRespOpenApiVo) o; + return Objects.equals(this.name, tagRespOpenApiVo.name) && + Objects.equals(this.tagId, tagRespOpenApiVo.tagId); + } + + @Override + public int hashCode() { + return Objects.hash(name, tagId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagRespOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" tagId: ").append(toIndentedString(tagId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/UsedLicenseDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/UsedLicenseDetailOpenApiVo.java new file mode 100644 index 0000000..083c1bd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/UsedLicenseDetailOpenApiVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * UsedLicenseDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class UsedLicenseDetailOpenApiVo { + @JsonProperty("licenseId") + private String licenseId; + + @JsonProperty("expirationTime") + private Long expirationTime; + + public UsedLicenseDetailOpenApiVo licenseId(String licenseId) { + this.licenseId = licenseId; + return this; + } + + /** + * License key + * @return licenseId + */ + @ApiModelProperty(value = "License key") + + + public String getLicenseId() { + return licenseId; + } + + public void setLicenseId(String licenseId) { + this.licenseId = licenseId; + } + + public UsedLicenseDetailOpenApiVo expirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + /** + * License expiration time, unit: ms + * @return expirationTime + */ + @ApiModelProperty(value = "License expiration time, unit: ms") + + + public Long getExpirationTime() { + return expirationTime; + } + + public void setExpirationTime(Long expirationTime) { + this.expirationTime = expirationTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsedLicenseDetailOpenApiVo usedLicenseDetailOpenApiVo = (UsedLicenseDetailOpenApiVo) o; + return Objects.equals(this.licenseId, usedLicenseDetailOpenApiVo.licenseId) && + Objects.equals(this.expirationTime, usedLicenseDetailOpenApiVo.expirationTime); + } + + @Override + public int hashCode() { + return Objects.hash(licenseId, expirationTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsedLicenseDetailOpenApiVo {\n"); + + sb.append(" licenseId: ").append(toIndentedString(licenseId)).append("\n"); + sb.append(" expirationTime: ").append(toIndentedString(expirationTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookConfigEditOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookConfigEditOpenApiVo.java new file mode 100644 index 0000000..2eb912f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookConfigEditOpenApiVo.java @@ -0,0 +1,105 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Log Notification Webhook Config (This config applies to the Omada Pro Controller only) + */ +@ApiModel(description = "Log Notification Webhook Config (This config applies to the Omada Pro Controller only)") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class WebhookConfigEditOpenApiVo { + @JsonProperty("webhookEnable") + private Boolean webhookEnable; + + @JsonProperty("webhookId") + private String webhookId; + + public WebhookConfigEditOpenApiVo webhookEnable(Boolean webhookEnable) { + this.webhookEnable = webhookEnable; + return this; + } + + /** + * Audit or Omada Log Notification Enable for Disable Webhook + * @return webhookEnable + */ + @ApiModelProperty(required = true, value = "Audit or Omada Log Notification Enable for Disable Webhook") + @NotNull + + + public Boolean getWebhookEnable() { + return webhookEnable; + } + + public void setWebhookEnable(Boolean webhookEnable) { + this.webhookEnable = webhookEnable; + } + + public WebhookConfigEditOpenApiVo webhookId(String webhookId) { + this.webhookId = webhookId; + return this; + } + + /** + * Webhook ID (Webhook ID should be configured in webhook setting, when Webhook Enable is true) + * @return webhookId + */ + @ApiModelProperty(value = "Webhook ID (Webhook ID should be configured in webhook setting, when Webhook Enable is true)") + + + public String getWebhookId() { + return webhookId; + } + + public void setWebhookId(String webhookId) { + this.webhookId = webhookId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookConfigEditOpenApiVo webhookConfigEditOpenApiVo = (WebhookConfigEditOpenApiVo) o; + return Objects.equals(this.webhookEnable, webhookConfigEditOpenApiVo.webhookEnable) && + Objects.equals(this.webhookId, webhookConfigEditOpenApiVo.webhookId); + } + + @Override + public int hashCode() { + return Objects.hash(webhookEnable, webhookId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookConfigEditOpenApiVo {\n"); + + sb.append(" webhookEnable: ").append(toIndentedString(webhookEnable)).append("\n"); + sb.append(" webhookId: ").append(toIndentedString(webhookId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookConfigOpenApiVo.java new file mode 100644 index 0000000..3238e1e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookConfigOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Log Notification Webhook Config (This config applies to the Omada Pro Controller only) + */ +@ApiModel(description = "Log Notification Webhook Config (This config applies to the Omada Pro Controller only)") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class WebhookConfigOpenApiVo { + @JsonProperty("webhookEnable") + private Boolean webhookEnable; + + @JsonProperty("webhookId") + private String webhookId; + + public WebhookConfigOpenApiVo webhookEnable(Boolean webhookEnable) { + this.webhookEnable = webhookEnable; + return this; + } + + /** + * Audit or Omada Log Notification Enable for Disable Webhook + * @return webhookEnable + */ + @ApiModelProperty(value = "Audit or Omada Log Notification Enable for Disable Webhook") + + + public Boolean getWebhookEnable() { + return webhookEnable; + } + + public void setWebhookEnable(Boolean webhookEnable) { + this.webhookEnable = webhookEnable; + } + + public WebhookConfigOpenApiVo webhookId(String webhookId) { + this.webhookId = webhookId; + return this; + } + + /** + * Webhook ID + * @return webhookId + */ + @ApiModelProperty(value = "Webhook ID") + + + public String getWebhookId() { + return webhookId; + } + + public void setWebhookId(String webhookId) { + this.webhookId = webhookId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookConfigOpenApiVo webhookConfigOpenApiVo = (WebhookConfigOpenApiVo) o; + return Objects.equals(this.webhookEnable, webhookConfigOpenApiVo.webhookEnable) && + Objects.equals(this.webhookId, webhookConfigOpenApiVo.webhookId); + } + + @Override + public int hashCode() { + return Objects.hash(webhookEnable, webhookId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookConfigOpenApiVo {\n"); + + sb.append(" webhookEnable: ").append(toIndentedString(webhookEnable)).append("\n"); + sb.append(" webhookId: ").append(toIndentedString(webhookId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookSetting.java new file mode 100644 index 0000000..9ab597c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/msp/model/WebhookSetting.java @@ -0,0 +1,263 @@ +package org.wfc.omada.api.msp.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * WebhookSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:44:08.065+08:00[Asia/Shanghai]") + +public class WebhookSetting { + @JsonProperty("name") + private String name; + + @JsonProperty("urlNum") + private Integer urlNum; + + @JsonProperty("urlList") + @Valid + private List urlList = null; + + @JsonProperty("webhookId") + private String webhookId; + + @JsonProperty("shardedSecret") + private String shardedSecret; + + @JsonProperty("lastTime") + private Long lastTime; + + @JsonProperty("retryPolicy") + private Integer retryPolicy; + + @JsonProperty("template") + private Integer template; + + public WebhookSetting name(String name) { + this.name = name; + return this; + } + + /** + * Webhook Name + * @return name + */ + @ApiModelProperty(value = "Webhook Name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public WebhookSetting urlNum(Integer urlNum) { + this.urlNum = urlNum; + return this; + } + + /** + * Webhook URL Number + * @return urlNum + */ + @ApiModelProperty(value = "Webhook URL Number") + + + public Integer getUrlNum() { + return urlNum; + } + + public void setUrlNum(Integer urlNum) { + this.urlNum = urlNum; + } + + public WebhookSetting urlList(List urlList) { + this.urlList = urlList; + return this; + } + + public WebhookSetting addUrlListItem(String urlListItem) { + if (this.urlList == null) { + this.urlList = new ArrayList<>(); + } + this.urlList.add(urlListItem); + return this; + } + + /** + * Webhook URL List + * @return urlList + */ + @ApiModelProperty(value = "Webhook URL List") + + + public List getUrlList() { + return urlList; + } + + public void setUrlList(List urlList) { + this.urlList = urlList; + } + + public WebhookSetting webhookId(String webhookId) { + this.webhookId = webhookId; + return this; + } + + /** + * Webhook ID + * @return webhookId + */ + @ApiModelProperty(value = "Webhook ID") + + + public String getWebhookId() { + return webhookId; + } + + public void setWebhookId(String webhookId) { + this.webhookId = webhookId; + } + + public WebhookSetting shardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + return this; + } + + /** + * Webhook Sharded Secret (old token) + * @return shardedSecret + */ + @ApiModelProperty(value = "Webhook Sharded Secret (old token)") + + + public String getShardedSecret() { + return shardedSecret; + } + + public void setShardedSecret(String shardedSecret) { + this.shardedSecret = shardedSecret; + } + + public WebhookSetting lastTime(Long lastTime) { + this.lastTime = lastTime; + return this; + } + + /** + * Webhook setting last update time (ms) + * @return lastTime + */ + @ApiModelProperty(value = "Webhook setting last update time (ms)") + + + public Long getLastTime() { + return lastTime; + } + + public void setLastTime(Long lastTime) { + this.lastTime = lastTime; + } + + public WebhookSetting retryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + return this; + } + + /** + * Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours) + * @return retryPolicy + */ + @ApiModelProperty(value = "Webhook retry policy. It should be a value as follows: 0:None, 1:Important (Up to 5 retries over 60 minutes), 2:Critical (Up to 5 retries over 24 hours)") + + + public Integer getRetryPolicy() { + return retryPolicy; + } + + public void setRetryPolicy(Integer retryPolicy) { + this.retryPolicy = retryPolicy; + } + + public WebhookSetting template(Integer template) { + this.template = template; + return this; + } + + /** + * Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. + * @return template + */ + @ApiModelProperty(value = "Webhook template, it should be a value as follow: 0:Omada template, 1:Google chat template. Example: 0. ") + + + public Integer getTemplate() { + return template; + } + + public void setTemplate(Integer template) { + this.template = template; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WebhookSetting webhookSetting = (WebhookSetting) o; + return Objects.equals(this.name, webhookSetting.name) && + Objects.equals(this.urlNum, webhookSetting.urlNum) && + Objects.equals(this.urlList, webhookSetting.urlList) && + Objects.equals(this.webhookId, webhookSetting.webhookId) && + Objects.equals(this.shardedSecret, webhookSetting.shardedSecret) && + Objects.equals(this.lastTime, webhookSetting.lastTime) && + Objects.equals(this.retryPolicy, webhookSetting.retryPolicy) && + Objects.equals(this.template, webhookSetting.template); + } + + @Override + public int hashCode() { + return Objects.hash(name, urlNum, urlList, webhookId, shardedSecret, lastTime, retryPolicy, template); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WebhookSetting {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" urlNum: ").append(toIndentedString(urlNum)).append("\n"); + sb.append(" urlList: ").append(toIndentedString(urlList)).append("\n"); + sb.append(" webhookId: ").append(toIndentedString(webhookId)).append("\n"); + sb.append(" shardedSecret: ").append(toIndentedString(shardedSecret)).append("\n"); + sb.append(" lastTime: ").append(toIndentedString(lastTime)).append("\n"); + sb.append(" retryPolicy: ").append(toIndentedString(retryPolicy)).append("\n"); + sb.append(" template: ").append(toIndentedString(template)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/OmadaSiteApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/OmadaSiteApi.java new file mode 100644 index 0000000..ad988e4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/OmadaSiteApi.java @@ -0,0 +1,350 @@ +package org.wfc.omada.api.organization; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.organization.model.BatchSiteCopyVo; +import org.wfc.omada.api.organization.model.BatchSiteImportVo; +import org.wfc.omada.api.organization.model.CreateSiteByTemplate; +import org.wfc.omada.api.organization.model.CreateSiteEntity; +import org.wfc.omada.api.organization.model.CreateSiteTagOpenApiVo; +import org.wfc.omada.api.organization.model.DeleteSiteTagOpenApiVo; +import org.wfc.omada.api.organization.model.DeviceAccountSettingOpenApiVo; +import org.wfc.omada.api.organization.model.OperationResponseDeviceAccountSettingOpenApiVo; +import org.wfc.omada.api.organization.model.OperationResponseGridVoSiteSummaryInfo; +import org.wfc.omada.api.organization.model.OperationResponseListString; +import org.wfc.omada.api.organization.model.OperationResponseObject; +import org.wfc.omada.api.organization.model.OperationResponseSiteEntity; +import org.wfc.omada.api.organization.model.OperationResponseSiteResultVo; +import org.wfc.omada.api.organization.model.OperationResponseWithoutResult; +import org.wfc.omada.api.organization.model.Scenario; +import org.wfc.omada.api.organization.model.SiteTag; +import org.wfc.omada.api.organization.model.UpdateSiteEntity; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.List; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:09.288+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaSite", description = "the OmadaSite API") +@FeignClient(name="OmadaSiteApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaSiteApi { + + /** + * POST /openapi/v1/{omadacId}/scenarios : Create new scenario + * Create new scenario<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param scenario (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new scenario", nickname = "addScenario", notes = "Create new scenario

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseListString.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListString.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/scenarios", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity addScenario(@ApiParam(value = "" ) @Valid @RequestBody(required = false) Scenario scenario); + + + /** + * POST /openapi/v1/{omadacId}/sites/tags : Create new site tag + * Create new site tag.<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager Modify + * + * @param omadacId Omada ID (required) + * @param createSiteTagOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new site tag", nickname = "addTag", notes = "Create new site tag.

The interface requires one of the permissions:
Global Dashboard Manager Modify", response = SiteTag.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = SiteTag.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/tags", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity addTag(@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateSiteTagOpenApiVo createSiteTagOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/copy : Batch create sites by copying from existing site + * Batch create sites by copying from existing site<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30304 - Restoring...<br/>-30305 - Failed to restore because of unexpected errors. Please try again later. + * + * @param omadacId Omada ID (required) + * @param batchSiteCopyVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch create sites by copying from existing site", nickname = "batchSiteCopy", notes = "Batch create sites by copying from existing site

The interface requires one of the permissions:
Site Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30304 - Restoring...
-30305 - Failed to restore because of unexpected errors. Please try again later.", response = OperationResponseSiteResultVo.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteResultVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/copy", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity batchSiteCopy(@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchSiteCopyVo batchSiteCopyVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/multi-import : Batch create sites by importing site backup files from file server + * Batch create sites by importing site backup files from file server.<br/><br/>The interface requires one of the permissions: <br/>Site Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-30028 - The system is busy. Please try again later.<br/>-30304 - Restoring...<br/>-30305 - Failed to restore because of unexpected errors. Please try again later. + * + * @param omadacId Omada ID (required) + * @param batchSiteImportVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch create sites by importing site backup files from file server", nickname = "batchSiteImport", notes = "Batch create sites by importing site backup files from file server.

The interface requires one of the permissions:
Site Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-30028 - The system is busy. Please try again later.
-30304 - Restoring...
-30305 - Failed to restore because of unexpected errors. Please try again later.", response = OperationResponseSiteResultVo.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteResultVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/multi-import", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity batchSiteImport(@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchSiteImportVo batchSiteImportVo); + + + /** + * POST /openapi/v1/{omadacId}/sites : Create new site + * Create new site<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33101 - This name already exists. Please enter another name for this site.<br/>-33104 - The number of sites has reached the limit. + * + * @param omadacId Omada ID (required) + * @param createSiteEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new site", nickname = "createNewSite", notes = "Create new site

The interface requires one of the permissions:
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33101 - This name already exists. Please enter another name for this site.
-33104 - The number of sites has reached the limit.", response = OperationResponseObject.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createNewSite(@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateSiteEntity createSiteEntity); + + + /** + * POST /openapi/v1/{omadacId}/sites/template : Create new site from site template + * Create new site from site template<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33101 - This name already exists. Please enter another name for this site.<br/>-33104 - The number of sites has reached the limit. + * + * @param omadacId Omada ID (required) + * @param createSiteByTemplate (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new site from site template", nickname = "createNewSiteByTemplate", notes = "Create new site from site template

The interface requires one of the permissions:
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33101 - This name already exists. Please enter another name for this site.
-33104 - The number of sites has reached the limit.", response = OperationResponseObject.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/template", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createNewSiteByTemplate(@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateSiteByTemplate createSiteByTemplate); + + + /** + * DELETE /openapi/v1/{omadacId}/scenarios : Delete site scenario + * Delete site scenario<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param scenario (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete site scenario", nickname = "deleteScenario", notes = "Delete site scenario

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/scenarios", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.DELETE) + ResponseEntity deleteScenario(@ApiParam(value = "" ) @Valid @RequestBody(required = false) Scenario scenario); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId} : Delete an existing site + * Delete an existing site<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing site", nickname = "deleteSite", notes = "Delete an existing site

The interface requires one of the permissions:
Global Dashboard Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteSite(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/tags : Delete an existing site tag + * Delete an existing site tag.<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager Modify + * + * @param omadacId Omada ID (required) + * @param deleteSiteTagOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing site tag", nickname = "deleteTag", notes = "Delete an existing site tag.

The interface requires one of the permissions:
Global Dashboard Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/tags", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.DELETE) + ResponseEntity deleteTag(@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteSiteTagOpenApiVo deleteSiteTagOpenApiVo); + + + /** + * GET /openapi/v1/{omadacId}/scenarios : Get scenario list + * Get scenario list + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get scenario list", nickname = "getScenarioList", notes = "Get scenario list", response = OperationResponseListString.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListString.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/scenarios", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getScenarioList(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/device-account : Get site device account setting + * Get site device account setting<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site device account setting", nickname = "getSiteDeviceAccountSetting", notes = "Get site device account setting

The interface requires one of the permissions:
Global Dashboard Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseDeviceAccountSettingOpenApiVo.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDeviceAccountSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/device-account", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteDeviceAccountSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId} : Get site info + * Get site info<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site info", nickname = "getSiteEntity", notes = "Get site info

The interface requires one of the permissions:
Global Dashboard Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseSiteEntity.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteEntity(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites : Get site list + * Get site list + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field name (optional) + * @param filtersTag Filter query parameters, support field tag ID (optional) + * @param filtersType Filter query parameters, support field site type. 0: basic site; 1: pro site. (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site list", nickname = "getSiteList", notes = "Get site list", response = OperationResponseGridVoSiteSummaryInfo.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoSiteSummaryInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteList(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey,@ApiParam(value = "Filter query parameters, support field tag ID") @Valid @RequestParam(value = "filters.tag", required = false) String filtersTag,@ApiParam(value = "Filter query parameters, support field site type. 0: basic site; 1: pro site.") @Valid @RequestParam(value = "filters.type", required = false) String filtersType); + + + /** + * GET /openapi/v1/{omadacId}/sites/tags : Get site tag list + * Get site tag list.<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager View Only + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site tag list", nickname = "getTags", notes = "Get site tag list.

The interface requires one of the permissions:
Global Dashboard Manager View Only", response = SiteTag.class, responseContainer = "List", tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = SiteTag.class, responseContainer = "List") }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/tags", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity> getTags(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/tags : Modify an existing site tag + * Modify an existing site tag.<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteTag (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing site tag", nickname = "modifyTag", notes = "Modify an existing site tag.

The interface requires one of the permissions:
Global Dashboard Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/tags", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyTag(@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteTag siteTag); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/device-account : Update site device account setting + * Update site device account settin<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceAccountSettingOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Update site device account setting", nickname = "updateSiteDeviceAccountSetting", notes = "Update site device account settin

The interface requires one of the permissions:
Site Settings Manager Modify
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/device-account", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity updateSiteDeviceAccountSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeviceAccountSettingOpenApiVo deviceAccountSettingOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId} : Modify an existing site + * Modify an existing site<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information.<br/>-33101 - This name already exists. Please enter another name for this site.<br/>-33104 - The number of sites has reached the limit.<br/>-33809 - This scenario does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param updateSiteEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing site", nickname = "updateSiteEntity", notes = "Modify an existing site

The interface requires one of the permissions:
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.
-33101 - This name already exists. Please enter another name for this site.
-33104 - The number of sites has reached the limit.
-33809 - This scenario does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site","Site", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity updateSiteEntity(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateSiteEntity updateSiteEntity); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/OmadaSiteTemplateApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/OmadaSiteTemplateApi.java new file mode 100644 index 0000000..d1496f7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/OmadaSiteTemplateApi.java @@ -0,0 +1,387 @@ +package org.wfc.omada.api.organization; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.organization.model.BatchBindDeviceOpenApiVo; +import org.wfc.omada.api.organization.model.BatchBindDeviceResultOpenApiVo; +import org.wfc.omada.api.organization.model.BatchCopySiteTemplateOpenApiVo; +import org.wfc.omada.api.organization.model.BatchSyncSitesOpenApiVo; +import org.wfc.omada.api.organization.model.BatchUnbindSites; +import org.wfc.omada.api.organization.model.BindSiteOpenApiVo; +import org.wfc.omada.api.organization.model.CopySiteResultVo; +import org.wfc.omada.api.organization.model.CopySiteTemplateOpenApiVo; +import org.wfc.omada.api.organization.model.CreateSiteTemplateEntity; +import org.wfc.omada.api.organization.model.OperationResponseBatchBindDeviceResultOpenApiVo; +import org.wfc.omada.api.organization.model.OperationResponseBindSiteBriefOpenApiVo; +import org.wfc.omada.api.organization.model.OperationResponseCopySiteTemplateOpenApiResultVo; +import org.wfc.omada.api.organization.model.OperationResponseGridVoDeviceBindOpenApiVo; +import org.wfc.omada.api.organization.model.OperationResponseGridVoDeviceTemplateBriefOpenApiVo; +import org.wfc.omada.api.organization.model.OperationResponseGridVoSiteTemplateSummaryVo; +import org.wfc.omada.api.organization.model.OperationResponseObject; +import org.wfc.omada.api.organization.model.OperationResponseSiteTemplateBriefOpenApiVo; +import org.wfc.omada.api.organization.model.OperationResponseSiteTemplateModulesOpenApiVo; +import org.wfc.omada.api.organization.model.OperationResponseWithoutResult; +import org.wfc.omada.api.organization.model.UpdateSiteByTemplate; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:09.288+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaSiteTemplate", description = "the OmadaSiteTemplate API") +@FeignClient(name="OmadaSiteTemplateApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaSiteTemplateApi { + + /** + * POST /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/multi-sites/sync : Batch sync site settings with the site template + * Batch sync site settings with the site template.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33009 - This site template does not exist.<br/>-44418 - Failed to sync this site with the site template due to unexpected errors.<br/>-44423 - You can sync site configurations with the site template for up to 30 sites at a time. + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param batchSyncSitesOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch sync site settings with the site template", nickname = "batchSyncSiteWithTemplate", notes = "Batch sync site settings with the site template.

The interface requires one of the permissions:
Global Site Template Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33009 - This site template does not exist.
-44418 - Failed to sync this site with the site template due to unexpected errors.
-44423 - You can sync site configurations with the site template for up to 30 sites at a time.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/multi-sites/sync", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity batchSyncSiteWithTemplate(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchSyncSitesOpenApiVo batchSyncSitesOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/bind-site : Bind site with a site template + * Bind site with a site template.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33009 - This site template does not exist. + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param bindSiteOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Bind site with a site template", nickname = "bindSiteTemplate", notes = "Bind site with a site template.

The interface requires one of the permissions:
Global Site Template Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33009 - This site template does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/bind-site", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity bindSiteTemplate(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BindSiteOpenApiVo bindSiteOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/copy : Create Site Template by copying exist site template + * Create Site Template by copying exist site template.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param copySiteTemplateOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create Site Template by copying exist site template", nickname = "copySiteTemplate", notes = "Create Site Template by copying exist site template.

The interface requires one of the permissions:
Global Site Template Manager Modify", response = CopySiteResultVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = CopySiteResultVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/copy", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity copySiteTemplate(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CopySiteTemplateOpenApiVo copySiteTemplateOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/copy/batch : Copy site template to customers + * Copy the site template to one or more customers (whose site templates the current user has permission to modify). Up to 10 customers can be operated at the same time.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param batchCopySiteTemplateOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Copy site template to customers", nickname = "copySiteTemplateToCustomers", notes = "Copy the site template to one or more customers (whose site templates the current user has permission to modify). Up to 10 customers can be operated at the same time.

The interface requires one of the permissions:
Global Site Template Manager Modify", response = OperationResponseCopySiteTemplateOpenApiResultVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCopySiteTemplateOpenApiResultVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/copy/batch", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity copySiteTemplateToCustomers(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchCopySiteTemplateOpenApiVo batchCopySiteTemplateOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sitetemplates : Create new site template + * Create new site template<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33104 - The number of sites has reached the limit.<br/>-44430 - This name already exists. Please enter another name for this site template. + * + * @param omadacId Omada ID (required) + * @param createSiteTemplateEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new site template", nickname = "createNewSiteTemplate", notes = "Create new site template

The interface requires one of the permissions:
Global Site Template Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33104 - The number of sites has reached the limit.
-44430 - This name already exists. Please enter another name for this site template.", response = OperationResponseObject.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createNewSiteTemplate(@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateSiteTemplateEntity createSiteTemplateEntity); + + + /** + * DELETE /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId} : Delete an existing site template + * Delete an existing site template<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33009 - This site template does not exist. + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing site template", nickname = "deleteSiteTemplate", notes = "Delete an existing site template

The interface requires one of the permissions:
Global Site Template Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33009 - This site template does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteSiteTemplate(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId); + + + /** + * POST /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/devicetemplates/{deviceTemplateId}/batch-binddevice : Device template batch bind devices + * Device template batch bind devices.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-44402 - Device template does not exist. + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param deviceTemplateId Device Template ID (required) + * @param batchBindDeviceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Device template batch bind devices", nickname = "deviceTemplateBindDeviceBatch", notes = "Device template batch bind devices.

The interface requires one of the permissions:
Global Site Template Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.
-44402 - Device template does not exist.", response = OperationResponseBatchBindDeviceResultOpenApiVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseBatchBindDeviceResultOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/devicetemplates/{deviceTemplateId}/batch-binddevice", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity deviceTemplateBindDeviceBatch(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "Device Template ID",required=true) @PathVariable("deviceTemplateId") String deviceTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchBindDeviceOpenApiVo batchBindDeviceOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/devicetemplates/{deviceTemplateId}/batch-sync-config : Device template batch sync config to devices + * Device template batch sync config to devices.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-44402 - Device template does not exist. + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param deviceTemplateId Device Template ID (required) + * @param batchBindDeviceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Device template batch sync config to devices", nickname = "deviceTemplateSyncConfigBatch", notes = "Device template batch sync config to devices.

The interface requires one of the permissions:
Global Site Template Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.
-44402 - Device template does not exist.", response = BatchBindDeviceResultOpenApiVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = BatchBindDeviceResultOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/devicetemplates/{deviceTemplateId}/batch-sync-config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity deviceTemplateSyncConfigBatch(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "Device Template ID",required=true) @PathVariable("deviceTemplateId") String deviceTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchBindDeviceOpenApiVo batchBindDeviceOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/devicetemplates/{deviceTemplateId}/batch-unbinddevice : Device template batch unbind devices + * Device template batch unbind devices.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-44402 - Device template does not exist. + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param deviceTemplateId Device Template ID (required) + * @param batchBindDeviceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Device template batch unbind devices", nickname = "deviceTemplateUnbindDeviceBatch", notes = "Device template batch unbind devices.

The interface requires one of the permissions:
Global Site Template Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.
-44402 - Device template does not exist.", response = BatchBindDeviceResultOpenApiVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = BatchBindDeviceResultOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/devicetemplates/{deviceTemplateId}/batch-unbinddevice", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity deviceTemplateUnbindDeviceBatch(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "Device Template ID",required=true) @PathVariable("deviceTemplateId") String deviceTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchBindDeviceOpenApiVo batchBindDeviceOpenApiVo); + + + /** + * GET /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/binding-sites : Get sites info which bound to the site template + * Get sites info which bound to the site template.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33009 - This site template does not exist. + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get sites info which bound to the site template", nickname = "getBoundSites", notes = "Get sites info which bound to the site template.

The interface requires one of the permissions:
Global Site Template Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33009 - This site template does not exist.", response = OperationResponseBindSiteBriefOpenApiVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseBindSiteBriefOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/binding-sites", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getBoundSites(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/devicetemplates : Get deviceTemplate info list + * Get deviceTemplate info list.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get deviceTemplate info list", nickname = "getGridDeviceTemplate", notes = "Get deviceTemplate info list.

The interface requires one of the permissions:
Global Site Template Manager View Only", response = OperationResponseGridVoDeviceTemplateBriefOpenApiVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoDeviceTemplateBriefOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/devicetemplates", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridDeviceTemplate(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/devicetemplates/{deviceTemplateId}/available-bind-devices : Get deviceTemplate's available devices + * Get deviceTemplate's available devices.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param deviceTemplateId Device Template ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get deviceTemplate's available devices", nickname = "getGridDeviceTemplateAvailableDevices", notes = "Get deviceTemplate's available devices.

The interface requires one of the permissions:
Global Site Template Manager View Only", response = OperationResponseGridVoDeviceBindOpenApiVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoDeviceBindOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/devicetemplates/{deviceTemplateId}/available-bind-devices", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridDeviceTemplateAvailableDevices(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "Device Template ID",required=true) @PathVariable("deviceTemplateId") String deviceTemplateId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/devicetemplates/{deviceTemplateId}/bound-devices : Get deviceTemplate's bound devices + * Get deviceTemplate's bound devices.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param deviceTemplateId Device Template ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get deviceTemplate's bound devices", nickname = "getGridDeviceTemplateBoundDevices", notes = "Get deviceTemplate's bound devices.

The interface requires one of the permissions:
Global Site Template Manager View Only", response = OperationResponseGridVoDeviceBindOpenApiVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoDeviceBindOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/devicetemplates/{deviceTemplateId}/bound-devices", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridDeviceTemplateBoundDevices(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "Device Template ID",required=true) @PathVariable("deviceTemplateId") String deviceTemplateId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId} : Get site template info + * Get site template info<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33009 - This site template does not exist. + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site template info", nickname = "getSiteTemplateEntity", notes = "Get site template info

The interface requires one of the permissions:
Global Site Template Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33009 - This site template does not exist.", response = OperationResponseSiteTemplateBriefOpenApiVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteTemplateBriefOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteTemplateEntity(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId); + + + /** + * GET /openapi/v1/{omadacId}/sitetemplates : Get site template list + * Get site template list<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager View Only + * + * @param omadacId Omada ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field name (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site template list", nickname = "getSiteTemplateList", notes = "Get site template list

The interface requires one of the permissions:
Global Site Template Manager View Only", response = OperationResponseGridVoSiteTemplateSummaryVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoSiteTemplateSummaryVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteTemplateList(@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.name", required = false) String sortsName,@ApiParam(value = "Fuzzy query parameters, support field name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/sitetemplates/modules : Get function modules which can be selected when creating site template + * Get function modules which can be selected when creating site template.<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify + * + * @param omadacId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get function modules which can be selected when creating site template", nickname = "getSiteTemplateModules", notes = "Get function modules which can be selected when creating site template.

The interface requires one of the permissions:
Global Site Template Manager Modify", response = OperationResponseSiteTemplateModulesOpenApiVo.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteTemplateModulesOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/modules", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteTemplateModules(@ApiParam(value = "Omada ID",required=true) @PathVariable("omadacId") String omadacId); + + + /** + * POST /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId}/batch-unbind : Batch unbind sites from a site template + * Batch unbind sites from a site template.<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager Modify<br/>Global Site Template Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33009 - This site template does not exist. + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param batchUnbindSites (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch unbind sites from a site template", nickname = "unbindSite", notes = "Batch unbind sites from a site template.

The interface requires one of the permissions:
Global Dashboard Manager Modify
Global Site Template Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33009 - This site template does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}/batch-unbind", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity unbindSite(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchUnbindSites batchUnbindSites); + + + /** + * PUT /openapi/v1/{omadacId}/sitetemplates/{siteTemplateId} : Modify an existing site template + * Modify an existing site template<br/><br/>The interface requires one of the permissions: <br/>Global Site Template Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33009 - This site template does not exist.<br/>-44430 - This name already exists. Please enter another name for this site template. + * + * @param omadacId Omada ID (required) + * @param siteTemplateId Site Template ID (required) + * @param updateSiteByTemplate (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing site template", nickname = "updateSiteTemplateEntity", notes = "Modify an existing site template

The interface requires one of the permissions:
Global Site Template Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33009 - This site template does not exist.
-44430 - This name already exists. Please enter another name for this site template.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Template","Site Template", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sitetemplates/{siteTemplateId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity updateSiteTemplateEntity(@ApiParam(value = "Site Template ID",required=true) @PathVariable("siteTemplateId") String siteTemplateId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateSiteByTemplate updateSiteByTemplate); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchBindDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchBindDeviceOpenApiVo.java new file mode 100644 index 0000000..201f6a2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchBindDeviceOpenApiVo.java @@ -0,0 +1,90 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchBindDeviceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class BatchBindDeviceOpenApiVo { + @JsonProperty("devices") + @Valid + private List devices = null; + + public BatchBindDeviceOpenApiVo devices(List devices) { + this.devices = devices; + return this; + } + + public BatchBindDeviceOpenApiVo addDevicesItem(DeviceBindBriefOpenApiVo devicesItem) { + if (this.devices == null) { + this.devices = new ArrayList<>(); + } + this.devices.add(devicesItem); + return this; + } + + /** + * Get devices + * @return devices + */ + @ApiModelProperty(value = "") + + @Valid +@Size(min=1,max=1000) + public List getDevices() { + return devices; + } + + public void setDevices(List devices) { + this.devices = devices; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchBindDeviceOpenApiVo batchBindDeviceOpenApiVo = (BatchBindDeviceOpenApiVo) o; + return Objects.equals(this.devices, batchBindDeviceOpenApiVo.devices); + } + + @Override + public int hashCode() { + return Objects.hash(devices); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchBindDeviceOpenApiVo {\n"); + + sb.append(" devices: ").append(toIndentedString(devices)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchBindDeviceResultOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchBindDeviceResultOpenApiVo.java new file mode 100644 index 0000000..d4bda61 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchBindDeviceResultOpenApiVo.java @@ -0,0 +1,124 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchBindDeviceResultOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class BatchBindDeviceResultOpenApiVo { + @JsonProperty("successedDevices") + @Valid + private List successedDevices = null; + + @JsonProperty("failedDevices") + @Valid + private List failedDevices = null; + + public BatchBindDeviceResultOpenApiVo successedDevices(List successedDevices) { + this.successedDevices = successedDevices; + return this; + } + + public BatchBindDeviceResultOpenApiVo addSuccessedDevicesItem(DeviceBindResultOpenApiVo successedDevicesItem) { + if (this.successedDevices == null) { + this.successedDevices = new ArrayList<>(); + } + this.successedDevices.add(successedDevicesItem); + return this; + } + + /** + * Devices with successful operation. + * @return successedDevices + */ + @ApiModelProperty(value = "Devices with successful operation.") + + @Valid + + public List getSuccessedDevices() { + return successedDevices; + } + + public void setSuccessedDevices(List successedDevices) { + this.successedDevices = successedDevices; + } + + public BatchBindDeviceResultOpenApiVo failedDevices(List failedDevices) { + this.failedDevices = failedDevices; + return this; + } + + public BatchBindDeviceResultOpenApiVo addFailedDevicesItem(DeviceBindResultOpenApiVo failedDevicesItem) { + if (this.failedDevices == null) { + this.failedDevices = new ArrayList<>(); + } + this.failedDevices.add(failedDevicesItem); + return this; + } + + /** + * Devices with failed operation. + * @return failedDevices + */ + @ApiModelProperty(value = "Devices with failed operation.") + + @Valid + + public List getFailedDevices() { + return failedDevices; + } + + public void setFailedDevices(List failedDevices) { + this.failedDevices = failedDevices; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchBindDeviceResultOpenApiVo batchBindDeviceResultOpenApiVo = (BatchBindDeviceResultOpenApiVo) o; + return Objects.equals(this.successedDevices, batchBindDeviceResultOpenApiVo.successedDevices) && + Objects.equals(this.failedDevices, batchBindDeviceResultOpenApiVo.failedDevices); + } + + @Override + public int hashCode() { + return Objects.hash(successedDevices, failedDevices); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchBindDeviceResultOpenApiVo {\n"); + + sb.append(" successedDevices: ").append(toIndentedString(successedDevices)).append("\n"); + sb.append(" failedDevices: ").append(toIndentedString(failedDevices)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchCopySiteTemplateOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchCopySiteTemplateOpenApiVo.java new file mode 100644 index 0000000..e757f0a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchCopySiteTemplateOpenApiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchCopySiteTemplateOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class BatchCopySiteTemplateOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("targetOmadacs") + @Valid + private List targetOmadacs = new ArrayList<>(); + + public BatchCopySiteTemplateOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the site should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the site should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public BatchCopySiteTemplateOpenApiVo targetOmadacs(List targetOmadacs) { + this.targetOmadacs = targetOmadacs; + return this; + } + + public BatchCopySiteTemplateOpenApiVo addTargetOmadacsItem(String targetOmadacsItem) { + this.targetOmadacs.add(targetOmadacsItem); + return this; + } + + /** + * The target Customer ID needs to be obtained from the interface \"Obtain the customer ID with permission to modify site templates\". + * @return targetOmadacs + */ + @ApiModelProperty(required = true, value = "The target Customer ID needs to be obtained from the interface \"Obtain the customer ID with permission to modify site templates\".") + @NotNull + +@Size(min=0,max=10) + public List getTargetOmadacs() { + return targetOmadacs; + } + + public void setTargetOmadacs(List targetOmadacs) { + this.targetOmadacs = targetOmadacs; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchCopySiteTemplateOpenApiVo batchCopySiteTemplateOpenApiVo = (BatchCopySiteTemplateOpenApiVo) o; + return Objects.equals(this.name, batchCopySiteTemplateOpenApiVo.name) && + Objects.equals(this.targetOmadacs, batchCopySiteTemplateOpenApiVo.targetOmadacs); + } + + @Override + public int hashCode() { + return Objects.hash(name, targetOmadacs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchCopySiteTemplateOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" targetOmadacs: ").append(toIndentedString(targetOmadacs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSiteCopyVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSiteCopyVo.java new file mode 100644 index 0000000..70b2705 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSiteCopyVo.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * BatchSiteCopyVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class BatchSiteCopyVo { + @JsonProperty("sourceSiteId") + private String sourceSiteId; + + @JsonProperty("targetSiteNum") + private Integer targetSiteNum; + + @JsonProperty("siteNamePrefix") + private String siteNamePrefix; + + public BatchSiteCopyVo sourceSiteId(String sourceSiteId) { + this.sourceSiteId = sourceSiteId; + return this; + } + + /** + * Source site ID to be copied. + * @return sourceSiteId + */ + @ApiModelProperty(required = true, value = "Source site ID to be copied.") + @NotNull + + + public String getSourceSiteId() { + return sourceSiteId; + } + + public void setSourceSiteId(String sourceSiteId) { + this.sourceSiteId = sourceSiteId; + } + + public BatchSiteCopyVo targetSiteNum(Integer targetSiteNum) { + this.targetSiteNum = targetSiteNum; + return this; + } + + /** + * Site num to be created should between 1 and 300. + * @return targetSiteNum + */ + @ApiModelProperty(required = true, value = "Site num to be created should between 1 and 300.") + @NotNull + + + public Integer getTargetSiteNum() { + return targetSiteNum; + } + + public void setTargetSiteNum(Integer targetSiteNum) { + this.targetSiteNum = targetSiteNum; + } + + public BatchSiteCopyVo siteNamePrefix(String siteNamePrefix) { + this.siteNamePrefix = siteNamePrefix; + return this; + } + + /** + * Site name prefix, new sites name will use this prefix. Parameter [siteNamePrefix] should be 1 - 128 ASCII characters. + * @return siteNamePrefix + */ + @ApiModelProperty(required = true, value = "Site name prefix, new sites name will use this prefix. Parameter [siteNamePrefix] should be 1 - 128 ASCII characters.") + @NotNull + + + public String getSiteNamePrefix() { + return siteNamePrefix; + } + + public void setSiteNamePrefix(String siteNamePrefix) { + this.siteNamePrefix = siteNamePrefix; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchSiteCopyVo batchSiteCopyVo = (BatchSiteCopyVo) o; + return Objects.equals(this.sourceSiteId, batchSiteCopyVo.sourceSiteId) && + Objects.equals(this.targetSiteNum, batchSiteCopyVo.targetSiteNum) && + Objects.equals(this.siteNamePrefix, batchSiteCopyVo.siteNamePrefix); + } + + @Override + public int hashCode() { + return Objects.hash(sourceSiteId, targetSiteNum, siteNamePrefix); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSiteCopyVo {\n"); + + sb.append(" sourceSiteId: ").append(toIndentedString(sourceSiteId)).append("\n"); + sb.append(" targetSiteNum: ").append(toIndentedString(targetSiteNum)).append("\n"); + sb.append(" siteNamePrefix: ").append(toIndentedString(siteNamePrefix)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSiteImportVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSiteImportVo.java new file mode 100644 index 0000000..334e0e1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSiteImportVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchSiteImportVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class BatchSiteImportVo { + @JsonProperty("fileServerConfig") + private FileServerOpenApiVo fileServerConfig; + + @JsonProperty("siteImportConfigList") + @Valid + private List siteImportConfigList = new ArrayList<>(); + + public BatchSiteImportVo fileServerConfig(FileServerOpenApiVo fileServerConfig) { + this.fileServerConfig = fileServerConfig; + return this; + } + + /** + * Get fileServerConfig + * @return fileServerConfig + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public FileServerOpenApiVo getFileServerConfig() { + return fileServerConfig; + } + + public void setFileServerConfig(FileServerOpenApiVo fileServerConfig) { + this.fileServerConfig = fileServerConfig; + } + + public BatchSiteImportVo siteImportConfigList(List siteImportConfigList) { + this.siteImportConfigList = siteImportConfigList; + return this; + } + + public BatchSiteImportVo addSiteImportConfigListItem(SiteImportOpenApiVo siteImportConfigListItem) { + this.siteImportConfigList.add(siteImportConfigListItem); + return this; + } + + /** + * Site import config list. max size 300. + * @return siteImportConfigList + */ + @ApiModelProperty(required = true, value = "Site import config list. max size 300.") + @NotNull + + @Valid + + public List getSiteImportConfigList() { + return siteImportConfigList; + } + + public void setSiteImportConfigList(List siteImportConfigList) { + this.siteImportConfigList = siteImportConfigList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchSiteImportVo batchSiteImportVo = (BatchSiteImportVo) o; + return Objects.equals(this.fileServerConfig, batchSiteImportVo.fileServerConfig) && + Objects.equals(this.siteImportConfigList, batchSiteImportVo.siteImportConfigList); + } + + @Override + public int hashCode() { + return Objects.hash(fileServerConfig, siteImportConfigList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSiteImportVo {\n"); + + sb.append(" fileServerConfig: ").append(toIndentedString(fileServerConfig)).append("\n"); + sb.append(" siteImportConfigList: ").append(toIndentedString(siteImportConfigList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSyncSitesOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSyncSitesOpenApiVo.java new file mode 100644 index 0000000..13901aa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchSyncSitesOpenApiVo.java @@ -0,0 +1,87 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchSyncSitesOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class BatchSyncSitesOpenApiVo { + @JsonProperty("siteIds") + @Valid + private List siteIds = new ArrayList<>(); + + public BatchSyncSitesOpenApiVo siteIds(List siteIds) { + this.siteIds = siteIds; + return this; + } + + public BatchSyncSitesOpenApiVo addSiteIdsItem(String siteIdsItem) { + this.siteIds.add(siteIdsItem); + return this; + } + + /** + * Site IDs to sync with site template. + * @return siteIds + */ + @ApiModelProperty(required = true, value = "Site IDs to sync with site template.") + @NotNull + + + public List getSiteIds() { + return siteIds; + } + + public void setSiteIds(List siteIds) { + this.siteIds = siteIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchSyncSitesOpenApiVo batchSyncSitesOpenApiVo = (BatchSyncSitesOpenApiVo) o; + return Objects.equals(this.siteIds, batchSyncSitesOpenApiVo.siteIds); + } + + @Override + public int hashCode() { + return Objects.hash(siteIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSyncSitesOpenApiVo {\n"); + + sb.append(" siteIds: ").append(toIndentedString(siteIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchUnbindSites.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchUnbindSites.java new file mode 100644 index 0000000..ff282fc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BatchUnbindSites.java @@ -0,0 +1,87 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchUnbindSites + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class BatchUnbindSites { + @JsonProperty("siteIds") + @Valid + private List siteIds = new ArrayList<>(); + + public BatchUnbindSites siteIds(List siteIds) { + this.siteIds = siteIds; + return this; + } + + public BatchUnbindSites addSiteIdsItem(String siteIdsItem) { + this.siteIds.add(siteIdsItem); + return this; + } + + /** + * The IDs of target sites. + * @return siteIds + */ + @ApiModelProperty(required = true, value = "The IDs of target sites.") + @NotNull + + + public List getSiteIds() { + return siteIds; + } + + public void setSiteIds(List siteIds) { + this.siteIds = siteIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchUnbindSites batchUnbindSites = (BatchUnbindSites) o; + return Objects.equals(this.siteIds, batchUnbindSites.siteIds); + } + + @Override + public int hashCode() { + return Objects.hash(siteIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchUnbindSites {\n"); + + sb.append(" siteIds: ").append(toIndentedString(siteIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BindSiteBriefOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BindSiteBriefOpenApiVo.java new file mode 100644 index 0000000..675b78e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BindSiteBriefOpenApiVo.java @@ -0,0 +1,163 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BindSiteBriefOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class BindSiteBriefOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private String status; + + @JsonProperty("overrides") + @Valid + private List overrides = null; + + public BindSiteBriefOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Site Template ID + * @return id + */ + @ApiModelProperty(value = "Site Template ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public BindSiteBriefOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the site template, contains 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "Name of the site template, contains 1 to 64 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public BindSiteBriefOpenApiVo status(String status) { + this.status = status; + return this; + } + + /** + * Configuration status of the site. + * @return status + */ + @ApiModelProperty(value = "Configuration status of the site.") + + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public BindSiteBriefOpenApiVo overrides(List overrides) { + this.overrides = overrides; + return this; + } + + public BindSiteBriefOpenApiVo addOverridesItem(String overridesItem) { + if (this.overrides == null) { + this.overrides = new ArrayList<>(); + } + this.overrides.add(overridesItem); + return this; + } + + /** + * Override configurations of the site. + * @return overrides + */ + @ApiModelProperty(value = "Override configurations of the site.") + + + public List getOverrides() { + return overrides; + } + + public void setOverrides(List overrides) { + this.overrides = overrides; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BindSiteBriefOpenApiVo bindSiteBriefOpenApiVo = (BindSiteBriefOpenApiVo) o; + return Objects.equals(this.id, bindSiteBriefOpenApiVo.id) && + Objects.equals(this.name, bindSiteBriefOpenApiVo.name) && + Objects.equals(this.status, bindSiteBriefOpenApiVo.status) && + Objects.equals(this.overrides, bindSiteBriefOpenApiVo.overrides); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, status, overrides); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BindSiteBriefOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" overrides: ").append(toIndentedString(overrides)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BindSiteOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BindSiteOpenApiVo.java new file mode 100644 index 0000000..f3423b0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/BindSiteOpenApiVo.java @@ -0,0 +1,116 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BindSiteOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class BindSiteOpenApiVo { + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("switches") + @Valid + private List switches = null; + + public BindSiteOpenApiVo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID to bind. + * @return siteId + */ + @ApiModelProperty(required = true, value = "Site ID to bind.") + @NotNull + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public BindSiteOpenApiVo switches(List switches) { + this.switches = switches; + return this; + } + + public BindSiteOpenApiVo addSwitchesItem(DeviceBindOpenApiVo switchesItem) { + if (this.switches == null) { + this.switches = new ArrayList<>(); + } + this.switches.add(switchesItem); + return this; + } + + /** + * Switch choose for binding device template. + * @return switches + */ + @ApiModelProperty(value = "Switch choose for binding device template.") + + @Valid + + public List getSwitches() { + return switches; + } + + public void setSwitches(List switches) { + this.switches = switches; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BindSiteOpenApiVo bindSiteOpenApiVo = (BindSiteOpenApiVo) o; + return Objects.equals(this.siteId, bindSiteOpenApiVo.siteId) && + Objects.equals(this.switches, bindSiteOpenApiVo.switches); + } + + @Override + public int hashCode() { + return Objects.hash(siteId, switches); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BindSiteOpenApiVo {\n"); + + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" switches: ").append(toIndentedString(switches)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteResultVo.java new file mode 100644 index 0000000..d4c4602 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteResultVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CopySiteResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class CopySiteResultVo { + @JsonProperty("id") + private String id; + + public CopySiteResultVo id(String id) { + this.id = id; + return this; + } + + /** + * Copied site ID . + * @return id + */ + @ApiModelProperty(value = "Copied site ID .") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CopySiteResultVo copySiteResultVo = (CopySiteResultVo) o; + return Objects.equals(this.id, copySiteResultVo.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CopySiteResultVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteTemplateOpenApiResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteTemplateOpenApiResultVo.java new file mode 100644 index 0000000..18cb378 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteTemplateOpenApiResultVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CopySiteTemplateOpenApiResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class CopySiteTemplateOpenApiResultVo { + @JsonProperty("successNum") + private Integer successNum; + + @JsonProperty("failNum") + private Integer failNum; + + @JsonProperty("errorCustomers") + @Valid + private List errorCustomers = null; + + public CopySiteTemplateOpenApiResultVo successNum(Integer successNum) { + this.successNum = successNum; + return this; + } + + /** + * Number of successful copies. + * @return successNum + */ + @ApiModelProperty(value = "Number of successful copies.") + + + public Integer getSuccessNum() { + return successNum; + } + + public void setSuccessNum(Integer successNum) { + this.successNum = successNum; + } + + public CopySiteTemplateOpenApiResultVo failNum(Integer failNum) { + this.failNum = failNum; + return this; + } + + /** + * Number of failed copies. + * @return failNum + */ + @ApiModelProperty(value = "Number of failed copies.") + + + public Integer getFailNum() { + return failNum; + } + + public void setFailNum(Integer failNum) { + this.failNum = failNum; + } + + public CopySiteTemplateOpenApiResultVo errorCustomers(List errorCustomers) { + this.errorCustomers = errorCustomers; + return this; + } + + public CopySiteTemplateOpenApiResultVo addErrorCustomersItem(SiteCopyResultVo errorCustomersItem) { + if (this.errorCustomers == null) { + this.errorCustomers = new ArrayList<>(); + } + this.errorCustomers.add(errorCustomersItem); + return this; + } + + /** + * Copy failed customer related information. + * @return errorCustomers + */ + @ApiModelProperty(value = "Copy failed customer related information.") + + @Valid + + public List getErrorCustomers() { + return errorCustomers; + } + + public void setErrorCustomers(List errorCustomers) { + this.errorCustomers = errorCustomers; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CopySiteTemplateOpenApiResultVo copySiteTemplateOpenApiResultVo = (CopySiteTemplateOpenApiResultVo) o; + return Objects.equals(this.successNum, copySiteTemplateOpenApiResultVo.successNum) && + Objects.equals(this.failNum, copySiteTemplateOpenApiResultVo.failNum) && + Objects.equals(this.errorCustomers, copySiteTemplateOpenApiResultVo.errorCustomers); + } + + @Override + public int hashCode() { + return Objects.hash(successNum, failNum, errorCustomers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CopySiteTemplateOpenApiResultVo {\n"); + + sb.append(" successNum: ").append(toIndentedString(successNum)).append("\n"); + sb.append(" failNum: ").append(toIndentedString(failNum)).append("\n"); + sb.append(" errorCustomers: ").append(toIndentedString(errorCustomers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteTemplateOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteTemplateOpenApiVo.java new file mode 100644 index 0000000..6ffaef8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CopySiteTemplateOpenApiVo.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CopySiteTemplateOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class CopySiteTemplateOpenApiVo { + @JsonProperty("name") + private String name; + + public CopySiteTemplateOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the site should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the site should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CopySiteTemplateOpenApiVo copySiteTemplateOpenApiVo = (CopySiteTemplateOpenApiVo) o; + return Objects.equals(this.name, copySiteTemplateOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CopySiteTemplateOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteByTemplate.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteByTemplate.java new file mode 100644 index 0000000..90c30c7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteByTemplate.java @@ -0,0 +1,346 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateSiteByTemplate + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class CreateSiteByTemplate { + @JsonProperty("siteTemplateId") + private String siteTemplateId; + + @JsonProperty("name") + private String name; + + @JsonProperty("region") + private String region; + + @JsonProperty("scenario") + private String scenario; + + @JsonProperty("tagIds") + @Valid + private List tagIds = null; + + @JsonProperty("longitude") + private Double longitude; + + @JsonProperty("latitude") + private Double latitude; + + @JsonProperty("address") + private String address; + + @JsonProperty("deviceAccountSetting") + private DeviceAccountSettingOpenApiVo deviceAccountSetting; + + @JsonProperty("supportES") + private Boolean supportES; + + @JsonProperty("supportL2") + private Boolean supportL2; + + public CreateSiteByTemplate siteTemplateId(String siteTemplateId) { + this.siteTemplateId = siteTemplateId; + return this; + } + + /** + * Site template ID. + * @return siteTemplateId + */ + @ApiModelProperty(required = true, value = "Site template ID.") + @NotNull + + + public String getSiteTemplateId() { + return siteTemplateId; + } + + public void setSiteTemplateId(String siteTemplateId) { + this.siteTemplateId = siteTemplateId; + } + + public CreateSiteByTemplate name(String name) { + this.name = name; + return this; + } + + /** + * Name of the site should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the site should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateSiteByTemplate region(String region) { + this.region = region; + return this; + } + + /** + * Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America. + * @return region + */ + @ApiModelProperty(required = true, value = "Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America.") + @NotNull + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public CreateSiteByTemplate scenario(String scenario) { + this.scenario = scenario; + return this; + } + + /** + * For the values of the scenario of the site, refer to result of the interface for Get scenario list. + * @return scenario + */ + @ApiModelProperty(required = true, value = "For the values of the scenario of the site, refer to result of the interface for Get scenario list.") + @NotNull + + + public String getScenario() { + return scenario; + } + + public void setScenario(String scenario) { + this.scenario = scenario; + } + + public CreateSiteByTemplate tagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + public CreateSiteByTemplate addTagIdsItem(String tagIdsItem) { + if (this.tagIds == null) { + this.tagIds = new ArrayList<>(); + } + this.tagIds.add(tagIdsItem); + return this; + } + + /** + * Site tag ID, Site tag ID can be created using \"Create new site tag\" interface, and site tag ID can be obtained from \"Get site tag list\" interface + * @return tagIds + */ + @ApiModelProperty(value = "Site tag ID, Site tag ID can be created using \"Create new site tag\" interface, and site tag ID can be obtained from \"Get site tag list\" interface") + + + public List getTagIds() { + return tagIds; + } + + public void setTagIds(List tagIds) { + this.tagIds = tagIds; + } + + public CreateSiteByTemplate longitude(Double longitude) { + this.longitude = longitude; + return this; + } + + /** + * Longitude of the site should be within the range of -180 - 180. + * @return longitude + */ + @ApiModelProperty(value = "Longitude of the site should be within the range of -180 - 180.") + + + public Double getLongitude() { + return longitude; + } + + public void setLongitude(Double longitude) { + this.longitude = longitude; + } + + public CreateSiteByTemplate latitude(Double latitude) { + this.latitude = latitude; + return this; + } + + /** + * Latitude of the site should be within the range of -90 - 90. + * @return latitude + */ + @ApiModelProperty(value = "Latitude of the site should be within the range of -90 - 90.") + + + public Double getLatitude() { + return latitude; + } + + public void setLatitude(Double latitude) { + this.latitude = latitude; + } + + public CreateSiteByTemplate address(String address) { + this.address = address; + return this; + } + + /** + * Address of the site + * @return address + */ + @ApiModelProperty(value = "Address of the site") + + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public CreateSiteByTemplate deviceAccountSetting(DeviceAccountSettingOpenApiVo deviceAccountSetting) { + this.deviceAccountSetting = deviceAccountSetting; + return this; + } + + /** + * Get deviceAccountSetting + * @return deviceAccountSetting + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public DeviceAccountSettingOpenApiVo getDeviceAccountSetting() { + return deviceAccountSetting; + } + + public void setDeviceAccountSetting(DeviceAccountSettingOpenApiVo deviceAccountSetting) { + this.deviceAccountSetting = deviceAccountSetting; + } + + public CreateSiteByTemplate supportES(Boolean supportES) { + this.supportES = supportES; + return this; + } + + /** + * Whether the site supports adopting Easy Managed switches + * @return supportES + */ + @ApiModelProperty(value = "Whether the site supports adopting Easy Managed switches") + + + public Boolean getSupportES() { + return supportES; + } + + public void setSupportES(Boolean supportES) { + this.supportES = supportES; + } + + public CreateSiteByTemplate supportL2(Boolean supportL2) { + this.supportL2 = supportL2; + return this; + } + + /** + * Whether the site supports adopting Smart+ or L2+ or L3 switches + * @return supportL2 + */ + @ApiModelProperty(value = "Whether the site supports adopting Smart+ or L2+ or L3 switches") + + + public Boolean getSupportL2() { + return supportL2; + } + + public void setSupportL2(Boolean supportL2) { + this.supportL2 = supportL2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSiteByTemplate createSiteByTemplate = (CreateSiteByTemplate) o; + return Objects.equals(this.siteTemplateId, createSiteByTemplate.siteTemplateId) && + Objects.equals(this.name, createSiteByTemplate.name) && + Objects.equals(this.region, createSiteByTemplate.region) && + Objects.equals(this.scenario, createSiteByTemplate.scenario) && + Objects.equals(this.tagIds, createSiteByTemplate.tagIds) && + Objects.equals(this.longitude, createSiteByTemplate.longitude) && + Objects.equals(this.latitude, createSiteByTemplate.latitude) && + Objects.equals(this.address, createSiteByTemplate.address) && + Objects.equals(this.deviceAccountSetting, createSiteByTemplate.deviceAccountSetting) && + Objects.equals(this.supportES, createSiteByTemplate.supportES) && + Objects.equals(this.supportL2, createSiteByTemplate.supportL2); + } + + @Override + public int hashCode() { + return Objects.hash(siteTemplateId, name, region, scenario, tagIds, longitude, latitude, address, deviceAccountSetting, supportES, supportL2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSiteByTemplate {\n"); + + sb.append(" siteTemplateId: ").append(toIndentedString(siteTemplateId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" scenario: ").append(toIndentedString(scenario)).append("\n"); + sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); + sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); + sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" deviceAccountSetting: ").append(toIndentedString(deviceAccountSetting)).append("\n"); + sb.append(" supportES: ").append(toIndentedString(supportES)).append("\n"); + sb.append(" supportL2: ").append(toIndentedString(supportL2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteEntity.java new file mode 100644 index 0000000..22e069a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteEntity.java @@ -0,0 +1,371 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateSiteEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class CreateSiteEntity { + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("region") + private String region; + + @JsonProperty("timeZone") + private String timeZone; + + @JsonProperty("scenario") + private String scenario; + + @JsonProperty("tagIds") + @Valid + private List tagIds = null; + + @JsonProperty("longitude") + private Double longitude; + + @JsonProperty("latitude") + private Double latitude; + + @JsonProperty("address") + private String address; + + @JsonProperty("deviceAccountSetting") + private DeviceAccountSettingOpenApiVo deviceAccountSetting; + + @JsonProperty("supportES") + private Boolean supportES; + + @JsonProperty("supportL2") + private Boolean supportL2; + + public CreateSiteEntity name(String name) { + this.name = name; + return this; + } + + /** + * Name of the site should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the site should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateSiteEntity type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of the site should be 0 or 1, and 0 means basic site, 1 means pro site. + * @return type + */ + @ApiModelProperty(value = "Type of the site should be 0 or 1, and 0 means basic site, 1 means pro site.") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public CreateSiteEntity region(String region) { + this.region = region; + return this; + } + + /** + * Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America. + * @return region + */ + @ApiModelProperty(required = true, value = "Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America.") + @NotNull + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public CreateSiteEntity timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * For the values of the timezone of the site, refer to section 5.1 of the Open API Access Guide. + * @return timeZone + */ + @ApiModelProperty(required = true, value = "For the values of the timezone of the site, refer to section 5.1 of the Open API Access Guide.") + @NotNull + + + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public CreateSiteEntity scenario(String scenario) { + this.scenario = scenario; + return this; + } + + /** + * For the values of the scenario of the site, refer to result of the interface for Get scenario list. + * @return scenario + */ + @ApiModelProperty(required = true, value = "For the values of the scenario of the site, refer to result of the interface for Get scenario list.") + @NotNull + + + public String getScenario() { + return scenario; + } + + public void setScenario(String scenario) { + this.scenario = scenario; + } + + public CreateSiteEntity tagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + public CreateSiteEntity addTagIdsItem(String tagIdsItem) { + if (this.tagIds == null) { + this.tagIds = new ArrayList<>(); + } + this.tagIds.add(tagIdsItem); + return this; + } + + /** + * Site tag ID, Site tag ID can be created using \"Create new site tag\" interface, and site tag ID can be obtained from \"Get site tag list\" interface + * @return tagIds + */ + @ApiModelProperty(value = "Site tag ID, Site tag ID can be created using \"Create new site tag\" interface, and site tag ID can be obtained from \"Get site tag list\" interface") + + + public List getTagIds() { + return tagIds; + } + + public void setTagIds(List tagIds) { + this.tagIds = tagIds; + } + + public CreateSiteEntity longitude(Double longitude) { + this.longitude = longitude; + return this; + } + + /** + * Longitude of the site should be within the range of -180 - 180. + * @return longitude + */ + @ApiModelProperty(value = "Longitude of the site should be within the range of -180 - 180.") + + + public Double getLongitude() { + return longitude; + } + + public void setLongitude(Double longitude) { + this.longitude = longitude; + } + + public CreateSiteEntity latitude(Double latitude) { + this.latitude = latitude; + return this; + } + + /** + * Latitude of the site should be within the range of -90 - 90. + * @return latitude + */ + @ApiModelProperty(value = "Latitude of the site should be within the range of -90 - 90.") + + + public Double getLatitude() { + return latitude; + } + + public void setLatitude(Double latitude) { + this.latitude = latitude; + } + + public CreateSiteEntity address(String address) { + this.address = address; + return this; + } + + /** + * Address of the site + * @return address + */ + @ApiModelProperty(value = "Address of the site") + + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public CreateSiteEntity deviceAccountSetting(DeviceAccountSettingOpenApiVo deviceAccountSetting) { + this.deviceAccountSetting = deviceAccountSetting; + return this; + } + + /** + * Get deviceAccountSetting + * @return deviceAccountSetting + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public DeviceAccountSettingOpenApiVo getDeviceAccountSetting() { + return deviceAccountSetting; + } + + public void setDeviceAccountSetting(DeviceAccountSettingOpenApiVo deviceAccountSetting) { + this.deviceAccountSetting = deviceAccountSetting; + } + + public CreateSiteEntity supportES(Boolean supportES) { + this.supportES = supportES; + return this; + } + + /** + * Whether the site supports adopting Easy Managed switches + * @return supportES + */ + @ApiModelProperty(value = "Whether the site supports adopting Easy Managed switches") + + + public Boolean getSupportES() { + return supportES; + } + + public void setSupportES(Boolean supportES) { + this.supportES = supportES; + } + + public CreateSiteEntity supportL2(Boolean supportL2) { + this.supportL2 = supportL2; + return this; + } + + /** + * Whether the site supports adopting Smart+ or L2+ or L3 switches + * @return supportL2 + */ + @ApiModelProperty(value = "Whether the site supports adopting Smart+ or L2+ or L3 switches") + + + public Boolean getSupportL2() { + return supportL2; + } + + public void setSupportL2(Boolean supportL2) { + this.supportL2 = supportL2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSiteEntity createSiteEntity = (CreateSiteEntity) o; + return Objects.equals(this.name, createSiteEntity.name) && + Objects.equals(this.type, createSiteEntity.type) && + Objects.equals(this.region, createSiteEntity.region) && + Objects.equals(this.timeZone, createSiteEntity.timeZone) && + Objects.equals(this.scenario, createSiteEntity.scenario) && + Objects.equals(this.tagIds, createSiteEntity.tagIds) && + Objects.equals(this.longitude, createSiteEntity.longitude) && + Objects.equals(this.latitude, createSiteEntity.latitude) && + Objects.equals(this.address, createSiteEntity.address) && + Objects.equals(this.deviceAccountSetting, createSiteEntity.deviceAccountSetting) && + Objects.equals(this.supportES, createSiteEntity.supportES) && + Objects.equals(this.supportL2, createSiteEntity.supportL2); + } + + @Override + public int hashCode() { + return Objects.hash(name, type, region, timeZone, scenario, tagIds, longitude, latitude, address, deviceAccountSetting, supportES, supportL2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSiteEntity {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" scenario: ").append(toIndentedString(scenario)).append("\n"); + sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); + sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); + sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" deviceAccountSetting: ").append(toIndentedString(deviceAccountSetting)).append("\n"); + sb.append(" supportES: ").append(toIndentedString(supportES)).append("\n"); + sb.append(" supportL2: ").append(toIndentedString(supportL2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteTagOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteTagOpenApiVo.java new file mode 100644 index 0000000..fae1f36 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteTagOpenApiVo.java @@ -0,0 +1,77 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CreateSiteTagOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class CreateSiteTagOpenApiVo { + @JsonProperty("name") + private String name; + + public CreateSiteTagOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Tag name should contain 1 to 128 ASCII characters + * @return name + */ + @ApiModelProperty(value = "Tag name should contain 1 to 128 ASCII characters") + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSiteTagOpenApiVo createSiteTagOpenApiVo = (CreateSiteTagOpenApiVo) o; + return Objects.equals(this.name, createSiteTagOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSiteTagOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteTemplateEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteTemplateEntity.java new file mode 100644 index 0000000..c2abb1b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/CreateSiteTemplateEntity.java @@ -0,0 +1,116 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateSiteTemplateEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class CreateSiteTemplateEntity { + @JsonProperty("name") + private String name; + + @JsonProperty("settings") + @Valid + private List settings = null; + + public CreateSiteTemplateEntity name(String name) { + this.name = name; + return this; + } + + /** + * Name of the site template should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the site template should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateSiteTemplateEntity settings(List settings) { + this.settings = settings; + return this; + } + + public CreateSiteTemplateEntity addSettingsItem(String settingsItem) { + if (this.settings == null) { + this.settings = new ArrayList<>(); + } + this.settings.add(settingsItem); + return this; + } + + /** + * Settings of the site template support. + * @return settings + */ + @ApiModelProperty(value = "Settings of the site template support.") + + + public List getSettings() { + return settings; + } + + public void setSettings(List settings) { + this.settings = settings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSiteTemplateEntity createSiteTemplateEntity = (CreateSiteTemplateEntity) o; + return Objects.equals(this.name, createSiteTemplateEntity.name) && + Objects.equals(this.settings, createSiteTemplateEntity.settings); + } + + @Override + public int hashCode() { + return Objects.hash(name, settings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSiteTemplateEntity {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" settings: ").append(toIndentedString(settings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeleteSiteTagOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeleteSiteTagOpenApiVo.java new file mode 100644 index 0000000..e190a4e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeleteSiteTagOpenApiVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DeleteSiteTagOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class DeleteSiteTagOpenApiVo { + @JsonProperty("tagId") + private String tagId; + + public DeleteSiteTagOpenApiVo tagId(String tagId) { + this.tagId = tagId; + return this; + } + + /** + * Tag ID + * @return tagId + */ + @ApiModelProperty(required = true, value = "Tag ID") + @NotNull + + + public String getTagId() { + return tagId; + } + + public void setTagId(String tagId) { + this.tagId = tagId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteSiteTagOpenApiVo deleteSiteTagOpenApiVo = (DeleteSiteTagOpenApiVo) o; + return Objects.equals(this.tagId, deleteSiteTagOpenApiVo.tagId); + } + + @Override + public int hashCode() { + return Objects.hash(tagId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteSiteTagOpenApiVo {\n"); + + sb.append(" tagId: ").append(toIndentedString(tagId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceAccountSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceAccountSettingOpenApiVo.java new file mode 100644 index 0000000..8ae671d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceAccountSettingOpenApiVo.java @@ -0,0 +1,105 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * DeviceAccountSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class DeviceAccountSettingOpenApiVo { + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + public DeviceAccountSettingOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * Device account username should contain 1 to 64 ASCII characters. + * @return username + */ + @ApiModelProperty(required = true, value = "Device account username should contain 1 to 64 ASCII characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]{1,64}$") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public DeviceAccountSettingOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Device account parameter [password] should contain 8 to 64 ASCII characters. And passwords must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported. + * @return password + */ + @ApiModelProperty(required = true, value = "Device account parameter [password] should contain 8 to 64 ASCII characters. And passwords must be a combination of uppercase letters, lowercase letters, numbers, and special symbols. Symbols such as ! # $ % & * @ ^ are supported.") + @NotNull + +@Pattern(regexp="^(?=.*[a-z])(?=.*[A-Z])(?=.*\\d)(?=.*[\\!\\#\\$\\%\\&\\'\\(\\)\\*\\+\\,\\-\\./\\:\\;\\<\\=\\>\\@\\[\\\\\\]\\^\\_\\`\\{\\|\\}\\~])(?!.*[\\00-\\040\\042\\077\\0177]).{8,64}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceAccountSettingOpenApiVo deviceAccountSettingOpenApiVo = (DeviceAccountSettingOpenApiVo) o; + return Objects.equals(this.username, deviceAccountSettingOpenApiVo.username) && + Objects.equals(this.password, deviceAccountSettingOpenApiVo.password); + } + + @Override + public int hashCode() { + return Objects.hash(username, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceAccountSettingOpenApiVo {\n"); + + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindBriefOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindBriefOpenApiVo.java new file mode 100644 index 0000000..1bca771 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindBriefOpenApiVo.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DeviceBindBriefOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class DeviceBindBriefOpenApiVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("siteId") + private String siteId; + + public DeviceBindBriefOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * The mac address of device, like AA-BB-CC-DD-EE-FF. + * @return mac + */ + @ApiModelProperty(required = true, value = "The mac address of device, like AA-BB-CC-DD-EE-FF.") + @NotNull + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public DeviceBindBriefOpenApiVo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * The ID of target site. + * @return siteId + */ + @ApiModelProperty(required = true, value = "The ID of target site.") + @NotNull + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceBindBriefOpenApiVo deviceBindBriefOpenApiVo = (DeviceBindBriefOpenApiVo) o; + return Objects.equals(this.mac, deviceBindBriefOpenApiVo.mac) && + Objects.equals(this.siteId, deviceBindBriefOpenApiVo.siteId); + } + + @Override + public int hashCode() { + return Objects.hash(mac, siteId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceBindBriefOpenApiVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindOpenApiVo.java new file mode 100644 index 0000000..2eb17b4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Switch choose for binding device template. + */ +@ApiModel(description = "Switch choose for binding device template.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class DeviceBindOpenApiVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("deviceTemplateId") + private String deviceTemplateId; + + public DeviceBindOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Switch MAC address, like AA-BB-CC-DD-EE-FF. + * @return mac + */ + @ApiModelProperty(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public DeviceBindOpenApiVo deviceTemplateId(String deviceTemplateId) { + this.deviceTemplateId = deviceTemplateId; + return this; + } + + /** + * Switch device template ID. + * @return deviceTemplateId + */ + @ApiModelProperty(value = "Switch device template ID.") + + + public String getDeviceTemplateId() { + return deviceTemplateId; + } + + public void setDeviceTemplateId(String deviceTemplateId) { + this.deviceTemplateId = deviceTemplateId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceBindOpenApiVo deviceBindOpenApiVo = (DeviceBindOpenApiVo) o; + return Objects.equals(this.mac, deviceBindOpenApiVo.mac) && + Objects.equals(this.deviceTemplateId, deviceBindOpenApiVo.deviceTemplateId); + } + + @Override + public int hashCode() { + return Objects.hash(mac, deviceTemplateId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceBindOpenApiVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" deviceTemplateId: ").append(toIndentedString(deviceTemplateId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindResultOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindResultOpenApiVo.java new file mode 100644 index 0000000..d5ed544 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceBindResultOpenApiVo.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Devices with failed operation. + */ +@ApiModel(description = "Devices with failed operation.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class DeviceBindResultOpenApiVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public DeviceBindResultOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * The mac address of device, like AA-BB-CC-DD-EE-FF. + * @return mac + */ + @ApiModelProperty(value = "The mac address of device, like AA-BB-CC-DD-EE-FF.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public DeviceBindResultOpenApiVo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * The ID of target site. + * @return siteId + */ + @ApiModelProperty(value = "The ID of target site.") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public DeviceBindResultOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * The error code for failed operation. + * @return errorCode + */ + @ApiModelProperty(value = "The error code for failed operation.") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public DeviceBindResultOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * The message for failed operation. + * @return msg + */ + @ApiModelProperty(value = "The message for failed operation.") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceBindResultOpenApiVo deviceBindResultOpenApiVo = (DeviceBindResultOpenApiVo) o; + return Objects.equals(this.mac, deviceBindResultOpenApiVo.mac) && + Objects.equals(this.siteId, deviceBindResultOpenApiVo.siteId) && + Objects.equals(this.errorCode, deviceBindResultOpenApiVo.errorCode) && + Objects.equals(this.msg, deviceBindResultOpenApiVo.msg); + } + + @Override + public int hashCode() { + return Objects.hash(mac, siteId, errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceBindResultOpenApiVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceTemplateBriefOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceTemplateBriefOpenApiVo.java new file mode 100644 index 0000000..471627d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DeviceTemplateBriefOpenApiVo.java @@ -0,0 +1,151 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * DeviceTemplateBriefOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class DeviceTemplateBriefOpenApiVo { + @JsonProperty("ID") + private String ID; + + @JsonProperty("templateName") + private String templateName; + + @JsonProperty("deviceType") + private String deviceType; + + @JsonProperty("showModel") + private String showModel; + + public DeviceTemplateBriefOpenApiVo ID(String ID) { + this.ID = ID; + return this; + } + + /** + * The ID of device template. + * @return ID + */ + @ApiModelProperty(value = "The ID of device template.") + + + public String getID() { + return ID; + } + + public void setID(String ID) { + this.ID = ID; + } + + public DeviceTemplateBriefOpenApiVo templateName(String templateName) { + this.templateName = templateName; + return this; + } + + /** + * The name of device template. + * @return templateName + */ + @ApiModelProperty(value = "The name of device template.") + + + public String getTemplateName() { + return templateName; + } + + public void setTemplateName(String templateName) { + this.templateName = templateName; + } + + public DeviceTemplateBriefOpenApiVo deviceType(String deviceType) { + this.deviceType = deviceType; + return this; + } + + /** + * The type of device. + * @return deviceType + */ + @ApiModelProperty(value = "The type of device.") + + + public String getDeviceType() { + return deviceType; + } + + public void setDeviceType(String deviceType) { + this.deviceType = deviceType; + } + + public DeviceTemplateBriefOpenApiVo showModel(String showModel) { + this.showModel = showModel; + return this; + } + + /** + * The model name of device. + * @return showModel + */ + @ApiModelProperty(value = "The model name of device.") + + + public String getShowModel() { + return showModel; + } + + public void setShowModel(String showModel) { + this.showModel = showModel; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceTemplateBriefOpenApiVo deviceTemplateBriefOpenApiVo = (DeviceTemplateBriefOpenApiVo) o; + return Objects.equals(this.ID, deviceTemplateBriefOpenApiVo.ID) && + Objects.equals(this.templateName, deviceTemplateBriefOpenApiVo.templateName) && + Objects.equals(this.deviceType, deviceTemplateBriefOpenApiVo.deviceType) && + Objects.equals(this.showModel, deviceTemplateBriefOpenApiVo.showModel); + } + + @Override + public int hashCode() { + return Objects.hash(ID, templateName, deviceType, showModel); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceTemplateBriefOpenApiVo {\n"); + + sb.append(" ID: ").append(toIndentedString(ID)).append("\n"); + sb.append(" templateName: ").append(toIndentedString(templateName)).append("\n"); + sb.append(" deviceType: ").append(toIndentedString(deviceType)).append("\n"); + sb.append(" showModel: ").append(toIndentedString(showModel)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstDto.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstDto.java new file mode 100644 index 0000000..1bc7c41 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstDto.java @@ -0,0 +1,356 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Daylight Saving Time config of the site + */ +@ApiModel(description = "Daylight Saving Time config of the site") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class DstDto { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("start") + private DstTimeDto start; + + @JsonProperty("end") + private DstTimeDto end; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("startTime") + private Long startTime; + + @JsonProperty("endTime") + private Long endTime; + + @JsonProperty("offset") + private Long offset; + + @JsonProperty("nextStart") + private Long nextStart; + + @JsonProperty("nextEnd") + private Long nextEnd; + + @JsonProperty("timeZone") + private String timeZone; + + @JsonProperty("lastStart") + private Long lastStart; + + @JsonProperty("lastEnd") + private Long lastEnd; + + public DstDto enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * DST config status; If false, other parameters are not required. + * @return enable + */ + @ApiModelProperty(value = "DST config status; If false, other parameters are not required.") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public DstDto start(DstTimeDto start) { + this.start = start; + return this; + } + + /** + * Get start + * @return start + */ + @ApiModelProperty(value = "") + + @Valid + + public DstTimeDto getStart() { + return start; + } + + public void setStart(DstTimeDto start) { + this.start = start; + } + + public DstDto end(DstTimeDto end) { + this.end = end; + return this; + } + + /** + * Get end + * @return end + */ + @ApiModelProperty(value = "") + + @Valid + + public DstTimeDto getEnd() { + return end; + } + + public void setEnd(DstTimeDto end) { + this.end = end; + } + + public DstDto status(Boolean status) { + this.status = status; + return this; + } + + /** + * DST available status + * @return status + */ + @ApiModelProperty(value = "DST available status") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public DstDto startTime(Long startTime) { + this.startTime = startTime; + return this; + } + + /** + * The timeStamp of the DST available start time + * @return startTime + */ + @ApiModelProperty(value = "The timeStamp of the DST available start time") + + + public Long getStartTime() { + return startTime; + } + + public void setStartTime(Long startTime) { + this.startTime = startTime; + } + + public DstDto endTime(Long endTime) { + this.endTime = endTime; + return this; + } + + /** + * The timeStamp of the DST available end time + * @return endTime + */ + @ApiModelProperty(value = "The timeStamp of the DST available end time") + + + public Long getEndTime() { + return endTime; + } + + public void setEndTime(Long endTime) { + this.endTime = endTime; + } + + public DstDto offset(Long offset) { + this.offset = offset; + return this; + } + + /** + * DST offset config(Unit: ms); It should be a value as follows: [1800000, 3600000, 5400000, 7200000]. + * @return offset + */ + @ApiModelProperty(value = "DST offset config(Unit: ms); It should be a value as follows: [1800000, 3600000, 5400000, 7200000].") + + + public Long getOffset() { + return offset; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + public DstDto nextStart(Long nextStart) { + this.nextStart = nextStart; + return this; + } + + /** + * The timeStamp of the DST start time of the next year(Unit: ms) + * @return nextStart + */ + @ApiModelProperty(value = "The timeStamp of the DST start time of the next year(Unit: ms)") + + + public Long getNextStart() { + return nextStart; + } + + public void setNextStart(Long nextStart) { + this.nextStart = nextStart; + } + + public DstDto nextEnd(Long nextEnd) { + this.nextEnd = nextEnd; + return this; + } + + /** + * The timeStamp of the DST end time of the next year(Unit: ms) + * @return nextEnd + */ + @ApiModelProperty(value = "The timeStamp of the DST end time of the next year(Unit: ms)") + + + public Long getNextEnd() { + return nextEnd; + } + + public void setNextEnd(Long nextEnd) { + this.nextEnd = nextEnd; + } + + public DstDto timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * Timezone of the site + * @return timeZone + */ + @ApiModelProperty(value = "Timezone of the site") + + + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public DstDto lastStart(Long lastStart) { + this.lastStart = lastStart; + return this; + } + + /** + * The timeStamp of the DST start time of the last year(Unit: ms) + * @return lastStart + */ + @ApiModelProperty(value = "The timeStamp of the DST start time of the last year(Unit: ms)") + + + public Long getLastStart() { + return lastStart; + } + + public void setLastStart(Long lastStart) { + this.lastStart = lastStart; + } + + public DstDto lastEnd(Long lastEnd) { + this.lastEnd = lastEnd; + return this; + } + + /** + * The timeStamp of the DST end time of the last year(Unit: ms) + * @return lastEnd + */ + @ApiModelProperty(value = "The timeStamp of the DST end time of the last year(Unit: ms)") + + + public Long getLastEnd() { + return lastEnd; + } + + public void setLastEnd(Long lastEnd) { + this.lastEnd = lastEnd; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DstDto dstDto = (DstDto) o; + return Objects.equals(this.enable, dstDto.enable) && + Objects.equals(this.start, dstDto.start) && + Objects.equals(this.end, dstDto.end) && + Objects.equals(this.status, dstDto.status) && + Objects.equals(this.startTime, dstDto.startTime) && + Objects.equals(this.endTime, dstDto.endTime) && + Objects.equals(this.offset, dstDto.offset) && + Objects.equals(this.nextStart, dstDto.nextStart) && + Objects.equals(this.nextEnd, dstDto.nextEnd) && + Objects.equals(this.timeZone, dstDto.timeZone) && + Objects.equals(this.lastStart, dstDto.lastStart) && + Objects.equals(this.lastEnd, dstDto.lastEnd); + } + + @Override + public int hashCode() { + return Objects.hash(enable, start, end, status, startTime, endTime, offset, nextStart, nextEnd, timeZone, lastStart, lastEnd); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DstDto {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append(" nextStart: ").append(toIndentedString(nextStart)).append("\n"); + sb.append(" nextEnd: ").append(toIndentedString(nextEnd)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" lastStart: ").append(toIndentedString(lastStart)).append("\n"); + sb.append(" lastEnd: ").append(toIndentedString(lastEnd)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstTimeDto.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstTimeDto.java new file mode 100644 index 0000000..ca95722 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstTimeDto.java @@ -0,0 +1,184 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DST end time config + */ +@ApiModel(description = "DST end time config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class DstTimeDto { + @JsonProperty("month") + private Integer month; + + @JsonProperty("serial") + private Integer serial; + + @JsonProperty("day") + private Integer day; + + @JsonProperty("hour") + private Integer hour; + + @JsonProperty("minute") + private Integer minute; + + public DstTimeDto month(Integer month) { + this.month = month; + return this; + } + + /** + * Month of the DST config should be a value as follows: 1: January; 2: February; 3: March; 4: April; 5: May; 6: June; 7: July; 8: August; 9: September; 10: October; 11: November; 12: December. + * @return month + */ + @ApiModelProperty(required = true, value = "Month of the DST config should be a value as follows: 1: January; 2: February; 3: March; 4: April; 5: May; 6: June; 7: July; 8: August; 9: September; 10: October; 11: November; 12: December.") + @NotNull + + + public Integer getMonth() { + return month; + } + + public void setMonth(Integer month) { + this.month = month; + } + + public DstTimeDto serial(Integer serial) { + this.serial = serial; + return this; + } + + /** + * Week of the DST config should be a value as follows: 1: 1st; 2: 2nd; 3: 3rd; 4: 4th; 5: Last. + * @return serial + */ + @ApiModelProperty(required = true, value = "Week of the DST config should be a value as follows: 1: 1st; 2: 2nd; 3: 3rd; 4: 4th; 5: Last.") + @NotNull + + + public Integer getSerial() { + return serial; + } + + public void setSerial(Integer serial) { + this.serial = serial; + } + + public DstTimeDto day(Integer day) { + this.day = day; + return this; + } + + /** + * Day of the DST config should be a value as follows: 1: Monday; 2: Tuesday; 3: Wednesday; 4: Thursday; 5: Friday; 6: Saturday; 7: Sunday. + * @return day + */ + @ApiModelProperty(required = true, value = "Day of the DST config should be a value as follows: 1: Monday; 2: Tuesday; 3: Wednesday; 4: Thursday; 5: Friday; 6: Saturday; 7: Sunday.") + @NotNull + + + public Integer getDay() { + return day; + } + + public void setDay(Integer day) { + this.day = day; + } + + public DstTimeDto hour(Integer hour) { + this.hour = hour; + return this; + } + + /** + * Hour of the DST config should be within the range of 0–23. + * @return hour + */ + @ApiModelProperty(required = true, value = "Hour of the DST config should be within the range of 0–23.") + @NotNull + + + public Integer getHour() { + return hour; + } + + public void setHour(Integer hour) { + this.hour = hour; + } + + public DstTimeDto minute(Integer minute) { + this.minute = minute; + return this; + } + + /** + * Minute of the DST config should be within the range of 0–59. + * @return minute + */ + @ApiModelProperty(required = true, value = "Minute of the DST config should be within the range of 0–59.") + @NotNull + + + public Integer getMinute() { + return minute; + } + + public void setMinute(Integer minute) { + this.minute = minute; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DstTimeDto dstTimeDto = (DstTimeDto) o; + return Objects.equals(this.month, dstTimeDto.month) && + Objects.equals(this.serial, dstTimeDto.serial) && + Objects.equals(this.day, dstTimeDto.day) && + Objects.equals(this.hour, dstTimeDto.hour) && + Objects.equals(this.minute, dstTimeDto.minute); + } + + @Override + public int hashCode() { + return Objects.hash(month, serial, day, hour, minute); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DstTimeDto {\n"); + + sb.append(" month: ").append(toIndentedString(month)).append("\n"); + sb.append(" serial: ").append(toIndentedString(serial)).append("\n"); + sb.append(" day: ").append(toIndentedString(day)).append("\n"); + sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); + sb.append(" minute: ").append(toIndentedString(minute)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstTimeOpenApiDto.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstTimeOpenApiDto.java new file mode 100644 index 0000000..046fdf2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/DstTimeOpenApiDto.java @@ -0,0 +1,184 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DST end time config + */ +@ApiModel(description = "DST end time config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class DstTimeOpenApiDto { + @JsonProperty("month") + private Integer month; + + @JsonProperty("serial") + private Integer serial; + + @JsonProperty("day") + private Integer day; + + @JsonProperty("hour") + private Integer hour; + + @JsonProperty("minute") + private Integer minute; + + public DstTimeOpenApiDto month(Integer month) { + this.month = month; + return this; + } + + /** + * Month of the DST config should be a value as follows: 1: January; 2: February; 3: March; 4: April; 5: May; 6: June; 7: July; 8: August; 9: September; 10: October; 11: November; 12: December. + * @return month + */ + @ApiModelProperty(required = true, value = "Month of the DST config should be a value as follows: 1: January; 2: February; 3: March; 4: April; 5: May; 6: June; 7: July; 8: August; 9: September; 10: October; 11: November; 12: December.") + @NotNull + + + public Integer getMonth() { + return month; + } + + public void setMonth(Integer month) { + this.month = month; + } + + public DstTimeOpenApiDto serial(Integer serial) { + this.serial = serial; + return this; + } + + /** + * Week of the DST config should be a value as follows: 1: 1st; 2: 2nd; 3: 3rd; 4: 4th; 5: Last. + * @return serial + */ + @ApiModelProperty(required = true, value = "Week of the DST config should be a value as follows: 1: 1st; 2: 2nd; 3: 3rd; 4: 4th; 5: Last.") + @NotNull + + + public Integer getSerial() { + return serial; + } + + public void setSerial(Integer serial) { + this.serial = serial; + } + + public DstTimeOpenApiDto day(Integer day) { + this.day = day; + return this; + } + + /** + * Day of the DST config should be a value as follows: 1: Monday; 2: Tuesday; 3: Wednesday; 4: Thursday; 5: Friday; 6: Saturday; 7: Sunday. + * @return day + */ + @ApiModelProperty(required = true, value = "Day of the DST config should be a value as follows: 1: Monday; 2: Tuesday; 3: Wednesday; 4: Thursday; 5: Friday; 6: Saturday; 7: Sunday.") + @NotNull + + + public Integer getDay() { + return day; + } + + public void setDay(Integer day) { + this.day = day; + } + + public DstTimeOpenApiDto hour(Integer hour) { + this.hour = hour; + return this; + } + + /** + * Hour of the DST config should be within the range of 0–23. + * @return hour + */ + @ApiModelProperty(required = true, value = "Hour of the DST config should be within the range of 0–23.") + @NotNull + + + public Integer getHour() { + return hour; + } + + public void setHour(Integer hour) { + this.hour = hour; + } + + public DstTimeOpenApiDto minute(Integer minute) { + this.minute = minute; + return this; + } + + /** + * Minute of the DST config should be within the range of 0–59. + * @return minute + */ + @ApiModelProperty(required = true, value = "Minute of the DST config should be within the range of 0–59.") + @NotNull + + + public Integer getMinute() { + return minute; + } + + public void setMinute(Integer minute) { + this.minute = minute; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DstTimeOpenApiDto dstTimeOpenApiDto = (DstTimeOpenApiDto) o; + return Objects.equals(this.month, dstTimeOpenApiDto.month) && + Objects.equals(this.serial, dstTimeOpenApiDto.serial) && + Objects.equals(this.day, dstTimeOpenApiDto.day) && + Objects.equals(this.hour, dstTimeOpenApiDto.hour) && + Objects.equals(this.minute, dstTimeOpenApiDto.minute); + } + + @Override + public int hashCode() { + return Objects.hash(month, serial, day, hour, minute); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DstTimeOpenApiDto {\n"); + + sb.append(" month: ").append(toIndentedString(month)).append("\n"); + sb.append(" serial: ").append(toIndentedString(serial)).append("\n"); + sb.append(" day: ").append(toIndentedString(day)).append("\n"); + sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); + sb.append(" minute: ").append(toIndentedString(minute)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/FileServerOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/FileServerOpenApiVo.java new file mode 100644 index 0000000..a12a478 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/FileServerOpenApiVo.java @@ -0,0 +1,182 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * File server configuration. + */ +@ApiModel(description = "File server configuration.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class FileServerOpenApiVo { + @JsonProperty("protocol") + private String protocol; + + @JsonProperty("hostname") + private String hostname; + + @JsonProperty("port") + private Integer port; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + public FileServerOpenApiVo protocol(String protocol) { + this.protocol = protocol; + return this; + } + + /** + * File server protocol, protocol should be a value as follows: FTP: FTP protocal; SFTP: SFTP protocal; TFTP: TFTP protocal; SCP: SCP protocal. + * @return protocol + */ + @ApiModelProperty(required = true, value = "File server protocol, protocol should be a value as follows: FTP: FTP protocal; SFTP: SFTP protocal; TFTP: TFTP protocal; SCP: SCP protocal.") + @NotNull + + + public String getProtocol() { + return protocol; + } + + public void setProtocol(String protocol) { + this.protocol = protocol; + } + + public FileServerOpenApiVo hostname(String hostname) { + this.hostname = hostname; + return this; + } + + /** + * File server host name or IP. Parameter [filePath] should be 1 - 128 ASCII characters. + * @return hostname + */ + @ApiModelProperty(required = true, value = "File server host name or IP. Parameter [filePath] should be 1 - 128 ASCII characters.") + @NotNull + + + public String getHostname() { + return hostname; + } + + public void setHostname(String hostname) { + this.hostname = hostname; + } + + public FileServerOpenApiVo port(Integer port) { + this.port = port; + return this; + } + + /** + * File server port. The value must be between 1 and 65535. + * @return port + */ + @ApiModelProperty(required = true, value = "File server port. The value must be between 1 and 65535.") + @NotNull + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public FileServerOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * File server access username, if needed in FTP/SFTP/SCP protocol. Parameter [username] should be 1 - 128 ASCII characters. + * @return username + */ + @ApiModelProperty(value = "File server access username, if needed in FTP/SFTP/SCP protocol. Parameter [username] should be 1 - 128 ASCII characters.") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public FileServerOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * File server access password, if needed in FTP/SFTP protocol. Parameter [password] should be 1 - 128 ASCII characters. + * @return password + */ + @ApiModelProperty(value = "File server access password, if needed in FTP/SFTP protocol. Parameter [password] should be 1 - 128 ASCII characters.") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FileServerOpenApiVo fileServerOpenApiVo = (FileServerOpenApiVo) o; + return Objects.equals(this.protocol, fileServerOpenApiVo.protocol) && + Objects.equals(this.hostname, fileServerOpenApiVo.hostname) && + Objects.equals(this.port, fileServerOpenApiVo.port) && + Objects.equals(this.username, fileServerOpenApiVo.username) && + Objects.equals(this.password, fileServerOpenApiVo.password); + } + + @Override + public int hashCode() { + return Objects.hash(protocol, hostname, port, username, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FileServerOpenApiVo {\n"); + + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoDeviceBindOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoDeviceBindOpenApiVo.java new file mode 100644 index 0000000..8712b09 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoDeviceBindOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoDeviceBindOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class GridVoDeviceBindOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoDeviceBindOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoDeviceBindOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoDeviceBindOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoDeviceBindOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoDeviceBindOpenApiVo addDataItem(DeviceBindOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoDeviceBindOpenApiVo gridVoDeviceBindOpenApiVo = (GridVoDeviceBindOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoDeviceBindOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoDeviceBindOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoDeviceBindOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoDeviceBindOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoDeviceBindOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoDeviceTemplateBriefOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoDeviceTemplateBriefOpenApiVo.java new file mode 100644 index 0000000..e252a57 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoDeviceTemplateBriefOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoDeviceTemplateBriefOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class GridVoDeviceTemplateBriefOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoDeviceTemplateBriefOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoDeviceTemplateBriefOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoDeviceTemplateBriefOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoDeviceTemplateBriefOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoDeviceTemplateBriefOpenApiVo addDataItem(DeviceTemplateBriefOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoDeviceTemplateBriefOpenApiVo gridVoDeviceTemplateBriefOpenApiVo = (GridVoDeviceTemplateBriefOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoDeviceTemplateBriefOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoDeviceTemplateBriefOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoDeviceTemplateBriefOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoDeviceTemplateBriefOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoDeviceTemplateBriefOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoSiteSummaryInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoSiteSummaryInfo.java new file mode 100644 index 0000000..a1a6d7d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoSiteSummaryInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoSiteSummaryInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class GridVoSiteSummaryInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoSiteSummaryInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoSiteSummaryInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoSiteSummaryInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoSiteSummaryInfo data(List data) { + this.data = data; + return this; + } + + public GridVoSiteSummaryInfo addDataItem(SiteSummaryInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoSiteSummaryInfo gridVoSiteSummaryInfo = (GridVoSiteSummaryInfo) o; + return Objects.equals(this.totalRows, gridVoSiteSummaryInfo.totalRows) && + Objects.equals(this.currentPage, gridVoSiteSummaryInfo.currentPage) && + Objects.equals(this.currentSize, gridVoSiteSummaryInfo.currentSize) && + Objects.equals(this.data, gridVoSiteSummaryInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoSiteSummaryInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoSiteTemplateSummaryVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoSiteTemplateSummaryVo.java new file mode 100644 index 0000000..720676d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/GridVoSiteTemplateSummaryVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoSiteTemplateSummaryVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class GridVoSiteTemplateSummaryVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoSiteTemplateSummaryVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoSiteTemplateSummaryVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoSiteTemplateSummaryVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoSiteTemplateSummaryVo data(List data) { + this.data = data; + return this; + } + + public GridVoSiteTemplateSummaryVo addDataItem(SiteTemplateSummaryVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoSiteTemplateSummaryVo gridVoSiteTemplateSummaryVo = (GridVoSiteTemplateSummaryVo) o; + return Objects.equals(this.totalRows, gridVoSiteTemplateSummaryVo.totalRows) && + Objects.equals(this.currentPage, gridVoSiteTemplateSummaryVo.currentPage) && + Objects.equals(this.currentSize, gridVoSiteTemplateSummaryVo.currentSize) && + Objects.equals(this.data, gridVoSiteTemplateSummaryVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoSiteTemplateSummaryVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/ModifyDstDto.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/ModifyDstDto.java new file mode 100644 index 0000000..95853d9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/ModifyDstDto.java @@ -0,0 +1,156 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Daylight Saving Time config of the site + */ +@ApiModel(description = "Daylight Saving Time config of the site") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class ModifyDstDto { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("start") + private DstTimeOpenApiDto start; + + @JsonProperty("end") + private DstTimeOpenApiDto end; + + @JsonProperty("offset") + private Long offset; + + public ModifyDstDto enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * DST config status; If false, other parameters are not required. + * @return enable + */ + @ApiModelProperty(value = "DST config status; If false, other parameters are not required.") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public ModifyDstDto start(DstTimeOpenApiDto start) { + this.start = start; + return this; + } + + /** + * Get start + * @return start + */ + @ApiModelProperty(value = "") + + @Valid + + public DstTimeOpenApiDto getStart() { + return start; + } + + public void setStart(DstTimeOpenApiDto start) { + this.start = start; + } + + public ModifyDstDto end(DstTimeOpenApiDto end) { + this.end = end; + return this; + } + + /** + * Get end + * @return end + */ + @ApiModelProperty(value = "") + + @Valid + + public DstTimeOpenApiDto getEnd() { + return end; + } + + public void setEnd(DstTimeOpenApiDto end) { + this.end = end; + } + + public ModifyDstDto offset(Long offset) { + this.offset = offset; + return this; + } + + /** + * DST offset config(Unit: ms); It should be a value as follows: [1800000, 3600000, 5400000, 7200000]. + * @return offset + */ + @ApiModelProperty(value = "DST offset config(Unit: ms); It should be a value as follows: [1800000, 3600000, 5400000, 7200000].") + + + public Long getOffset() { + return offset; + } + + public void setOffset(Long offset) { + this.offset = offset; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyDstDto modifyDstDto = (ModifyDstDto) o; + return Objects.equals(this.enable, modifyDstDto.enable) && + Objects.equals(this.start, modifyDstDto.start) && + Objects.equals(this.end, modifyDstDto.end) && + Objects.equals(this.offset, modifyDstDto.offset); + } + + @Override + public int hashCode() { + return Objects.hash(enable, start, end, offset); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyDstDto {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); + sb.append(" offset: ").append(toIndentedString(offset)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/NtpServer.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/NtpServer.java new file mode 100644 index 0000000..a6aab54 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/NtpServer.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * NTP server address; Up to 5 entries are allowed for the NTP server address list. + */ +@ApiModel(description = "NTP server address; Up to 5 entries are allowed for the NTP server address list.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class NtpServer { + @JsonProperty("address") + private String address; + + public NtpServer address(String address) { + this.address = address; + return this; + } + + /** + * NTP server address. + * @return address + */ + @ApiModelProperty(value = "NTP server address.") + +@Pattern(regexp="(?=^.{3,64}$)[a-zA-Z0-9][-a-zA-Z0-9]{0,62}(\\.[a-zA-Z0-9][-a-zA-Z0-9]{0,62})+") + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NtpServer ntpServer = (NtpServer) o; + return Objects.equals(this.address, ntpServer.address); + } + + @Override + public int hashCode() { + return Objects.hash(address); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NtpServer {\n"); + + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseBatchBindDeviceResultOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseBatchBindDeviceResultOpenApiVo.java new file mode 100644 index 0000000..3436317 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseBatchBindDeviceResultOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseBatchBindDeviceResultOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseBatchBindDeviceResultOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private BatchBindDeviceResultOpenApiVo result; + + public OperationResponseBatchBindDeviceResultOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseBatchBindDeviceResultOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseBatchBindDeviceResultOpenApiVo result(BatchBindDeviceResultOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public BatchBindDeviceResultOpenApiVo getResult() { + return result; + } + + public void setResult(BatchBindDeviceResultOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseBatchBindDeviceResultOpenApiVo operationResponseBatchBindDeviceResultOpenApiVo = (OperationResponseBatchBindDeviceResultOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseBatchBindDeviceResultOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseBatchBindDeviceResultOpenApiVo.msg) && + Objects.equals(this.result, operationResponseBatchBindDeviceResultOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseBatchBindDeviceResultOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseBindSiteBriefOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseBindSiteBriefOpenApiVo.java new file mode 100644 index 0000000..64ff0ea --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseBindSiteBriefOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseBindSiteBriefOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseBindSiteBriefOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private BindSiteBriefOpenApiVo result; + + public OperationResponseBindSiteBriefOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseBindSiteBriefOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseBindSiteBriefOpenApiVo result(BindSiteBriefOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public BindSiteBriefOpenApiVo getResult() { + return result; + } + + public void setResult(BindSiteBriefOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseBindSiteBriefOpenApiVo operationResponseBindSiteBriefOpenApiVo = (OperationResponseBindSiteBriefOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseBindSiteBriefOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseBindSiteBriefOpenApiVo.msg) && + Objects.equals(this.result, operationResponseBindSiteBriefOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseBindSiteBriefOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseCopySiteTemplateOpenApiResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseCopySiteTemplateOpenApiResultVo.java new file mode 100644 index 0000000..85d7ab4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseCopySiteTemplateOpenApiResultVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCopySiteTemplateOpenApiResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseCopySiteTemplateOpenApiResultVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CopySiteTemplateOpenApiResultVo result; + + public OperationResponseCopySiteTemplateOpenApiResultVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCopySiteTemplateOpenApiResultVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCopySiteTemplateOpenApiResultVo result(CopySiteTemplateOpenApiResultVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CopySiteTemplateOpenApiResultVo getResult() { + return result; + } + + public void setResult(CopySiteTemplateOpenApiResultVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCopySiteTemplateOpenApiResultVo operationResponseCopySiteTemplateOpenApiResultVo = (OperationResponseCopySiteTemplateOpenApiResultVo) o; + return Objects.equals(this.errorCode, operationResponseCopySiteTemplateOpenApiResultVo.errorCode) && + Objects.equals(this.msg, operationResponseCopySiteTemplateOpenApiResultVo.msg) && + Objects.equals(this.result, operationResponseCopySiteTemplateOpenApiResultVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCopySiteTemplateOpenApiResultVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseDeviceAccountSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseDeviceAccountSettingOpenApiVo.java new file mode 100644 index 0000000..2926807 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseDeviceAccountSettingOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseDeviceAccountSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseDeviceAccountSettingOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private DeviceAccountSettingOpenApiVo result; + + public OperationResponseDeviceAccountSettingOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseDeviceAccountSettingOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseDeviceAccountSettingOpenApiVo result(DeviceAccountSettingOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public DeviceAccountSettingOpenApiVo getResult() { + return result; + } + + public void setResult(DeviceAccountSettingOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseDeviceAccountSettingOpenApiVo operationResponseDeviceAccountSettingOpenApiVo = (OperationResponseDeviceAccountSettingOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseDeviceAccountSettingOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseDeviceAccountSettingOpenApiVo.msg) && + Objects.equals(this.result, operationResponseDeviceAccountSettingOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseDeviceAccountSettingOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoDeviceBindOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoDeviceBindOpenApiVo.java new file mode 100644 index 0000000..02133ff --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoDeviceBindOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoDeviceBindOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoDeviceBindOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoDeviceBindOpenApiVo result; + + public OperationResponseGridVoDeviceBindOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoDeviceBindOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoDeviceBindOpenApiVo result(GridVoDeviceBindOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoDeviceBindOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoDeviceBindOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoDeviceBindOpenApiVo operationResponseGridVoDeviceBindOpenApiVo = (OperationResponseGridVoDeviceBindOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoDeviceBindOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoDeviceBindOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoDeviceBindOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoDeviceBindOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoDeviceTemplateBriefOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoDeviceTemplateBriefOpenApiVo.java new file mode 100644 index 0000000..1ddaaf3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoDeviceTemplateBriefOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoDeviceTemplateBriefOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoDeviceTemplateBriefOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoDeviceTemplateBriefOpenApiVo result; + + public OperationResponseGridVoDeviceTemplateBriefOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoDeviceTemplateBriefOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoDeviceTemplateBriefOpenApiVo result(GridVoDeviceTemplateBriefOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoDeviceTemplateBriefOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoDeviceTemplateBriefOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoDeviceTemplateBriefOpenApiVo operationResponseGridVoDeviceTemplateBriefOpenApiVo = (OperationResponseGridVoDeviceTemplateBriefOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoDeviceTemplateBriefOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoDeviceTemplateBriefOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoDeviceTemplateBriefOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoDeviceTemplateBriefOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoSiteSummaryInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoSiteSummaryInfo.java new file mode 100644 index 0000000..13b669a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoSiteSummaryInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoSiteSummaryInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoSiteSummaryInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoSiteSummaryInfo result; + + public OperationResponseGridVoSiteSummaryInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoSiteSummaryInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoSiteSummaryInfo result(GridVoSiteSummaryInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoSiteSummaryInfo getResult() { + return result; + } + + public void setResult(GridVoSiteSummaryInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoSiteSummaryInfo operationResponseGridVoSiteSummaryInfo = (OperationResponseGridVoSiteSummaryInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoSiteSummaryInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoSiteSummaryInfo.msg) && + Objects.equals(this.result, operationResponseGridVoSiteSummaryInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoSiteSummaryInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoSiteTemplateSummaryVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoSiteTemplateSummaryVo.java new file mode 100644 index 0000000..ed431d5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseGridVoSiteTemplateSummaryVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoSiteTemplateSummaryVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoSiteTemplateSummaryVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoSiteTemplateSummaryVo result; + + public OperationResponseGridVoSiteTemplateSummaryVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoSiteTemplateSummaryVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoSiteTemplateSummaryVo result(GridVoSiteTemplateSummaryVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoSiteTemplateSummaryVo getResult() { + return result; + } + + public void setResult(GridVoSiteTemplateSummaryVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoSiteTemplateSummaryVo operationResponseGridVoSiteTemplateSummaryVo = (OperationResponseGridVoSiteTemplateSummaryVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoSiteTemplateSummaryVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoSiteTemplateSummaryVo.msg) && + Objects.equals(this.result, operationResponseGridVoSiteTemplateSummaryVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoSiteTemplateSummaryVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseListString.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseListString.java new file mode 100644 index 0000000..09c468c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseListString.java @@ -0,0 +1,138 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListString + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseListString { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListString errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListString msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListString result(List result) { + this.result = result; + return this; + } + + public OperationResponseListString addResultItem(String resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListString operationResponseListString = (OperationResponseListString) o; + return Objects.equals(this.errorCode, operationResponseListString.errorCode) && + Objects.equals(this.msg, operationResponseListString.msg) && + Objects.equals(this.result, operationResponseListString.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListString {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseObject.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseObject.java new file mode 100644 index 0000000..9701f38 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseObject.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseObject + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseObject { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private Object result; + + public OperationResponseObject errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseObject msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseObject result(Object result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getResult() { + return result; + } + + public void setResult(Object result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseObject operationResponseObject = (OperationResponseObject) o; + return Objects.equals(this.errorCode, operationResponseObject.errorCode) && + Objects.equals(this.msg, operationResponseObject.msg) && + Objects.equals(this.result, operationResponseObject.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseObject {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteEntity.java new file mode 100644 index 0000000..4e24888 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseSiteEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteEntity result; + + public OperationResponseSiteEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteEntity result(SiteEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteEntity getResult() { + return result; + } + + public void setResult(SiteEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteEntity operationResponseSiteEntity = (OperationResponseSiteEntity) o; + return Objects.equals(this.errorCode, operationResponseSiteEntity.errorCode) && + Objects.equals(this.msg, operationResponseSiteEntity.msg) && + Objects.equals(this.result, operationResponseSiteEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteResultVo.java new file mode 100644 index 0000000..4d78cdf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteResultVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseSiteResultVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteResultVo result; + + public OperationResponseSiteResultVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteResultVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteResultVo result(SiteResultVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteResultVo getResult() { + return result; + } + + public void setResult(SiteResultVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteResultVo operationResponseSiteResultVo = (OperationResponseSiteResultVo) o; + return Objects.equals(this.errorCode, operationResponseSiteResultVo.errorCode) && + Objects.equals(this.msg, operationResponseSiteResultVo.msg) && + Objects.equals(this.result, operationResponseSiteResultVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteResultVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteTemplateBriefOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteTemplateBriefOpenApiVo.java new file mode 100644 index 0000000..846417f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteTemplateBriefOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteTemplateBriefOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseSiteTemplateBriefOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteTemplateBriefOpenApiVo result; + + public OperationResponseSiteTemplateBriefOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteTemplateBriefOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteTemplateBriefOpenApiVo result(SiteTemplateBriefOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteTemplateBriefOpenApiVo getResult() { + return result; + } + + public void setResult(SiteTemplateBriefOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteTemplateBriefOpenApiVo operationResponseSiteTemplateBriefOpenApiVo = (OperationResponseSiteTemplateBriefOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseSiteTemplateBriefOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseSiteTemplateBriefOpenApiVo.msg) && + Objects.equals(this.result, operationResponseSiteTemplateBriefOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteTemplateBriefOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteTemplateModulesOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteTemplateModulesOpenApiVo.java new file mode 100644 index 0000000..363b523 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseSiteTemplateModulesOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteTemplateModulesOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseSiteTemplateModulesOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteTemplateModulesOpenApiVo result; + + public OperationResponseSiteTemplateModulesOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteTemplateModulesOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteTemplateModulesOpenApiVo result(SiteTemplateModulesOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteTemplateModulesOpenApiVo getResult() { + return result; + } + + public void setResult(SiteTemplateModulesOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteTemplateModulesOpenApiVo operationResponseSiteTemplateModulesOpenApiVo = (OperationResponseSiteTemplateModulesOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseSiteTemplateModulesOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseSiteTemplateModulesOpenApiVo.msg) && + Objects.equals(this.result, operationResponseSiteTemplateModulesOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteTemplateModulesOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseWithoutResult.java new file mode 100644 index 0000000..f6f78a6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/OperationResponseWithoutResult.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class OperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public OperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseWithoutResult.msg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/Scenario.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/Scenario.java new file mode 100644 index 0000000..f62e382 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/Scenario.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Scenario + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class Scenario { + @JsonProperty("name") + private String name; + + public Scenario name(String name) { + this.name = name; + return this; + } + + /** + * Scenario name should contain 1 to 128 visible ASCII characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Scenario name should contain 1 to 128 visible ASCII characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Scenario scenario = (Scenario) o; + return Objects.equals(this.name, scenario.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Scenario {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteCopyResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteCopyResultVo.java new file mode 100644 index 0000000..3a9cf55 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteCopyResultVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Copy failed customer related information. + */ +@ApiModel(description = "Copy failed customer related information.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class SiteCopyResultVo { + @JsonProperty("customerId") + private String customerId; + + @JsonProperty("customerName") + private String customerName; + + @JsonProperty("errorCode") + private Integer errorCode; + + public SiteCopyResultVo customerId(String customerId) { + this.customerId = customerId; + return this; + } + + /** + * Copying failed customer's customerId. + * @return customerId + */ + @ApiModelProperty(value = "Copying failed customer's customerId.") + + + public String getCustomerId() { + return customerId; + } + + public void setCustomerId(String customerId) { + this.customerId = customerId; + } + + public SiteCopyResultVo customerName(String customerName) { + this.customerName = customerName; + return this; + } + + /** + * Copying failed customer's customerName. + * @return customerName + */ + @ApiModelProperty(value = "Copying failed customer's customerName.") + + + public String getCustomerName() { + return customerName; + } + + public void setCustomerName(String customerName) { + this.customerName = customerName; + } + + public SiteCopyResultVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Copying failed customer's errorCode. + * @return errorCode + */ + @ApiModelProperty(value = "Copying failed customer's errorCode.") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteCopyResultVo siteCopyResultVo = (SiteCopyResultVo) o; + return Objects.equals(this.customerId, siteCopyResultVo.customerId) && + Objects.equals(this.customerName, siteCopyResultVo.customerName) && + Objects.equals(this.errorCode, siteCopyResultVo.errorCode); + } + + @Override + public int hashCode() { + return Objects.hash(customerId, customerName, errorCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteCopyResultVo {\n"); + + sb.append(" customerId: ").append(toIndentedString(customerId)).append("\n"); + sb.append(" customerName: ").append(toIndentedString(customerName)).append("\n"); + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteEntity.java new file mode 100644 index 0000000..bcbd5e6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteEntity.java @@ -0,0 +1,449 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SiteEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class SiteEntity { + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("tagIds") + @Valid + private List tagIds = null; + + @JsonProperty("region") + private String region; + + @JsonProperty("timeZone") + private String timeZone; + + @JsonProperty("ntpEnable") + private Boolean ntpEnable; + + @JsonProperty("ntpServers") + @Valid + private List ntpServers = null; + + @JsonProperty("dst") + private DstDto dst; + + @JsonProperty("scenario") + private String scenario; + + @JsonProperty("longitude") + private Double longitude; + + @JsonProperty("latitude") + private Double latitude; + + @JsonProperty("address") + private String address; + + @JsonProperty("supportES") + private Boolean supportES; + + @JsonProperty("supportL2") + private Boolean supportL2; + + public SiteEntity siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public SiteEntity name(String name) { + this.name = name; + return this; + } + + /** + * Name of the site should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "Name of the site should contain 1 to 64 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SiteEntity type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of the site should be 0 or 1, and 0 means basic site, 1 means pro site. + * @return type + */ + @ApiModelProperty(value = "Type of the site should be 0 or 1, and 0 means basic site, 1 means pro site.") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SiteEntity tagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + public SiteEntity addTagIdsItem(String tagIdsItem) { + if (this.tagIds == null) { + this.tagIds = new ArrayList<>(); + } + this.tagIds.add(tagIdsItem); + return this; + } + + /** + * Site tag ID + * @return tagIds + */ + @ApiModelProperty(value = "Site tag ID") + + + public List getTagIds() { + return tagIds; + } + + public void setTagIds(List tagIds) { + this.tagIds = tagIds; + } + + public SiteEntity region(String region) { + this.region = region; + return this; + } + + /** + * Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America. + * @return region + */ + @ApiModelProperty(value = "Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America.") + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public SiteEntity timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * For the values of the timezone of the site, refer to section 5.1 of the Open API Access Guide. + * @return timeZone + */ + @ApiModelProperty(value = "For the values of the timezone of the site, refer to section 5.1 of the Open API Access Guide.") + + + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public SiteEntity ntpEnable(Boolean ntpEnable) { + this.ntpEnable = ntpEnable; + return this; + } + + /** + * NTP server status of the site + * @return ntpEnable + */ + @ApiModelProperty(value = "NTP server status of the site") + + + public Boolean getNtpEnable() { + return ntpEnable; + } + + public void setNtpEnable(Boolean ntpEnable) { + this.ntpEnable = ntpEnable; + } + + public SiteEntity ntpServers(List ntpServers) { + this.ntpServers = ntpServers; + return this; + } + + public SiteEntity addNtpServersItem(String ntpServersItem) { + if (this.ntpServers == null) { + this.ntpServers = new ArrayList<>(); + } + this.ntpServers.add(ntpServersItem); + return this; + } + + /** + * NTP server address; Up to 5 entries are allowed for the NTP server address list. + * @return ntpServers + */ + @ApiModelProperty(value = "NTP server address; Up to 5 entries are allowed for the NTP server address list.") + +@Size(min=0,max=5) + public List getNtpServers() { + return ntpServers; + } + + public void setNtpServers(List ntpServers) { + this.ntpServers = ntpServers; + } + + public SiteEntity dst(DstDto dst) { + this.dst = dst; + return this; + } + + /** + * Get dst + * @return dst + */ + @ApiModelProperty(value = "") + + @Valid + + public DstDto getDst() { + return dst; + } + + public void setDst(DstDto dst) { + this.dst = dst; + } + + public SiteEntity scenario(String scenario) { + this.scenario = scenario; + return this; + } + + /** + * For the values of the scenario of the site, refer to result of the interface for Get scenario list. + * @return scenario + */ + @ApiModelProperty(value = "For the values of the scenario of the site, refer to result of the interface for Get scenario list.") + + + public String getScenario() { + return scenario; + } + + public void setScenario(String scenario) { + this.scenario = scenario; + } + + public SiteEntity longitude(Double longitude) { + this.longitude = longitude; + return this; + } + + /** + * Longitude of the site should be within the range of -180 - 180. + * @return longitude + */ + @ApiModelProperty(value = "Longitude of the site should be within the range of -180 - 180.") + + + public Double getLongitude() { + return longitude; + } + + public void setLongitude(Double longitude) { + this.longitude = longitude; + } + + public SiteEntity latitude(Double latitude) { + this.latitude = latitude; + return this; + } + + /** + * Latitude of the site should be within the range of -90 - 90. + * @return latitude + */ + @ApiModelProperty(value = "Latitude of the site should be within the range of -90 - 90.") + + + public Double getLatitude() { + return latitude; + } + + public void setLatitude(Double latitude) { + this.latitude = latitude; + } + + public SiteEntity address(String address) { + this.address = address; + return this; + } + + /** + * Address of the site + * @return address + */ + @ApiModelProperty(value = "Address of the site") + + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public SiteEntity supportES(Boolean supportES) { + this.supportES = supportES; + return this; + } + + /** + * Whether the site supports adopting Easy Managed switches + * @return supportES + */ + @ApiModelProperty(value = "Whether the site supports adopting Easy Managed switches") + + + public Boolean getSupportES() { + return supportES; + } + + public void setSupportES(Boolean supportES) { + this.supportES = supportES; + } + + public SiteEntity supportL2(Boolean supportL2) { + this.supportL2 = supportL2; + return this; + } + + /** + * Whether the site supports adopting Smart+ or L2+ or L3 switches + * @return supportL2 + */ + @ApiModelProperty(value = "Whether the site supports adopting Smart+ or L2+ or L3 switches") + + + public Boolean getSupportL2() { + return supportL2; + } + + public void setSupportL2(Boolean supportL2) { + this.supportL2 = supportL2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteEntity siteEntity = (SiteEntity) o; + return Objects.equals(this.siteId, siteEntity.siteId) && + Objects.equals(this.name, siteEntity.name) && + Objects.equals(this.type, siteEntity.type) && + Objects.equals(this.tagIds, siteEntity.tagIds) && + Objects.equals(this.region, siteEntity.region) && + Objects.equals(this.timeZone, siteEntity.timeZone) && + Objects.equals(this.ntpEnable, siteEntity.ntpEnable) && + Objects.equals(this.ntpServers, siteEntity.ntpServers) && + Objects.equals(this.dst, siteEntity.dst) && + Objects.equals(this.scenario, siteEntity.scenario) && + Objects.equals(this.longitude, siteEntity.longitude) && + Objects.equals(this.latitude, siteEntity.latitude) && + Objects.equals(this.address, siteEntity.address) && + Objects.equals(this.supportES, siteEntity.supportES) && + Objects.equals(this.supportL2, siteEntity.supportL2); + } + + @Override + public int hashCode() { + return Objects.hash(siteId, name, type, tagIds, region, timeZone, ntpEnable, ntpServers, dst, scenario, longitude, latitude, address, supportES, supportL2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteEntity {\n"); + + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" ntpEnable: ").append(toIndentedString(ntpEnable)).append("\n"); + sb.append(" ntpServers: ").append(toIndentedString(ntpServers)).append("\n"); + sb.append(" dst: ").append(toIndentedString(dst)).append("\n"); + sb.append(" scenario: ").append(toIndentedString(scenario)).append("\n"); + sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); + sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" supportES: ").append(toIndentedString(supportES)).append("\n"); + sb.append(" supportL2: ").append(toIndentedString(supportL2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteImportOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteImportOpenApiVo.java new file mode 100644 index 0000000..5dd0df6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteImportOpenApiVo.java @@ -0,0 +1,131 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Site import config list. max size 300. + */ +@ApiModel(description = "Site import config list. max size 300.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class SiteImportOpenApiVo { + @JsonProperty("filePath") + private String filePath; + + @JsonProperty("siteName") + private String siteName; + + @JsonProperty("skipDevice") + private Boolean skipDevice; + + public SiteImportOpenApiVo filePath(String filePath) { + this.filePath = filePath; + return this; + } + + /** + * File path of site backup config file. + * @return filePath + */ + @ApiModelProperty(required = true, value = "File path of site backup config file.") + @NotNull + + + public String getFilePath() { + return filePath; + } + + public void setFilePath(String filePath) { + this.filePath = filePath; + } + + public SiteImportOpenApiVo siteName(String siteName) { + this.siteName = siteName; + return this; + } + + /** + * Target site name. It should contain 1 to 64 characters. + * @return siteName + */ + @ApiModelProperty(required = true, value = "Target site name. It should contain 1 to 64 characters.") + @NotNull + + + public String getSiteName() { + return siteName; + } + + public void setSiteName(String siteName) { + this.siteName = siteName; + } + + public SiteImportOpenApiVo skipDevice(Boolean skipDevice) { + this.skipDevice = skipDevice; + return this; + } + + /** + * Whether skip device info(if true: skip import device; if false: import device in config file; default for false + * @return skipDevice + */ + @ApiModelProperty(value = "Whether skip device info(if true: skip import device; if false: import device in config file; default for false") + + + public Boolean getSkipDevice() { + return skipDevice; + } + + public void setSkipDevice(Boolean skipDevice) { + this.skipDevice = skipDevice; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteImportOpenApiVo siteImportOpenApiVo = (SiteImportOpenApiVo) o; + return Objects.equals(this.filePath, siteImportOpenApiVo.filePath) && + Objects.equals(this.siteName, siteImportOpenApiVo.siteName) && + Objects.equals(this.skipDevice, siteImportOpenApiVo.skipDevice); + } + + @Override + public int hashCode() { + return Objects.hash(filePath, siteName, skipDevice); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteImportOpenApiVo {\n"); + + sb.append(" filePath: ").append(toIndentedString(filePath)).append("\n"); + sb.append(" siteName: ").append(toIndentedString(siteName)).append("\n"); + sb.append(" skipDevice: ").append(toIndentedString(skipDevice)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteResultVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteResultVo.java new file mode 100644 index 0000000..38c5b33 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteResultVo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SiteResultVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class SiteResultVo { + @JsonProperty("successSiteList") + @Valid + private List successSiteList = null; + + public SiteResultVo successSiteList(List successSiteList) { + this.successSiteList = successSiteList; + return this; + } + + public SiteResultVo addSuccessSiteListItem(String successSiteListItem) { + if (this.successSiteList == null) { + this.successSiteList = new ArrayList<>(); + } + this.successSiteList.add(successSiteListItem); + return this; + } + + /** + * Site ID list which executing site maintenance successfully. + * @return successSiteList + */ + @ApiModelProperty(value = "Site ID list which executing site maintenance successfully.") + + + public List getSuccessSiteList() { + return successSiteList; + } + + public void setSuccessSiteList(List successSiteList) { + this.successSiteList = successSiteList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteResultVo siteResultVo = (SiteResultVo) o; + return Objects.equals(this.successSiteList, siteResultVo.successSiteList); + } + + @Override + public int hashCode() { + return Objects.hash(successSiteList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteResultVo {\n"); + + sb.append(" successSiteList: ").append(toIndentedString(successSiteList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteSummaryInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteSummaryInfo.java new file mode 100644 index 0000000..21873a8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteSummaryInfo.java @@ -0,0 +1,365 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Site summary info + */ +@ApiModel(description = "Site summary info") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class SiteSummaryInfo { + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("name") + private String name; + + @JsonProperty("tagIds") + @Valid + private List tagIds = null; + + @JsonProperty("region") + private String region; + + @JsonProperty("timeZone") + private String timeZone; + + @JsonProperty("scenario") + private String scenario; + + @JsonProperty("longitude") + private Double longitude; + + @JsonProperty("latitude") + private Double latitude; + + @JsonProperty("address") + private String address; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("supportES") + private Boolean supportES; + + @JsonProperty("supportL2") + private Boolean supportL2; + + public SiteSummaryInfo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public SiteSummaryInfo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the site should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "Name of the site should contain 1 to 64 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SiteSummaryInfo tagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + public SiteSummaryInfo addTagIdsItem(String tagIdsItem) { + if (this.tagIds == null) { + this.tagIds = new ArrayList<>(); + } + this.tagIds.add(tagIdsItem); + return this; + } + + /** + * Site tag ID + * @return tagIds + */ + @ApiModelProperty(value = "Site tag ID") + + + public List getTagIds() { + return tagIds; + } + + public void setTagIds(List tagIds) { + this.tagIds = tagIds; + } + + public SiteSummaryInfo region(String region) { + this.region = region; + return this; + } + + /** + * Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America. + * @return region + */ + @ApiModelProperty(value = "Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America.") + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public SiteSummaryInfo timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * For the values of the timezone of the site, refer to section 5.1 of the Open API Access Guide. + * @return timeZone + */ + @ApiModelProperty(value = "For the values of the timezone of the site, refer to section 5.1 of the Open API Access Guide.") + + + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public SiteSummaryInfo scenario(String scenario) { + this.scenario = scenario; + return this; + } + + /** + * For the values of the scenario of the site, refer to result of the interface for Get scenario list. + * @return scenario + */ + @ApiModelProperty(value = "For the values of the scenario of the site, refer to result of the interface for Get scenario list.") + + + public String getScenario() { + return scenario; + } + + public void setScenario(String scenario) { + this.scenario = scenario; + } + + public SiteSummaryInfo longitude(Double longitude) { + this.longitude = longitude; + return this; + } + + /** + * Longitude of the site should be within the range of -180 - 180. + * @return longitude + */ + @ApiModelProperty(value = "Longitude of the site should be within the range of -180 - 180.") + + + public Double getLongitude() { + return longitude; + } + + public void setLongitude(Double longitude) { + this.longitude = longitude; + } + + public SiteSummaryInfo latitude(Double latitude) { + this.latitude = latitude; + return this; + } + + /** + * Latitude of the site should be within the range of -90 - 90. + * @return latitude + */ + @ApiModelProperty(value = "Latitude of the site should be within the range of -90 - 90.") + + + public Double getLatitude() { + return latitude; + } + + public void setLatitude(Double latitude) { + this.latitude = latitude; + } + + public SiteSummaryInfo address(String address) { + this.address = address; + return this; + } + + /** + * Address of the site + * @return address + */ + @ApiModelProperty(value = "Address of the site") + + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public SiteSummaryInfo type(Integer type) { + this.type = type; + return this; + } + + /** + * Site type(only for pro controller). It should be a value as follows: 0: Basic Site; 1: Pro Site + * @return type + */ + @ApiModelProperty(value = "Site type(only for pro controller). It should be a value as follows: 0: Basic Site; 1: Pro Site") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SiteSummaryInfo supportES(Boolean supportES) { + this.supportES = supportES; + return this; + } + + /** + * Whether the site supports adopting Easy Managed switches + * @return supportES + */ + @ApiModelProperty(value = "Whether the site supports adopting Easy Managed switches") + + + public Boolean getSupportES() { + return supportES; + } + + public void setSupportES(Boolean supportES) { + this.supportES = supportES; + } + + public SiteSummaryInfo supportL2(Boolean supportL2) { + this.supportL2 = supportL2; + return this; + } + + /** + * Whether the site supports adopting Smart+ or L2+ or L3 switches + * @return supportL2 + */ + @ApiModelProperty(value = "Whether the site supports adopting Smart+ or L2+ or L3 switches") + + + public Boolean getSupportL2() { + return supportL2; + } + + public void setSupportL2(Boolean supportL2) { + this.supportL2 = supportL2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteSummaryInfo siteSummaryInfo = (SiteSummaryInfo) o; + return Objects.equals(this.siteId, siteSummaryInfo.siteId) && + Objects.equals(this.name, siteSummaryInfo.name) && + Objects.equals(this.tagIds, siteSummaryInfo.tagIds) && + Objects.equals(this.region, siteSummaryInfo.region) && + Objects.equals(this.timeZone, siteSummaryInfo.timeZone) && + Objects.equals(this.scenario, siteSummaryInfo.scenario) && + Objects.equals(this.longitude, siteSummaryInfo.longitude) && + Objects.equals(this.latitude, siteSummaryInfo.latitude) && + Objects.equals(this.address, siteSummaryInfo.address) && + Objects.equals(this.type, siteSummaryInfo.type) && + Objects.equals(this.supportES, siteSummaryInfo.supportES) && + Objects.equals(this.supportL2, siteSummaryInfo.supportL2); + } + + @Override + public int hashCode() { + return Objects.hash(siteId, name, tagIds, region, timeZone, scenario, longitude, latitude, address, type, supportES, supportL2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteSummaryInfo {\n"); + + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" scenario: ").append(toIndentedString(scenario)).append("\n"); + sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); + sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" supportES: ").append(toIndentedString(supportES)).append("\n"); + sb.append(" supportL2: ").append(toIndentedString(supportL2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTag.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTag.java new file mode 100644 index 0000000..f84e3d5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTag.java @@ -0,0 +1,102 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SiteTag + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class SiteTag { + @JsonProperty("name") + private String name; + + @JsonProperty("tagId") + private String tagId; + + public SiteTag name(String name) { + this.name = name; + return this; + } + + /** + * Tag name should contain 1 to 128 ASCII characters. + * @return name + */ + @ApiModelProperty(value = "Tag name should contain 1 to 128 ASCII characters.") + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SiteTag tagId(String tagId) { + this.tagId = tagId; + return this; + } + + /** + * Tag ID + * @return tagId + */ + @ApiModelProperty(value = "Tag ID") + + + public String getTagId() { + return tagId; + } + + public void setTagId(String tagId) { + this.tagId = tagId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteTag siteTag = (SiteTag) o; + return Objects.equals(this.name, siteTag.name) && + Objects.equals(this.tagId, siteTag.tagId); + } + + @Override + public int hashCode() { + return Objects.hash(name, tagId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteTag {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" tagId: ").append(toIndentedString(tagId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateBriefOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateBriefOpenApiVo.java new file mode 100644 index 0000000..f45f32a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateBriefOpenApiVo.java @@ -0,0 +1,189 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SiteTemplateBriefOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class SiteTemplateBriefOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("omadacId") + private String omadacId; + + @JsonProperty("name") + private String name; + + @JsonProperty("category") + private String category; + + @JsonProperty("settings") + @Valid + private List settings = null; + + public SiteTemplateBriefOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Site Template ID + * @return id + */ + @ApiModelProperty(value = "Site Template ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SiteTemplateBriefOpenApiVo omadacId(String omadacId) { + this.omadacId = omadacId; + return this; + } + + /** + * Omada ID + * @return omadacId + */ + @ApiModelProperty(value = "Omada ID") + + + public String getOmadacId() { + return omadacId; + } + + public void setOmadacId(String omadacId) { + this.omadacId = omadacId; + } + + public SiteTemplateBriefOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the site template should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "Name of the site template should contain 1 to 64 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SiteTemplateBriefOpenApiVo category(String category) { + this.category = category; + return this; + } + + /** + * category of the site template + * @return category + */ + @ApiModelProperty(value = "category of the site template") + + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + public SiteTemplateBriefOpenApiVo settings(List settings) { + this.settings = settings; + return this; + } + + public SiteTemplateBriefOpenApiVo addSettingsItem(String settingsItem) { + if (this.settings == null) { + this.settings = new ArrayList<>(); + } + this.settings.add(settingsItem); + return this; + } + + /** + * settings of the site template + * @return settings + */ + @ApiModelProperty(value = "settings of the site template") + + + public List getSettings() { + return settings; + } + + public void setSettings(List settings) { + this.settings = settings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteTemplateBriefOpenApiVo siteTemplateBriefOpenApiVo = (SiteTemplateBriefOpenApiVo) o; + return Objects.equals(this.id, siteTemplateBriefOpenApiVo.id) && + Objects.equals(this.omadacId, siteTemplateBriefOpenApiVo.omadacId) && + Objects.equals(this.name, siteTemplateBriefOpenApiVo.name) && + Objects.equals(this.category, siteTemplateBriefOpenApiVo.category) && + Objects.equals(this.settings, siteTemplateBriefOpenApiVo.settings); + } + + @Override + public int hashCode() { + return Objects.hash(id, omadacId, name, category, settings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteTemplateBriefOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" omadacId: ").append(toIndentedString(omadacId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" settings: ").append(toIndentedString(settings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateModulesOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateModulesOpenApiVo.java new file mode 100644 index 0000000..e59b2ef --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateModulesOpenApiVo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SiteTemplateModulesOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class SiteTemplateModulesOpenApiVo { + @JsonProperty("settings") + @Valid + private List settings = null; + + public SiteTemplateModulesOpenApiVo settings(List settings) { + this.settings = settings; + return this; + } + + public SiteTemplateModulesOpenApiVo addSettingsItem(String settingsItem) { + if (this.settings == null) { + this.settings = new ArrayList<>(); + } + this.settings.add(settingsItem); + return this; + } + + /** + * Setting list for creating site template. + * @return settings + */ + @ApiModelProperty(value = "Setting list for creating site template.") + + + public List getSettings() { + return settings; + } + + public void setSettings(List settings) { + this.settings = settings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteTemplateModulesOpenApiVo siteTemplateModulesOpenApiVo = (SiteTemplateModulesOpenApiVo) o; + return Objects.equals(this.settings, siteTemplateModulesOpenApiVo.settings); + } + + @Override + public int hashCode() { + return Objects.hash(settings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteTemplateModulesOpenApiVo {\n"); + + sb.append(" settings: ").append(toIndentedString(settings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateSummaryVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateSummaryVo.java new file mode 100644 index 0000000..0ce0204 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/SiteTemplateSummaryVo.java @@ -0,0 +1,238 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SiteTemplateSummaryVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class SiteTemplateSummaryVo { + @JsonProperty("id") + private String id; + + @JsonProperty("omadacId") + private String omadacId; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("bindSiteNum") + private Long bindSiteNum; + + @JsonProperty("category") + private String category; + + @JsonProperty("settings") + @Valid + private List settings = null; + + public SiteTemplateSummaryVo id(String id) { + this.id = id; + return this; + } + + /** + * Site Template ID + * @return id + */ + @ApiModelProperty(value = "Site Template ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SiteTemplateSummaryVo omadacId(String omadacId) { + this.omadacId = omadacId; + return this; + } + + /** + * Omada ID + * @return omadacId + */ + @ApiModelProperty(value = "Omada ID") + + + public String getOmadacId() { + return omadacId; + } + + public void setOmadacId(String omadacId) { + this.omadacId = omadacId; + } + + public SiteTemplateSummaryVo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the site should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "Name of the site should contain 1 to 64 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SiteTemplateSummaryVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Site template sync sites status. + * @return status + */ + @ApiModelProperty(value = "Site template sync sites status.") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public SiteTemplateSummaryVo bindSiteNum(Long bindSiteNum) { + this.bindSiteNum = bindSiteNum; + return this; + } + + /** + * The number of sites to which the template is bound. + * @return bindSiteNum + */ + @ApiModelProperty(value = "The number of sites to which the template is bound.") + + + public Long getBindSiteNum() { + return bindSiteNum; + } + + public void setBindSiteNum(Long bindSiteNum) { + this.bindSiteNum = bindSiteNum; + } + + public SiteTemplateSummaryVo category(String category) { + this.category = category; + return this; + } + + /** + * The category of the site template. + * @return category + */ + @ApiModelProperty(value = "The category of the site template.") + + + public String getCategory() { + return category; + } + + public void setCategory(String category) { + this.category = category; + } + + public SiteTemplateSummaryVo settings(List settings) { + this.settings = settings; + return this; + } + + public SiteTemplateSummaryVo addSettingsItem(String settingsItem) { + if (this.settings == null) { + this.settings = new ArrayList<>(); + } + this.settings.add(settingsItem); + return this; + } + + /** + * The settings of site template seleted. + * @return settings + */ + @ApiModelProperty(value = "The settings of site template seleted.") + + + public List getSettings() { + return settings; + } + + public void setSettings(List settings) { + this.settings = settings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteTemplateSummaryVo siteTemplateSummaryVo = (SiteTemplateSummaryVo) o; + return Objects.equals(this.id, siteTemplateSummaryVo.id) && + Objects.equals(this.omadacId, siteTemplateSummaryVo.omadacId) && + Objects.equals(this.name, siteTemplateSummaryVo.name) && + Objects.equals(this.status, siteTemplateSummaryVo.status) && + Objects.equals(this.bindSiteNum, siteTemplateSummaryVo.bindSiteNum) && + Objects.equals(this.category, siteTemplateSummaryVo.category) && + Objects.equals(this.settings, siteTemplateSummaryVo.settings); + } + + @Override + public int hashCode() { + return Objects.hash(id, omadacId, name, status, bindSiteNum, category, settings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteTemplateSummaryVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" omadacId: ").append(toIndentedString(omadacId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" bindSiteNum: ").append(toIndentedString(bindSiteNum)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" settings: ").append(toIndentedString(settings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/UpdateSiteByTemplate.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/UpdateSiteByTemplate.java new file mode 100644 index 0000000..eda7865 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/UpdateSiteByTemplate.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * UpdateSiteByTemplate + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class UpdateSiteByTemplate { + @JsonProperty("name") + private String name; + + public UpdateSiteByTemplate name(String name) { + this.name = name; + return this; + } + + /** + * Name of the site should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the site should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSiteByTemplate updateSiteByTemplate = (UpdateSiteByTemplate) o; + return Objects.equals(this.name, updateSiteByTemplate.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSiteByTemplate {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/UpdateSiteEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/UpdateSiteEntity.java new file mode 100644 index 0000000..c7332b2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/organization/model/UpdateSiteEntity.java @@ -0,0 +1,405 @@ +package org.wfc.omada.api.organization.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpdateSiteEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:17:18.430+08:00[Asia/Shanghai]") + +public class UpdateSiteEntity { + @JsonProperty("name") + private String name; + + @JsonProperty("region") + private String region; + + @JsonProperty("timeZone") + private String timeZone; + + @JsonProperty("tagIds") + @Valid + private List tagIds = null; + + @JsonProperty("ntpEnable") + private Boolean ntpEnable; + + @JsonProperty("ntpServers") + @Valid + private List ntpServers = null; + + @JsonProperty("dst") + private ModifyDstDto dst; + + @JsonProperty("scenario") + private String scenario; + + @JsonProperty("longitude") + private Double longitude; + + @JsonProperty("latitude") + private Double latitude; + + @JsonProperty("address") + private String address; + + @JsonProperty("supportES") + private Boolean supportES; + + @JsonProperty("supportL2") + private Boolean supportL2; + + public UpdateSiteEntity name(String name) { + this.name = name; + return this; + } + + /** + * Site name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "Site name should contain 1 to 64 characters.") + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateSiteEntity region(String region) { + this.region = region; + return this; + } + + /** + * Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America. + * @return region + */ + @ApiModelProperty(required = true, value = "Country/Region of the site; For the values of region, refer to the abbreviation of the ISO country code; For example, you need to input \"United States\" for the United States of America.") + @NotNull + + + public String getRegion() { + return region; + } + + public void setRegion(String region) { + this.region = region; + } + + public UpdateSiteEntity timeZone(String timeZone) { + this.timeZone = timeZone; + return this; + } + + /** + * For the values of the timezone of the site, refer to section 5.1 of the Open API Access Guide. + * @return timeZone + */ + @ApiModelProperty(required = true, value = "For the values of the timezone of the site, refer to section 5.1 of the Open API Access Guide.") + @NotNull + + + public String getTimeZone() { + return timeZone; + } + + public void setTimeZone(String timeZone) { + this.timeZone = timeZone; + } + + public UpdateSiteEntity tagIds(List tagIds) { + this.tagIds = tagIds; + return this; + } + + public UpdateSiteEntity addTagIdsItem(String tagIdsItem) { + if (this.tagIds == null) { + this.tagIds = new ArrayList<>(); + } + this.tagIds.add(tagIdsItem); + return this; + } + + /** + * Site tag ID, Site tag ID can be created using \"Create new site tag\" interface, and site tag ID can be obtained from \"Get site tag list\" interface + * @return tagIds + */ + @ApiModelProperty(value = "Site tag ID, Site tag ID can be created using \"Create new site tag\" interface, and site tag ID can be obtained from \"Get site tag list\" interface") + + + public List getTagIds() { + return tagIds; + } + + public void setTagIds(List tagIds) { + this.tagIds = tagIds; + } + + public UpdateSiteEntity ntpEnable(Boolean ntpEnable) { + this.ntpEnable = ntpEnable; + return this; + } + + /** + * NTP server status of the site + * @return ntpEnable + */ + @ApiModelProperty(value = "NTP server status of the site") + + + public Boolean getNtpEnable() { + return ntpEnable; + } + + public void setNtpEnable(Boolean ntpEnable) { + this.ntpEnable = ntpEnable; + } + + public UpdateSiteEntity ntpServers(List ntpServers) { + this.ntpServers = ntpServers; + return this; + } + + public UpdateSiteEntity addNtpServersItem(NtpServer ntpServersItem) { + if (this.ntpServers == null) { + this.ntpServers = new ArrayList<>(); + } + this.ntpServers.add(ntpServersItem); + return this; + } + + /** + * NTP server address; Up to 5 entries are allowed for the NTP server address list. + * @return ntpServers + */ + @ApiModelProperty(value = "NTP server address; Up to 5 entries are allowed for the NTP server address list.") + + @Valid +@Size(min=0,max=5) + public List getNtpServers() { + return ntpServers; + } + + public void setNtpServers(List ntpServers) { + this.ntpServers = ntpServers; + } + + public UpdateSiteEntity dst(ModifyDstDto dst) { + this.dst = dst; + return this; + } + + /** + * Get dst + * @return dst + */ + @ApiModelProperty(value = "") + + @Valid + + public ModifyDstDto getDst() { + return dst; + } + + public void setDst(ModifyDstDto dst) { + this.dst = dst; + } + + public UpdateSiteEntity scenario(String scenario) { + this.scenario = scenario; + return this; + } + + /** + * For the values of the scenario of the site, refer to result of the interface for Get scenario list. + * @return scenario + */ + @ApiModelProperty(required = true, value = "For the values of the scenario of the site, refer to result of the interface for Get scenario list.") + @NotNull + + + public String getScenario() { + return scenario; + } + + public void setScenario(String scenario) { + this.scenario = scenario; + } + + public UpdateSiteEntity longitude(Double longitude) { + this.longitude = longitude; + return this; + } + + /** + * Longitude of the site should be within the range of -180 - 180. + * @return longitude + */ + @ApiModelProperty(value = "Longitude of the site should be within the range of -180 - 180.") + + + public Double getLongitude() { + return longitude; + } + + public void setLongitude(Double longitude) { + this.longitude = longitude; + } + + public UpdateSiteEntity latitude(Double latitude) { + this.latitude = latitude; + return this; + } + + /** + * Latitude of the site should be within the range of -90 - 90. + * @return latitude + */ + @ApiModelProperty(value = "Latitude of the site should be within the range of -90 - 90.") + + + public Double getLatitude() { + return latitude; + } + + public void setLatitude(Double latitude) { + this.latitude = latitude; + } + + public UpdateSiteEntity address(String address) { + this.address = address; + return this; + } + + /** + * Address of the site + * @return address + */ + @ApiModelProperty(value = "Address of the site") + + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public UpdateSiteEntity supportES(Boolean supportES) { + this.supportES = supportES; + return this; + } + + /** + * Whether the site supports adopting Easy Managed switches + * @return supportES + */ + @ApiModelProperty(value = "Whether the site supports adopting Easy Managed switches") + + + public Boolean getSupportES() { + return supportES; + } + + public void setSupportES(Boolean supportES) { + this.supportES = supportES; + } + + public UpdateSiteEntity supportL2(Boolean supportL2) { + this.supportL2 = supportL2; + return this; + } + + /** + * Whether the site supports adopting Smart+ or L2+ or L3 switches + * @return supportL2 + */ + @ApiModelProperty(value = "Whether the site supports adopting Smart+ or L2+ or L3 switches") + + + public Boolean getSupportL2() { + return supportL2; + } + + public void setSupportL2(Boolean supportL2) { + this.supportL2 = supportL2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSiteEntity updateSiteEntity = (UpdateSiteEntity) o; + return Objects.equals(this.name, updateSiteEntity.name) && + Objects.equals(this.region, updateSiteEntity.region) && + Objects.equals(this.timeZone, updateSiteEntity.timeZone) && + Objects.equals(this.tagIds, updateSiteEntity.tagIds) && + Objects.equals(this.ntpEnable, updateSiteEntity.ntpEnable) && + Objects.equals(this.ntpServers, updateSiteEntity.ntpServers) && + Objects.equals(this.dst, updateSiteEntity.dst) && + Objects.equals(this.scenario, updateSiteEntity.scenario) && + Objects.equals(this.longitude, updateSiteEntity.longitude) && + Objects.equals(this.latitude, updateSiteEntity.latitude) && + Objects.equals(this.address, updateSiteEntity.address) && + Objects.equals(this.supportES, updateSiteEntity.supportES) && + Objects.equals(this.supportL2, updateSiteEntity.supportL2); + } + + @Override + public int hashCode() { + return Objects.hash(name, region, timeZone, tagIds, ntpEnable, ntpServers, dst, scenario, longitude, latitude, address, supportES, supportL2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSiteEntity {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" region: ").append(toIndentedString(region)).append("\n"); + sb.append(" timeZone: ").append(toIndentedString(timeZone)).append("\n"); + sb.append(" tagIds: ").append(toIndentedString(tagIds)).append("\n"); + sb.append(" ntpEnable: ").append(toIndentedString(ntpEnable)).append("\n"); + sb.append(" ntpServers: ").append(toIndentedString(ntpServers)).append("\n"); + sb.append(" dst: ").append(toIndentedString(dst)).append("\n"); + sb.append(" scenario: ").append(toIndentedString(scenario)).append("\n"); + sb.append(" longitude: ").append(toIndentedString(longitude)).append("\n"); + sb.append(" latitude: ").append(toIndentedString(latitude)).append("\n"); + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" supportES: ").append(toIndentedString(supportES)).append("\n"); + sb.append(" supportL2: ").append(toIndentedString(supportL2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAclApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAclApi.java new file mode 100644 index 0000000..9a99a1d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAclApi.java @@ -0,0 +1,360 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.DragSortIndexOpenapiVo; +import org.wfc.omada.api.sitesetting.model.EapAclConfig; +import org.wfc.omada.api.sitesetting.model.GatewayAclConfig; +import org.wfc.omada.api.sitesetting.model.GatewayAclConfigModeEntity; +import org.wfc.omada.api.sitesetting.model.GatewayCustomAclUpdateEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseGatewayAclConfigModeEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoEapAclInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoGatewayAclInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoGatewayCustomAclInfoEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoSwitchAclInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.SwitchAclConfig; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaAcl", description = "the OmadaAcl API") +@FeignClient(name="OmadaAclApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaAclApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/acls/osg-custom-acls/hit-counts : Clear gateway custom ACL hit counts + * Clear gateway custom ACL hit counts<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Clear gateway custom ACL hit counts", nickname = "clearOsgHitCounts", notes = "Clear gateway custom ACL hit counts

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osg-custom-acls/hit-counts", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity clearOsgHitCounts(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/acls/eap-acls : Create new eap ACL + * Create new eap ACL.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param eapAclConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new eap ACL", nickname = "createEapAcl", notes = "Create new eap ACL.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/eap-acls", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createEapAcl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) EapAclConfig eapAclConfig); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/acls/osg-acls : Create new gateway ACL + * Create new gateway ACL.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param gatewayAclConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new gateway ACL", nickname = "createOsgAcl", notes = "Create new gateway ACL.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osg-acls", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createOsgAcl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) GatewayAclConfig gatewayAclConfig); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/acls/osw-acls : Create new switch ACL + * Create new switch ACL.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param switchAclConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new switch ACL", nickname = "createOswAcl", notes = "Create new switch ACL.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osw-acls", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createOswAcl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SwitchAclConfig switchAclConfig); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/acls/{aclId} : Delete ACL + * Delete ACL.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param aclId ACL ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete ACL", nickname = "deleteAcl", notes = "Delete ACL.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/{aclId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteAcl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "ACL ID",required=true) @PathVariable("aclId") String aclId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/acls/osg-config-mode : Get gateway ACL config mode + * Get gateway ACL config mode<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get gateway ACL config mode", nickname = "getAclConfigTypeSetting", notes = "Get gateway ACL config mode

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGatewayAclConfigModeEntity.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGatewayAclConfigModeEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osg-config-mode", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAclConfigTypeSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/acls/eap-acls : Get eap ACL list + * Get eap ACL list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get eap ACL list", nickname = "getEapAclList", notes = "Get eap ACL list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoEapAclInfo.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoEapAclInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/eap-acls", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getEapAclList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/acls/osg-acls : Get gateway ACL list + * Get gateway ACL list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get gateway ACL list", nickname = "getOsgAclList", notes = "Get gateway ACL list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoGatewayAclInfo.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoGatewayAclInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osg-acls", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getOsgAclList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/acls/osg-custom-acls : Get osg custom ACL + * Get osg custom ACL.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get osg custom ACL", nickname = "getOsgCustomAclList", notes = "Get osg custom ACL.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoGatewayCustomAclInfoEntity.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoGatewayCustomAclInfoEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osg-custom-acls", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getOsgCustomAclList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/acls/osw-acls : Get switch ACL list + * Get switch ACL list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get switch ACL list", nickname = "getOswAclList", notes = "Get switch ACL list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoSwitchAclInfo.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoSwitchAclInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osw-acls", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getOswAclList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/acls/osg-config-mode : Modify gateway ACL config mode + * Modify gateway ACL config modeThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param gatewayAclConfigModeEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify gateway ACL config mode", nickname = "modifyAclConfigTypeSetting", notes = "Modify gateway ACL config modeThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osg-config-mode", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyAclConfigTypeSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) GatewayAclConfigModeEntity gatewayAclConfigModeEntity); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/acls/modifyIndex : Modify ACL Index + * Modify ACL Index.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param dragSortIndexOpenapiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify ACL Index", nickname = "modifyAclIndex", notes = "Modify ACL Index.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/modifyIndex", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity modifyAclIndex(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DragSortIndexOpenapiVo dragSortIndexOpenapiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/acls/eap-acls/{aclId} : Modify an EAP ACL + * Modify an EAP ACL.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param aclId ACL ID (required) + * @param eapAclConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an EAP ACL", nickname = "modifyEapAcl", notes = "Modify an EAP ACL.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/eap-acls/{aclId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyEapAcl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "ACL ID",required=true) @PathVariable("aclId") String aclId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) EapAclConfig eapAclConfig); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/acls/osg-acls/{aclId} : Modify a gateway ACL + * Modify a gateway ACL.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param aclId ACL ID (required) + * @param gatewayAclConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify a gateway ACL", nickname = "modifyOsgAcl", notes = "Modify a gateway ACL.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osg-acls/{aclId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyOsgAcl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "ACL ID",required=true) @PathVariable("aclId") String aclId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) GatewayAclConfig gatewayAclConfig); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/acls/osg-custom-acls/modifyIndex : Modify gateway custom ACL index + * Modify gateway custom ACL index<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param dragSortIndexOpenapiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify gateway custom ACL index", nickname = "modifyOsgCustomAclIndex", notes = "Modify gateway custom ACL index

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osg-custom-acls/modifyIndex", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity modifyOsgCustomAclIndex(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DragSortIndexOpenapiVo dragSortIndexOpenapiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/acls/osw-acls/{aclId} : Modify a switch ACL + * Modify a switch ACL.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param aclId ACL ID (required) + * @param switchAclConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify a switch ACL", nickname = "modifyOswAcl", notes = "Modify a switch ACL.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osw-acls/{aclId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyOswAcl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "ACL ID",required=true) @PathVariable("aclId") String aclId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SwitchAclConfig switchAclConfig); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/acls/osg-custom-acls : Update osg custom ACLs + * Update osg custom ACLs.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param gatewayCustomAclUpdateEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Update osg custom ACLs", nickname = "updateOsgCustomAcls", notes = "Update osg custom ACLs.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/ACL","ACL", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/acls/osg-custom-acls", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateOsgCustomAcls(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) GatewayCustomAclUpdateEntity gatewayCustomAclUpdateEntity); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaApplicationControlApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaApplicationControlApi.java new file mode 100644 index 0000000..7710287 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaApplicationControlApi.java @@ -0,0 +1,367 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.AddFilterEntity; +import org.wfc.omada.api.sitesetting.model.AddRuleEntity; +import org.wfc.omada.api.sitesetting.model.ClearDpiDataRequest; +import org.wfc.omada.api.sitesetting.model.DpiSettings; +import org.wfc.omada.api.sitesetting.model.EditFilterEntity; +import org.wfc.omada.api.sitesetting.model.EditRuleEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseDpiSettings; +import org.wfc.omada.api.sitesetting.model.OperationResponseFilterEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoApplicationEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoFilterEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoRestrictionEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoRuleEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseListFamilyEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseObject; +import org.wfc.omada.api.sitesetting.model.OperationResponseRestrictionEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseRuleEntity; +import org.wfc.omada.api.sitesetting.model.RestrictionEntity; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaApplicationControl", description = "the OmadaApplicationControl API") +@FeignClient(name="OmadaApplicationControlApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaApplicationControlApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/restrictions : Create new restriction assigned to lan network + * Create new restriction assigned to lan network.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35108 - Dpi restrictions reach entry limits.<br/>-35111 - Restriction has applied to this lan network. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param restrictionEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new restriction assigned to lan network", nickname = "addAssignRestriction", notes = "Create new restriction assigned to lan network.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35108 - Dpi restrictions reach entry limits.
-35111 - Restriction has applied to this lan network.", response = OperationResponseRestrictionEntity.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseRestrictionEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/restrictions", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity addAssignRestriction(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) RestrictionEntity restrictionEntity); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/filters : Create new filter + * Create new filter.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35103 - Rules should not be empty.<br/>-35104 - Filter name already exist.<br/>-35109 - Dpi filters reach entry limits.<br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param addFilterEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new filter", nickname = "addFilter", notes = "Create new filter.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35103 - Rules should not be empty.
-35104 - Filter name already exist.
-35109 - Dpi filters reach entry limits.
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseFilterEntity.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseFilterEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/filters", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity addFilter(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) AddFilterEntity addFilterEntity); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/rules : Create new rule + * Create new rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35102 - Applications should not be empty.<br/>-35105 - Rule name already exist.<br/>-35110 - Dpi rules reach entry limits.<br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param addRuleEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new rule", nickname = "addRule", notes = "Create new rule.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35102 - Applications should not be empty.
-35105 - Rule name already exist.
-35110 - Dpi rules reach entry limits.
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseRuleEntity.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseRuleEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/rules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity addRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) AddRuleEntity addRuleEntity); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/stat/dpi : Clear DPI data + * Clear all DPI data.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/>Site Statics Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clearDpiDataRequest (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Clear DPI data", nickname = "clearDpiData", notes = "Clear all DPI data.

The interface requires one of the permissions:
Site Settings Manager Modify
Site Statics Manager Modify", response = OperationResponseListFamilyEntity.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListFamilyEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/stat/dpi", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.DELETE) + ResponseEntity clearDpiData(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClearDpiDataRequest clearDpiDataRequest); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/restrictions/{restrictionId} : Delete an existing restriction + * Delete an existing restriction.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param restrictionId Restriction ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing restriction", nickname = "deleteAssignRestrictions", notes = "Delete an existing restriction.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseObject.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/restrictions/{restrictionId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteAssignRestrictions(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Restriction ID",required=true) @PathVariable("restrictionId") String restrictionId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/filters/{filterId} : Delete an existing filter + * Delete an existing filter.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35101 - Failed to delete filter. Please check whether filter is used by restriction.<br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param filterId Filter ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing filter", nickname = "deleteFilters", notes = "Delete an existing filter.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35101 - Failed to delete filter. Please check whether filter is used by restriction.
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseObject.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/filters/{filterId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteFilters(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Filter ID",required=true) @PathVariable("filterId") String filterId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/rules/{ruleId} : Delete an existing rule + * Delete an existing rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35100 - Failed to delete rule. Please check whether rule is used by filter.<br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ruleId Rule ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing rule", nickname = "deleteRules", notes = "Delete an existing rule.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35100 - Failed to delete rule. Please check whether rule is used by filter.
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseObject.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/rules/{ruleId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteRules(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Rule ID",required=true) @PathVariable("ruleId") String ruleId); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/status : Modify application control general settings + * Modify application control general settings.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param dpiSettings (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify application control general settings", nickname = "editApplicationControlStatus", notes = "Modify application control general settings.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseObject.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/status", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity editApplicationControlStatus(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DpiSettings dpiSettings); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/restrictions/{restrictionId} : Modify an existing restriction + * Modify an existing restriction.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param restrictionId Restriction ID (required) + * @param restrictionEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing restriction", nickname = "editAssignRestrictions", notes = "Modify an existing restriction.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseObject.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/restrictions/{restrictionId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity editAssignRestrictions(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Restriction ID",required=true) @PathVariable("restrictionId") String restrictionId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) RestrictionEntity restrictionEntity); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/filters/{filterId} : Modify an existing filter + * Modify an existing filter.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35103 - Rules should not be empty.<br/>-35104 - Filter name already exist.<br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param filterId Filter ID (required) + * @param editFilterEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing filter", nickname = "editFilters", notes = "Modify an existing filter.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35103 - Rules should not be empty.
-35104 - Filter name already exist.
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseObject.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/filters/{filterId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity editFilters(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Filter ID",required=true) @PathVariable("filterId") String filterId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) EditFilterEntity editFilterEntity); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/rules/{ruleId} : Modify an existing rule + * Modify an existing rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35102 - Applications should not be empty.<br/>-35105 - Rule name already exist.<br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ruleId Rule ID (required) + * @param editRuleEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing rule", nickname = "editRule", notes = "Modify an existing rule.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35102 - Applications should not be empty.
-35105 - Rule name already exist.
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseObject.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/rules/{ruleId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity editRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Rule ID",required=true) @PathVariable("ruleId") String ruleId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) EditRuleEntity editRuleEntity); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/status : Get application control general settings + * Get application control general settings with the given omadacId, siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get application control general settings", nickname = "getApplicationControlStatus", notes = "Get application control general settings with the given omadacId, siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseDpiSettings.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDpiSettings.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/status", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getApplicationControlStatus(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/applications : Get application list + * Get application list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35107 - Dpi protocols are updating.<br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param searchKey Fuzzy query parameters, support field application name (optional) + * @param filtersFamilyId Filter query parameters, support field 0 (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get application list", nickname = "getApplications", notes = "Get application list.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35107 - Dpi protocols are updating.
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseGridVoApplicationEntity.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoApplicationEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/applications", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getApplications(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Fuzzy query parameters, support field application name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey,@ApiParam(value = "Filter query parameters, support field 0") @Valid @RequestParam(value = "filtersFamilyId", required = false) Integer filtersFamilyId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/restrictions : Get application control assigned restriction list + * Get application control assigned restriction list with the given omadacId, siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get application control assigned restriction list", nickname = "getAssignRestrictions", notes = "Get application control assigned restriction list with the given omadacId, siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseGridVoRestrictionEntity.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoRestrictionEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/restrictions", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAssignRestrictions(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/families : Get family list + * Get family list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35107 - Dpi protocols are updating.<br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get family list", nickname = "getFamilies", notes = "Get family list.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35107 - Dpi protocols are updating.
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseListFamilyEntity.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListFamilyEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/families", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getFamilies(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/filters : Get filter list + * Get filter list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param searchKey Fuzzy query parameters, support field filter name (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get filter list", nickname = "getFilters", notes = "Get filter list.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseGridVoFilterEntity.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoFilterEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/filters", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getFilters(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Fuzzy query parameters, support field filter name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/applicationControl/rules : Get rule list + * Get rule list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35112 - Gateway is not existed<br/>-35113 - Gateway is not support dpi + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param searchKey Fuzzy query parameters, support field rule name (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get rule list", nickname = "getRules", notes = "Get rule list.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35112 - Gateway is not existed
-35113 - Gateway is not support dpi", response = OperationResponseGridVoRuleEntity.class, tags={ "Omada/Application Control","Application Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoRuleEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/applicationControl/rules", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRules(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Fuzzy query parameters, support field rule name") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAttackDefenseApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAttackDefenseApi.java new file mode 100644 index 0000000..48a6aa6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAttackDefenseApi.java @@ -0,0 +1,81 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.AttackDefenseSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseAttackDefenseSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaAttackDefense", description = "the OmadaAttackDefense API") +@FeignClient(name="OmadaAttackDefenseApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaAttackDefenseApi { + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/attack-defense : Get attack and defense setting + * Get attack and defense setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get attack and defense setting", nickname = "getAttackDefenseSetting", notes = "Get attack and defense setting.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseAttackDefenseSetting.class, tags={ "Omada/Attack Defense","Attack Defense", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseAttackDefenseSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/attack-defense", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAttackDefenseSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/attack-defense : Modify attack and defense setting + * Modify attack and defense setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param attackDefenseSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify attack and defense setting", nickname = "modifyAttackDefenseSetting", notes = "Modify attack and defense setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Attack Defense","Attack Defense", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/attack-defense", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyAttackDefenseSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) AttackDefenseSetting attackDefenseSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/attack-defense/reset : Reset attack and defense setting + * Reset attack and defense setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Reset attack and defense setting", nickname = "resetAttackDefenseSetting", notes = "Reset attack and defense setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Attack Defense","Attack Defense", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/attack-defense/reset", + produces = "*/*", + method = RequestMethod.PATCH) + ResponseEntity resetAttackDefenseSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAuthenticationApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAuthenticationApi.java new file mode 100644 index 0000000..1ba0fd1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaAuthenticationApi.java @@ -0,0 +1,352 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.multipart.MultipartFile; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.Dot1xEapOpenApiVo; +import org.wfc.omada.api.sitesetting.model.Dot1xSwitchOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseDot1xEapOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseDot1xSwitchOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseImportedPortalPageResOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListDot1xEapInfoOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListDot1xSwitchInfoOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListPortalResOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListWlanSimpleOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseMacAuthOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponsePortalCustomizationPageResOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponsePortalDetailResOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponsePortalPictureInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.PortalSetting; +import org.wfc.omada.api.sitesetting.model.UpdateMacAuthOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaAuthentication", description = "the OmadaAuthentication API") +@FeignClient(name="OmadaAuthenticationApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaAuthenticationApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/portal : Add portal + * Add new portal<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param portalSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Add portal", nickname = "addPortal", notes = "Add new portal

The interface requires one of the permissions:
Site Hotspot Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/portal", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity addPortal(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PortalSetting portalSetting); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/portal/{portalId} : Delete portal + * Delete portal setting with the given portalId<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param portalId Portal ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete portal", nickname = "deletePortal", notes = "Delete portal setting with the given portalId

The interface requires one of the permissions:
Site Hotspot Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/portal/{portalId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deletePortal(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Portal ID",required=true) @PathVariable("portalId") String portalId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dot1x/eap/candidates : Get site EAP 802.1x setting candidates + * Get EAP 802.1x setting candidates of the site with the given omadacId and siteId. This interface applies to the Pro Site of the Omada Pro Controller only.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site EAP 802.1x setting candidates", nickname = "getEapDot1xCandidates", notes = "Get EAP 802.1x setting candidates of the site with the given omadacId and siteId. This interface applies to the Pro Site of the Omada Pro Controller only.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseListDot1xEapInfoOpenApiVo.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListDot1xEapInfoOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dot1x/eap/candidates", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getEapDot1xCandidates(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dot1x/eap : Get site eap 802.1x setting + * Get eap 802.1x setting of the site with the given omadacId and siteId. This interface applies to the Pro Site of the Omada Pro Controller only.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site eap 802.1x setting", nickname = "getEapDot1xSetting", notes = "Get eap 802.1x setting of the site with the given omadacId and siteId. This interface applies to the Pro Site of the Omada Pro Controller only.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseDot1xEapOpenApiVo.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDot1xEapOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dot1x/eap", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getEapDot1xSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/mac-auth : Get site MAC-Based Authentication info + * Get MAC-Based Authentication setting info of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site MAC-Based Authentication info", nickname = "getMacAuthSetting", notes = "Get MAC-Based Authentication setting info of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseMacAuthOpenApiVo.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseMacAuthOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mac-auth", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getMacAuthSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/mac-auth/ssids : Get ssids that support MAC auth + * Get ssid list that support MAC-Based Authentication with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ssids that support MAC auth", nickname = "getMacAuthSsids", notes = "Get ssid list that support MAC-Based Authentication with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseListWlanSimpleOpenApiVo.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListWlanSimpleOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mac-auth/ssids", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getMacAuthSsids(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/portal/{portalId}/customization : Get portal customization + * Get portal customization information with the given omadacId, siteId and portalId.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param portalId Portal ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get portal customization", nickname = "getPortalCustomization", notes = "Get portal customization information with the given omadacId, siteId and portalId.

The interface requires one of the permissions:
Site Hotspot Manager View Only", response = OperationResponsePortalCustomizationPageResOpenApiVo.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponsePortalCustomizationPageResOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/portal/{portalId}/customization", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPortalCustomization(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Portal ID",required=true) @PathVariable("portalId") String portalId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/portal/{portalId} : Get portal detail + * Get portal detail information with the given omadacId, siteId and portalId.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param portalId Portal ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get portal detail", nickname = "getPortalDetail", notes = "Get portal detail information with the given omadacId, siteId and portalId.

The interface requires one of the permissions:
Site Hotspot Manager View Only", response = OperationResponsePortalDetailResOpenApiVo.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponsePortalDetailResOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/portal/{portalId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPortalDetail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Portal ID",required=true) @PathVariable("portalId") String portalId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/portals : Get portal list in a site + * Get portal list with the given omadacId, siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get portal list in a site", nickname = "getPortalList", notes = "Get portal list with the given omadacId, siteId.

The interface requires one of the permissions:
Site Hotspot Manager View Only", response = OperationResponseListPortalResOpenApiVo.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListPortalResOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/portals", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPortalList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dot1x/candidates : Get site switch 802.1x setting candidates + * Get switch 802.1x setting candidates of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site switch 802.1x setting candidates", nickname = "getSwitchDot1xCandidates", notes = "Get switch 802.1x setting candidates of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseListDot1xSwitchInfoOpenApiVo.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListDot1xSwitchInfoOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dot1x/candidates", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSwitchDot1xCandidates(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/dot1x : Get site switch 802.1x setting + * Get switch 802.1x setting of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site switch 802.1x setting", nickname = "getSwitchDot1xSetting", notes = "Get switch 802.1x setting of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseDot1xSwitchOpenApiVo.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDot1xSwitchOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dot1x", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSwitchDot1xSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/portal/{portalId} : Modify portal + * Modify the portal with the portal ID<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param portalId Portal ID (required) + * @param portalSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify portal", nickname = "modifyPortal", notes = "Modify the portal with the portal ID

The interface requires one of the permissions:
Site Hotspot Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/portal/{portalId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyPortal(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Portal ID",required=true) @PathVariable("portalId") String portalId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PortalSetting portalSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/dot1x/eap : Modify site EAP 802.1x setting + * Modify EAP 802.1x setting of the site with the given parameters. This interface applies to the Pro Site of the Omada Pro Controller only.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param dot1xEapOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site EAP 802.1x setting", nickname = "updateEapDot1xSetting", notes = "Modify EAP 802.1x setting of the site with the given parameters. This interface applies to the Pro Site of the Omada Pro Controller only.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dot1x/eap", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateEapDot1xSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) Dot1xEapOpenApiVo dot1xEapOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/mac-auth : Update site MAC-Based Authentication info + * Update MAC-Based Authentication setting info of the site with the given parameters.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param updateMacAuthOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Update site MAC-Based Authentication info", nickname = "updateMacAuthSetting", notes = "Update MAC-Based Authentication setting info of the site with the given parameters.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mac-auth", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateMacAuthSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateMacAuthOpenApiVo updateMacAuthOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/dot1x : Modify site switch 802.1x setting + * Modify switch 802.1x setting of the site with the given parameters.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-39700 - Switch does not exist + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param dot1xSwitchOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site switch 802.1x setting", nickname = "updateSwitchDot1xSetting", notes = "Modify switch 802.1x setting of the site with the given parameters.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-39700 - Switch does not exist", response = OperationResponseWithoutResult.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/dot1x", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateSwitchDot1xSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) Dot1xSwitchOpenApiVo dot1xSwitchOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/portal/page : Import portal page + * Import portal page<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param file Portal page file. (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Import portal page", nickname = "uploadPortalPage", notes = "Import portal page

The interface requires one of the permissions:
Site Hotspot Manager Modify", response = OperationResponseImportedPortalPageResOpenApiVo.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseImportedPortalPageResOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/portal/page", + produces = "*/*", + consumes = "multipart/form-data", + method = RequestMethod.POST) + ResponseEntity uploadPortalPage(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Portal page file.") @RequestParam("file") MultipartFile file); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/portal/pics : Upload portal picture + * Upload portal picture<br/><br/>The interface requires one of the permissions: <br/>Site Hotspot Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param type Portal picture type: background/logo/advertisement. (required) + * @param file Portal picture file. (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Upload portal picture", nickname = "uploadPortalPic", notes = "Upload portal picture

The interface requires one of the permissions:
Site Hotspot Manager Modify", response = OperationResponsePortalPictureInfo.class, tags={ "Omada/Authentication","Authentication", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponsePortalPictureInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/portal/pics", + produces = "*/*", + consumes = "multipart/form-data", + method = RequestMethod.POST) + ResponseEntity uploadPortalPic(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Portal picture type: background/logo/advertisement.", required = true) @Valid @RequestParam(value = "type", required = true) String type,@ApiParam(value = "Portal picture file.") @RequestParam("file") MultipartFile file); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaBandwidthControlApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaBandwidthControlApi.java new file mode 100644 index 0000000..44664de --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaBandwidthControlApi.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.BandwidthControl; +import org.wfc.omada.api.sitesetting.model.BandwidthControlRule; +import org.wfc.omada.api.sitesetting.model.OperationResponseBandwidthControl; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoBandwidthControlRule; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.TransmissionDragSortIndexOpenapiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaBandwidthControl", description = "the OmadaBandwidthControl API") +@FeignClient(name="OmadaBandwidthControlApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaBandwidthControlApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/bandwidth-control/rules : Create bandwidth control rule + * Create bandwidth control rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param bandwidthControlRule (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create bandwidth control rule", nickname = "createBandwidthCtrlRule", notes = "Create bandwidth control rule.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Bandwidth Control","Bandwidth Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/bandwidth-control/rules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createBandwidthCtrlRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BandwidthControlRule bandwidthControlRule); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/bandwidth-control/rules/{ruleId} : Delete bandwidth control rule + * Delete bandwidth control rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ruleId Bandwidth control rule ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete bandwidth control rule", nickname = "deleteBandwidthCtrlRule", notes = "Delete bandwidth control rule.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Bandwidth Control","Bandwidth Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/bandwidth-control/rules/{ruleId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteBandwidthCtrlRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Bandwidth control rule ID",required=true) @PathVariable("ruleId") String ruleId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/bandwidth-control : Get bandwidth control + * Get bandwidth control.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get bandwidth control", nickname = "getBandwidthCtrl", notes = "Get bandwidth control.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseBandwidthControl.class, tags={ "Omada/Bandwidth Control","Bandwidth Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseBandwidthControl.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/bandwidth-control", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getBandwidthCtrl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/bandwidth-control/rules : Get bandwidth control rule list + * Get bandwidth control rule list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get bandwidth control rule list", nickname = "getGridBandwidthCtrlRule", notes = "Get bandwidth control rule list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoBandwidthControlRule.class, tags={ "Omada/Bandwidth Control","Bandwidth Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoBandwidthControlRule.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/bandwidth-control/rules", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridBandwidthCtrlRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/bandwidth-control : Modify bandwidth control + * Modify bandwidth control.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param bandwidthControl (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify bandwidth control", nickname = "modifyBandwidthCtrl", notes = "Modify bandwidth control.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Bandwidth Control","Bandwidth Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/bandwidth-control", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyBandwidthCtrl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BandwidthControl bandwidthControl); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/bandwidth-control/rules/{ruleId} : Modify bandwidth control rule + * Modify bandwidth control rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ruleId Bandwidth control rule ID (required) + * @param bandwidthControlRule (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify bandwidth control rule", nickname = "modifyBandwidthCtrlRule", notes = "Modify bandwidth control rule.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Bandwidth Control","Bandwidth Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/bandwidth-control/rules/{ruleId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyBandwidthCtrlRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Bandwidth control rule ID",required=true) @PathVariable("ruleId") String ruleId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BandwidthControlRule bandwidthControlRule); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/bandwidth-control/rules : Modify bandwidth control rule index + * Modify bandwidth control rule index.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param transmissionDragSortIndexOpenapiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify bandwidth control rule index", nickname = "modifyBandwidthCtrlRuleIndex", notes = "Modify bandwidth control rule index.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Bandwidth Control","Bandwidth Control", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/bandwidth-control/rules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyBandwidthCtrlRuleIndex(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) TransmissionDragSortIndexOpenapiVo transmissionDragSortIndexOpenapiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaFirewallApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaFirewallApi.java new file mode 100644 index 0000000..153f4b1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaFirewallApi.java @@ -0,0 +1,81 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.FirewallSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseFirewallSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaFirewall", description = "the OmadaFirewall API") +@FeignClient(name="OmadaFirewallApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaFirewallApi { + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/firewall : Get firewall setting + * Get firewall setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get firewall setting", nickname = "getFirewallSetting", notes = "Get firewall setting.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseFirewallSetting.class, tags={ "Omada/Firewall","Firewall", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseFirewallSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/firewall", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getFirewallSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/firewall : Modify firewall setting + * Modify firewall setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param firewallSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify firewall setting", nickname = "modifyFirewallSetting", notes = "Modify firewall setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Firewall","Firewall", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/firewall", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyFirewallSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) FirewallSetting firewallSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/firewall/reset : Reset firewall setting + * Reset firewall setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Reset firewall setting", nickname = "resetFirewallSetting", notes = "Reset firewall setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Firewall","Firewall", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/firewall/reset", + produces = "*/*", + method = RequestMethod.PATCH) + ResponseEntity resetFirewallSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaGatewayQoSApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaGatewayQoSApi.java new file mode 100644 index 0000000..f935da9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaGatewayQoSApi.java @@ -0,0 +1,280 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.ClassRuleOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoClassRuleDetailOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoQosBwcDetailOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResponseIdVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseTagOutConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseVoipOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.QosBwcEditOpenApiVo; +import org.wfc.omada.api.sitesetting.model.QosBwcOpenApiVo; +import org.wfc.omada.api.sitesetting.model.TagOutConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.VoipOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaGatewayQoS", description = "the OmadaGatewayQoS API") +@FeignClient(name="OmadaGatewayQoSApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaGatewayQoSApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/bwcs : Create new bandwidth control rule + * Create new bandwidth control rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-43310 - The WAN Port is being used by other bandwidths. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param qosBwcOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new bandwidth control rule", nickname = "createBwCtrl", notes = "Create new bandwidth control rule.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.
-43310 - The WAN Port is being used by other bandwidths.", response = OperationResponseResponseIdVo.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/bwcs", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createBwCtrl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) QosBwcOpenApiVo qosBwcOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/class-rules : Create new class rule + * Create new class rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-43301 - The service type does not exist.<br/>-43305 - The number of class rules has reached the limit.<br/>-43307 - The IP group does not exist.<br/>-43308 - The value of DSCP is invalid. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param classRuleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new class rule", nickname = "createClassRule", notes = "Create new class rule.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.
-43301 - The service type does not exist.
-43305 - The number of class rules has reached the limit.
-43307 - The IP group does not exist.
-43308 - The value of DSCP is invalid.", response = OperationResponseResponseIdVo.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/class-rules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createClassRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClassRuleOpenApiVo classRuleOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/bwcs/{id} : Delete an existing bandwidth control rule + * Delete an existing bandwidth control rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Bandwidth control rule ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing bandwidth control rule", nickname = "deleteBwCtrl", notes = "Delete an existing bandwidth control rule.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/bwcs/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteBwCtrl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Bandwidth control rule ID",required=true) @PathVariable("id") String id); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/class-rules/{id} : Delete an existing class rule + * Delete an existing class rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Class rule ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing class rule", nickname = "deleteClassRule", notes = "Delete an existing class rule.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/class-rules/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteClassRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Class rule ID",required=true) @PathVariable("id") String id); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/bwcs : Get bandwidth control rule list + * Get bandwidth control rule list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1004 - Invalid request type. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get bandwidth control rule list", nickname = "getBandwidthCtrlGrid", notes = "Get bandwidth control rule list.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1004 - Invalid request type.", response = OperationResponseGridVoQosBwcDetailOpenApiVo.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoQosBwcDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/bwcs", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getBandwidthCtrlGrid(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/class-rules : Get class rule list + * Get class rule list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get class rule list", nickname = "getClassRuleGrid", notes = "Get class rule list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoClassRuleDetailOpenApiVo.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoClassRuleDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/class-rules", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getClassRuleGrid(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/wans : Get WAN ports info for Gateway QoS + * Get WAN ports info for Gateway QoS.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get WAN ports info for Gateway QoS", nickname = "getQosWans", notes = "Get WAN ports info for Gateway QoS.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/wans", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getQosWans(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/tag-outbound-traffic : Get Tag Outbound Traffic info + * Get Tag Outbound Traffic info.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Tag Outbound Traffic info", nickname = "getTagOut", notes = "Get Tag Outbound Traffic info.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseTagOutConfigOpenApiVo.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseTagOutConfigOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/tag-outbound-traffic", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getTagOut(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/voip-prioritization : Get VoIP Prioritization info + * Get VoIP Prioritization info.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get VoIP Prioritization info", nickname = "getVoip", notes = "Get VoIP Prioritization info.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseVoipOpenApiVo.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVoipOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/voip-prioritization", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoip(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/bwcs/{id} : Modify an existing bandwidth control rule + * Modify an existing bandwidth control rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-43304 - The bandwidth control entry does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Bandwidth control rule ID (required) + * @param qosBwcEditOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing bandwidth control rule", nickname = "modifyBwCtrl", notes = "Modify an existing bandwidth control rule.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.
-43304 - The bandwidth control entry does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/bwcs/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyBwCtrl(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Bandwidth control rule ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) QosBwcEditOpenApiVo qosBwcEditOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/class-rules/{id} : Modify an existing class rule + * Modify an existing class rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-43301 - The service type does not exist.<br/>-43306 - The class rule does not exist.<br/>-43307 - The IP group does not exist.<br/>-43308 - The value of DSCP is invalid. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Class rule ID (required) + * @param classRuleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing class rule", nickname = "modifyClassRule", notes = "Modify an existing class rule.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-43301 - The service type does not exist.
-43306 - The class rule does not exist.
-43307 - The IP group does not exist.
-43308 - The value of DSCP is invalid.", response = OperationResponseWithoutResult.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/class-rules/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyClassRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Class rule ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClassRuleOpenApiVo classRuleOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/tag-outbound-traffic : Modify Tag Outbound Traffic info + * Modify Tag Outbound Traffic info.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param tagOutConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify Tag Outbound Traffic info", nickname = "modifyTagOut", notes = "Modify Tag Outbound Traffic info.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.", response = OperationResponseWithoutResult.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/tag-outbound-traffic", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyTagOut(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) TagOutConfigOpenApiVo tagOutConfigOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/qos/gateway/voip-prioritization : Modify VoIP Prioritization info + * Modify VoIP Prioritization info.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param voipOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify VoIP Prioritization info", nickname = "modifyVoip", notes = "Modify VoIP Prioritization info.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.", response = OperationResponseWithoutResult.class, tags={ "Omada/Gateway QoS","Gateway QoS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/qos/gateway/voip-prioritization", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyVoip(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VoipOpenApiVo voipOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaIdsIpsApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaIdsIpsApi.java new file mode 100644 index 0000000..8228674 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaIdsIpsApi.java @@ -0,0 +1,242 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.IpsInfo; +import org.wfc.omada.api.sitesetting.model.IpsSignatureConfig; +import org.wfc.omada.api.sitesetting.model.ModifyIpsAllowListEntry; +import org.wfc.omada.api.sitesetting.model.NewIpsAllowListEntry; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoIpsBlockListEntry; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoIpsSignatureInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseIpsInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseObject; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaIdsIps", description = "the OmadaIdsIps API") +@FeignClient(name="OmadaIdsIpsApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaIdsIpsApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/network-security/ips/allow-list : Create new allow list + * Create new allow list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35202 - The number of allow list entries has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param newIpsAllowListEntry (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new allow list", nickname = "createAllowList", notes = "Create new allow list.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35202 - The number of allow list entries has reached the limit.", response = OperationResponseObject.class, tags={ "Omada/IDS/IPS","IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/ips/allow-list", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createAllowList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) NewIpsAllowListEntry newIpsAllowListEntry); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/network-security/ips/allow-list/{entryId} : Delete allow list + * Delete allow List by entry id.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param entryId Allow entry ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete allow list", nickname = "deleteAllowList", notes = "Delete allow List by entry id.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseObject.class, tags={ "Omada/IDS/IPS","IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/ips/allow-list/{entryId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteAllowList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Allow entry ID",required=true) @PathVariable("entryId") String entryId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/network-security/ips/block-list/{entryId} : Delete block list + * Delete block list by entry id.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param entryId Block entry ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete block list", nickname = "deleteBlockList", notes = "Delete block list by entry id.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseObject.class, tags={ "Omada/IDS/IPS","IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/ips/block-list/{entryId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteBlockList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Block entry ID",required=true) @PathVariable("entryId") String entryId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/network-security/ips/signature/{signId} : Delete signature + * Delete signature<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param signId Unique Signature ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete signature", nickname = "deleteSignature", notes = "Delete signature

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseObject.class, tags={ "Omada/IDS/IPS","IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/ips/signature/{signId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteSignature(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Unique Signature ID",required=true) @PathVariable("signId") String signId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/network-security/ips/allow-list : Edit allow list + * Modify an allow list entry.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param modifyIpsAllowListEntry (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Edit allow list", nickname = "editAllowList", notes = "Modify an allow list entry.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseObject.class, tags={ "Omada/IDS/IPS","IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/ips/allow-list", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity editAllowList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyIpsAllowListEntry modifyIpsAllowListEntry); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/network-security/ips/grid/allow-list : Get grid ips allow list + * Obtain grid allow list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param searchKey Fuzzy query parameters, support field IP / Subnet (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get grid ips allow list", nickname = "getGridAllowList", notes = "Obtain grid allow list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseObject.class, tags={ "Omada/IDS/IPS","IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/ips/grid/allow-list", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridAllowList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Fuzzy query parameters, support field IP / Subnet") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/network-security/ips/grid/block-list : Get grid IPS block list + * Obtain the grid IPS block list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param searchKey Fuzzy query parameters, support field Name/Source Ip/Destination (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get grid IPS block list", nickname = "getGridBlockList", notes = "Obtain the grid IPS block list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoIpsBlockListEntry.class, tags={ "Omada/IDS/IPS","IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoIpsBlockListEntry.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/ips/grid/block-list", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridBlockList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Fuzzy query parameters, support field Name/Source Ip/Destination") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/network-security/ips/signature : Get signature list + * Get signature list<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get signature list", nickname = "getGridSignature", notes = "Get signature list

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoIpsSignatureInfo.class, tags={ "Omada/IDS/IPS","IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoIpsSignatureInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/ips/signature", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridSignature(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/network-security/ips : Get site IDS/IPS config + * Get site IDS/IPS config<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site IDS/IPS config", nickname = "getIpsConfig", notes = "Get site IDS/IPS config

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseIpsInfo.class, tags={ "Omada/IDS/IPS","IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseIpsInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/ips", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getIpsConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/network-security/ips : Modify site IDS/IPS config + * Modify site IDS/IPS config<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ipsInfo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site IDS/IPS config", nickname = "modifyIpsConfig", notes = "Modify site IDS/IPS config

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseObject.class, tags={ "Omada/IDS/IPS","IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/ips", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyIpsConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IpsInfo ipsInfo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/network-security/ips/signature/{signId} : Modify signature + * Modify signature<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param signId Unique Signature ID (required) + * @param ipsSignatureConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify signature", nickname = "modifySignature", notes = "Modify signature

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseObject.class, tags={ "Omada/IDS/IPS","IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/ips/signature/{signId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifySignature(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Unique Signature ID",required=true) @PathVariable("signId") String signId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IpsSignatureConfig ipsSignatureConfig); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaIpMacBindingApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaIpMacBindingApi.java new file mode 100644 index 0000000..2694a8e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaIpMacBindingApi.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.BatchSelectIpMacBindingId; +import org.wfc.omada.api.sitesetting.model.IpMacBinding; +import org.wfc.omada.api.sitesetting.model.IpMacBindingGeneralSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoipMacBinding; +import org.wfc.omada.api.sitesetting.model.OperationResponseIpMacBindingGeneralSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaIpMacBinding", description = "the OmadaIpMacBinding API") +@FeignClient(name="OmadaIpMacBindingApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaIpMacBindingApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/ip-mac-binds/batch-delete : Batch delete IP-MAC bindings + * Batch delete IP-MAC bindings.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param batchSelectIpMacBindingId (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch delete IP-MAC bindings", nickname = "batchDeleteIpMacBindings", notes = "Batch delete IP-MAC bindings.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/IP-MAC Binding","IP-MAC Binding", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ip-mac-binds/batch-delete", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity batchDeleteIpMacBindings(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchSelectIpMacBindingId batchSelectIpMacBindingId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/ip-mac-binds : Create IP-MAC binding + * Create IP-MAC binding.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ipMacBinding (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create IP-MAC binding", nickname = "createIpMacBinding", notes = "Create IP-MAC binding.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/IP-MAC Binding","IP-MAC Binding", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ip-mac-binds", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createIpMacBinding(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IpMacBinding ipMacBinding); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/ip-mac-binds/{bindId} : Delete IP-MAC binding + * Delete IP-MAC binding.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param bindId IP MAC binding ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete IP-MAC binding", nickname = "deleteIpMacBinding", notes = "Delete IP-MAC binding.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/IP-MAC Binding","IP-MAC Binding", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ip-mac-binds/{bindId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteIpMacBinding(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "IP MAC binding ID",required=true) @PathVariable("bindId") String bindId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/ip-mac-binds : Get IP-MAC binding list + * Get IP-MAC binding list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get IP-MAC binding list", nickname = "getGridIpMacBinding", notes = "Get IP-MAC binding list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoipMacBinding.class, tags={ "Omada/IP-MAC Binding","IP-MAC Binding", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoipMacBinding.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ip-mac-binds", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridIpMacBinding(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/ip-mac-bind : Get IP-MAC binding general setting + * Get IP-MAC binding general setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get IP-MAC binding general setting", nickname = "getIpMacBindingGeneralSetting", notes = "Get IP-MAC binding general setting.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseIpMacBindingGeneralSetting.class, tags={ "Omada/IP-MAC Binding","IP-MAC Binding", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseIpMacBindingGeneralSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ip-mac-bind", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getIpMacBindingGeneralSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/ip-mac-binds/{bindId} : Modify IP-MAC binding + * Modify IP-MAC binding.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param bindId IP MAC binding ID (required) + * @param ipMacBinding (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify IP-MAC binding", nickname = "modifyIpMacBinding", notes = "Modify IP-MAC binding.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/IP-MAC Binding","IP-MAC Binding", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ip-mac-binds/{bindId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyIpMacBinding(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "IP MAC binding ID",required=true) @PathVariable("bindId") String bindId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IpMacBinding ipMacBinding); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/ip-mac-bind : Modify IP-MAC binding general setting + * Modify IP-MAC binding general setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ipMacBindingGeneralSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify IP-MAC binding general setting", nickname = "modifyIpMacBindingGeneralSetting", notes = "Modify IP-MAC binding general setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/IP-MAC Binding","IP-MAC Binding", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ip-mac-bind", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyIpMacBindingGeneralSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IpMacBindingGeneralSetting ipMacBindingGeneralSetting); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaMacFilteringApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaMacFilteringApi.java new file mode 100644 index 0000000..7bef71a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaMacFilteringApi.java @@ -0,0 +1,163 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.MacFiltering; +import org.wfc.omada.api.sitesetting.model.MacFilteringGeneralSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoMacFiltering; +import org.wfc.omada.api.sitesetting.model.OperationResponseMacFilteringGeneralSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaMacFiltering", description = "the OmadaMacFiltering API") +@FeignClient(name="OmadaMacFilteringApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaMacFilteringApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/mac-filters : Create MAC filtering + * Create MAC filtering.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param macFiltering (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create MAC filtering", nickname = "createMacFiltering", notes = "Create MAC filtering.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/MAC Filtering","MAC Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mac-filters", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createMacFiltering(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) MacFiltering macFiltering); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/mac-filters/{filterId} : Delete MAC filtering + * Delete MAC filtering.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param filterId MAC filtering ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete MAC filtering", nickname = "deleteMacFiltering", notes = "Delete MAC filtering.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/MAC Filtering","MAC Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mac-filters/{filterId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteMacFiltering(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "MAC filtering ID",required=true) @PathVariable("filterId") String filterId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/mac-filters/allow : Get allow MAC filtering list + * Get allow MAC filtering list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get allow MAC filtering list", nickname = "getGridAllowMacFiltering", notes = "Get allow MAC filtering list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoMacFiltering.class, tags={ "Omada/MAC Filtering","MAC Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoMacFiltering.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mac-filters/allow", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridAllowMacFiltering(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/mac-filters/deny : Get deny MAC filtering list + * Get deny MAC filtering list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get deny MAC filtering list", nickname = "getGridDenyMacFiltering", notes = "Get deny MAC filtering list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoMacFiltering.class, tags={ "Omada/MAC Filtering","MAC Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoMacFiltering.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mac-filters/deny", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridDenyMacFiltering(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/mac-filter : Get MAC filtering general setting + * Get MAC filtering general setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get MAC filtering general setting", nickname = "getMacFilteringGeneralSetting", notes = "Get MAC filtering general setting.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseMacFilteringGeneralSetting.class, tags={ "Omada/MAC Filtering","MAC Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseMacFilteringGeneralSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mac-filter", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getMacFilteringGeneralSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/mac-filters/{filterId} : Modify MAC filtering + * Modify MAC filtering.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param filterId MAC filtering ID (required) + * @param macFiltering (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify MAC filtering", nickname = "modifyMacFiltering", notes = "Modify MAC filtering.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/MAC Filtering","MAC Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mac-filters/{filterId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyMacFiltering(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "MAC filtering ID",required=true) @PathVariable("filterId") String filterId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) MacFiltering macFiltering); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/mac-filter : Modify MAC filtering general setting + * Modify MAC filtering general setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param macFilteringGeneralSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify MAC filtering general setting", nickname = "modifyMacFilteringGeneralSetting", notes = "Modify MAC filtering general setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/MAC Filtering","MAC Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mac-filter", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyMacFilteringGeneralSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) MacFilteringGeneralSetting macFilteringGeneralSetting); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaNatApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaNatApi.java new file mode 100644 index 0000000..9c8629c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaNatApi.java @@ -0,0 +1,222 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.AlgSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseAlgSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoOtoNatInfoOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoPortForwardingInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.OtoNatOpenApiVo; +import org.wfc.omada.api.sitesetting.model.PortForwardingConfig; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaNat", description = "the OmadaNat API") +@FeignClient(name="OmadaNatApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaNatApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/nat/one-to-one-nat : Create new One-to-One NAT + * Create new One-to-One NAT.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param otoNatOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new One-to-One NAT", nickname = "createOtoNat", notes = "Create new One-to-One NAT.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/NAT","NAT", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/nat/one-to-one-nat", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createOtoNat(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OtoNatOpenApiVo otoNatOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/nat/port-forwardings : Create new port forwarding + * Create new port forwarding.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param portForwardingConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new port forwarding", nickname = "createPortForwarding", notes = "Create new port forwarding.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/NAT","NAT", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/nat/port-forwardings", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createPortForwarding(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PortForwardingConfig portForwardingConfig); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/nat/one-to-one-nat/{otonatId} : Delete One-to-One NAT + * Delete One-to-One NAT.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param otonatId (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete One-to-One NAT", nickname = "deleteOtoNat", notes = "Delete One-to-One NAT.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/NAT","NAT", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/nat/one-to-one-nat/{otonatId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteOtoNat(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("otonatId") String otonatId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/nat/port-forwardings/{portForwardingId} : Delete port forwarding + * Delete port forwarding.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param portForwardingId (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete port forwarding", nickname = "deletePortForwarding", notes = "Delete port forwarding.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/NAT","NAT", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/nat/port-forwardings/{portForwardingId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deletePortForwarding(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("portForwardingId") String portForwardingId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/nat/alg : Get ALG Info + * Get ALG Info.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get ALG Info", nickname = "getAlg", notes = "Get ALG Info.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseAlgSetting.class, tags={ "Omada/NAT","NAT", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseAlgSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/nat/alg", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAlg(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/nat/one-to-one-nat : Get One-to-One NAT list + * Get One-to-One NAT list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get One-to-One NAT list", nickname = "getGridOtoNats", notes = "Get One-to-One NAT list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoOtoNatInfoOpenApiVo.class, tags={ "Omada/NAT","NAT", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoOtoNatInfoOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/nat/one-to-one-nat", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridOtoNats(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/nat/port-forwardings : Get port forwarding list + * Get port forwarding list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get port forwarding list", nickname = "getPortForwardingList", notes = "Get port forwarding list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoPortForwardingInfo.class, tags={ "Omada/NAT","NAT", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoPortForwardingInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/nat/port-forwardings", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPortForwardingList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/nat/alg : Modify ALG setting + * Modify ALG setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param algSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify ALG setting", nickname = "modifyAlg", notes = "Modify ALG setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/NAT","NAT", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/nat/alg", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyAlg(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) AlgSetting algSetting); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/nat/one-to-one-nat/{otonatId} : Modify One-to-One NAT + * Modify One-to-One NAT.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param otonatId (required) + * @param otoNatOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify One-to-One NAT", nickname = "modifyOtoNat", notes = "Modify One-to-One NAT.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/NAT","NAT", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/nat/one-to-one-nat/{otonatId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyOtoNat(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("otonatId") String otonatId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OtoNatOpenApiVo otoNatOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/nat/port-forwardings/{portForwardingId} : Modify port forwarding + * Modify port forwarding.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param portForwardingId (required) + * @param portForwardingConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify port forwarding", nickname = "modifyPortForwarding", notes = "Modify port forwarding.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/NAT","NAT", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/nat/port-forwardings/{portForwardingId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyPortForwarding(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("portForwardingId") String portForwardingId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PortForwardingConfig portForwardingConfig); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaOuiBasedVlanApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaOuiBasedVlanApi.java new file mode 100644 index 0000000..bf2f23f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaOuiBasedVlanApi.java @@ -0,0 +1,206 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResIdOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.OuiBasedVlanApOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OuiBasedVlanSwitchOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaOuiBasedVlan", description = "the OmadaOuiBasedVlan API") +@FeignClient(name="OmadaOuiBasedVlanApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaOuiBasedVlanApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/ap-oui-rules : Create Ap oui based vlan + * Create Ap oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33779 - This OUI profile does not exist.<br/>-33789 - PPSK and OUI Based VLAN are mutually exclusive. Please make sure the SSID does not select PPSK.<br/>-34224 - When the rule is enabled, the same device should not configure OUI-VLAN combination greater than 16.<br/>-34225 - When the rule is enabled, the same SSID should not be configured in multiple rules.<br/>-34229 - The OUI based VLAN rule name already exists.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ouiBasedVlanApOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create Ap oui based vlan", nickname = "createApOuiBasedVlan", notes = "Create Ap oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33779 - This OUI profile does not exist.
-33789 - PPSK and OUI Based VLAN are mutually exclusive. Please make sure the SSID does not select PPSK.
-34224 - When the rule is enabled, the same device should not configure OUI-VLAN combination greater than 16.
-34225 - When the rule is enabled, the same SSID should not be configured in multiple rules.
-34229 - The OUI based VLAN rule name already exists.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseResIdOpenApiVo.class, tags={ "Omada/OUI Based VLAN","OUI Based VLAN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ap-oui-rules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createApOuiBasedVlan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OuiBasedVlanApOpenApiVo ouiBasedVlanApOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/switch-oui-rules : Create Switch oui based vlan + * Create Switch oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33779 - This OUI profile does not exist.<br/>-34219 - The rule for all device ports has been created in Rules.<br/>-34220 - The rule for all device ports and the rule for custom device ports should not be enabled simultaneously.<br/>-34223 - When the rule enabled, the same VLAN should not be bound with the same device port/LAG in different rules. Please check the settings.<br/>-34224 - When the rule is enabled, the same device should not configure OUI-VLAN combination greater than 16.<br/>-34227 - When the rule is enabled, the same OUI on the same device should not be configured in multiple rules.<br/>-34229 - The OUI based VLAN rule name already exists.<br/>-34230 - When the rule for all device ports is created, devices with old firmware should not be configured in rules for custom device ports.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ouiBasedVlanSwitchOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create Switch oui based vlan", nickname = "createSwitchOuiBasedVlan", notes = "Create Switch oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33779 - This OUI profile does not exist.
-34219 - The rule for all device ports has been created in Rules.
-34220 - The rule for all device ports and the rule for custom device ports should not be enabled simultaneously.
-34223 - When the rule enabled, the same VLAN should not be bound with the same device port/LAG in different rules. Please check the settings.
-34224 - When the rule is enabled, the same device should not configure OUI-VLAN combination greater than 16.
-34227 - When the rule is enabled, the same OUI on the same device should not be configured in multiple rules.
-34229 - The OUI based VLAN rule name already exists.
-34230 - When the rule for all device ports is created, devices with old firmware should not be configured in rules for custom device ports.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseResIdOpenApiVo.class, tags={ "Omada/OUI Based VLAN","OUI Based VLAN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switch-oui-rules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createSwitchOuiBasedVlan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OuiBasedVlanSwitchOpenApiVo ouiBasedVlanSwitchOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/ap-oui-rules/{ouiBasedVlanId} : Delete Ap oui based vlan + * Delete Ap oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ouiBasedVlanId Oui Based Vlan ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete Ap oui based vlan", nickname = "deleteApOuiBasedVlan", notes = "Delete Ap oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/OUI Based VLAN","OUI Based VLAN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ap-oui-rules/{ouiBasedVlanId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteApOuiBasedVlan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Oui Based Vlan ID",required=true) @PathVariable("ouiBasedVlanId") String ouiBasedVlanId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/switch-oui-rules/{ouiBasedVlanId} : Delete Switch oui based vlan + * Delete Switch oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ouiBasedVlanId Oui Based Vlan ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete Switch oui based vlan", nickname = "deleteSwitchOuiBasedVlan", notes = "Delete Switch oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/OUI Based VLAN","OUI Based VLAN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switch-oui-rules/{ouiBasedVlanId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteSwitchOuiBasedVlan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Oui Based Vlan ID",required=true) @PathVariable("ouiBasedVlanId") String ouiBasedVlanId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/ap-oui-rules : Get Ap oui based vlan list + * Get Ap oui based vlan list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Ap oui based vlan list", nickname = "getGridApOuiBasedVlan", notes = "Get Ap oui based vlan list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo.class, tags={ "Omada/OUI Based VLAN","OUI Based VLAN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ap-oui-rules", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridApOuiBasedVlan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/switch-oui-rules : Get Switch oui based vlan list + * Get Switch oui based vlan list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Switch oui based vlan list", nickname = "getGridSwitchOuiBasedVlan", notes = "Get Switch oui based vlan list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo.class, tags={ "Omada/OUI Based VLAN","OUI Based VLAN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switch-oui-rules", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridSwitchOuiBasedVlan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/switch-oui-rules/support-device : Get switch list of supporting oui based vlan + * Get switch list of supporting oui based vlanThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param name Switch name. Support fuzzy search (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get switch list of supporting oui based vlan", nickname = "getSwitchList", notes = "Get switch list of supporting oui based vlanThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo.class, tags={ "Omada/OUI Based VLAN","OUI Based VLAN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switch-oui-rules/support-device", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSwitchList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Switch name. Support fuzzy search") @Valid @RequestParam(value = "name", required = false) String name); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/ap-oui-rules/{ouiBasedVlanId} : Modify Ap oui based vlan + * Modify Ap oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33779 - This OUI profile does not exist.<br/>-33789 - PPSK and OUI Based VLAN are mutually exclusive. Please make sure the SSID does not select PPSK.<br/>-34224 - When the rule is enabled, the same device should not configure OUI-VLAN combination greater than 16.<br/>-34225 - When the rule is enabled, the same SSID should not be configured in multiple rules.<br/>-34229 - The OUI based VLAN rule name already exists.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ouiBasedVlanId Oui Based Vlan ID (required) + * @param ouiBasedVlanApOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify Ap oui based vlan", nickname = "modifyApOuiBasedVlan", notes = "Modify Ap oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33779 - This OUI profile does not exist.
-33789 - PPSK and OUI Based VLAN are mutually exclusive. Please make sure the SSID does not select PPSK.
-34224 - When the rule is enabled, the same device should not configure OUI-VLAN combination greater than 16.
-34225 - When the rule is enabled, the same SSID should not be configured in multiple rules.
-34229 - The OUI based VLAN rule name already exists.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/OUI Based VLAN","OUI Based VLAN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ap-oui-rules/{ouiBasedVlanId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyApOuiBasedVlan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Oui Based Vlan ID",required=true) @PathVariable("ouiBasedVlanId") String ouiBasedVlanId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OuiBasedVlanApOpenApiVo ouiBasedVlanApOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/switch-oui-rules/{ouiBasedVlanId} : Modify Switch oui based vlan + * Modify Switch oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33779 - This OUI profile does not exist.<br/>-34219 - The rule for all device ports has been created in Rules.<br/>-34220 - The rule for all device ports and the rule for custom device ports should not be enabled simultaneously.<br/>-34223 - When the rule enabled, the same VLAN should not be bound with the same device port/LAG in different rules. Please check the settings.<br/>-34224 - When the rule is enabled, the same device should not configure OUI-VLAN combination greater than 16.<br/>-34227 - When the rule is enabled, the same OUI on the same device should not be configured in multiple rules.<br/>-34229 - The OUI based VLAN rule name already exists.<br/>-34230 - When the rule for all device ports is created, devices with old firmware should not be configured in rules for custom device ports.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ouiBasedVlanId Oui Based Vlan ID (required) + * @param ouiBasedVlanSwitchOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify Switch oui based vlan", nickname = "modifySwitchOuiBasedVlan", notes = "Modify Switch oui based vlan.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33779 - This OUI profile does not exist.
-34219 - The rule for all device ports has been created in Rules.
-34220 - The rule for all device ports and the rule for custom device ports should not be enabled simultaneously.
-34223 - When the rule enabled, the same VLAN should not be bound with the same device port/LAG in different rules. Please check the settings.
-34224 - When the rule is enabled, the same device should not configure OUI-VLAN combination greater than 16.
-34227 - When the rule is enabled, the same OUI on the same device should not be configured in multiple rules.
-34229 - The OUI based VLAN rule name already exists.
-34230 - When the rule for all device ports is created, devices with old firmware should not be configured in rules for custom device ports.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/OUI Based VLAN","OUI Based VLAN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switch-oui-rules/{ouiBasedVlanId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifySwitchOuiBasedVlan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Oui Based Vlan ID",required=true) @PathVariable("ouiBasedVlanId") String ouiBasedVlanId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OuiBasedVlanSwitchOpenApiVo ouiBasedVlanSwitchOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaProfilesApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaProfilesApi.java new file mode 100644 index 0000000..52a7b13 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaProfilesApi.java @@ -0,0 +1,994 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.ApnProfileConfig; +import org.wfc.omada.api.sitesetting.model.BonjourServiceOpenApiVo; +import org.wfc.omada.api.sitesetting.model.CreateGroupOpenApiVo; +import org.wfc.omada.api.sitesetting.model.CreateLdapProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.CreateRadiusProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.CreateRadiusUserOpenApiVo; +import org.wfc.omada.api.sitesetting.model.CreateRateLimitProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.CreateTimeRangeProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.GatewayQosServiceOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoGatewayQosServiceDetailOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoRadiusUserOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListApnProfile; +import org.wfc.omada.api.sitesetting.model.OperationResponseListGroupOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListLdapProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListOuiProfileSummaryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListPpskProfileBriefInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListRadiusProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListRateLimitProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListTimeRangeProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseOuiGridVoOuiProfileQueryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponsePpskProfileVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResIdOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResponseIdVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.OuiProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.PpskAutoCreateSetting; +import org.wfc.omada.api.sitesetting.model.PpskProfile; +import org.wfc.omada.api.sitesetting.model.PpskProfileV2; +import org.wfc.omada.api.sitesetting.model.Psk; +import org.wfc.omada.api.sitesetting.model.UpdateRateLimitProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.UpdateTimeRangeProfileOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.List; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaProfiles", description = "the OmadaProfiles API") +@FeignClient(name="OmadaProfilesApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaProfilesApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/ppsk-profile/generate-psk : Auto Create PSKs + * Auto Create PSKs<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ppskAutoCreateSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Auto Create PSKs", nickname = "autoCreatePPSK", notes = "Auto Create PSKs

The interface requires one of the permissions:
Site Settings Manager Modify", response = Psk.class, responseContainer = "List", tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = Psk.class, responseContainer = "List") }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ppsk-profile/generate-psk", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity> autoCreatePPSK(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PpskAutoCreateSetting ppskAutoCreateSetting); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/profiles/apn : Create a new APN profile + * Create a new APN profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-33506 - This Profile name already exists.<br/>-33553 - The LTE WAN port is configured with IPv6 network. Please re-select the APN Profile of IPv6 mode.<br/>-33798 - The number of APN Profile has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param apnProfileConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create a new APN profile", nickname = "createApnProfile", notes = "Create a new APN profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-33506 - This Profile name already exists.
-33553 - The LTE WAN port is configured with IPv6 network. Please re-select the APN Profile of IPv6 mode.
-33798 - The number of APN Profile has reached the limit.", response = OperationResponseResIdOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/apn", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createApnProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ApnProfileConfig apnProfileConfig); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/profiles/groups : Create a new group profile + * Create a new group profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-33702 - This group name already exists.<br/>-33706 - The number of rules has reached the limit.<br/>-33707 - This MAC List already exists.<br/>-33708 - The number of addresses has reached the limit.<br/>-33724 - The number of IpGroups has reached the limit.<br/>-33725 - The number of IpPortGroups has reached the limit.<br/>-33726 - The number of Ips has reached the limit of IpGroup.<br/>-33727 - The number of Ips has reached the limit of IpPortGroup.<br/>-33728 - The number of Ports has reached the limit of IpPortGroup.<br/>-33749 - Duplicate MAC addresses exist in the MAC address list of the MAC group.<br/>-33760 - The number of IP addresses in the IPv6 group has reached the limit.<br/>-33761 - The number of IPv6 groups has reached the limit.<br/>-33765 - The number of IP addresses in the IPv6 Port group has reached the limit.<br/>-33766 - The number of Ports has reached the limit of Ipv6PortGroup.<br/>-33767 - The number of IPv6 port groups has reached the limit.<br/>-33770 - The number of Country groups has reached the limit.<br/>-33815 - The number of domain groups has reached the limit.<br/>-33817 - The number of domain names has reached the limit of domain group.<br/>-33819 - This domain group has wrong type of domain.<br/>-33822 - This domain group has wrong domain or invalid format port. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createGroupOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create a new group profile", nickname = "createGroupProfile", notes = "Create a new group profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-33702 - This group name already exists.
-33706 - The number of rules has reached the limit.
-33707 - This MAC List already exists.
-33708 - The number of addresses has reached the limit.
-33724 - The number of IpGroups has reached the limit.
-33725 - The number of IpPortGroups has reached the limit.
-33726 - The number of Ips has reached the limit of IpGroup.
-33727 - The number of Ips has reached the limit of IpPortGroup.
-33728 - The number of Ports has reached the limit of IpPortGroup.
-33749 - Duplicate MAC addresses exist in the MAC address list of the MAC group.
-33760 - The number of IP addresses in the IPv6 group has reached the limit.
-33761 - The number of IPv6 groups has reached the limit.
-33765 - The number of IP addresses in the IPv6 Port group has reached the limit.
-33766 - The number of Ports has reached the limit of Ipv6PortGroup.
-33767 - The number of IPv6 port groups has reached the limit.
-33770 - The number of Country groups has reached the limit.
-33815 - The number of domain groups has reached the limit.
-33817 - The number of domain names has reached the limit of domain group.
-33819 - This domain group has wrong type of domain.
-33822 - This domain group has wrong domain or invalid format port.", response = OperationResponseResIdOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/groups", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createGroupProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateGroupOpenApiVo createGroupOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/profiles/ldap : Create a new LDAP profile + * Create a new LDAP profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-43401 - The LDAP profile does not exist.<br/>-43402 - The profile name already exists. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createLdapProfileOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create a new LDAP profile", nickname = "createLdapProfile", notes = "Create a new LDAP profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-43401 - The LDAP profile does not exist.
-43402 - The profile name already exists.", response = OperationResponseResIdOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/ldap", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createLdapProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateLdapProfileOpenApiVo createLdapProfileOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/profiles/bonjour-service : Create new Bonjour Service + * Create new Bonjour Service.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-33756 - This Bonjour Service name already exists.<br/>-33757 - The number of custom Bonjour Service has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param bonjourServiceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new Bonjour Service", nickname = "createMdnsProfile", notes = "Create new Bonjour Service.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.
-33756 - This Bonjour Service name already exists.
-33757 - The number of custom Bonjour Service has reached the limit.", response = OperationResponseResponseIdVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/bonjour-service", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createMdnsProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BonjourServiceOpenApiVo bonjourServiceOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/oui-profiles : Create OUI profile + * Create OUI profileThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33781 - This OUI profile already exists.<br/>-33782 - The number of OUIs has reached the limit.<br/>-33784 - The OUI profile has duplicate OUIs.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ouiProfileOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create OUI profile", nickname = "createOuiProfile", notes = "Create OUI profileThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33781 - This OUI profile already exists.
-33782 - The number of OUIs has reached the limit.
-33784 - The OUI profile has duplicate OUIs.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/oui-profiles", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createOuiProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OuiProfileOpenApiVo ouiProfileOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/ppsk-profile : Create PPSK profile + * Create PPSK profile This interface has been deprecated. Please use the following interface instead: Create PPSK profile V2<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ppskProfile (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Create PPSK profile", nickname = "createPPSKProfile", notes = "Create PPSK profile This interface has been deprecated. Please use the following interface instead: Create PPSK profile V2

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ppsk-profile", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createPPSKProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PpskProfile ppskProfile); + + + /** + * POST /openapi/v2/{omadacId}/sites/{siteId}/ppsk-profile : Create PPSK profile V2 + * Create PPSK profile<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ppskProfileV2 (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create PPSK profile V2", nickname = "createPPSKProfileV2", notes = "Create PPSK profile

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/ppsk-profile", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createPPSKProfileV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PpskProfileV2 ppskProfileV2); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/profiles/radius : Create a new Radius profile + * Create a new Radius profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-34000 - Interim Update Interval ranges from 60 to 86400.<br/>-34002 - Accounting port number ranges from 60 to 86400.<br/>-34003 - Enter the shared secret key of the accounting server using 1-128 printable ASCII characters (including the space).<br/>-34004 - This RADIUS profile already exists.<br/>-34011 - Invalid IP address of the RADIUS server.<br/>-34011 - Invalid IP address of the RADIUS server.<br/>-34014 - The number of RADIUS profiles has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createRadiusProfileOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create a new Radius profile", nickname = "createRadiusProfile", notes = "Create a new Radius profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-34000 - Interim Update Interval ranges from 60 to 86400.
-34002 - Accounting port number ranges from 60 to 86400.
-34003 - Enter the shared secret key of the accounting server using 1-128 printable ASCII characters (including the space).
-34004 - This RADIUS profile already exists.
-34011 - Invalid IP address of the RADIUS server.
-34011 - Invalid IP address of the RADIUS server.
-34014 - The number of RADIUS profiles has reached the limit.", response = OperationResponseResIdOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/radius", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createRadiusProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateRadiusProfileOpenApiVo createRadiusProfileOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/profiles/radius-server/users : Create a new Build-in Radius profile user + * Get Build-in Radius profile user list of the site with the given omadacId and siteId. Cloud Based Controller does not support built-in radius function, you cannot call this interface through openAPI on Cloud Based Controller.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34024 - The radius user name already exists.<br/>-34025 - The number of radius users has reached the limit.<br/>-34030 - The radius user name exists in other sites. Please contact the administrator if necessary. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createRadiusUserOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create a new Build-in Radius profile user", nickname = "createRadiusUser", notes = "Get Build-in Radius profile user list of the site with the given omadacId and siteId. Cloud Based Controller does not support built-in radius function, you cannot call this interface through openAPI on Cloud Based Controller.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34024 - The radius user name already exists.
-34025 - The number of radius users has reached the limit.
-34030 - The radius user name exists in other sites. Please contact the administrator if necessary.", response = OperationResponseResIdOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/radius-server/users", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createRadiusUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateRadiusUserOpenApiVo createRadiusUserOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/rate-limit-profiles : Create rate limit profile + * Create rate limit profile<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33733 - This Rate Limit profile already exists.<br/>-33734 - The number of Rate Limit profiles has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createRateLimitProfileOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create rate limit profile", nickname = "createRateLimitProfile", notes = "Create rate limit profile

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33733 - This Rate Limit profile already exists.
-33734 - The number of Rate Limit profiles has reached the limit.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/rate-limit-profiles", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createRateLimitProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateRateLimitProfileOpenApiVo createRateLimitProfileOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/profiles/service-type : Create new Gateway QoS Service + * Create new Gateway QoS Service.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33006 - This name already exists in this site.<br/>-43300 - The number of service types has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param gatewayQosServiceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new Gateway QoS Service", nickname = "createServiceType", notes = "Create new Gateway QoS Service.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33006 - This name already exists in this site.
-43300 - The number of service types has reached the limit.", response = OperationResponseResponseIdVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/service-type", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createServiceType(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) GatewayQosServiceOpenApiVo gatewayQosServiceOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/time-range-profiles : Create time range profile + * Create time range profile<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33709 - This profile already exists.<br/>-33716 - End time should be later than start time.<br/>-33723 - The number of profiles has reached the limit.<br/>-33731 - Timerange is not allowed to be empty.<br/>-33748 - The number of time range per entry has reached the limit.<br/>-33799 - Invalid schedule time param of time range profile + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createTimeRangeProfileOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create time range profile", nickname = "createTimeRangeProfile", notes = "Create time range profile

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33709 - This profile already exists.
-33716 - End time should be later than start time.
-33723 - The number of profiles has reached the limit.
-33731 - Timerange is not allowed to be empty.
-33748 - The number of time range per entry has reached the limit.
-33799 - Invalid schedule time param of time range profile", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/time-range-profiles", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createTimeRangeProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateTimeRangeProfileOpenApiVo createTimeRangeProfileOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/profiles/apn/{profileId} : Delete an exist APN profile + * Delete an exist APN profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId APN profile ID. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an exist APN profile", nickname = "deleteApnProfile", notes = "Delete an exist APN profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/apn/{profileId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteApnProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "APN profile ID.",required=true) @PathVariable("profileId") String profileId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/profiles/groups/{groupType}/{groupId} : Delete an exist group profile + * Delete an exist group profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-33703 - This group does not exist.<br/>-33704 - This group does not exist.<br/>-33705 - Failed to delete this group because it is used in wireless network settings.<br/>-33717 - This IP group has been used in the ACL rule.<br/>-33718 - This IP-Port group has been used in the ACL rule.<br/>-33719 - This MAC group has been used in the ACL rule.<br/>-33720 - This IP group has been used in URL filtering rule.<br/>-33721 - This IP group has been used in Transmission settings.<br/>-33729 - Default IpGroup not allowed to be edited.<br/>-33741 - This IP-Port group has been used in Policy Routing.<br/>-33762 - This IPv6 group has been used in QoS class rule.<br/>-33764 - This IP group has been used in QoS class rule.<br/>-33768 - This IPv6 group has been used in the ACL rule.<br/>-33769 - This IPv6 port group has been used in the ACL rule.<br/>-33771 - This Country group has been used in the ACL rule.<br/>-33775 - Cannot delete the MAC group because it is used in the MAC Filtering.<br/>-33816 - Default domain group not allowed to be edited.<br/>-33818 - This domain group has been used in the ACL rule. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param groupId Group profile id. (required) + * @param groupType (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an exist group profile", nickname = "deleteGroupProfile", notes = "Delete an exist group profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-33703 - This group does not exist.
-33704 - This group does not exist.
-33705 - Failed to delete this group because it is used in wireless network settings.
-33717 - This IP group has been used in the ACL rule.
-33718 - This IP-Port group has been used in the ACL rule.
-33719 - This MAC group has been used in the ACL rule.
-33720 - This IP group has been used in URL filtering rule.
-33721 - This IP group has been used in Transmission settings.
-33729 - Default IpGroup not allowed to be edited.
-33741 - This IP-Port group has been used in Policy Routing.
-33762 - This IPv6 group has been used in QoS class rule.
-33764 - This IP group has been used in QoS class rule.
-33768 - This IPv6 group has been used in the ACL rule.
-33769 - This IPv6 port group has been used in the ACL rule.
-33771 - This Country group has been used in the ACL rule.
-33775 - Cannot delete the MAC group because it is used in the MAC Filtering.
-33816 - Default domain group not allowed to be edited.
-33818 - This domain group has been used in the ACL rule.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/groups/{groupType}/{groupId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteGroupProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Group profile id.",required=true) @PathVariable("groupId") String groupId,@ApiParam(value = "",required=true) @PathVariable("groupType") String groupType); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/profiles/ldap/{ldapProfileId} : Delete an exist LDAP profile + * Delete an exist LDAP profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ldapProfileId LDAP profile ID. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an exist LDAP profile", nickname = "deleteLdapProfile", notes = "Delete an exist LDAP profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/ldap/{ldapProfileId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteLdapProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "LDAP profile ID.",required=true) @PathVariable("ldapProfileId") String ldapProfileId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/profiles/bonjour-service/{id} : Delete an existing Bonjour Service + * Delete an existing Bonjour Service.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33759 - Build-in Bonjour Service cannot be edited or deleted.<br/>-33763 - Bonjour Service is used by mDNS rule, cannot be deleted. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Bonjour Service ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing Bonjour Service", nickname = "deleteMdnsProfile", notes = "Delete an existing Bonjour Service.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33759 - Build-in Bonjour Service cannot be edited or deleted.
-33763 - Bonjour Service is used by mDNS rule, cannot be deleted.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/bonjour-service/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteMdnsProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Bonjour Service ID",required=true) @PathVariable("id") String id); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/oui-profiles/{ouiId} : Delete OUI Profile + * Delete OUI ProfileThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33779 - This OUI profile does not exist.<br/>-33780 - OUI Profile has been used in OUI based VLAN.<br/>-34226 - OUI Profile has been used in Wireless MAC Filter.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ouiId OUI ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete OUI Profile", nickname = "deleteOuiProfile", notes = "Delete OUI ProfileThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33779 - This OUI profile does not exist.
-33780 - OUI Profile has been used in OUI based VLAN.
-34226 - OUI Profile has been used in Wireless MAC Filter.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/oui-profiles/{ouiId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteOuiProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "OUI ID",required=true) @PathVariable("ouiId") String ouiId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/ppsk-profile/{profileId} : Delete PPSK profile + * Delete PPSK profile<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId PPSK profile Id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete PPSK profile", nickname = "deletePPSKProfile", notes = "Delete PPSK profile

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ppsk-profile/{profileId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deletePPSKProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "PPSK profile Id",required=true) @PathVariable("profileId") String profileId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/profiles/radius/{radiusProfileId} : Delete an exist Radius profile + * Delete an exist Radius profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-34009 - The RADIUS profile cannot be deleted because it is applied in MAC-Based Authentication.<br/>-34010 - The RADIUS profile cannot be deleted because it is applied in Portal Authentication.<br/>-34012 - Failed to delete this RADIUS profile because it has been used in 802.1X authentication.<br/>-34013 - Failed to delete this RADIUS profile because it has been used in SSID.<br/>-34023 - Failed to delete built-in radius profile.<br/>-43001 - Failed to delete this radius profile because it is already occupied by SSL VPN. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param radiusProfileId Radius profile Id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an exist Radius profile", nickname = "deleteRadiusProfile", notes = "Delete an exist Radius profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-34009 - The RADIUS profile cannot be deleted because it is applied in MAC-Based Authentication.
-34010 - The RADIUS profile cannot be deleted because it is applied in Portal Authentication.
-34012 - Failed to delete this RADIUS profile because it has been used in 802.1X authentication.
-34013 - Failed to delete this RADIUS profile because it has been used in SSID.
-34023 - Failed to delete built-in radius profile.
-43001 - Failed to delete this radius profile because it is already occupied by SSL VPN.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/radius/{radiusProfileId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteRadiusProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Radius profile Id",required=true) @PathVariable("radiusProfileId") String radiusProfileId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/profiles/radius-server/users/{userId} : Delete an exist Build-in Radius profile user + * Get Build-in Radius profile user list of the site with the given omadacId and siteId. Cloud Based Controller does not support built-in radius function, you cannot call this interface through openAPI on Cloud Based Controller.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param userId Build-in Radius profile user Id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an exist Build-in Radius profile user", nickname = "deleteRadiusUser", notes = "Get Build-in Radius profile user list of the site with the given omadacId and siteId. Cloud Based Controller does not support built-in radius function, you cannot call this interface through openAPI on Cloud Based Controller.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/radius-server/users/{userId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteRadiusUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Build-in Radius profile user Id",required=true) @PathVariable("userId") String userId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/rate-limit-profile/{profileId} : Delete rate limit profile + * Delete rate limit profile<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33732 - The Rate Limit profile does not exist.<br/>-33736 - The default Rate Limit profile cannot be deleted.<br/>-33737 - Failed to delete the Rate Limit profile because the profile is used by Voucher Code %code%.<br/>-33739 - Failed to delete the Rate Limit profile because the profile is used by Local User Account %username%.<br/>-33740 - Failed to delete the Rate Limit profile because the profile is used by the client %MACAddress%. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId Profile ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete rate limit profile", nickname = "deleteRateLimitProfile", notes = "Delete rate limit profile

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33732 - The Rate Limit profile does not exist.
-33736 - The default Rate Limit profile cannot be deleted.
-33737 - Failed to delete the Rate Limit profile because the profile is used by Voucher Code %code%.
-33739 - Failed to delete the Rate Limit profile because the profile is used by Local User Account %username%.
-33740 - Failed to delete the Rate Limit profile because the profile is used by the client %MACAddress%.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/rate-limit-profile/{profileId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteRateLimitProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Profile ID",required=true) @PathVariable("profileId") String profileId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/profiles/service-type/{id} : Delete an existing Gateway QoS Service + * Delete an existing Gateway QoS Service.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-43302 - The service type is used by the class rule.<br/>-43303 - Cannot modify or delete the default service type. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Gateway QoS Service ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing Gateway QoS Service", nickname = "deleteServiceType", notes = "Delete an existing Gateway QoS Service.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-43302 - The service type is used by the class rule.
-43303 - Cannot modify or delete the default service type.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/service-type/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteServiceType(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Gateway QoS Service ID",required=true) @PathVariable("id") String id); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/time-range-profile/{profileId} : Delete time range profile + * Delete time range profile<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33701 - Failed to delete this time range profile because it is applied in wireless networks.<br/>-33710 - This profile does not exist.<br/>-33722 - Cannot delete the time range. It is being used in PoE Schedule.<br/>-33754 - Failed to delete this time range profile because it is applied in ACL.<br/>-33776 - Failed to delete this time range profile because it is applied in IPS.<br/>-34555 - Cannot delete the time range. It is being used in Port Schedule.<br/>-35106 - Failed to delete this time range profile because it is applied in DPI. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId Profile ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete time range profile", nickname = "deleteTimeRangeProfile", notes = "Delete time range profile

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33701 - Failed to delete this time range profile because it is applied in wireless networks.
-33710 - This profile does not exist.
-33722 - Cannot delete the time range. It is being used in PoE Schedule.
-33754 - Failed to delete this time range profile because it is applied in ACL.
-33776 - Failed to delete this time range profile because it is applied in IPS.
-34555 - Cannot delete the time range. It is being used in Port Schedule.
-35106 - Failed to delete this time range profile because it is applied in DPI.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/time-range-profile/{profileId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteTimeRangeProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Profile ID",required=true) @PathVariable("profileId") String profileId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/profiles/apn : Get APN profile list + * Get APN profile list of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get APN profile list", nickname = "getApnProfileList", notes = "Get APN profile list of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseListApnProfile.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListApnProfile.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/apn", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getApnProfileList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/profiles/groups : Get group profile list + * Get group profile list of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get group profile list", nickname = "getGroupProfiles", notes = "Get group profile list of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseListGroupOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListGroupOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/groups", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGroupProfiles(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/profiles/groups/{groupType} : Get group profile list by type + * Get a certain type of group profile list of the site with the given omadacId and siteId and type.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param groupType Type of group profile, 0:IP Group; 1:IP Port Group; 2:Mac Group; 3:IPv6 Group; 4:IPv6 Port Group; 5:Country Group; 7:Domain Group. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get group profile list by type", nickname = "getGroupProfilesByType", notes = "Get a certain type of group profile list of the site with the given omadacId and siteId and type.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseListGroupOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListGroupOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/groups/{groupType}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGroupProfilesByType(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Type of group profile, 0:IP Group; 1:IP Port Group; 2:Mac Group; 3:IPv6 Group; 4:IPv6 Port Group; 5:Country Group; 7:Domain Group.",required=true) @PathVariable("groupType") String groupType); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/profiles/ldap : Get LDAP profile list + * Get LDAP profile list of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get LDAP profile list", nickname = "getLdapProfileList", notes = "Get LDAP profile list of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseListLdapProfileOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListLdapProfileOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/ldap", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLdapProfileList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/oui-profiles/all : Get OUI profile summary list + * Get OUI profile summary list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get OUI profile summary list", nickname = "getOuiProfileFullList", notes = "Get OUI profile summary list.This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseListOuiProfileSummaryOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListOuiProfileSummaryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/oui-profiles/all", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getOuiProfileFullList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/oui-profiles : Get OUI profile list + * Get OUI profile list.(Pagination)This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get OUI profile list", nickname = "getOuiProfileList", notes = "Get OUI profile list.(Pagination)This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseOuiGridVoOuiProfileQueryOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseOuiGridVoOuiProfileQueryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/oui-profiles", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getOuiProfileList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/ppsk-profile/{profileId} : Get PPSK profile detail + * Get PPSK profile detail<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId PPSK profile Id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get PPSK profile detail", nickname = "getPPSKProfileDetail", notes = "Get PPSK profile detail

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponsePpskProfileVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponsePpskProfileVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ppsk-profile/{profileId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPPSKProfileDetail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "PPSK profile Id",required=true) @PathVariable("profileId") String profileId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/ppsk-profiles : Get PPSK profiles list + * Get PPSK profiles list<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param type PPSK Profile type, should be a value as follows: 0: PPSK Without RADIUS; 1: PPSK With Built-In RADIUS (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get PPSK profiles list", nickname = "getPPSKProfiles", notes = "Get PPSK profiles list

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListPpskProfileBriefInfo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListPpskProfileBriefInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ppsk-profiles", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPPSKProfiles(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "PPSK Profile type, should be a value as follows: 0: PPSK Without RADIUS; 1: PPSK With Built-In RADIUS", required = true) @Valid @RequestParam(value = "type", required = true) Integer type); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/profiles/radius : Get Radius profile list + * Get Radius profile list of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Radius profile list", nickname = "getRadiusProfileList", notes = "Get Radius profile list of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListRadiusProfileOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListRadiusProfileOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/radius", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRadiusProfileList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/profiles/radius-server/users : Get Build-in Radius profile user list + * Get Build-in Radius profile user list of the site with the given omadacId and siteId. Cloud Based Controller does not support built-in radius function, you cannot call this interface through openAPI on Cloud Based Controller.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsUsername Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Build-in Radius profile user list", nickname = "getRadiusUserList", notes = "Get Build-in Radius profile user list of the site with the given omadacId and siteId. Cloud Based Controller does not support built-in radius function, you cannot call this interface through openAPI on Cloud Based Controller.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoRadiusUserOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoRadiusUserOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/radius-server/users", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRadiusUserList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.username", required = false) String sortsUsername); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/rate-limit-profiles : Get rate limit profile list + * Get rate limit profile list<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get rate limit profile list", nickname = "getRateLimitProfileList", notes = "Get rate limit profile list

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.", response = OperationResponseListRateLimitProfileOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListRateLimitProfileOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/rate-limit-profiles", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRateLimitProfileList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/profiles/service-type-summary : Get all Gateway QoS Service's ID and name info + * Get all Gateway QoS Service's ID and name info.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get all Gateway QoS Service's ID and name info", nickname = "getServiceTypeSummary", notes = "Get all Gateway QoS Service's ID and name info.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/service-type-summary", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getServiceTypeSummary(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/time-range-profiles : Get time range profile list + * Get time range profile list<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get time range profile list", nickname = "getTimeRangeList", notes = "Get time range profile list

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListTimeRangeProfileOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListTimeRangeProfileOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/time-range-profiles", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getTimeRangeList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/profiles/bonjour-service : Get Bonjour Service list + * Get Bonjour Service list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Bonjour Service list", nickname = "listMdnsProfile", notes = "Get Bonjour Service list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/bonjour-service", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity listMdnsProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/profiles/service-type : Get Gateway QoS Service list + * Get Gateway QoS Service list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Gateway QoS Service list", nickname = "listServiceType", notes = "Get Gateway QoS Service list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoGatewayQosServiceDetailOpenApiVo.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoGatewayQosServiceDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/service-type", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity listServiceType(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/profiles/apn/{profileId} : Modify an exist APN profile + * Modify an exist APN profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-33506 - This Profile name already exists.<br/>-33553 - The LTE WAN port is configured with IPv6 network. Please re-select the APN Profile of IPv6 mode.<br/>-33798 - The number of APN Profile has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId APN profile ID. (required) + * @param apnProfileConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an exist APN profile", nickname = "modifyApnProfile", notes = "Modify an exist APN profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-33506 - This Profile name already exists.
-33553 - The LTE WAN port is configured with IPv6 network. Please re-select the APN Profile of IPv6 mode.
-33798 - The number of APN Profile has reached the limit.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/apn/{profileId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyApnProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "APN profile ID.",required=true) @PathVariable("profileId") String profileId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ApnProfileConfig apnProfileConfig); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/profiles/groups/{groupType}/{groupId} : Modify an exist group profile + * Modify an exist group profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33702 - This group name already exists.<br/>-33707 - This MAC List already exists.<br/>-33729 - Default IpGroup not allowed to be edited.<br/>-33749 - Duplicate MAC addresses exist in the MAC address list of the MAC group.<br/>-33816 - Default domain group not allowed to be edited.<br/>-33819 - This domain group has wrong type of domain.<br/>-33822 - This domain group has wrong domain or invalid format port. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param groupType Type of group profile, 0:IP Group; 1:IP Port Group; 2:Mac Group; 3:IPv6 Group; 4:IPv6 Port Group; 5:Country Group; 7:Domain Group. (required) + * @param groupId Group profile id. (required) + * @param createGroupOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an exist group profile", nickname = "modifyGroupProfile", notes = "Modify an exist group profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33702 - This group name already exists.
-33707 - This MAC List already exists.
-33729 - Default IpGroup not allowed to be edited.
-33749 - Duplicate MAC addresses exist in the MAC address list of the MAC group.
-33816 - Default domain group not allowed to be edited.
-33819 - This domain group has wrong type of domain.
-33822 - This domain group has wrong domain or invalid format port.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/groups/{groupType}/{groupId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyGroupProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Type of group profile, 0:IP Group; 1:IP Port Group; 2:Mac Group; 3:IPv6 Group; 4:IPv6 Port Group; 5:Country Group; 7:Domain Group.",required=true) @PathVariable("groupType") String groupType,@ApiParam(value = "Group profile id.",required=true) @PathVariable("groupId") String groupId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateGroupOpenApiVo createGroupOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/profiles/ldap/{ldapProfileId} : Modify an exist LDAP profile + * Modify an exist LDAP profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-43404 - Cannot delete the LDAP profile. It is being used in L2TP/PPTP/IPSec/OpenVPN. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ldapProfileId LDAP profile ID. (required) + * @param createLdapProfileOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an exist LDAP profile", nickname = "modifyLdapProfile", notes = "Modify an exist LDAP profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-43404 - Cannot delete the LDAP profile. It is being used in L2TP/PPTP/IPSec/OpenVPN.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/ldap/{ldapProfileId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyLdapProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "LDAP profile ID.",required=true) @PathVariable("ldapProfileId") String ldapProfileId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateLdapProfileOpenApiVo createLdapProfileOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/profiles/bonjour-service/{id} : Modify an existing Bonjour Service + * Modify an existing Bonjour Service.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters.<br/>-33756 - This Bonjour Service name already exists.<br/>-33758 - This Bonjour Service does not exist.<br/>-33759 - Build-in Bonjour Service cannot be edited or deleted. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Bonjour Service ID (required) + * @param bonjourServiceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing Bonjour Service", nickname = "modifyMdnsProfile", notes = "Modify an existing Bonjour Service.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.
-33756 - This Bonjour Service name already exists.
-33758 - This Bonjour Service does not exist.
-33759 - Build-in Bonjour Service cannot be edited or deleted.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/bonjour-service/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyMdnsProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Bonjour Service ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BonjourServiceOpenApiVo bonjourServiceOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/oui-profiles/{ouiId} : Modify OUI Profile + * Modify OUI ProfileThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33779 - This OUI profile does not exist.<br/>-33781 - This OUI profile already exists.<br/>-33782 - The number of OUIs has reached the limit.<br/>-33782 - The number of OUIs has reached the limit.<br/>-33784 - The OUI profile has duplicate OUIs.<br/>-33784 - The OUI profile has duplicate OUIs.<br/>-34224 - When the rule is enabled, the same device should not configure OUI-VLAN combination greater than 16.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ouiId OUI ID (required) + * @param ouiProfileOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify OUI Profile", nickname = "modifyOuiProfile", notes = "Modify OUI ProfileThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33779 - This OUI profile does not exist.
-33781 - This OUI profile already exists.
-33782 - The number of OUIs has reached the limit.
-33782 - The number of OUIs has reached the limit.
-33784 - The OUI profile has duplicate OUIs.
-33784 - The OUI profile has duplicate OUIs.
-34224 - When the rule is enabled, the same device should not configure OUI-VLAN combination greater than 16.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/oui-profiles/{ouiId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyOuiProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "OUI ID",required=true) @PathVariable("ouiId") String ouiId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OuiProfileOpenApiVo ouiProfileOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/ppsk-profile/{profileId} : Modify PPSK profile + * Modify PPSK profile<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId PPSK profile Id (required) + * @param ppskProfile (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify PPSK profile", nickname = "modifyPPSKProfile", notes = "Modify PPSK profile

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ppsk-profile/{profileId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity modifyPPSKProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "PPSK profile Id",required=true) @PathVariable("profileId") String profileId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PpskProfile ppskProfile); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/profiles/radius/{radiusProfileId} : Modify an exist Radius profile + * Modify an exist Radius profile with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-34000 - Interim Update Interval ranges from 60 to 86400.<br/>-34002 - Accounting port number ranges from 60 to 86400.<br/>-34003 - Enter the shared secret key of the accounting server using 1-128 printable ASCII characters (including the space).<br/>-34004 - This RADIUS profile already exists.<br/>-34005 - This RADIUS profile does not exist.<br/>-34011 - Invalid IP address of the RADIUS server.<br/>-34011 - Invalid IP address of the RADIUS server.<br/>-34015 - The RADIUS profile cannot be modified because it is applied in PPSK with RADIUS.<br/>-34016 - Unable to set the authentication server URL because the profile is applied in authentications that do not support authentication server URL.<br/>-34018 - Failed to modify this RADIUS profile because it has been used in 802.1X authentication.<br/>-34022 - Failed to modify built-in radius profile.<br/>-34027 - The built-in server is being used, failed to stop built-in radius server.<br/>-43006 - The RADIUS profile cannot add more than 2 RADIUS servers because it is used by SSL VPN.<br/>-43012 - The number of Accounting Servers in the radius profile should not be greater than the number of Authentication Servers because the radius profile is used by the SSL VPN server. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param radiusProfileId Radius profile Id (required) + * @param createRadiusProfileOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an exist Radius profile", nickname = "modifyRadiusProfile", notes = "Modify an exist Radius profile with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-34000 - Interim Update Interval ranges from 60 to 86400.
-34002 - Accounting port number ranges from 60 to 86400.
-34003 - Enter the shared secret key of the accounting server using 1-128 printable ASCII characters (including the space).
-34004 - This RADIUS profile already exists.
-34005 - This RADIUS profile does not exist.
-34011 - Invalid IP address of the RADIUS server.
-34011 - Invalid IP address of the RADIUS server.
-34015 - The RADIUS profile cannot be modified because it is applied in PPSK with RADIUS.
-34016 - Unable to set the authentication server URL because the profile is applied in authentications that do not support authentication server URL.
-34018 - Failed to modify this RADIUS profile because it has been used in 802.1X authentication.
-34022 - Failed to modify built-in radius profile.
-34027 - The built-in server is being used, failed to stop built-in radius server.
-43006 - The RADIUS profile cannot add more than 2 RADIUS servers because it is used by SSL VPN.
-43012 - The number of Accounting Servers in the radius profile should not be greater than the number of Authentication Servers because the radius profile is used by the SSL VPN server.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/radius/{radiusProfileId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyRadiusProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Radius profile Id",required=true) @PathVariable("radiusProfileId") String radiusProfileId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateRadiusProfileOpenApiVo createRadiusProfileOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/profiles/radius-server/users/{userId} : Modify an exist Build-in Radius profile user + * Get Build-in Radius profile user list of the site with the given omadacId and siteId. Cloud Based Controller does not support built-in radius function, you cannot call this interface through openAPI on Cloud Based Controller.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34024 - The radius user name already exists.<br/>-34026 - The radius user does not exist.<br/>-34030 - The radius user name exists in other sites. Please contact the administrator if necessary. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param userId Build-in Radius profile user Id (required) + * @param createRadiusUserOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an exist Build-in Radius profile user", nickname = "modifyRadiusUser", notes = "Get Build-in Radius profile user list of the site with the given omadacId and siteId. Cloud Based Controller does not support built-in radius function, you cannot call this interface through openAPI on Cloud Based Controller.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34024 - The radius user name already exists.
-34026 - The radius user does not exist.
-34030 - The radius user name exists in other sites. Please contact the administrator if necessary.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/radius-server/users/{userId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyRadiusUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Build-in Radius profile user Id",required=true) @PathVariable("userId") String userId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateRadiusUserOpenApiVo createRadiusUserOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/rate-limit-profile/{profileId} : Modify rate limit profile + * Modify rate limit profile<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33732 - The Rate Limit profile does not exist.<br/>-33733 - This Rate Limit profile already exists. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId Profile ID (required) + * @param updateRateLimitProfileOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify rate limit profile", nickname = "modifyRateLimitProfile", notes = "Modify rate limit profile

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33732 - The Rate Limit profile does not exist.
-33733 - This Rate Limit profile already exists.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/rate-limit-profile/{profileId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyRateLimitProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Profile ID",required=true) @PathVariable("profileId") String profileId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateRateLimitProfileOpenApiVo updateRateLimitProfileOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/profiles/service-type/{id} : Modify an existing Gateway QoS Service + * Modify an existing Gateway QoS Service.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33006 - This name already exists in this site.<br/>-43301 - The service type does not exist.<br/>-43303 - Cannot modify or delete the default service type. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Gateway QoS Service ID (required) + * @param gatewayQosServiceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing Gateway QoS Service", nickname = "modifyServiceType", notes = "Modify an existing Gateway QoS Service.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33006 - This name already exists in this site.
-43301 - The service type does not exist.
-43303 - Cannot modify or delete the default service type.", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/profiles/service-type/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyServiceType(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Gateway QoS Service ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) GatewayQosServiceOpenApiVo gatewayQosServiceOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/time-range-profile/{profileId} : Modify time range profile + * Modify time range profile<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33709 - This profile already exists.<br/>-33716 - End time should be later than start time.<br/>-33731 - Timerange is not allowed to be empty.<br/>-33748 - The number of time range per entry has reached the limit.<br/>-33799 - Invalid schedule time param of time range profile + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId Profile ID (required) + * @param updateTimeRangeProfileOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify time range profile", nickname = "modifyTimeRangeProfile", notes = "Modify time range profile

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33709 - This profile already exists.
-33716 - End time should be later than start time.
-33731 - Timerange is not allowed to be empty.
-33748 - The number of time range per entry has reached the limit.
-33799 - Invalid schedule time param of time range profile", response = OperationResponseWithoutResult.class, tags={ "Omada/Profiles","Profiles", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/time-range-profile/{profileId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyTimeRangeProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Profile ID",required=true) @PathVariable("profileId") String profileId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateTimeRangeProfileOpenApiVo updateTimeRangeProfileOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaRoutingApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaRoutingApi.java new file mode 100644 index 0000000..1f5c2df --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaRoutingApi.java @@ -0,0 +1,222 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoPolicyRoutingInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoStaticRoutingInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseStaticRoutingInterfaceResult; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.PolicyRoutingConfig; +import org.wfc.omada.api.sitesetting.model.PolicyRoutingDragSortIndexOpenApiVo; +import org.wfc.omada.api.sitesetting.model.StaticRoutingConfig; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaRouting", description = "the OmadaRouting API") +@FeignClient(name="OmadaRoutingApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaRoutingApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/routing/policy-routings : Create new policy routing + * Create new policy routing.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param policyRoutingConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new policy routing", nickname = "createPolicyRouting", notes = "Create new policy routing.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Routing","Routing", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/routing/policy-routings", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createPolicyRouting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PolicyRoutingConfig policyRoutingConfig); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/routing/static-routings : Create new static routing + * Create new static routing.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param staticRoutingConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new static routing", nickname = "createStaticRouting", notes = "Create new static routing.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Routing","Routing", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/routing/static-routings", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createStaticRouting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) StaticRoutingConfig staticRoutingConfig); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/routing/policy-routings/{policyRoutingId} : Delete policy routing + * Delete policy routing.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param policyRoutingId (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete policy routing", nickname = "deletePolicyRouting", notes = "Delete policy routing.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Routing","Routing", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/routing/policy-routings/{policyRoutingId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deletePolicyRouting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("policyRoutingId") String policyRoutingId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/routing/static-routings/{staticRoutingId} : Delete static routing + * Delete static routing.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param staticRoutingId (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete static routing", nickname = "deleteStaticRouting", notes = "Delete static routing.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Routing","Routing", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/routing/static-routings/{staticRoutingId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteStaticRouting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("staticRoutingId") String staticRoutingId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/routing/policy-routings : Get policy routing list + * Get policy routing list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get policy routing list", nickname = "getGridPolicyRouting", notes = "Get policy routing list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoPolicyRoutingInfo.class, tags={ "Omada/Routing","Routing", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoPolicyRoutingInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/routing/policy-routings", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridPolicyRouting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/routing/static-routings : Get static routing list + * Get static routing list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get static routing list", nickname = "getGridStaticRouting", notes = "Get static routing list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoStaticRoutingInfo.class, tags={ "Omada/Routing","Routing", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoStaticRoutingInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/routing/static-routings", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridStaticRouting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/routing/static-routings/interfaces : Get static routing interface list + * Get static routing interface list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get static routing interface list", nickname = "getStaticRoutingInterfaceList", notes = "Get static routing interface list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseStaticRoutingInterfaceResult.class, tags={ "Omada/Routing","Routing", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseStaticRoutingInterfaceResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/routing/static-routings/interfaces", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getStaticRoutingInterfaceList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/routing/policy-routings/{policyRoutingId} : Modify policy routing + * Modify policy routing.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param policyRoutingId (required) + * @param policyRoutingConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify policy routing", nickname = "modifyPolicyRouting", notes = "Modify policy routing.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Routing","Routing", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/routing/policy-routings/{policyRoutingId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyPolicyRouting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("policyRoutingId") String policyRoutingId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PolicyRoutingConfig policyRoutingConfig); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/routing/policy-routings/modifyIndex : Modify policy routing Index + * Modify policy routing Index.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param policyRoutingDragSortIndexOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify policy routing Index", nickname = "modifyPolicyRoutingIndex", notes = "Modify policy routing Index.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Routing","Routing", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/routing/policy-routings/modifyIndex", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity modifyPolicyRoutingIndex(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PolicyRoutingDragSortIndexOpenApiVo policyRoutingDragSortIndexOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/routing/static-routings/{staticRoutingId} : Modify static routing + * Modify static routing.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param staticRoutingId (required) + * @param staticRoutingConfig (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify static routing", nickname = "modifyStaticRouting", notes = "Modify static routing.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Routing","Routing", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/routing/static-routings/{staticRoutingId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyStaticRouting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("staticRoutingId") String staticRoutingId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) StaticRoutingConfig staticRoutingConfig); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaScheduleApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaScheduleApi.java new file mode 100644 index 0000000..ee6b7f2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaScheduleApi.java @@ -0,0 +1,372 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoPoeScheduleQueryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoPortScheduleQueryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListPoeDeviceDetail; +import org.wfc.omada.api.sitesetting.model.OperationResponseListPortDeviceDetail; +import org.wfc.omada.api.sitesetting.model.OperationResponseListRebootScheduleQueryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListUpgradeScheduleQueryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.PoeScheduleOpenApiVo; +import org.wfc.omada.api.sitesetting.model.PortScheduleOpenApiVo; +import org.wfc.omada.api.sitesetting.model.RebootScheduleOpenApiVo; +import org.wfc.omada.api.sitesetting.model.UpgradeScheduleOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaSchedule", description = "the OmadaSchedule API") +@FeignClient(name="OmadaScheduleApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaScheduleApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/poe-schedules : Create new PoE Schedule + * Create new Poe Schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1004 - Invalid request type.<br/>-33000 - This site does not exist.<br/>-33006 - This name already exists in this site.<br/>-33603 - Source or Destination entry does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param poeScheduleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new PoE Schedule", nickname = "createPoeSchedule", notes = "Create new Poe Schedule

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1004 - Invalid request type.
-33000 - This site does not exist.
-33006 - This name already exists in this site.
-33603 - Source or Destination entry does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/poe-schedules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createPoeSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PoeScheduleOpenApiVo poeScheduleOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/port-schedules : Create new Port Schedule + * Create new Port Schedule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33006 - This name already exists in this site.<br/>-33603 - Source or Destination entry does not exist.<br/>-34554 - The number of Port schedules has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param portScheduleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new Port Schedule", nickname = "createPortSchedule", notes = "Create new Port Schedule.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33006 - This name already exists in this site.
-33603 - Source or Destination entry does not exist.
-34554 - The number of Port schedules has reached the limit.", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/port-schedules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createPortSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PortScheduleOpenApiVo portScheduleOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/reboot-schedules : Create new reboot schedule + * Create new reboot schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1004 - Invalid request type.<br/>-33006 - This name already exists in this site.<br/>-34501 - The number of RebootSchedules has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param rebootScheduleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new reboot schedule", nickname = "createRebootSchedule", notes = "Create new reboot schedule

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1004 - Invalid request type.
-33006 - This name already exists in this site.
-34501 - The number of RebootSchedules has reached the limit.", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/reboot-schedules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createRebootSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) RebootScheduleOpenApiVo rebootScheduleOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/upgrade-schedules : Create new upgrade schedule + * Create new upgrade schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1004 - Invalid request type.<br/>-33006 - This name already exists in this site.<br/>-34547 - Please select at least one device.<br/>-34550 - The number of upgrade schedules has reached the limit.<br/>-34551 - The execution time cannot be earlier than the current system time. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param upgradeScheduleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new upgrade schedule", nickname = "createUpgradeSchedule", notes = "Create new upgrade schedule

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1004 - Invalid request type.
-33006 - This name already exists in this site.
-34547 - Please select at least one device.
-34550 - The number of upgrade schedules has reached the limit.
-34551 - The execution time cannot be earlier than the current system time.", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/upgrade-schedules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createUpgradeSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpgradeScheduleOpenApiVo upgradeScheduleOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/poe-schedules/{poeScheduleId} : Delete PoE Schedule + * Delete Poe Schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1004 - Invalid request type.<br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param poeScheduleId PoE Schedule ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete PoE Schedule", nickname = "deletePoeSchedule", notes = "Delete Poe Schedule

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1004 - Invalid request type.
-33000 - This site does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/poe-schedules/{poeScheduleId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deletePoeSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "PoE Schedule ID",required=true) @PathVariable("poeScheduleId") String poeScheduleId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/port-schedules/{portScheduleId} : Delete Port Schedule + * Delete Port Schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param portScheduleId Port Schedule ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete Port Schedule", nickname = "deletePortSchedule", notes = "Delete Port Schedule

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/port-schedules/{portScheduleId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deletePortSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Port Schedule ID",required=true) @PathVariable("portScheduleId") String portScheduleId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/reboot-schedules/{id} : Delete reboot schedule + * Delete reboot schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1004 - Invalid request type.<br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Reboot Schedule ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete reboot schedule", nickname = "deleteRebootSchedule", notes = "Delete reboot schedule

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1004 - Invalid request type.
-33000 - This site does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/reboot-schedules/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteRebootSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Reboot Schedule ID",required=true) @PathVariable("id") String id); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/upgrade-schedules/{id} : Delete upgrade schedule + * Delete upgrade schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1004 - Invalid request type.<br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Upgrade Schedule ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete upgrade schedule", nickname = "deleteUpgradeSchedule", notes = "Delete upgrade schedule

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1004 - Invalid request type.
-33000 - This site does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/upgrade-schedules/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteUpgradeSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Upgrade Schedule ID",required=true) @PathVariable("id") String id); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/poe-ports : Get PoE ports list + * Get PoE ports list<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get PoE ports list", nickname = "getPoePortsList", notes = "Get PoE ports list

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListPoeDeviceDetail.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListPoeDeviceDetail.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/poe-ports", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPoePortsList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/poe-schedules : Get PoE schedule list + * Get poe schedule list.(Pagination)<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get PoE schedule list", nickname = "getPoeScheduleList", notes = "Get poe schedule list.(Pagination)

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoPoeScheduleQueryOpenApiVo.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoPoeScheduleQueryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/poe-schedules", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPoeScheduleList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/port-schedules : Get port schedule list + * Get port schedule list<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get port schedule list", nickname = "getPortScheduleList", notes = "Get port schedule list

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoPortScheduleQueryOpenApiVo.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoPortScheduleQueryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/port-schedules", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPortScheduleList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/port-status-ports : Get device ports list supporting port schedule + * Get device ports list supporting port schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get device ports list supporting port schedule", nickname = "getPortSchedulePorts", notes = "Get device ports list supporting port schedule

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListPortDeviceDetail.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListPortDeviceDetail.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/port-status-ports", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getPortSchedulePorts(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/reboot-schedules : Get reboot schedule list + * Get reboot schedule list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get reboot schedule list", nickname = "getRebootScheduleList", notes = "Get reboot schedule list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListRebootScheduleQueryOpenApiVo.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListRebootScheduleQueryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/reboot-schedules", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRebootScheduleList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/upgrade-schedules : Get upgrade schedule list + * Get upgrade schedule list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get upgrade schedule list", nickname = "getUpgradeScheduleList", notes = "Get upgrade schedule list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListUpgradeScheduleQueryOpenApiVo.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListUpgradeScheduleQueryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/upgrade-schedules", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getUpgradeScheduleList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/poe-schedules/{poeScheduleId} : Modify PoE Schedule + * Modify Poe Schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1004 - Invalid request type.<br/>-33006 - This name already exists in this site.<br/>-33603 - Source or Destination entry does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param poeScheduleId PoE Schedule ID (required) + * @param poeScheduleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify PoE Schedule", nickname = "modifyPoeSchedule", notes = "Modify Poe Schedule

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1004 - Invalid request type.
-33006 - This name already exists in this site.
-33603 - Source or Destination entry does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/poe-schedules/{poeScheduleId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyPoeSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "PoE Schedule ID",required=true) @PathVariable("poeScheduleId") String poeScheduleId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PoeScheduleOpenApiVo poeScheduleOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/port-schedules/{portScheduleId} : Modify Port Schedule + * Modify Port Schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33006 - This name already exists in this site.<br/>-33603 - Source or Destination entry does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param portScheduleId Port Schedule ID (required) + * @param portScheduleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify Port Schedule", nickname = "modifyPortSchedule", notes = "Modify Port Schedule

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33006 - This name already exists in this site.
-33603 - Source or Destination entry does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/port-schedules/{portScheduleId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyPortSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Port Schedule ID",required=true) @PathVariable("portScheduleId") String portScheduleId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) PortScheduleOpenApiVo portScheduleOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/reboot-schedules/{id} : Modify reboot schedule + * Modify reboot schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1004 - Invalid request type.<br/>-33006 - This name already exists in this site. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Reboot Schedule ID (required) + * @param rebootScheduleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify reboot schedule", nickname = "modifyRebootSchedule", notes = "Modify reboot schedule

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1004 - Invalid request type.
-33006 - This name already exists in this site.", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/reboot-schedules/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyRebootSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Reboot Schedule ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) RebootScheduleOpenApiVo rebootScheduleOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/upgrade-schedules/{id} : Modify upgrade schedule + * Modify upgrade schedule<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1004 - Invalid request type.<br/>-33006 - This name already exists in this site.<br/>-34547 - Please select at least one device.<br/>-34551 - The execution time cannot be earlier than the current system time. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Upgrade Schedule ID (required) + * @param upgradeScheduleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify upgrade schedule", nickname = "modifyUpgradeSchedule", notes = "Modify upgrade schedule

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1004 - Invalid request type.
-33006 - This name already exists in this site.
-34547 - Please select at least one device.
-34551 - The execution time cannot be earlier than the current system time.", response = OperationResponseWithoutResult.class, tags={ "Omada/Schedule","Schedule", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/upgrade-schedules/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyUpgradeSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Upgrade Schedule ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpgradeScheduleOpenApiVo upgradeScheduleOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaServiceApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaServiceApi.java new file mode 100644 index 0000000..d133e03 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaServiceApi.java @@ -0,0 +1,521 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.CreateDdnsOpenApiVo; +import org.wfc.omada.api.sitesetting.model.CreateDhcpReservationOpenApiVo; +import org.wfc.omada.api.sitesetting.model.CreateMdnsRuleOpenApiVo; +import org.wfc.omada.api.sitesetting.model.DnsProxySettingOpenApiVo; +import org.wfc.omada.api.sitesetting.model.ExportDhcpReservationOpenApiVo; +import org.wfc.omada.api.sitesetting.model.IgmpOpenApiVo; +import org.wfc.omada.api.sitesetting.model.IptvConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseDnsProxySettingOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoDdnsOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoDhcpReservationOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoMdnsRuleOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseIgmpOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseIptvOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResIdOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseSnmpSettingOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseSshSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseUpnpSettingOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.SnmpSettingOpenApiVo; +import org.wfc.omada.api.sitesetting.model.SshSetting; +import org.wfc.omada.api.sitesetting.model.UpnpSettingOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaService", description = "the OmadaService API") +@FeignClient(name="OmadaServiceApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaServiceApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/service/ddns : Create a new Dynamic DNS entry + * Create a new Dynamic DNS entry with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-34500 - Dynamic DNS Entries can be created with only one service provider for one WAN port.<br/>-34510 - The domain name and service provider of different Dynamic DNS Entries should be different.<br/>-34516 - The username already exists under the selected service provider.<br/>-34563 - Only one TP-Link Dynamic DNS is allowed for one site.<br/>-34564 - The TP-Link Dynamic DNS domain name cannot contain sensitive fields such as email, tp-link, tplink, and www.<br/>-34565 - The TP-Link Dynamic DNS domain name should end with \".tplinkdns.com\".<br/>-34566 - The TP-Link Dynamic DNS domain name is invalid. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createDdnsOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create a new Dynamic DNS entry", nickname = "createDdns", notes = "Create a new Dynamic DNS entry with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-34500 - Dynamic DNS Entries can be created with only one service provider for one WAN port.
-34510 - The domain name and service provider of different Dynamic DNS Entries should be different.
-34516 - The username already exists under the selected service provider.
-34563 - Only one TP-Link Dynamic DNS is allowed for one site.
-34564 - The TP-Link Dynamic DNS domain name cannot contain sensitive fields such as email, tp-link, tplink, and www.
-34565 - The TP-Link Dynamic DNS domain name should end with \".tplinkdns.com\".
-34566 - The TP-Link Dynamic DNS domain name is invalid.", response = OperationResponseResIdOpenApiVo.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/ddns", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createDdns(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateDdnsOpenApiVo createDdnsOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/service/dhcp : Create a new DHCP reservation + * Create a new DHCP reservation with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-33503 - This network does not exist.<br/>-34511 - The number of DHCP Reservation entries has reached the limit.<br/>-34512 - Invalid network. Please select a network with the purpose selected as Interface.<br/>-34513 - Enter an IP address within the Network IP range.<br/>-34514 - This IP address conflicts with an existing DHCP Reservation entry.<br/>-34515 - This MAC address conflicts with an existing DHCP Reservation entry.<br/>-34520 - The LAN network in this entry does not exist, please reconfigure the DHCP reservation entry.<br/>-34522 - This IP address of DHCP Reservation conflicts with a reserved static IP-MAC binding.<br/>-34543 - The IP cannot be the same as the LAN network IP. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createDhcpReservationOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create a new DHCP reservation", nickname = "createDhcpReservation", notes = "Create a new DHCP reservation with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-33503 - This network does not exist.
-34511 - The number of DHCP Reservation entries has reached the limit.
-34512 - Invalid network. Please select a network with the purpose selected as Interface.
-34513 - Enter an IP address within the Network IP range.
-34514 - This IP address conflicts with an existing DHCP Reservation entry.
-34515 - This MAC address conflicts with an existing DHCP Reservation entry.
-34520 - The LAN network in this entry does not exist, please reconfigure the DHCP reservation entry.
-34522 - This IP address of DHCP Reservation conflicts with a reserved static IP-MAC binding.
-34543 - The IP cannot be the same as the LAN network IP.", response = OperationResponseResIdOpenApiVo.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/dhcp", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createDhcpReservation(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateDhcpReservationOpenApiVo createDhcpReservationOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/service/mdns : Create a new mDNS rule + * Create a new mDNS rule with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-34521 - The gateway does not support mDNS.<br/>-34523 - This mDNS rule name already exists.<br/>-34524 - The number of mDNS rules has reached the limit.<br/>-34526 - To prevent network problems, cannot create an mDNS rule of gateway type when an mDNS rule of AP type already exists.<br/>-34527 - To prevent network problems, cannot create an mDNS rule of AP type when an mDNS rule of gateway type already exists. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createMdnsRuleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create a new mDNS rule", nickname = "createMdns", notes = "Create a new mDNS rule with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-34521 - The gateway does not support mDNS.
-34523 - This mDNS rule name already exists.
-34524 - The number of mDNS rules has reached the limit.
-34526 - To prevent network problems, cannot create an mDNS rule of gateway type when an mDNS rule of AP type already exists.
-34527 - To prevent network problems, cannot create an mDNS rule of AP type when an mDNS rule of gateway type already exists.", response = OperationResponseResIdOpenApiVo.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/mdns", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createMdns(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateMdnsRuleOpenApiVo createMdnsRuleOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/setting/service/ddns/{ddnsId} : Delete an exist Dynamic DNS entry + * Delete an exist Dynamic DNS entry with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ddnsId Dynamic DNS entry ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an exist Dynamic DNS entry", nickname = "deleteDdns", notes = "Delete an exist Dynamic DNS entry with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/ddns/{ddnsId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteDdns(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Dynamic DNS entry ID",required=true) @PathVariable("ddnsId") String ddnsId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/setting/service/dhcp/{mac} : Delete an exist DHCP reservation + * Delete an exist DHCP reservation with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param mac MAC address of the DHCP reservation, format: AA-BB-CC-11-22-33. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an exist DHCP reservation", nickname = "deleteDhcpReservation", notes = "Delete an exist DHCP reservation with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/dhcp/{mac}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteDhcpReservation(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "MAC address of the DHCP reservation, format: AA-BB-CC-11-22-33.",required=true) @PathVariable("mac") String mac); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/setting/service/mdns/{mdnsId} : Delete an exist mDNS rule + * Delete an exist mDNS rule with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param mdnsId mDNS rule ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an exist mDNS rule", nickname = "deleteMdns", notes = "Delete an exist mDNS rule with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/mdns/{mdnsId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteMdns(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "mDNS rule ID",required=true) @PathVariable("mdnsId") String mdnsId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/service/dhcp/{mac}/export : Export DHCP reservation to IP_MAC Binding + * Export an exist DHCP reservation to IP_MAC Binding.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-33503 - This network does not exist.<br/>-33621 - The number of IP-MAC Binding entries has reached the limit.<br/>-33623 - The binding IP cannot be the same as the LAN network IP.<br/>-33752 - This IP address already exists.<br/>-33753 - This IP address of IP-MAC binding conflicts with a reserved static DHCP Reservation. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param mac (required) + * @param exportDhcpReservationOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Export DHCP reservation to IP_MAC Binding", nickname = "exportDhcpReservation", notes = "Export an exist DHCP reservation to IP_MAC Binding.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-33503 - This network does not exist.
-33621 - The number of IP-MAC Binding entries has reached the limit.
-33623 - The binding IP cannot be the same as the LAN network IP.
-33752 - This IP address already exists.
-33753 - This IP address of IP-MAC binding conflicts with a reserved static DHCP Reservation.", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/dhcp/{mac}/export", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity exportDhcpReservation(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("mac") String mac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ExportDhcpReservationOpenApiVo exportDhcpReservationOpenApiVo); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/service/ddns : Get Dynamic DNS list + * Get Dynamic DNS list of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsService Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsUpdateInterval Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsStatus Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Dynamic DNS list", nickname = "getDdnsGrid", notes = "Get Dynamic DNS list of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseGridVoDdnsOpenApiVo.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoDdnsOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/ddns", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getDdnsGrid(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.service", required = false) String sortsService,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.updateInterval", required = false) String sortsUpdateInterval,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.status", required = false) String sortsStatus); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/service/dhcp : Get DHCP reservation list + * Get DHCP reservation list of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsMac Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsIp Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsNetName Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsDescription Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param sortsStatus Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param searchKey Fuzzy query parameters, support field : mac, ip, description. (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get DHCP reservation list", nickname = "getDhcpReservationGrid", notes = "Get DHCP reservation list of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseGridVoDhcpReservationOpenApiVo.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoDhcpReservationOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/dhcp", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getDhcpReservationGrid(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.mac", required = false) String sortsMac,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.ip", required = false) String sortsIp,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.netName", required = false) String sortsNetName,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.description", required = false) String sortsDescription,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.status", required = false) String sortsStatus,@ApiParam(value = "Fuzzy query parameters, support field : mac, ip, description.") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/service/dns-proxy : Get DNS proxy setting + * Get DNS proxy setting of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get DNS proxy setting", nickname = "getDnsProxy", notes = "Get DNS proxy setting of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseDnsProxySettingOpenApiVo.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDnsProxySettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/dns-proxy", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getDnsProxy(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/service/igmp : Get IGMP setting + * Get IGMP setting of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get IGMP setting", nickname = "getIgmp", notes = "Get IGMP setting of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseIgmpOpenApiVo.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseIgmpOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/igmp", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getIgmp(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/service/iptv : Get IPTV setting + * Get IPTV setting of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get IPTV setting", nickname = "getIptv", notes = "Get IPTV setting of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseIptvOpenApiVo.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseIptvOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/iptv", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getIptv(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/service/mdns : Get mDNS rule list + * Get mDNS rule list of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get mDNS rule list", nickname = "getMdnsGrid", notes = "Get mDNS rule list of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseGridVoMdnsRuleOpenApiVo.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoMdnsRuleOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/mdns", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getMdnsGrid(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/service/snmp : Get SNMP setting + * Get SNMP setting info of the site with the given omadacId and siteId.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get SNMP setting", nickname = "getSnmpSetting", notes = "Get SNMP setting info of the site with the given omadacId and siteId.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseSnmpSettingOpenApiVo.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSnmpSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/snmp", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSnmpSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/ssh : Get SSH setting + * Get SSH setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get SSH setting", nickname = "getSshSetting", notes = "Get SSH setting

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseSshSetting.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSshSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ssh", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSshSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/upnp : Get UPnP setting + * Get UPnP setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get UPnP setting", nickname = "getUpnpSetting", notes = "Get UPnP setting

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseUpnpSettingOpenApiVo.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUpnpSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/upnp", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getUpnpSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/service/ddns/{ddnsId} : Modify an exist Dynamic DNS entry + * Modify an exist Dynamic DNS entry with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-34500 - Dynamic DNS Entries can be created with only one service provider for one WAN port.<br/>-34510 - The domain name and service provider of different Dynamic DNS Entries should be different.<br/>-34516 - The username already exists under the selected service provider.<br/>-34564 - The TP-Link Dynamic DNS domain name cannot contain sensitive fields such as email, tp-link, tplink, and www.<br/>-34565 - The TP-Link Dynamic DNS domain name should end with \".tplinkdns.com\".<br/>-34566 - The TP-Link Dynamic DNS domain name is invalid. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ddnsId Dynamic DNS entry ID (required) + * @param createDdnsOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an exist Dynamic DNS entry", nickname = "modifyDdns", notes = "Modify an exist Dynamic DNS entry with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-34500 - Dynamic DNS Entries can be created with only one service provider for one WAN port.
-34510 - The domain name and service provider of different Dynamic DNS Entries should be different.
-34516 - The username already exists under the selected service provider.
-34564 - The TP-Link Dynamic DNS domain name cannot contain sensitive fields such as email, tp-link, tplink, and www.
-34565 - The TP-Link Dynamic DNS domain name should end with \".tplinkdns.com\".
-34566 - The TP-Link Dynamic DNS domain name is invalid.", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/ddns/{ddnsId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyDdns(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Dynamic DNS entry ID",required=true) @PathVariable("ddnsId") String ddnsId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateDdnsOpenApiVo createDdnsOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/service/dhcp/{mac} : Modify an exist DHCP reservation + * Modify an exist DHCP reservation with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-33503 - This network does not exist.<br/>-34511 - The number of DHCP Reservation entries has reached the limit.<br/>-34512 - Invalid network. Please select a network with the purpose selected as Interface.<br/>-34513 - Enter an IP address within the Network IP range.<br/>-34514 - This IP address conflicts with an existing DHCP Reservation entry.<br/>-34515 - This MAC address conflicts with an existing DHCP Reservation entry.<br/>-34520 - The LAN network in this entry does not exist, please reconfigure the DHCP reservation entry.<br/>-34522 - This IP address of DHCP Reservation conflicts with a reserved static IP-MAC binding.<br/>-34543 - The IP cannot be the same as the LAN network IP. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param mac MAC address of the DHCP reservation, format: AA-BB-CC-11-22-33. (required) + * @param createDhcpReservationOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an exist DHCP reservation", nickname = "modifyDhcpReservation", notes = "Modify an exist DHCP reservation with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-33503 - This network does not exist.
-34511 - The number of DHCP Reservation entries has reached the limit.
-34512 - Invalid network. Please select a network with the purpose selected as Interface.
-34513 - Enter an IP address within the Network IP range.
-34514 - This IP address conflicts with an existing DHCP Reservation entry.
-34515 - This MAC address conflicts with an existing DHCP Reservation entry.
-34520 - The LAN network in this entry does not exist, please reconfigure the DHCP reservation entry.
-34522 - This IP address of DHCP Reservation conflicts with a reserved static IP-MAC binding.
-34543 - The IP cannot be the same as the LAN network IP.", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/dhcp/{mac}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyDhcpReservation(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "MAC address of the DHCP reservation, format: AA-BB-CC-11-22-33.",required=true) @PathVariable("mac") String mac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateDhcpReservationOpenApiVo createDhcpReservationOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/service/dns-proxy : Modify DNS proxy setting + * Modify DNS proxy setting info of the site with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-34536 - Please enable at least one DNS Sec server.<br/>-34538 - The number of custom DNS servers has reached the limit.<br/>-34539 - Please enable at least one DoH server.<br/>-34540 - Please enable at least one DoT server. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param dnsProxySettingOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify DNS proxy setting", nickname = "modifyDnsProxy", notes = "Modify DNS proxy setting info of the site with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-34536 - Please enable at least one DNS Sec server.
-34538 - The number of custom DNS servers has reached the limit.
-34539 - Please enable at least one DoH server.
-34540 - Please enable at least one DoT server.", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/dns-proxy", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyDnsProxy(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DnsProxySettingOpenApiVo dnsProxySettingOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/setting/service/igmp : Modify IGMP setting + * Modify IGMP setting info of the site with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param igmpOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify IGMP setting", nickname = "modifyIgmp", notes = "Modify IGMP setting info of the site with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/igmp", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyIgmp(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IgmpOpenApiVo igmpOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/setting/service/iptv : Modify IPTV setting + * Modify IPTV setting info of the site with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-33501 - This VLAN already exists in one site.<br/>-34517 - The VLAN ID already exists. Please enter again.<br/>-34518 - The VLAN IDs cannot be the same.<br/>-34519 - At least one Internet port is required. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param iptvConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify IPTV setting", nickname = "modifyIptv", notes = "Modify IPTV setting info of the site with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-33501 - This VLAN already exists in one site.
-34517 - The VLAN ID already exists. Please enter again.
-34518 - The VLAN IDs cannot be the same.
-34519 - At least one Internet port is required.", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/iptv", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyIptv(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IptvConfigOpenApiVo iptvConfigOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/service/mdns/{mdnsId} : Modify an exist mDNS rule + * Modify an exist mDNS rule with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-34521 - The gateway does not support mDNS.<br/>-34523 - This mDNS rule name already exists.<br/>-34524 - The number of mDNS rules has reached the limit.<br/>-34525 - This mDNS rule does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param mdnsId mDNS rule ID (required) + * @param createMdnsRuleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an exist mDNS rule", nickname = "modifyMdns", notes = "Modify an exist mDNS rule with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-34521 - The gateway does not support mDNS.
-34523 - This mDNS rule name already exists.
-34524 - The number of mDNS rules has reached the limit.
-34525 - This mDNS rule does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/mdns/{mdnsId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyMdns(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "mDNS rule ID",required=true) @PathVariable("mdnsId") String mdnsId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateMdnsRuleOpenApiVo createMdnsRuleOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/service/snmp : Modify SNMP setting + * Modify SNMP setting info of the site with the given params.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-34503 - Community String cannot be the same as the username. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param snmpSettingOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify SNMP setting", nickname = "modifySnmpSetting", notes = "Modify SNMP setting info of the site with the given params.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-34503 - Community String cannot be the same as the username.", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/service/snmp", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifySnmpSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SnmpSettingOpenApiVo snmpSettingOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/ssh : Modify SSH setting + * Modify SSH setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param sshSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify SSH setting", nickname = "updateSshSetting", notes = "Modify SSH setting

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/ssh", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity updateSshSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SshSetting sshSetting); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/upnp : Modify UPnP setting + * Modify UPnP setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param upnpSettingOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify UPnP setting", nickname = "updateUpnpSetting", notes = "Modify UPnP setting

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Service","Service", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/upnp", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity updateUpnpSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpnpSettingOpenApiVo upnpSettingOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSessionLimitApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSessionLimitApi.java new file mode 100644 index 0000000..435cd80 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSessionLimitApi.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoQuerySessionLimitRuleOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseSessionLimitEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.SessionLimitEntity; +import org.wfc.omada.api.sitesetting.model.SessionLimitRuleOpenApiVo; +import org.wfc.omada.api.sitesetting.model.TransmissionDragSortIndexOpenapiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaSessionLimit", description = "the OmadaSessionLimit API") +@FeignClient(name="OmadaSessionLimitApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaSessionLimitApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/session-limit/rules : Create session limit rule + * Create session limit rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param sessionLimitRuleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create session limit rule", nickname = "createSessionLimitRule", notes = "Create session limit rule.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Session Limit","Session Limit", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit/rules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createSessionLimitRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SessionLimitRuleOpenApiVo sessionLimitRuleOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/session-limit/rules/{ruleId} : Delete session limit rule + * Delete session limit rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ruleId Session limit rule ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete session limit rule", nickname = "deleteSessionLimitRule", notes = "Delete session limit rule.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Session Limit","Session Limit", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit/rules/{ruleId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteSessionLimitRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Session limit rule ID",required=true) @PathVariable("ruleId") String ruleId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/session-limit/rules : Get session limit rule list + * Get session limit rule list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get session limit rule list", nickname = "getGridSessionLimitRule", notes = "Get session limit rule list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoQuerySessionLimitRuleOpenApiVo.class, tags={ "Omada/Session Limit","Session Limit", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoQuerySessionLimitRuleOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit/rules", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridSessionLimitRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/session-limit : Get session limit + * Get session limit.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get session limit", nickname = "getSessionLimit", notes = "Get session limit.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseSessionLimitEntity.class, tags={ "Omada/Session Limit","Session Limit", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSessionLimitEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSessionLimit(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/session-limit : Modify session limit + * Modify session limit.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param sessionLimitEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify session limit", nickname = "modifySessionLimit", notes = "Modify session limit.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Session Limit","Session Limit", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifySessionLimit(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SessionLimitEntity sessionLimitEntity); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/session-limit/rules/{ruleId} : Modify session limit rule + * Modify session limit rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ruleId Session limit rule ID (required) + * @param sessionLimitRuleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify session limit rule", nickname = "modifySessionLimitRule", notes = "Modify session limit rule.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Session Limit","Session Limit", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit/rules/{ruleId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifySessionLimitRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Session limit rule ID",required=true) @PathVariable("ruleId") String ruleId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SessionLimitRuleOpenApiVo sessionLimitRuleOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/session-limit/rules : Modify session limit rule index + * Modify session limit rule index.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param transmissionDragSortIndexOpenapiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify session limit rule index", nickname = "modifySessionLimitRuleIndex", notes = "Modify session limit rule index.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Session Limit","Session Limit", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/session-limit/rules", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifySessionLimitRuleIndex(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) TransmissionDragSortIndexOpenapiVo transmissionDragSortIndexOpenapiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSimApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSimApi.java new file mode 100644 index 0000000..9db6356 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSimApi.java @@ -0,0 +1,84 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.CorrectSimQuota; +import org.wfc.omada.api.sitesetting.model.OperationResponseSimQuotaSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.SimQuotaSetting; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaSim", description = "the OmadaSim API") +@FeignClient(name="OmadaSimApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaSimApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/sim/correct : Correct SIM data + * Correct SIM data.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35400 - The adopted gateway does not support SIM configurations. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param correctSimQuota (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Correct SIM data", nickname = "correctSimQuota", notes = "Correct SIM data.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35400 - The adopted gateway does not support SIM configurations.", response = OperationResponseWithoutResult.class, tags={ "Omada/SIM","SIM", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/sim/correct", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity correctSimQuota(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CorrectSimQuota correctSimQuota); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/sim/quota : Modify SIM data setting + * Modify SIM data setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35400 - The adopted gateway does not support SIM configurations. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param simQuotaSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify SIM data setting", nickname = "modifySimQuotaSetting", notes = "Modify SIM data setting.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35400 - The adopted gateway does not support SIM configurations.", response = OperationResponseWithoutResult.class, tags={ "Omada/SIM","SIM", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/sim/quota", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifySimQuotaSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SimQuotaSetting simQuotaSetting); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/sim/quota : Get SIM data setting + * Get SIM data setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35400 - The adopted gateway does not support SIM configurations. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get SIM data setting", nickname = "querySimQuotaSetting", notes = "Get SIM data setting.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35400 - The adopted gateway does not support SIM configurations.", response = OperationResponseSimQuotaSetting.class, tags={ "Omada/SIM","SIM", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSimQuotaSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/sim/quota", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity querySimQuotaSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSiteConfigurationApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSiteConfigurationApi.java new file mode 100644 index 0000000..24994d7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSiteConfigurationApi.java @@ -0,0 +1,368 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.OperationResponseSiteBandSteeringSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseSiteBeaconControlSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseSiteChannelLimitSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseSiteLedSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseSiteLldpSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseSiteMeshSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseSiteMulticastRateLimitSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseSiteRemoteLoggingSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseSiteRoamingSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.SiteBandSteeringSetting; +import org.wfc.omada.api.sitesetting.model.SiteBeaconControlSetting; +import org.wfc.omada.api.sitesetting.model.SiteChannelLimitSetting; +import org.wfc.omada.api.sitesetting.model.SiteLedSetting; +import org.wfc.omada.api.sitesetting.model.SiteLldpSetting; +import org.wfc.omada.api.sitesetting.model.SiteMeshSetting; +import org.wfc.omada.api.sitesetting.model.SiteMulticastRateLimitSetting; +import org.wfc.omada.api.sitesetting.model.SiteRemoteLoggingSetting; +import org.wfc.omada.api.sitesetting.model.SiteRoamingSetting; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaSiteConfiguration", description = "the OmadaSiteConfiguration API") +@FeignClient(name="OmadaSiteConfigurationApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaSiteConfigurationApi { + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/band-steering : Get site band steering setting + * Get site band steering setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/>Site Map Manager View Only<br/>Site Hotspot Manager View Only<br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site band steering setting", nickname = "getBandSteeringSetting", notes = "Get site band steering setting

The interface requires one of the permissions:
Site Settings Manager View Only
Site Map Manager View Only
Site Hotspot Manager View Only
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseSiteBandSteeringSetting.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteBandSteeringSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/band-steering", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getBandSteeringSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/beacon-control : Get site beacon control setting + * Get site beacon control setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/>Site Map Manager View Only<br/>Site Hotspot Manager View Only<br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site beacon control setting", nickname = "getBeaconControlSetting", notes = "Get site beacon control setting

The interface requires one of the permissions:
Site Settings Manager View Only
Site Map Manager View Only
Site Hotspot Manager View Only
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseSiteBeaconControlSetting.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteBeaconControlSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/beacon-control", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getBeaconControlSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/channel-limit : Get site channel limit setting + * Get site channel limit setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/>Site Map Manager View Only<br/>Site Hotspot Manager View Only<br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site channel limit setting", nickname = "getChannelLimitSetting", notes = "Get site channel limit setting

The interface requires one of the permissions:
Site Settings Manager View Only
Site Map Manager View Only
Site Hotspot Manager View Only
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseSiteChannelLimitSetting.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteChannelLimitSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/channel-limit", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getChannelLimitSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/lldp : Get site lldp setting + * Get site lldp setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/>Site Map Manager View Only<br/>Site Hotspot Manager View Only<br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site lldp setting", nickname = "getLldpSetting", notes = "Get site lldp setting

The interface requires one of the permissions:
Site Settings Manager View Only
Site Map Manager View Only
Site Hotspot Manager View Only
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseSiteLldpSetting.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteLldpSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lldp", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLldpSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/mesh : Get site mesh setting + * Get site mesh setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/>Site Map Manager View Only<br/>Site Hotspot Manager View Only<br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site mesh setting", nickname = "getMeshSetting", notes = "Get site mesh setting

The interface requires one of the permissions:
Site Settings Manager View Only
Site Map Manager View Only
Site Hotspot Manager View Only
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseSiteMeshSetting.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteMeshSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mesh", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getMeshSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/multicast-rate-limit : Get site multicast rate limit setting + * Get site multicast rate limit setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/>Site Map Manager View Only<br/>Site Hotspot Manager View Only<br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId Omada ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site multicast rate limit setting", nickname = "getMulticastRateLimitByOpenApi", notes = "Get site multicast rate limit setting

The interface requires one of the permissions:
Site Settings Manager View Only
Site Map Manager View Only
Site Hotspot Manager View Only
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseSiteMulticastRateLimitSetting.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteMulticastRateLimitSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multicast-rate-limit", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getMulticastRateLimitByOpenApi(@ApiParam(value = "Omada ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/remote-logging : Get site remote logging setting + * Get site remote logging setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/>Site Map Manager View Only<br/>Site Hotspot Manager View Only<br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site remote logging setting", nickname = "getRemoteLoggingSetting", notes = "Get site remote logging setting

The interface requires one of the permissions:
Site Settings Manager View Only
Site Map Manager View Only
Site Hotspot Manager View Only
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseSiteRemoteLoggingSetting.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteRemoteLoggingSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/remote-logging", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRemoteLoggingSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/roaming : Get site roaming setting + * Get site roaming setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/>Site Map Manager View Only<br/>Site Hotspot Manager View Only<br/>Site Device Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site roaming setting", nickname = "getRoamingSetting", notes = "Get site roaming setting

The interface requires one of the permissions:
Site Settings Manager View Only
Site Map Manager View Only
Site Hotspot Manager View Only
Site Device Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseSiteRoamingSetting.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteRoamingSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/roaming", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getRoamingSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/led : Get site led setting + * Get site led setting<br/><br/>The interface requires one of the permissions: <br/>Global Dashboard Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site led setting", nickname = "getSiteLedSetting", notes = "Get site led setting

The interface requires one of the permissions:
Global Dashboard Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseSiteLedSetting.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteLedSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/led", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteLedSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/band-steering : Modify site band steering setting + * Modify site band steering setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param siteBandSteeringSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site band steering setting", nickname = "updateBandSteeringSetting", notes = "Modify site band steering setting

The interface requires one of the permissions:
Site Settings Manager Modify
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/band-steering", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateBandSteeringSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteBandSteeringSetting siteBandSteeringSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/beacon-control : Modify site beacon control setting + * Modify site beacon control setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param siteBeaconControlSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site beacon control setting", nickname = "updateBeaconControlSetting", notes = "Modify site beacon control setting

The interface requires one of the permissions:
Site Settings Manager Modify
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/beacon-control", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateBeaconControlSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteBeaconControlSetting siteBeaconControlSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/channel-limit : Modify site channel limit setting + * Modify site channel limit setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @param siteChannelLimitSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site channel limit setting", nickname = "updateChannelLimitSetting", notes = "Modify site channel limit setting

The interface requires one of the permissions:
Site Settings Manager Modify
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/channel-limit", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateChannelLimitSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteChannelLimitSetting siteChannelLimitSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/lldp : Modify site lldp setting + * Modify site lldp setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @param siteLldpSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site lldp setting", nickname = "updateLldpSetting", notes = "Modify site lldp setting

The interface requires one of the permissions:
Site Settings Manager Modify
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lldp", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateLldpSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteLldpSetting siteLldpSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/multicast-rate-limit : Modify site multicast rate limit setting + * Modify site multicast rate limit setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param siteMulticastRateLimitSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site multicast rate limit setting", nickname = "updateMcastRateLimitSettingByOpenApi", notes = "Modify site multicast rate limit setting

The interface requires one of the permissions:
Site Settings Manager Modify
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/multicast-rate-limit", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateMcastRateLimitSettingByOpenApi(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteMulticastRateLimitSetting siteMulticastRateLimitSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/mesh : Modify site mesh setting + * Modify site mesh setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @param siteMeshSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site mesh setting", nickname = "updateMeshSetting", notes = "Modify site mesh setting

The interface requires one of the permissions:
Site Settings Manager Modify
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/mesh", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateMeshSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteMeshSetting siteMeshSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/remote-logging : Modify site remote logging setting + * Modify site remote logging setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param siteRemoteLoggingSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site remote logging setting", nickname = "updateRemoteLoggingSetting", notes = "Modify site remote logging setting

The interface requires one of the permissions:
Site Settings Manager Modify
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/remote-logging", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateRemoteLoggingSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteRemoteLoggingSetting siteRemoteLoggingSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/roaming : Modify site roaming setting + * Modify site roaming setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/>Global Dashboard Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param siteRoamingSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site roaming setting", nickname = "updateRoamingSetting", notes = "Modify site roaming setting

The interface requires one of the permissions:
Site Settings Manager Modify
Global Dashboard Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/roaming", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateRoamingSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteRoamingSetting siteRoamingSetting); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/led : Modify site led setting + * Modify site led setting<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId site_id (required) + * @param siteLedSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site led setting", nickname = "updateSiteLedSetting", notes = "Modify site led setting

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseWithoutResult.class, tags={ "Omada/Site Configuration","Site Configuration", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/led", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity updateSiteLedSetting(@ApiParam(value = "site_id",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteLedSetting siteLedSetting); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSslVpnApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSslVpnApi.java new file mode 100644 index 0000000..944d327 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaSslVpnApi.java @@ -0,0 +1,461 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoSslVpnResourceEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoSslVpnResourceGroup; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoSslVpnUserGroupEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVosslVpnLockEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseSslVpnServerSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.SslVpnLockConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.SslVpnLockModifyOpenApiVo; +import org.wfc.omada.api.sitesetting.model.SslVpnResourceConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.SslVpnResourceGroupConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.SslVpnResourceGroupModifyOpenApiVo; +import org.wfc.omada.api.sitesetting.model.SslVpnResourceModifyOpenApiVo; +import org.wfc.omada.api.sitesetting.model.SslVpnServerConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.SslVpnUserConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.SslVpnUserGroupConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.SslVpnUserGroupModifyOpenApiVo; +import org.wfc.omada.api.sitesetting.model.SslVpnUserModifyOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaSslVpn", description = "the OmadaSslVpn API") +@FeignClient(name="OmadaSslVpnApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaSslVpnApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/locked-users : Create SSL VPN locked user + * Create SSL VPN locked user.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-43007 - IP already exists.<br/>-43009 - Username already exists.<br/>-43013 - The number of locks has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param sslVpnLockConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create SSL VPN locked user", nickname = "createLockedSslVpnUser", notes = "Create SSL VPN locked user.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-43007 - IP already exists.
-43009 - Username already exists.
-43013 - The number of locks has reached the limit.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/locked-users", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createLockedSslVpnUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SslVpnLockConfigOpenApiVo sslVpnLockConfigOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/resources : Create SSL VPN resource + * Create SSL VPN tunnel resource.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33006 - This name already exists in this site.<br/>-43004 - The number of resources has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param sslVpnResourceConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create SSL VPN resource", nickname = "createSslVpnResource", notes = "Create SSL VPN tunnel resource.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33006 - This name already exists in this site.
-43004 - The number of resources has reached the limit.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/resources", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createSslVpnResource(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SslVpnResourceConfigOpenApiVo sslVpnResourceConfigOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/resource-groups : Create SSL VPN resource group + * Create SSL VPN tunnel resource group.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33006 - This name already exists in this site.<br/>-43005 - The number of resource groups has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param sslVpnResourceGroupConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create SSL VPN resource group", nickname = "createSslVpnResourceGroup", notes = "Create SSL VPN tunnel resource group.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33006 - This name already exists in this site.
-43005 - The number of resource groups has reached the limit.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/resource-groups", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createSslVpnResourceGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SslVpnResourceGroupConfigOpenApiVo sslVpnResourceGroupConfigOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/users : Create SSL VPN user + * Create SSL VPN user .<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33006 - This name already exists in this site.<br/>-43002 - The number of users has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param sslVpnUserConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create SSL VPN user", nickname = "createSslVpnUser", notes = "Create SSL VPN user .

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33006 - This name already exists in this site.
-43002 - The number of users has reached the limit.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/users", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createSslVpnUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SslVpnUserConfigOpenApiVo sslVpnUserConfigOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/user-groups : Create SSL VPN user group + * Create SSL VPN user group.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33006 - This name already exists in this site.<br/>-43003 - The number of user groups has reached the limit. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param sslVpnUserGroupConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create SSL VPN user group", nickname = "createSslVpnUserGroup", notes = "Create SSL VPN user group.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33006 - This name already exists in this site.
-43003 - The number of user groups has reached the limit.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/user-groups", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createSslVpnUserGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SslVpnUserGroupConfigOpenApiVo sslVpnUserGroupConfigOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/locked-users/{id} : Delete SSL VPN locked user + * Delete SSL VPN locked user.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Locked user ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete SSL VPN locked user", nickname = "deleteLockedSslVpnUser", notes = "Delete SSL VPN locked user.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/locked-users/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteLockedSslVpnUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Locked user ID",required=true) @PathVariable("id") String id); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/resources/{id} : Delete SSL VPN resource + * Delete SSL VPN tunnel resource.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Resource ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete SSL VPN resource", nickname = "deleteSslVpnResource", notes = "Delete SSL VPN tunnel resource.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/resources/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteSslVpnResource(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Resource ID",required=true) @PathVariable("id") String id); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/resource-groups/{id} : Delete SSL VPN resource group + * Delete SSL VPN tunnel resource group.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Resource group ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete SSL VPN resource group", nickname = "deleteSslVpnResourceGroup", notes = "Delete SSL VPN tunnel resource group.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/resource-groups/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteSslVpnResourceGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Resource group ID",required=true) @PathVariable("id") String id); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/users/{id} : Delete SSL VPN user + * Delete SSL VPN user.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id User ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete SSL VPN user", nickname = "deleteSslVpnUser", notes = "Delete SSL VPN user.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/users/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteSslVpnUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "User ID",required=true) @PathVariable("id") String id); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/user-groups/{id} : Delete SSL VPN user group + * Delete SSL VPN user group.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-43015 - Failed to delete this group because it is used for radius authentication in SSL VPN server.<br/>-43016 - Failed to delete this group because it is used for LDAP authentication in SSL VPN server. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id User group ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete SSL VPN user group", nickname = "deleteSslVpnUserGroup", notes = "Delete SSL VPN user group.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-43015 - Failed to delete this group because it is used for radius authentication in SSL VPN server.
-43016 - Failed to delete this group because it is used for LDAP authentication in SSL VPN server.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/user-groups/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteSslVpnUserGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "User group ID",required=true) @PathVariable("id") String id); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/locked-users : Get locked user list for SSL VPN server + * Get locked user list for SSL VPN server.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-43008 - The current gateway model or firmware version does not support SSL VPN configuration. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get locked user list for SSL VPN server", nickname = "getGridLockedSslVpnServerUser", notes = "Get locked user list for SSL VPN server.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-43008 - The current gateway model or firmware version does not support SSL VPN configuration.", response = OperationResponseGridVosslVpnLockEntity.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVosslVpnLockEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/locked-users", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridLockedSslVpnServerUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/resources : Get resource list for SSL VPN server + * Get resource list for SSL VPN server.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get resource list for SSL VPN server", nickname = "getGridSslVpnServerResource", notes = "Get resource list for SSL VPN server.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoSslVpnResourceEntity.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoSslVpnResourceEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/resources", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridSslVpnServerResource(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/resource-groups : Get resource group list for SSL VPN server + * Get resource group list for SSL VPN server.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get resource group list for SSL VPN server", nickname = "getGridSslVpnServerResourceGroup", notes = "Get resource group list for SSL VPN server.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoSslVpnResourceGroup.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoSslVpnResourceGroup.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/resource-groups", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridSslVpnServerResourceGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/users : Get user list for SSL VPN server + * Get user list for SSL VPN server.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get user list for SSL VPN server", nickname = "getGridSslVpnServerUser", notes = "Get user list for SSL VPN server.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/users", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridSslVpnServerUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/user-groups : Get user group list for SSL VPN server + * Get user group list for SSL VPN server.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get user group list for SSL VPN server", nickname = "getGridSslVpnServerUserGroup", notes = "Get user group list for SSL VPN server.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoSslVpnUserGroupEntity.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoSslVpnUserGroupEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/user-groups", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridSslVpnServerUserGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/setting : Get SSL VPN server setting + * Get SSL VPN server setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-43008 - The current gateway model or firmware version does not support SSL VPN configuration. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get SSL VPN server setting", nickname = "getSslVpnServerSetting", notes = "Get SSL VPN server setting.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-43008 - The current gateway model or firmware version does not support SSL VPN configuration.", response = OperationResponseSslVpnServerSetting.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSslVpnServerSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/setting", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSslVpnServerSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/locked-users/{id} : Modify SSL VPN locked user + * Modify SSL VPN locked user.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-43007 - IP already exists.<br/>-43009 - Username already exists. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Locked user ID (required) + * @param sslVpnLockModifyOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify SSL VPN locked user", nickname = "modifyLockedSslVpnUser", notes = "Modify SSL VPN locked user.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-43007 - IP already exists.
-43009 - Username already exists.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/locked-users/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyLockedSslVpnUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Locked user ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SslVpnLockModifyOpenApiVo sslVpnLockModifyOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/resources/{id} : Modify SSL VPN resource + * Modify SSL VPN tunnel resource.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Resource ID (required) + * @param sslVpnResourceModifyOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify SSL VPN resource", nickname = "modifySslVpnResource", notes = "Modify SSL VPN tunnel resource.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/resources/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifySslVpnResource(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Resource ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SslVpnResourceModifyOpenApiVo sslVpnResourceModifyOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/resource-groups/{id} : Modify SSL VPN resource group + * Modify SSL VPN tunnel resource group.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Resource group ID (required) + * @param sslVpnResourceGroupModifyOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify SSL VPN resource group", nickname = "modifySslVpnResourceGroup", notes = "Modify SSL VPN tunnel resource group.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/resource-groups/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifySslVpnResourceGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Resource group ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SslVpnResourceGroupModifyOpenApiVo sslVpnResourceGroupModifyOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/setting : Modify SSL VPN server setting + * Get SSL VPN server setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34032 - Built-in radius server not started.<br/>-43008 - The current gateway model or firmware version does not support SSL VPN configuration.<br/>-43010 - The IP addresses in SSL VPN IP pool cannot overlap with other VPN IP pools on the same site.<br/>-43011 - The service port cannot be the same as that of the OpenVPN server.<br/>-43017 - The device does not support configuring radius type.<br/>-43018 - The device does not support configuring LDAP type. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param sslVpnServerConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify SSL VPN server setting", nickname = "modifySslVpnServerSetting", notes = "Get SSL VPN server setting.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34032 - Built-in radius server not started.
-43008 - The current gateway model or firmware version does not support SSL VPN configuration.
-43010 - The IP addresses in SSL VPN IP pool cannot overlap with other VPN IP pools on the same site.
-43011 - The service port cannot be the same as that of the OpenVPN server.
-43017 - The device does not support configuring radius type.
-43018 - The device does not support configuring LDAP type.", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/setting", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifySslVpnServerSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SslVpnServerConfigOpenApiVo sslVpnServerConfigOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/users/{id} : Modify SSL VPN user + * Modify SSL VPN user.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id User ID (required) + * @param sslVpnUserModifyOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify SSL VPN user", nickname = "modifySslVpnUser", notes = "Modify SSL VPN user.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/users/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifySslVpnUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "User ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SslVpnUserModifyOpenApiVo sslVpnUserModifyOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/vpn/ssl-vpn-server/user-groups/{id} : Modify SSL VPN user group + * Modify SSL VPN user group.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id User group ID (required) + * @param sslVpnUserGroupModifyOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify SSL VPN user group", nickname = "modifySslVpnUserGroup", notes = "Modify SSL VPN user group.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/SSL VPN","SSL VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ssl-vpn-server/user-groups/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifySslVpnUserGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "User group ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SslVpnUserGroupModifyOpenApiVo sslVpnUserGroupModifyOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaUrlFilteringApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaUrlFilteringApi.java new file mode 100644 index 0000000..f07703a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaUrlFilteringApi.java @@ -0,0 +1,202 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.OperationResponseResIdOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseUrlCategoryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseUrlFilterGlobalOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.UrlDragSortIndexOpenapiVo; +import org.wfc.omada.api.sitesetting.model.UrlFilterGlobalOpenApiVo; +import org.wfc.omada.api.sitesetting.model.UrlFilteringOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaUrlFiltering", description = "the OmadaUrlFiltering API") +@FeignClient(name="OmadaUrlFilteringApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaUrlFilteringApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/url-filters : Create URL filtering rule + * Create URL filtering rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param urlFilteringOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create URL filtering rule", nickname = "createUrlFilteringRule", notes = "Create URL filtering rule.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseResIdOpenApiVo.class, tags={ "Omada/URL Filtering","URL Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResIdOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/url-filters", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createUrlFilteringRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UrlFilteringOpenApiVo urlFilteringOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/url-filters/{ruleId} : Delete URL filtering rule + * Delete URL filtering rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ruleId URL filtering rule ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete URL filtering rule", nickname = "deleteUrlFilteringRule", notes = "Delete URL filtering rule.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/URL Filtering","URL Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/url-filters/{ruleId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteUrlFilteringRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "URL filtering rule ID",required=true) @PathVariable("ruleId") String ruleId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/url-filters/category : Get Category + * Get Category.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Category", nickname = "getCategory", notes = "Get Category.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseUrlCategoryOpenApiVo.class, tags={ "Omada/URL Filtering","URL Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUrlCategoryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/url-filters/category", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getCategory(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/url-filters/eap : Get URL filtering rule list for eap + * Get URL filtering rule list for eap.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get URL filtering rule list for eap", nickname = "getGridEapRule", notes = "Get URL filtering rule list for eap.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.class, tags={ "Omada/URL Filtering","URL Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/url-filters/eap", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridEapRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/url-filters/gateway : Get URL filtering rule list for gateway + * Get URL filtering rule list for gateway.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get URL filtering rule list for gateway", nickname = "getGridGatewayRule", notes = "Get URL filtering rule list for gateway.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.class, tags={ "Omada/URL Filtering","URL Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/url-filters/gateway", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridGatewayRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/url-filters/globalUrlFilter : Get Content Filter Global + * Get Content Filter Global.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Content Filter Global", nickname = "getUrlFilterGeneral", notes = "Get Content Filter Global.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseUrlFilterGlobalOpenApiVo.class, tags={ "Omada/URL Filtering","URL Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUrlFilterGlobalOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/url-filters/globalUrlFilter", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getUrlFilterGeneral(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/url-filters/globalUrlFilter : Edit Content Filter Global + * Edit Content Filter Global.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param urlFilterGlobalOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Edit Content Filter Global", nickname = "modifyUrlFilterGeneral", notes = "Edit Content Filter Global.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/URL Filtering","URL Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/url-filters/globalUrlFilter", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyUrlFilterGeneral(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UrlFilterGlobalOpenApiVo urlFilterGlobalOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/url-filters/{ruleId} : Modify URL filtering rule + * Modify URL filtering rule.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ruleId URL filtering rule ID (required) + * @param urlFilteringOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify URL filtering rule", nickname = "modifyUrlFilteringRule", notes = "Modify URL filtering rule.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/URL Filtering","URL Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/url-filters/{ruleId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyUrlFilteringRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "URL filtering rule ID",required=true) @PathVariable("ruleId") String ruleId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UrlFilteringOpenApiVo urlFilteringOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/url-filters : Modify URL filtering rule index + * Modify URL filtering rule index.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param urlDragSortIndexOpenapiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify URL filtering rule index", nickname = "modifyUrlFilteringRuleIndex", notes = "Modify URL filtering rule index.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/URL Filtering","URL Filtering", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/url-filters", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyUrlFilteringRuleIndex(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UrlDragSortIndexOpenapiVo urlDragSortIndexOpenapiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaVoIpApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaVoIpApi.java new file mode 100644 index 0000000..b8022ef --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaVoIpApi.java @@ -0,0 +1,933 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.BatchModifyVoipDeviceSettingEntity; +import org.wfc.omada.api.sitesetting.model.BindNumberList; +import org.wfc.omada.api.sitesetting.model.ConfirmBindedDevicesEntity; +import org.wfc.omada.api.sitesetting.model.CreateCallBlockingProfileEntity; +import org.wfc.omada.api.sitesetting.model.CreateDigitMapProfileEntity; +import org.wfc.omada.api.sitesetting.model.CreateProviderProfileEntity; +import org.wfc.omada.api.sitesetting.model.DeleteCallBlockingProfileEntity; +import org.wfc.omada.api.sitesetting.model.DeleteCallForwardingRules; +import org.wfc.omada.api.sitesetting.model.DeleteDigitMapProfileEntity; +import org.wfc.omada.api.sitesetting.model.DeleteTelephoneNumber; +import org.wfc.omada.api.sitesetting.model.DndSettingEntity; +import org.wfc.omada.api.sitesetting.model.ModifyCallBlockingProfileEntity; +import org.wfc.omada.api.sitesetting.model.ModifyDigitMapProfileEntity; +import org.wfc.omada.api.sitesetting.model.ModifyProviderProfileEntity; +import org.wfc.omada.api.sitesetting.model.ModifyVoipDeviceApSettingEntity; +import org.wfc.omada.api.sitesetting.model.ModifyVoipDeviceOsgSettingEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseAddCallForwardingRuleResp; +import org.wfc.omada.api.sitesetting.model.OperationResponseCallForwardingRulesGrid; +import org.wfc.omada.api.sitesetting.model.OperationResponseCallLogGridVoVoipCallLog; +import org.wfc.omada.api.sitesetting.model.OperationResponseDndSettingEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoDeviceTelephoneNumber; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoProviderProfileEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoVoiceMail; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoVoipDevice; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoVoipTelephoneBookSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseListCallBlockingProfileEntity; +import org.wfc.omada.api.sitesetting.model.OperationResponseListDigitMapProfileInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListProfilesBindedDeviceInfo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListSimplifiedCallBlockingProfile; +import org.wfc.omada.api.sitesetting.model.OperationResponseListSimplifiedDigitMapProfile; +import org.wfc.omada.api.sitesetting.model.OperationResponseModifyConfirmResultOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseNumberRegistrationResult; +import org.wfc.omada.api.sitesetting.model.OperationResponseObject; +import org.wfc.omada.api.sitesetting.model.OperationResponseUsbInfoListResponse; +import org.wfc.omada.api.sitesetting.model.OperationResponseVoiceMailSettingResponse; +import org.wfc.omada.api.sitesetting.model.OperationResponseVoid; +import org.wfc.omada.api.sitesetting.model.OperationResponseVoipCallLogEnableSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseVoipEmergencyNumberSetting; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.VoiceMailBatchDelete; +import org.wfc.omada.api.sitesetting.model.VoiceMailSettingRequest; +import org.wfc.omada.api.sitesetting.model.VoipCallLogEnableSetting; +import org.wfc.omada.api.sitesetting.model.VoipContactPersonSettings; +import org.wfc.omada.api.sitesetting.model.VoipEmergencyNumberSetting; +import org.wfc.omada.api.sitesetting.model.VoipTelephoneBookBatchSetting; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaVoIp", description = "the OmadaVoIp API") +@FeignClient(name="OmadaVoIpApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaVoIpApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/call-forwarding : Add call forwarding rules + * Add call forwarding rules<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param body (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Add call forwarding rules", nickname = "addCallForwardingRule", notes = "Add call forwarding rules

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseAddCallForwardingRuleResp.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseAddCallForwardingRuleResp.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/call-forwarding", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity addCallForwardingRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) Object body); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/voip/telephone-book/batch-delete : Batch Delete Contact Person + * Batch Delete Contact Person.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param voipTelephoneBookBatchSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch Delete Contact Person", nickname = "batchDeleteVoipTelephoneBook", notes = "Batch Delete Contact Person.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/voip/telephone-book/batch-delete", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity batchDeleteVoipTelephoneBook(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VoipTelephoneBookBatchSetting voipTelephoneBookBatchSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voip-devices/batch-modify : Batch Modify Voip Device Setting + * Batch modify VoIP device setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param batchModifyVoipDeviceSettingEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch Modify Voip Device Setting", nickname = "batchModifyVoipDeviceSetting", notes = "Batch modify VoIP device setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseListProfilesBindedDeviceInfo.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListProfilesBindedDeviceInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voip-devices/batch-modify", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity batchModifyVoipDeviceSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BatchModifyVoipDeviceSettingEntity batchModifyVoipDeviceSettingEntity); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voip-devices/{deviceMac}/bind-telephone-number : Bind Telephone Number + * Bind Telephone Number.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param bindNumberList (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Bind Telephone Number", nickname = "bindTelephoneNumber", notes = "Bind Telephone Number.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voip-devices/{deviceMac}/bind-telephone-number", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity bindTelephoneNumber(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) BindNumberList bindNumberList); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/voip/call-log/delete-all : Delete Voip CallLog Data List + * Delete Voip CallLog Data List.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete Voip CallLog Data List", nickname = "clearVoipCallLog", notes = "Delete Voip CallLog Data List.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/voip/call-log/delete-all", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity clearVoipCallLog(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/call-blocking : Create new call blocking profile + * Create new call blocking profile.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createCallBlockingProfileEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new call blocking profile", nickname = "createCallBlockingProfile", notes = "Create new call blocking profile.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/call-blocking", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createCallBlockingProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateCallBlockingProfileEntity createCallBlockingProfileEntity); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/digit-map : Create new digit map profile + * Create new digit map profile.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createDigitMapProfileEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new digit map profile", nickname = "createDigitMapProfile", notes = "Create new digit map profile.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/digit-map", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createDigitMapProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateDigitMapProfileEntity createDigitMapProfileEntity); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/provider-profiles : Create new provider profile + * Create new provider profile.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createProviderProfileEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new provider profile", nickname = "createProviderProfile", notes = "Create new provider profile.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/provider-profiles", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createProviderProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateProviderProfileEntity createProviderProfileEntity); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/voip/telephone-book : Create New Contact Person + * Create New Contact Person.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35615 - The number of Telephone book has reached the limit.<br/>-35616 - The contact person's number combination already exists. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param voipContactPersonSettings (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create New Contact Person", nickname = "createVoipTelephoneBook", notes = "Create New Contact Person.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35615 - The number of Telephone book has reached the limit.
-35616 - The contact person's number combination already exists.", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/voip/telephone-book", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createVoipTelephoneBook(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VoipContactPersonSettings voipContactPersonSettings); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/call-blocking/delete : Delete call blocking profile + * Delete call blocking profile.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deleteCallBlockingProfileEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete call blocking profile", nickname = "deleteCallBlockingProfile", notes = "Delete call blocking profile.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseListProfilesBindedDeviceInfo.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListProfilesBindedDeviceInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/call-blocking/delete", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity deleteCallBlockingProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteCallBlockingProfileEntity deleteCallBlockingProfileEntity); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/call-forwarding : Delete call forwarding rules + * Delete call forwarding rules<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deleteCallForwardingRules (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete call forwarding rules", nickname = "deleteCallForwardingRule", notes = "Delete call forwarding rules

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseVoid.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVoid.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/call-forwarding", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.DELETE) + ResponseEntity deleteCallForwardingRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteCallForwardingRules deleteCallForwardingRules); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/digit-map/delete : Delete digit map profile + * Delete digit map profile.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deleteDigitMapProfileEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete digit map profile", nickname = "deleteDigitMapProfile", notes = "Delete digit map profile.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseListProfilesBindedDeviceInfo.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListProfilesBindedDeviceInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/digit-map/delete", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity deleteDigitMapProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteDigitMapProfileEntity deleteDigitMapProfileEntity); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/provider-profiles/delete : Delete provider profile(s) + * Delete provider profile(s).<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param confirmBindedDevicesEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete provider profile(s)", nickname = "deleteProviderProfiles", notes = "Delete provider profile(s).

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseListProfilesBindedDeviceInfo.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListProfilesBindedDeviceInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/provider-profiles/delete", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity deleteProviderProfiles(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ConfirmBindedDevicesEntity confirmBindedDevicesEntity); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voip-devices/{deviceMac}/telephone-number/{phoneNumberId} : Delete Telephone Number + * Delete Telephone Number.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param phoneNumberId phone Number ID (required) + * @param deleteTelephoneNumber (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete Telephone Number", nickname = "deleteTelephoneNumber", notes = "Delete Telephone Number.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voip-devices/{deviceMac}/telephone-number/{phoneNumberId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity deleteTelephoneNumber(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac,@ApiParam(value = "phone Number ID",required=true) @PathVariable("phoneNumberId") String phoneNumberId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DeleteTelephoneNumber deleteTelephoneNumber); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voice-mail/all : Delete all voice mail + * Delete all voice mail<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete all voice mail", nickname = "deleteTelephoneNumber1", notes = "Delete all voice mail

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voice-mail/all", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteTelephoneNumber1(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voice-mail/batch-delete : Batch delete voice mail + * Batch delete voice mail<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param voiceMailBatchDelete (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch delete voice mail", nickname = "deleteVoipMail", notes = "Batch delete voice mail

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voice-mail/batch-delete", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.DELETE) + ResponseEntity deleteVoipMail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VoiceMailBatchDelete voiceMailBatchDelete); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/voip/telephone-book/{contactId} : Delete Contact Person + * Delete Contact Person.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param contactId Voip Contact Person ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete Contact Person", nickname = "deleteVoipTelephoneBook", notes = "Delete Contact Person.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/voip/telephone-book/{contactId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteVoipTelephoneBook(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Voip Contact Person ID",required=true) @PathVariable("contactId") String contactId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voip-devices/call-blocking : Get All Call Blocking Profiles + * Get All Call Blocking Profiles.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get All Call Blocking Profiles", nickname = "getAllCallBlockingProfiles", notes = "Get All Call Blocking Profiles.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListSimplifiedCallBlockingProfile.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListSimplifiedCallBlockingProfile.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voip-devices/call-blocking", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAllCallBlockingProfiles(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voip-devices/digit-map : Get All Digit Map Profiles + * Get All Digit Map Profiles.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get All Digit Map Profiles", nickname = "getAllDigitMapProfiles", notes = "Get All Digit Map Profiles.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListSimplifiedDigitMapProfile.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListSimplifiedDigitMapProfile.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voip-devices/digit-map", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAllDigitMapProfiles(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/call-blocking : Get call blocking profile list + * Get call blocking profile list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get call blocking profile list", nickname = "getCallBlockingProfiles", notes = "Get call blocking profile list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListCallBlockingProfileEntity.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListCallBlockingProfileEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/call-blocking", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getCallBlockingProfiles(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/call-forwarding/grid : Get call forwarding rules + * Get call forwarding rules<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get call forwarding rules", nickname = "getCallForwardingRulesGrid", notes = "Get call forwarding rules

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseCallForwardingRulesGrid.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCallForwardingRulesGrid.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/call-forwarding/grid", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getCallForwardingRulesGrid(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/digit-map : Get digit map profile list + * Get digit map profile list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get digit map profile list", nickname = "getDigitMapProfiles", notes = "Get digit map profile list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListDigitMapProfileInfo.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListDigitMapProfileInfo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/digit-map", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getDigitMapProfiles(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/dnd/settings : Get DND settings + * Get DND settings<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get DND settings", nickname = "getDndSettings", notes = "Get DND settings

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseDndSettingEntity.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseDndSettingEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/dnd/settings", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getDndSettings(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/grid/provider-profiles : Get the grid of provider profile list + * Get the grid of provider profile list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get the grid of provider profile list", nickname = "getGridProviderProfileList", notes = "Get the grid of provider profile list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoProviderProfileEntity.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoProviderProfileEntity.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/grid/provider-profiles", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridProviderProfileList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voip-devices/grid/telephone-number : Get Grid of Telephone Number Registration Results + * Get Grid of Telephone Number Registration Results.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Grid of Telephone Number Registration Results", nickname = "getGridTelephoneNumberRegistrationResults", notes = "Get Grid of Telephone Number Registration Results.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoDeviceTelephoneNumber.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoDeviceTelephoneNumber.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voip-devices/grid/telephone-number", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridTelephoneNumberRegistrationResults(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voice-mail/{voiceId}/download : Get voice mail + * Get voice mail<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param voiceId (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get voice mail", nickname = "getSiteDeviceAccountSetting", notes = "Get voice mail

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseObject.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voice-mail/{voiceId}/download", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteDeviceAccountSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("voiceId") String voiceId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voip-devices/{deviceMac}/registration-result : Get Telephone Number Registration Results + * Get Telephone Number Registration Results.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Telephone Number Registration Results", nickname = "getTelephoneNumberRegistrationResults", notes = "Get Telephone Number Registration Results.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseNumberRegistrationResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseNumberRegistrationResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voip-devices/{deviceMac}/registration-result", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getTelephoneNumberRegistrationResults(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voice-mail/settings/usbInfo : Get USB info + * Get USB info<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get USB info", nickname = "getUsbInfo", notes = "Get USB info

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseUsbInfoListResponse.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseUsbInfoListResponse.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voice-mail/settings/usbInfo", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getUsbInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/voip/call-log : Get Voip CallLog Data List + * Get Voip CallLog Data List.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @param sortsDateTime Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect (optional) + * @param filtersStatus Filter query parameters, support field status: 0: incoming, 1: outgoing, 3: transfer, 4: miss,5: rejected (optional) + * @param searchKey Fuzzy query parameters, support field deviceNumber/telephonyDevice (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Voip CallLog Data List", nickname = "getVoipCallLog", notes = "Get Voip CallLog Data List.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseCallLogGridVoVoipCallLog.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseCallLogGridVoVoipCallLog.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/voip/call-log", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoipCallLog(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize,@ApiParam(value = "Sort parameter may be one of asc or desc. Optional parameter. If it is not carried, it means it is not sorted by this field. When there are more than one, the first one takes effect") @Valid @RequestParam(value = "sorts.dateTime", required = false) String sortsDateTime,@ApiParam(value = "Filter query parameters, support field status: 0: incoming, 1: outgoing, 3: transfer, 4: miss,5: rejected") @Valid @RequestParam(value = "filters.status", required = false) String filtersStatus,@ApiParam(value = "Fuzzy query parameters, support field deviceNumber/telephonyDevice") @Valid @RequestParam(value = "searchKey", required = false) String searchKey); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/voip/call-log-enable : Get Voip CallLog Setting + * Get Voip CallLog Setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Voip CallLog Setting", nickname = "getVoipCallLogEnable", notes = "Get Voip CallLog Setting.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseVoipCallLogEnableSetting.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVoipCallLogEnableSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/voip/call-log-enable", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoipCallLogEnable(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voip-devices : Get Voip Device List + * Get Voip Device List.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Voip Device List", nickname = "getVoipDeviceList", notes = "Get Voip Device List.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoVoipDevice.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoVoipDevice.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voip-devices", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoipDeviceList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/voip/emergency-number-settings : Get Voip Emergency Number Info + * Get Voip Emergency Number Info.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Voip Emergency Number Info", nickname = "getVoipEmergency", notes = "Get Voip Emergency Number Info.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseVoipEmergencyNumberSetting.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVoipEmergencyNumberSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/voip/emergency-number-settings", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoipEmergency(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voice-mail/grid : Get voice mail list + * Get voice mail list<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get voice mail list", nickname = "getVoipMailGrid", notes = "Get voice mail list

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoVoiceMail.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoVoiceMail.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voice-mail/grid", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoipMailGrid(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voice-mail/settings : Get voice mail settings + * Get voice mail settings<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get voice mail settings", nickname = "getVoipMailSettings", notes = "Get voice mail settings

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseVoiceMailSettingResponse.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVoiceMailSettingResponse.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voice-mail/settings", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoipMailSettings(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/voip/telephone-book : Get Voip TelephoneBook List + * Get Voip TelephoneBook List.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get Voip TelephoneBook List", nickname = "getVoipTelephoneBook", notes = "Get Voip TelephoneBook List.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoVoipTelephoneBookSetting.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoVoipTelephoneBookSetting.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/voip/telephone-book", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVoipTelephoneBook(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/call-blocking/{profileId} : Modify a call blocking profile + * Modify a call blocking profile.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId Profile ID (required) + * @param modifyCallBlockingProfileEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify a call blocking profile", nickname = "modifyCallBlockingProfile", notes = "Modify a call blocking profile.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/call-blocking/{profileId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyCallBlockingProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Profile ID",required=true) @PathVariable("profileId") String profileId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyCallBlockingProfileEntity modifyCallBlockingProfileEntity); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/call-forwarding : Modify call forwarding rules + * Modify call forwarding rules<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param body (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify call forwarding rules", nickname = "modifyCallForwardingRule", notes = "Modify call forwarding rules

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseVoid.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVoid.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/call-forwarding", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyCallForwardingRule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) Object body); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/digit-map/{profileId} : Modify a digit map profile + * Modify a digit map profile.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId Profile ID. Default digit map profile cannot be modified. (required) + * @param modifyDigitMapProfileEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify a digit map profile", nickname = "modifyDigitMapProfile", notes = "Modify a digit map profile.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/digit-map/{profileId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyDigitMapProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Profile ID. Default digit map profile cannot be modified.",required=true) @PathVariable("profileId") String profileId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyDigitMapProfileEntity modifyDigitMapProfileEntity); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/dnd/settings : Modify DND settings + * Modify DND settings<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param dndSettingEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify DND settings", nickname = "modifyDndSettings", notes = "Modify DND settings

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseVoid.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVoid.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/dnd/settings", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyDndSettings(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) DndSettingEntity dndSettingEntity); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/provider-profiles/{profileId} : Modify a provider profile + * Modify a provider profile.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId Profile ID (required) + * @param modifyProviderProfileEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify a provider profile", nickname = "modifyProviderProfile", notes = "Modify a provider profile.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/provider-profiles/{profileId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyProviderProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Profile ID",required=true) @PathVariable("profileId") String profileId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyProviderProfileEntity modifyProviderProfileEntity); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/voip/call-log-enable : Modify Voip CallLog Setting + * Modify Voip CallLog Setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param voipCallLogEnableSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify Voip CallLog Setting", nickname = "modifyVoipCallLogEnable", notes = "Modify Voip CallLog Setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/voip/call-log-enable", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity modifyVoipCallLogEnable(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VoipCallLogEnableSetting voipCallLogEnableSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voip-devices/osg/{deviceMac} : Modify Voip Device OSG Setting + * Modify Voip Device OSG Setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param modifyVoipDeviceOsgSettingEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify Voip Device OSG Setting", nickname = "modifyVoipDeviceOsgSetting", notes = "Modify Voip Device OSG Setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseModifyConfirmResultOpenApiVo.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseModifyConfirmResultOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voip-devices/osg/{deviceMac}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyVoipDeviceOsgSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyVoipDeviceOsgSettingEntity modifyVoipDeviceOsgSettingEntity); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voip-devices/{deviceMac} : Modify Voip Device AP Setting + * Modify Voip Device AP Setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param deviceMac Device MAC address, like AA-BB-CC-DD-EE-FF (required) + * @param modifyVoipDeviceApSettingEntity (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify Voip Device AP Setting", nickname = "modifyVoipDeviceSetting", notes = "Modify Voip Device AP Setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseModifyConfirmResultOpenApiVo.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseModifyConfirmResultOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voip-devices/{deviceMac}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyVoipDeviceSetting(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Device MAC address, like AA-BB-CC-DD-EE-FF",required=true) @PathVariable("deviceMac") String deviceMac,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ModifyVoipDeviceApSettingEntity modifyVoipDeviceApSettingEntity); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/voip/emergency-number-settings : Modify Voip Emergency Number Setting + * Modify Voip Emergency Number Setting.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param voipEmergencyNumberSetting (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify Voip Emergency Number Setting", nickname = "modifyVoipEmergency", notes = "Modify Voip Emergency Number Setting.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/voip/emergency-number-settings", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyVoipEmergency(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VoipEmergencyNumberSetting voipEmergencyNumberSetting); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/voip/telephone-book/{contactId} : Modify Contact Person + * Modify Contact Person.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35615 - The number of Telephone book has reached the limit.<br/>-35616 - The contact person's number combination already exists. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param contactId Voip Contact Person ID (required) + * @param voipContactPersonSettings (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify Contact Person", nickname = "modifyVoipTelephoneBook", notes = "Modify Contact Person.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35615 - The number of Telephone book has reached the limit.
-35616 - The contact person's number combination already exists.", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/voip/telephone-book/{contactId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyVoipTelephoneBook(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Voip Contact Person ID",required=true) @PathVariable("contactId") String contactId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VoipContactPersonSettings voipContactPersonSettings); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/voip/voice-mail/settings : Edit voice mail settings + * Edit voice mail settings<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param voiceMailSettingRequest (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Edit voice mail settings", nickname = "setVoipMailSettings", notes = "Edit voice mail settings

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VoIP","VoIP", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/voip/voice-mail/settings", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity setVoipMailSettings(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VoiceMailSettingRequest voiceMailSettingRequest); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaVpnApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaVpnApi.java new file mode 100644 index 0000000..6d8944b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaVpnApi.java @@ -0,0 +1,549 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.core.io.Resource; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.ClientToSiteVpnClient; +import org.wfc.omada.api.sitesetting.model.ClientToSiteVpnServer; +import org.wfc.omada.api.sitesetting.model.IPsecFailover; +import org.wfc.omada.api.sitesetting.model.OperationResponseClientToSiteVpnClient; +import org.wfc.omada.api.sitesetting.model.OperationResponseClientToSiteVpnServer; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoVpnUserResponse; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoiPsecFailover; +import org.wfc.omada.api.sitesetting.model.OperationResponseListClientToSiteVpnClient; +import org.wfc.omada.api.sitesetting.model.OperationResponseListClientToSiteVpnServer; +import org.wfc.omada.api.sitesetting.model.OperationResponseListSiteToSiteVpn; +import org.wfc.omada.api.sitesetting.model.OperationResponseListVpnUserResponse; +import org.wfc.omada.api.sitesetting.model.OperationResponseSiteToSiteVpn; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.SiteToSiteVpn; +import org.wfc.omada.api.sitesetting.model.VpnUser; +import org.wfc.omada.api.sitesetting.model.VpnUserRequest; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaVpn", description = "the OmadaVpn API") +@FeignClient(name="OmadaVpnApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaVpnApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/client-to-site-vpn-clients : Create client-to-site VPN client + * Create client-to-site VPN client.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clientToSiteVpnClient (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create client-to-site VPN client", nickname = "createClientToSiteVpnClient", notes = "Create client-to-site VPN client.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/client-to-site-vpn-clients", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createClientToSiteVpnClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClientToSiteVpnClient clientToSiteVpnClient); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/client-to-site-vpn-servers : Create client-to-site VPN server + * Create client-to-site VPN server.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35708 - The device does not support IPSec Source NAT. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param clientToSiteVpnServer (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create client-to-site VPN server", nickname = "createClientToSiteVpnServer", notes = "Create client-to-site VPN server.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35708 - The device does not support IPSec Source NAT.", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/client-to-site-vpn-servers", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createClientToSiteVpnServer(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClientToSiteVpnServer clientToSiteVpnServer); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/ipsec_failovers : Create IPsec failover + * Create IPsec failover.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param ipsecFailover (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create IPsec failover", nickname = "createIpsecFailover", notes = "Create IPsec failover.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ipsec_failovers", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createIpsecFailover(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IPsecFailover ipsecFailover); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/site-to-site-vpns : Create site-to-site VPN + * Create site-to-site VPN.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35708 - The device does not support IPSec Source NAT. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param siteToSiteVpn (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create site-to-site VPN", nickname = "createSiteToSiteVpn", notes = "Create site-to-site VPN.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35708 - The device does not support IPSec Source NAT.", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/site-to-site-vpns", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createSiteToSiteVpn(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteToSiteVpn siteToSiteVpn); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/users : Create VPN user + * Create VPN user. This interface has been deprecated. Please use the following interface instead: Create VPN user V2<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnUser (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Create VPN user", nickname = "createVpnUser", notes = "Create VPN user. This interface has been deprecated. Please use the following interface instead: Create VPN user V2

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/users", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createVpnUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VpnUser vpnUser); + + + /** + * POST /openapi/v2/{omadacId}/sites/{siteId}/vpn/users : Create VPN user V2 + * Create VPN user.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35702 - VPN user configuration requires VPN server configuration. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnUserRequest (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create VPN user V2", nickname = "createVpnUserV2", notes = "Create VPN user.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35702 - VPN user configuration requires VPN server configuration.", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/vpn/users", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createVpnUserV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VpnUserRequest vpnUserRequest); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/client-to-site-vpn-clients/{vpnId} : Delete client-to-site VPN client + * Delete client-to-site VPN client.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34682 - This VPN entry has been used by Static Route, and thus it cannot be deleted.<br/>-34683 - This VPN entry has been used by Policy Routing, and thus it cannot be deleted.<br/>-34684 - This VPN entry has been used by Static Route and Policy Routing, and thus it cannot be deleted.<br/>-35706 - This VPN entry has been used by Gateway ACL, and thus it cannot be deleted. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnId VPN ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete client-to-site VPN client", nickname = "deleteClientToSiteVpnClient", notes = "Delete client-to-site VPN client.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34682 - This VPN entry has been used by Static Route, and thus it cannot be deleted.
-34683 - This VPN entry has been used by Policy Routing, and thus it cannot be deleted.
-34684 - This VPN entry has been used by Static Route and Policy Routing, and thus it cannot be deleted.
-35706 - This VPN entry has been used by Gateway ACL, and thus it cannot be deleted.", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/client-to-site-vpn-clients/{vpnId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteClientToSiteVpnClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN ID",required=true) @PathVariable("vpnId") String vpnId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/client-to-site-vpn-servers/{vpnId} : Delete client-to-site VPN server + * Delete client-to-site VPN server.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnId VPN ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete client-to-site VPN server", nickname = "deleteClientToSiteVpnServer", notes = "Delete client-to-site VPN server.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/client-to-site-vpn-servers/{vpnId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteClientToSiteVpnServer(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN ID",required=true) @PathVariable("vpnId") String vpnId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/ipsec_failovers/{failoverId} : Delete IPsec failover + * Delete IPsec failover.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param failoverId IPSec failover ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete IPsec failover", nickname = "deleteIpsecFailover", notes = "Delete IPsec failover.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ipsec_failovers/{failoverId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteIpsecFailover(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "IPSec failover ID",required=true) @PathVariable("failoverId") String failoverId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/site-to-site-vpns/{vpnId} : Delete site-to-site VPN + * Delete site-to-site VPN.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnId VPN ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete site-to-site VPN", nickname = "deleteSiteToSiteVpn", notes = "Delete site-to-site VPN.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/site-to-site-vpns/{vpnId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteSiteToSiteVpn(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN ID",required=true) @PathVariable("vpnId") String vpnId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/users/{userId} : Delete VPN user + * Delete VPN user.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param userId VPN user ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete VPN user", nickname = "deleteVpnUser", notes = "Delete VPN user.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/users/{userId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteVpnUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN user ID",required=true) @PathVariable("userId") String userId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/client-to-site-vpn-clients : Get client-to-site VPN client list + * Get client-to-site VPN client list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get client-to-site VPN client list", nickname = "getClientToSiteVpnClientList", notes = "Get client-to-site VPN client list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListClientToSiteVpnClient.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListClientToSiteVpnClient.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/client-to-site-vpn-clients", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getClientToSiteVpnClientList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/client-to-site-vpn-servers/{vpnId} : Get client-to-site VPN server info + * Get client-to-site VPN server info.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnId VPN ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get client-to-site VPN server info", nickname = "getClientToSiteVpnServerInfo", notes = "Get client-to-site VPN server info.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseClientToSiteVpnServer.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseClientToSiteVpnServer.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/client-to-site-vpn-servers/{vpnId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getClientToSiteVpnServerInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN ID",required=true) @PathVariable("vpnId") String vpnId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/client-to-site-vpn-servers : Get client-to-site VPN server list + * Get client-to-site VPN server list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get client-to-site VPN server list", nickname = "getClientToSiteVpnServerList", notes = "Get client-to-site VPN server list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListClientToSiteVpnServer.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListClientToSiteVpnServer.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/client-to-site-vpn-servers", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getClientToSiteVpnServerList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/client-to-site-vpn-servers/{vpnId}/users : Get user list for client-to-site VPN server + * Get user list for client-to-site VPN server.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnId VPN ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get user list for client-to-site VPN server", nickname = "getClientToSiteVpnServerUserList", notes = "Get user list for client-to-site VPN server.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListVpnUserResponse.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListVpnUserResponse.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/client-to-site-vpn-servers/{vpnId}/users", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getClientToSiteVpnServerUserList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN ID",required=true) @PathVariable("vpnId") String vpnId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/ipsec_failovers : Get IPsec failover list + * Get IPsec failover list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get IPsec failover list", nickname = "getGridIpsecFailover", notes = "Get IPsec failover list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoiPsecFailover.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoiPsecFailover.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ipsec_failovers", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridIpsecFailover(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/users : Get VPN user list + * Get VPN user list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get VPN user list", nickname = "getGridVpnUser", notes = "Get VPN user list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoVpnUserResponse.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoVpnUserResponse.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/users", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridVpnUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/site-to-site-vpns/{vpnId} : Get site-to-site VPN info + * Get site-to-site VPN info.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnId VPN ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site-to-site VPN info", nickname = "getSiteToSiteVpnInfo", notes = "Get site-to-site VPN info.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseSiteToSiteVpn.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSiteToSiteVpn.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/site-to-site-vpns/{vpnId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteToSiteVpnInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN ID",required=true) @PathVariable("vpnId") String vpnId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/site-to-site-vpns : Get site-to-site VPN list + * Get site-to-site VPN list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get site-to-site VPN list", nickname = "getSiteToSiteVpnList", notes = "Get site-to-site VPN list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseListSiteToSiteVpn.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListSiteToSiteVpn.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/site-to-site-vpns", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSiteToSiteVpnList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/client-to-site-vpn-clients/{vpnId} : Get client-to-site VPN client info + * Get client-to-site VPN client info.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnId VPN ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get client-to-site VPN client info", nickname = "getVpnClientToSiteClientInfo", notes = "Get client-to-site VPN client info.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseClientToSiteVpnClient.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseClientToSiteVpnClient.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/client-to-site-vpn-clients/{vpnId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getVpnClientToSiteClientInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN ID",required=true) @PathVariable("vpnId") String vpnId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/vpn/client-to-site-vpn-clients/{vpnId} : Modify client-to-site VPN client + * Modify client-to-site VPN client.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-34679 - This VPN entry has been used by Static Route, and thus the VPN type cannot be changed.<br/>-34680 - This VPN entry has been used by Policy Routing, and thus the VPN type cannot be changed.<br/>-34681 - This VPN entry has been used by Static Route and Policy Routing, and thus the VPN type cannot be changed.<br/>-35705 - This VPN entry has been used by Gateway ACL, and thus the VPN type cannot be changed. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnId VPN ID (required) + * @param clientToSiteVpnClient (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify client-to-site VPN client", nickname = "modifyClientToSiteVpnClient", notes = "Modify client-to-site VPN client.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-34679 - This VPN entry has been used by Static Route, and thus the VPN type cannot be changed.
-34680 - This VPN entry has been used by Policy Routing, and thus the VPN type cannot be changed.
-34681 - This VPN entry has been used by Static Route and Policy Routing, and thus the VPN type cannot be changed.
-35705 - This VPN entry has been used by Gateway ACL, and thus the VPN type cannot be changed.", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/client-to-site-vpn-clients/{vpnId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyClientToSiteVpnClient(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN ID",required=true) @PathVariable("vpnId") String vpnId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClientToSiteVpnClient clientToSiteVpnClient); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/vpn/client-to-site-vpn-servers/{vpnId} : Modify client-to-site VPN server + * Modify client-to-site VPN server.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35708 - The device does not support IPSec Source NAT. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnId VPN ID (required) + * @param clientToSiteVpnServer (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify client-to-site VPN server", nickname = "modifyClientToSiteVpnServer", notes = "Modify client-to-site VPN server.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35708 - The device does not support IPSec Source NAT.", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/client-to-site-vpn-servers/{vpnId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyClientToSiteVpnServer(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN ID",required=true) @PathVariable("vpnId") String vpnId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) ClientToSiteVpnServer clientToSiteVpnServer); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/vpn/ipsec_failovers/{failoverId} : Modify IPsec failover + * Modify IPsec failover.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param failoverId IPSec failover ID (required) + * @param ipsecFailover (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify IPsec failover", nickname = "modifyIpsecFailover", notes = "Modify IPsec failover.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/ipsec_failovers/{failoverId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyIpsecFailover(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "IPSec failover ID",required=true) @PathVariable("failoverId") String failoverId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) IPsecFailover ipsecFailover); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/vpn/site-to-site-vpns/{vpnId} : Modify site-to-site VPN + * Modify site-to-site VPN.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35708 - The device does not support IPSec Source NAT. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param vpnId VPN ID (required) + * @param siteToSiteVpn (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify site-to-site VPN", nickname = "modifySiteToSiteVpn", notes = "Modify site-to-site VPN.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35708 - The device does not support IPSec Source NAT.", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/site-to-site-vpns/{vpnId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifySiteToSiteVpn(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN ID",required=true) @PathVariable("vpnId") String vpnId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) SiteToSiteVpn siteToSiteVpn); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/vpn/users/{userId} : Modify VPN user + * Modify VPN user. This interface has been deprecated. Please use the following interface instead: Modify VPN user V2<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param userId VPN user ID (required) + * @param vpnUser (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Modify VPN user", nickname = "modifyVpnUser", notes = "Modify VPN user. This interface has been deprecated. Please use the following interface instead: Modify VPN user V2

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/users/{userId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyVpnUser(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN user ID",required=true) @PathVariable("userId") String userId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VpnUser vpnUser); + + + /** + * PATCH /openapi/v2/{omadacId}/sites/{siteId}/vpn/users/{userId} : Modify VPN user V2 + * Modify VPN user.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-35702 - VPN user configuration requires VPN server configuration. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param userId VPN user ID (required) + * @param vpnUserRequest (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify VPN user V2", nickname = "modifyVpnUserV2", notes = "Modify VPN user.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-35702 - VPN user configuration requires VPN server configuration.", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/vpn/users/{userId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyVpnUserV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "VPN user ID",required=true) @PathVariable("userId") String userId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VpnUserRequest vpnUserRequest); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/certificate : Upload VPN certificate file + * Upload VPN certificate file.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param file (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Upload VPN certificate file", nickname = "uploadVpnCertificateFile", notes = "Upload VPN certificate file.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/VPN","VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/certificate", + produces = "*/*", + method = RequestMethod.POST) + ResponseEntity uploadVpnCertificateFile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "", required = true) @Valid @RequestParam(value = "file", required = true) Resource file); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWiredNetworkApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWiredNetworkApi.java new file mode 100644 index 0000000..4ed47d9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWiredNetworkApi.java @@ -0,0 +1,752 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.CheckWanLanStatusOpenApiVo; +import org.wfc.omada.api.sitesetting.model.CreateVlaNs; +import org.wfc.omada.api.sitesetting.model.GridVoLanNetworkVlansOpenApiVo; +import org.wfc.omada.api.sitesetting.model.GridVoOswProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.InternetBaseConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.LanNetworkOpenApiV2Vo; +import org.wfc.omada.api.sitesetting.model.LanNetworkOpenApiVo; +import org.wfc.omada.api.sitesetting.model.LanProfileConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.LteWanPortSettingConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoLanProfileOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoUseProfileOswOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseInternetBaseInfoOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo; +import org.wfc.omada.api.sitesetting.model.OperationResponseLocationAndIspInfoOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseLteWanSettingOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResponseDataVoLanNetworkQueryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseSupportOsgModelOpenApiAppVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseVirtualWanAvailablesOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWanLoadBalanceOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWanSettingOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.OsgModelOpenApiVo; +import org.wfc.omada.api.sitesetting.model.QueryUseNativeNetworkOswOpenApiVo; +import org.wfc.omada.api.sitesetting.model.QueryUseNativeNetworkOswV2OpenApiVo; +import org.wfc.omada.api.sitesetting.model.ResponseIdVo; +import org.wfc.omada.api.sitesetting.model.VirtualWanConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.VirtualWanStatusOpenApiVo; +import org.wfc.omada.api.sitesetting.model.WanLoadBalanceOpenApiVo; +import org.wfc.omada.api.sitesetting.model.WanSettingConfigOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaWiredNetwork", description = "the OmadaWiredNetwork API") +@FeignClient(name="OmadaWiredNetworkApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaWiredNetworkApi { + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/wan-lan-status : Check WAN-LAN status + * Get gateway basic info and WAN/LAN list. Use this API to operate \"LanNetwork\".<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Check WAN-LAN status", nickname = "checkWanLanStatus", notes = "Get gateway basic info and WAN/LAN list. Use this API to operate \"LanNetwork\".

The interface requires one of the permissions:
Site Settings Manager View Only", response = CheckWanLanStatusOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = CheckWanLanStatusOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wan-lan-status", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity checkWanLanStatus(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/lan-networks : Create LAN network + * Create lan networkThis interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33500 - Network name already existed.<br/>-33501 - This VLAN already exists in one site.<br/>-33506 - This Profile name already exists.<br/>-33544 - The number of interfaces has reached the limit.<br/>-33546 - The number of networks has reached the limit of 4090.<br/>-33547 - The number of VLANs has reached the limit of gateway.<br/>-33548 - The number of VLANs has reached the limit of switch. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param lanNetworkOpenApiVo (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Create LAN network", nickname = "createLanNetwork", notes = "Create lan networkThis interface has been deprecated.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33500 - Network name already existed.
-33501 - This VLAN already exists in one site.
-33506 - This Profile name already exists.
-33544 - The number of interfaces has reached the limit.
-33546 - The number of networks has reached the limit of 4090.
-33547 - The number of VLANs has reached the limit of gateway.
-33548 - The number of VLANs has reached the limit of switch.", response = ResponseIdVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = ResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-networks", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createLanNetwork(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LanNetworkOpenApiVo lanNetworkOpenApiVo); + + + /** + * POST /openapi/v2/{omadacId}/sites/{siteId}/lan-networks : Create LAN network + * Create lan network<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33500 - Network name already existed.<br/>-33501 - This VLAN already exists in one site.<br/>-33506 - This Profile name already exists.<br/>-33544 - The number of interfaces has reached the limit.<br/>-33546 - The number of networks has reached the limit of 4090.<br/>-33547 - The number of VLANs has reached the limit of gateway.<br/>-33548 - The number of VLANs has reached the limit of switch. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param lanNetworkOpenApiV2Vo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create LAN network", nickname = "createLanNetworkV2", notes = "Create lan network

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33500 - Network name already existed.
-33501 - This VLAN already exists in one site.
-33506 - This Profile name already exists.
-33544 - The number of interfaces has reached the limit.
-33546 - The number of networks has reached the limit of 4090.
-33547 - The number of VLANs has reached the limit of gateway.
-33548 - The number of VLANs has reached the limit of switch.", response = ResponseIdVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = ResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/lan-networks", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createLanNetworkV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LanNetworkOpenApiV2Vo lanNetworkOpenApiV2Vo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/lan-profiles : Create new LAN profile + * Create new LAN profile.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>0 - Success.<br/>-1001 - Invalid request parameters.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param lanProfileConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new LAN profile", nickname = "createLanProfile", notes = "Create new LAN profile.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
0 - Success.
-1001 - Invalid request parameters.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.", response = ResponseIdVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = ResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-profiles", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createLanProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LanProfileConfigOpenApiVo lanProfileConfigOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/setting/virtual-wans : Create virtual WAN + * Create virtual WAN.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44701 - Duplicate VLAN IDs of the virtual WAN.<br/>-44702 - Duplicate names of the virtual WAN.<br/>-44703 - When no gateway is adopted, at most 3 virtual WAN ports can be added.<br/>-44704 - The number of enabled WAN ports and virtual WAN ports cannot exceed the number of WAN ports plus 3.<br/>-44705 - At most 3 virtual WAN ports can be mapped to each WAN port.<br/>-44706 - DSL setting cannot be null when DSL WAN is selected. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param virtualWanConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create virtual WAN", nickname = "createVirtualWan", notes = "Create virtual WAN.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44701 - Duplicate VLAN IDs of the virtual WAN.
-44702 - Duplicate names of the virtual WAN.
-44703 - When no gateway is adopted, at most 3 virtual WAN ports can be added.
-44704 - The number of enabled WAN ports and virtual WAN ports cannot exceed the number of WAN ports plus 3.
-44705 - At most 3 virtual WAN ports can be mapped to each WAN port.
-44706 - DSL setting cannot be null when DSL WAN is selected.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/virtual-wans", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createVirtualWan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VirtualWanConfigOpenApiVo virtualWanConfigOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/lan-vlans : Batch create vlans + * Batch create vlans. Format support: 200, 1-100.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33500 - Network name already existed.<br/>-33501 - This VLAN already exists in one site.<br/>-33506 - This Profile name already exists.<br/>-33547 - The number of VLANs has reached the limit of gateway.<br/>-33548 - The number of VLANs has reached the limit of switch. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createVlaNs (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Batch create vlans", nickname = "createVlans", notes = "Batch create vlans. Format support: 200, 1-100.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33500 - Network name already existed.
-33501 - This VLAN already exists in one site.
-33506 - This Profile name already exists.
-33547 - The number of VLANs has reached the limit of gateway.
-33548 - The number of VLANs has reached the limit of switch.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-vlans", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createVlans(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateVlaNs createVlaNs); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/{networkId} : Delete LAN network + * Delete LAN network. If returns -33566, use \"Query switches that used the Native Network's profile\" to query these switches.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33503 - This network does not exist.<br/>-33505 - Default LAN cannot be deleted.<br/>-33566 - The network has been configured as the switch's native network. Cannot delete the network.<br/>-35200 - The LAN network referenced by the IDS/IPS-Allow List cannot be deleted. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param networkId Network ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete LAN network", nickname = "deleteLanNetwork", notes = "Delete LAN network. If returns -33566, use \"Query switches that used the Native Network's profile\" to query these switches.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33503 - This network does not exist.
-33505 - Default LAN cannot be deleted.
-33566 - The network has been configured as the switch's native network. Cannot delete the network.
-35200 - The LAN network referenced by the IDS/IPS-Allow List cannot be deleted.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-networks/{networkId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteLanNetwork(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Network ID",required=true) @PathVariable("networkId") String networkId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/lan-profiles/{profileId} : Delete an existing LAN profile + * Delete an existing LAN profile. If returns -33560, use \"Query easy managed switch that used the profile\" to query these easy managed switches.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>0 - Success.<br/>-1001 - Invalid request parameters.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-33507 - This profile does not exist.<br/>-33560 - The Easy Managed Switch has been configured with this profile. Cannot delete the profile or turn off the option \"Easy Managed Switch Enabled\". + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId LAN profile ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing LAN profile", nickname = "deleteLanProfile", notes = "Delete an existing LAN profile. If returns -33560, use \"Query easy managed switch that used the profile\" to query these easy managed switches.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
0 - Success.
-1001 - Invalid request parameters.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-33507 - This profile does not exist.
-33560 - The Easy Managed Switch has been configured with this profile. Cannot delete the profile or turn off the option \"Easy Managed Switch Enabled\".", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-profiles/{profileId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteLanProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "LAN profile ID",required=true) @PathVariable("profileId") String profileId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/setting/virtual-wans/{virtualWanId} : Delete virtual WAN + * Delete virtual WAN status.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param virtualWanId Virtual WAN ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete virtual WAN", nickname = "deleteVirtualWan", notes = "Delete virtual WAN status.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/virtual-wans/{virtualWanId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteVirtualWan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Virtual WAN ID",required=true) @PathVariable("virtualWanId") String virtualWanId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/switch-oui-rules/valid-vlans : Get valid vlanList for switch oui based vlan + * Get valid vlanList for switch oui based vlan<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get valid vlanList for switch oui based vlan", nickname = "getAllValidVlansInSiteForSwitchOuiBasedVlan", notes = "Get valid vlanList for switch oui based vlan

The interface requires one of the permissions:
Site Settings Manager View Only", response = GridVoLanNetworkVlansOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = GridVoLanNetworkVlansOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/switch-oui-rules/valid-vlans", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAllValidVlansInSiteForSwitchOuiBasedVlan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/available-virtual-wans : Query available virtual WAN list + * Query available virtual WAN list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Query available virtual WAN list", nickname = "getAvailableVirtualWan", notes = "Query available virtual WAN list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseVirtualWanAvailablesOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVirtualWanAvailablesOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/available-virtual-wans", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getAvailableVirtualWan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/setting/virtual-wans : Query virtual WAN list + * Query virtual WAN list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Query virtual WAN list", nickname = "getGridVirtualWan", notes = "Query virtual WAN list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/virtual-wans", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getGridVirtualWan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/interface : Get all \"single\"/\"multi\" interface lan network + * Get all \"single\"/\"multi\" interface lan networkThis interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param type Interface vlan type. When \"type\" is 0, return \"single\" interface lan network, else return \"single\"/\"multi\" interface lan network (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Get all \"single\"/\"multi\" interface lan network", nickname = "getInterfaceLanNetwork", notes = "Get all \"single\"/\"multi\" interface lan networkThis interface has been deprecated.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseResponseDataVoLanNetworkQueryOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseDataVoLanNetworkQueryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-networks/interface", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getInterfaceLanNetwork(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Interface vlan type. When \"type\" is 0, return \"single\" interface lan network, else return \"single\"/\"multi\" interface lan network") @Valid @RequestParam(value = "type", required = false) Integer type); + + + /** + * GET /openapi/v2/{omadacId}/sites/{siteId}/lan-networks/interface : Get all \"single\"/\"multi\" interface lan network + * Get all \"single\"/\"multi\" interface lan network<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param type Interface vlan type. When \"type\" is 0, return \"single\" interface lan network, else return \"single\"/\"multi\" interface lan network (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get all \"single\"/\"multi\" interface lan network", nickname = "getInterfaceLanNetworkV2", notes = "Get all \"single\"/\"multi\" interface lan network

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/lan-networks/interface", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getInterfaceLanNetworkV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Interface vlan type. When \"type\" is 0, return \"single\" interface lan network, else return \"single\"/\"multi\" interface lan network") @Valid @RequestParam(value = "type", required = false) Integer type); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/internet/basic-info : Get internet basic info + * Get internet basic info. All port and port-related configuration will take effect only the The parameter [preConfiguration] is true.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get internet basic info", nickname = "getInternetBasicPortInfo", notes = "Get internet basic info. All port and port-related configuration will take effect only the The parameter [preConfiguration] is true.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseInternetBaseInfoOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseInternetBaseInfoOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/internet/basic-info", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getInternetBasicPortInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/internet/load-balance : Get internet load balance config + * Get internet load balance config.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get internet load balance config", nickname = "getInternetLoadBalance", notes = "Get internet load balance config.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseWanLoadBalanceOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWanLoadBalanceOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/internet/load-balance", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getInternetLoadBalance(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/lan-networks : Get LAN network list + * Get LAN network list.(Pagination). This interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Get LAN network list", nickname = "getLanNetworkList", notes = "Get LAN network list.(Pagination). This interface has been deprecated.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-networks", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLanNetworkList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v2/{omadacId}/sites/{siteId}/lan-networks : Get LAN network list + * Get LAN network list.(Pagination)<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get LAN network list", nickname = "getLanNetworkListV2", notes = "Get LAN network list.(Pagination)

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/lan-networks", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLanNetworkListV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/lan-profiles : Get LAN profile list + * Get LAN profile list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get LAN profile list", nickname = "getLanProfileList", notes = "Get LAN profile list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoLanProfileOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoLanProfileOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-profiles", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLanProfileList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/internet/location-isp : Get location and ISP info + * Get index and name of location and ISP in usb wan port configuration.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get location and ISP info", nickname = "getLocationAndIspInfo", notes = "Get index and name of location and ISP in usb wan port configuration.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseLocationAndIspInfoOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLocationAndIspInfoOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/internet/location-isp", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLocationAndIspInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/internet/lte/ports-config : Get internet lte wan ports config + * Get internet lte wan ports config.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get internet lte wan ports config", nickname = "getLteWanPortsConfig", notes = "Get internet lte wan ports config.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseLteWanSettingOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseLteWanSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/internet/lte/ports-config", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getLteWanPortsConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/lan-switch-setting : Get switch port profile info + * Get switch port profile info.(Pagination)<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get switch port profile info", nickname = "getOswPortLanNetInfo", notes = "Get switch port profile info.(Pagination)

The interface requires one of the permissions:
Site Settings Manager View Only", response = GridVoOswProfileOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = GridVoOswProfileOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-switch-setting", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getOswPortLanNetInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/internet/models : Get supported gateway model list for pre-configuration + * Get ID and name of supported gateway models for pre-configuration.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get supported gateway model list for pre-configuration", nickname = "getSupportInfo", notes = "Get ID and name of supported gateway models for pre-configuration.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseSupportOsgModelOpenApiAppVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSupportOsgModelOpenApiAppVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/internet/models", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSupportInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/lan-profiles/{profileId}/es : Query easy managed switches that used the profile + * Query easy managed switches that used the profile.(Pagination)<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33507 - This profile does not exist.<br/>-33558 - The profile does not support the Easy Managed Switch. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Query easy managed switches that used the profile", nickname = "getUseLanProfileES", notes = "Query easy managed switches that used the profile.(Pagination)

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33507 - This profile does not exist.
-33558 - The profile does not support the Easy Managed Switch.", response = OperationResponseGridVoUseProfileOswOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoUseProfileOswOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-profiles/{profileId}/es", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getUseLanProfileES(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "",required=true) @PathVariable("profileId") String profileId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/es : Query switches that used the Native Network's profile + * Query switches that used the Native Network's profile.(Pagination)<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33503 - This network does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param queryUseNativeNetworkOswOpenApiVo (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Query switches that used the Native Network's profile", nickname = "getUseNativeNetworkOsw", notes = "Query switches that used the Native Network's profile.(Pagination)

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33503 - This network does not exist.", response = OperationResponseGridVoUseProfileOswOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoUseProfileOswOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-networks/es", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity getUseNativeNetworkOsw(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) QueryUseNativeNetworkOswOpenApiVo queryUseNativeNetworkOswOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/es-native : Query switches that used the Native Network's profile + * Query switches that used the Native Network's profile.(Pagination)<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33503 - This network does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param queryUseNativeNetworkOswV2OpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Query switches that used the Native Network's profile", nickname = "getUseNativeNetworkOswV2", notes = "Query switches that used the Native Network's profile.(Pagination)

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33503 - This network does not exist.", response = OperationResponseGridVoUseProfileOswOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoUseProfileOswOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-networks/es-native", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity getUseNativeNetworkOswV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) QueryUseNativeNetworkOswV2OpenApiVo queryUseNativeNetworkOswV2OpenApiVo); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/internet/ports-config : Get internet ports config + * Get internet ports config.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get internet ports config", nickname = "getWanPortsConfig", notes = "Get internet ports config.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseWanSettingOpenApiVo.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWanSettingOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/internet/ports-config", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWanPortsConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/internet/change-model : Modify gateway mode for pre-configuration + * Only effective when there is no adopted gateway. The port-related configuration(like ACL) will lost after changing the model, so it is recommended to call this method before all gateway pre-configuration.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param osgModelOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify gateway mode for pre-configuration", nickname = "modifyGatewayModel", notes = "Only effective when there is no adopted gateway. The port-related configuration(like ACL) will lost after changing the model, so it is recommended to call this method before all gateway pre-configuration.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/internet/change-model", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity modifyGatewayModel(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) OsgModelOpenApiVo osgModelOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/internet/basic-info : Modify the internet basic configuration + * Modify the internet basic configuration.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33400 - Current site has no Wan.<br/>-33531 - This WAN port has been used by other networks. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param internetBaseConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify the internet basic configuration", nickname = "modifyInternetBasicPortInfo", notes = "Modify the internet basic configuration.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33400 - Current site has no Wan.
-33531 - This WAN port has been used by other networks.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/internet/basic-info", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyInternetBasicPortInfo(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) InternetBaseConfigOpenApiVo internetBaseConfigOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/internet/load-balance : Modify internet load balance config + * Modify internet load balance config.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wanLoadBalanceOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify internet load balance config", nickname = "modifyInternetLoadBalance", notes = "Modify internet load balance config.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/internet/load-balance", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyInternetLoadBalance(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) WanLoadBalanceOpenApiVo wanLoadBalanceOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/lan-networks/{networkId} : Modify LAN network + * Modify LAN networkThis interface has been deprecated.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33500 - Network name already existed.<br/>-33501 - This VLAN already exists in one site.<br/>-33503 - This network does not exist.<br/>-33506 - This Profile name already exists.<br/>-33527 - The interface of Default LAN cannot be modified.<br/>-33544 - The number of interfaces has reached the limit.<br/>-33545 - The VLAN Type of Default LAN cannot be modified.<br/>-34235 - The VLAN cannot be set to 1 since it is used in OUI Based VLAN rules which do not allow VLAN 1. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param networkId Network ID (required) + * @param lanNetworkOpenApiVo (optional) + * @return OK (status code 200) + * @deprecated + */ + @ApiOperation(value = "Modify LAN network", nickname = "modifyLanNetwork", notes = "Modify LAN networkThis interface has been deprecated.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33500 - Network name already existed.
-33501 - This VLAN already exists in one site.
-33503 - This network does not exist.
-33506 - This Profile name already exists.
-33527 - The interface of Default LAN cannot be modified.
-33544 - The number of interfaces has reached the limit.
-33545 - The VLAN Type of Default LAN cannot be modified.
-34235 - The VLAN cannot be set to 1 since it is used in OUI Based VLAN rules which do not allow VLAN 1.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-networks/{networkId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyLanNetwork(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Network ID",required=true) @PathVariable("networkId") String networkId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LanNetworkOpenApiVo lanNetworkOpenApiVo); + + + /** + * PATCH /openapi/v2/{omadacId}/sites/{siteId}/lan-networks/{networkId} : Modify LAN network + * Modify LAN network<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33500 - Network name already existed.<br/>-33501 - This VLAN already exists in one site.<br/>-33503 - This network does not exist.<br/>-33506 - This Profile name already exists.<br/>-33527 - The interface of Default LAN cannot be modified.<br/>-33544 - The number of interfaces has reached the limit.<br/>-33545 - The VLAN Type of Default LAN cannot be modified.<br/>-34235 - The VLAN cannot be set to 1 since it is used in OUI Based VLAN rules which do not allow VLAN 1. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param networkId Network ID (required) + * @param lanNetworkOpenApiV2Vo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify LAN network", nickname = "modifyLanNetworkV2", notes = "Modify LAN network

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33500 - Network name already existed.
-33501 - This VLAN already exists in one site.
-33503 - This network does not exist.
-33506 - This Profile name already exists.
-33527 - The interface of Default LAN cannot be modified.
-33544 - The number of interfaces has reached the limit.
-33545 - The VLAN Type of Default LAN cannot be modified.
-34235 - The VLAN cannot be set to 1 since it is used in OUI Based VLAN rules which do not allow VLAN 1.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v2/{omadacId}/sites/{siteId}/lan-networks/{networkId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyLanNetworkV2(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Network ID",required=true) @PathVariable("networkId") String networkId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LanNetworkOpenApiV2Vo lanNetworkOpenApiV2Vo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/lan-profiles/{profileId} : Modify a LAN profile + * Modify a LAN profile.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>0 - Success.<br/>-1001 - Invalid request parameters.<br/>-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.<br/>-33507 - This profile does not exist.<br/>-33560 - The Easy Managed Switch has been configured with this profile. Cannot delete the profile or turn off the option \"Easy Managed Switch Enabled\".<br/>-33564 - The number of VLANs has reached the limit of the Easy Managed Switch. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param profileId lanProfileId (required) + * @param lanProfileConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify a LAN profile", nickname = "modifyLanProfile", notes = "Modify a LAN profile.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
0 - Success.
-1001 - Invalid request parameters.
-33004 - Operation failed because other operations are being performed on this site. Please wait and try again later.
-33507 - This profile does not exist.
-33560 - The Easy Managed Switch has been configured with this profile. Cannot delete the profile or turn off the option \"Easy Managed Switch Enabled\".
-33564 - The number of VLANs has reached the limit of the Easy Managed Switch.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/lan-profiles/{profileId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyLanProfile(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "lanProfileId",required=true) @PathVariable("profileId") String profileId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LanProfileConfigOpenApiVo lanProfileConfigOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/internet/lte/ports-config : Modify internet lte port config + * Modify internet port lte config. Make sure the parameter[preConfiguration] is true, so the port configuration can take effect after you adopt a gateway.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33400 - Current site has no Wan.<br/>-33507 - This profile does not exist.<br/>-33553 - The LTE WAN port is configured with IPv6 network. Please re-select the APN Profile of IPv6 mode. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param lteWanPortSettingConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify internet lte port config", nickname = "modifyLteWanPortConfig", notes = "Modify internet port lte config. Make sure the parameter[preConfiguration] is true, so the port configuration can take effect after you adopt a gateway.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33400 - Current site has no Wan.
-33507 - This profile does not exist.
-33553 - The LTE WAN port is configured with IPv6 network. Please re-select the APN Profile of IPv6 mode.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/internet/lte/ports-config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyLteWanPortConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) LteWanPortSettingConfigOpenApiVo lteWanPortSettingConfigOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/virtual-wans/{virtualWanId} : Modify virtual WAN + * Modify virtual WAN.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44700 - This virtual WAN does not exist.<br/>-44701 - Duplicate VLAN IDs of the virtual WAN.<br/>-44702 - Duplicate names of the virtual WAN.<br/>-44703 - When no gateway is adopted, at most 3 virtual WAN ports can be added.<br/>-44704 - The number of enabled WAN ports and virtual WAN ports cannot exceed the number of WAN ports plus 3.<br/>-44705 - At most 3 virtual WAN ports can be mapped to each WAN port.<br/>-44706 - DSL setting cannot be null when DSL WAN is selected. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param virtualWanId Virtual WAN ID (required) + * @param virtualWanConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify virtual WAN", nickname = "modifyVirtualWan", notes = "Modify virtual WAN.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44700 - This virtual WAN does not exist.
-44701 - Duplicate VLAN IDs of the virtual WAN.
-44702 - Duplicate names of the virtual WAN.
-44703 - When no gateway is adopted, at most 3 virtual WAN ports can be added.
-44704 - The number of enabled WAN ports and virtual WAN ports cannot exceed the number of WAN ports plus 3.
-44705 - At most 3 virtual WAN ports can be mapped to each WAN port.
-44706 - DSL setting cannot be null when DSL WAN is selected.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/virtual-wans/{virtualWanId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyVirtualWan(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Virtual WAN ID",required=true) @PathVariable("virtualWanId") String virtualWanId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VirtualWanConfigOpenApiVo virtualWanConfigOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/setting/virtual-wans/{virtualWanId}/status : Modify virtual WAN status + * Modify virtual WAN status.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44700 - This virtual WAN does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param virtualWanId Virtual WAN ID (required) + * @param virtualWanStatusOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify virtual WAN status", nickname = "modifyVirtualWanStatus", notes = "Modify virtual WAN status.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44700 - This virtual WAN does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/setting/virtual-wans/{virtualWanId}/status", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity modifyVirtualWanStatus(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Virtual WAN ID",required=true) @PathVariable("virtualWanId") String virtualWanId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) VirtualWanStatusOpenApiVo virtualWanStatusOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/internet/ports-config : Modify internet ports config + * Modify internet ports config. Make sure the parameter[preConfiguration] is true and all wan ports config is include, so the port configuration can take effect after you adopt a gateway.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33400 - Current site has no Wan.<br/>-33413 - The IP range you set for the WAN port conflicts with the IP range of LAN networks.<br/>-33414 - The MAC address is not available because it has been used for another port.<br/>-33416 - The IP range you set for the WAN port conflicts with the IP range of the other WAN port.<br/>-33426 - The Secondary DNS cannot be the same as the Primary DNS. Please enter another IP address.<br/>-33427 - The IP you set for DNS Server conflicts with the IP range of the LAN network.<br/>-33429 - There are duplicate IPs in the WAN alias IPs and static IPs.<br/>-33431 - VLAN ID ranges from 1 to 4086.<br/>-33501 - This VLAN already exists in one site.<br/>-33531 - This WAN port has been used by other networks.<br/>-34212 - The WAN port is used for one-to-one NAT and can only use the Static IP type. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wanSettingConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify internet ports config", nickname = "modifyWanPortsConfig", notes = "Modify internet ports config. Make sure the parameter[preConfiguration] is true and all wan ports config is include, so the port configuration can take effect after you adopt a gateway.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33400 - Current site has no Wan.
-33413 - The IP range you set for the WAN port conflicts with the IP range of LAN networks.
-33414 - The MAC address is not available because it has been used for another port.
-33416 - The IP range you set for the WAN port conflicts with the IP range of the other WAN port.
-33426 - The Secondary DNS cannot be the same as the Primary DNS. Please enter another IP address.
-33427 - The IP you set for DNS Server conflicts with the IP range of the LAN network.
-33429 - There are duplicate IPs in the WAN alias IPs and static IPs.
-33431 - VLAN ID ranges from 1 to 4086.
-33501 - This VLAN already exists in one site.
-33531 - This WAN port has been used by other networks.
-34212 - The WAN port is used for one-to-one NAT and can only use the Static IP type.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wired Network","Wired Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/internet/ports-config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyWanPortsConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) WanSettingConfigOpenApiVo wanSettingConfigOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWireguardVpnApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWireguardVpnApi.java new file mode 100644 index 0000000..1aa073a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWireguardVpnApi.java @@ -0,0 +1,221 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoWireguardDetailOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoWireguardPeerDetailOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResponseDataVoWireguardSummaryOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseResponseIdVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWireguardKeyOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.WireguardOpenApiVo; +import org.wfc.omada.api.sitesetting.model.WireguardPeerOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaWireguardVpn", description = "the OmadaWireguardVpn API") +@FeignClient(name="OmadaWireguardVpnApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaWireguardVpnApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/wireguard-peers : Create new wireguard peer + * Create new wireguard peer.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33006 - This name already exists in this site.<br/>-43202 - The number of WireGuard peers has reached the limit.<br/>-43205 - The public key of the WireGuard peer for the same interface already exists.<br/>-43207 - Endpoint and Endpoint Port need to be filled in at the same time or both left blank. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wireguardPeerOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new wireguard peer", nickname = "createPeer", notes = "Create new wireguard peer.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33006 - This name already exists in this site.
-43202 - The number of WireGuard peers has reached the limit.
-43205 - The public key of the WireGuard peer for the same interface already exists.
-43207 - Endpoint and Endpoint Port need to be filled in at the same time or both left blank.", response = OperationResponseResponseIdVo.class, tags={ "Omada/Wireguard VPN","Wireguard VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/wireguard-peers", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createPeer(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) WireguardPeerOpenApiVo wireguardPeerOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/vpn/wireguards : Create new wireguard + * Create new wireguard.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33006 - This name already exists in this site.<br/>-43200 - The number of WireGuard entries has reached the limit.<br/>-43204 - The port has been used. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wireguardOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new wireguard", nickname = "createWireguard", notes = "Create new wireguard.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33006 - This name already exists in this site.
-43200 - The number of WireGuard entries has reached the limit.
-43204 - The port has been used.", response = OperationResponseResponseIdVo.class, tags={ "Omada/Wireguard VPN","Wireguard VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseIdVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/wireguards", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createWireguard(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) WireguardOpenApiVo wireguardOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/wireguard-peers/{id} : Delete an existing wireguard peer + * Delete an existing wireguard peer.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Peer ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing wireguard peer", nickname = "deletePeer", notes = "Delete an existing wireguard peer.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireguard VPN","Wireguard VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/wireguard-peers/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deletePeer(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Peer ID",required=true) @PathVariable("id") String id); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/vpn/wireguards/{id} : Delete an existing wireguard + * Delete an existing wireguard.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id WireGuard VPN ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing wireguard", nickname = "deleteWireguard", notes = "Delete an existing wireguard.

The interface requires one of the permissions:
Site Settings Manager Modify", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireguard VPN","Wireguard VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/wireguards/{id}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteWireguard(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WireGuard VPN ID",required=true) @PathVariable("id") String id); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/wireguard-key : Get new private key and public key + * Get new private key and public key.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1001 - Invalid request parameters. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get new private key and public key", nickname = "getWireguardKey", notes = "Get new private key and public key.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1001 - Invalid request parameters.", response = OperationResponseWireguardKeyOpenApiVo.class, tags={ "Omada/Wireguard VPN","Wireguard VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWireguardKeyOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/wireguard-key", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWireguardKey(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/wireguard-summarys : Get all wireguard's id and name info + * Get all wireguard's id and name info.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get all wireguard's id and name info", nickname = "getWireguardSummary", notes = "Get all wireguard's id and name info.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseResponseDataVoWireguardSummaryOpenApiVo.class, tags={ "Omada/Wireguard VPN","Wireguard VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseResponseDataVoWireguardSummaryOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/wireguard-summarys", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWireguardSummary(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/wireguard-peers : Get wireguard peer list + * Get wireguard peer list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get wireguard peer list", nickname = "listPeer", notes = "Get wireguard peer list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoWireguardPeerDetailOpenApiVo.class, tags={ "Omada/Wireguard VPN","Wireguard VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoWireguardPeerDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/wireguard-peers", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity listPeer(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/vpn/wireguards : Get wireguard list + * Get wireguard list.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get wireguard list", nickname = "listWireguard", notes = "Get wireguard list.

The interface requires one of the permissions:
Site Settings Manager View Only", response = OperationResponseGridVoWireguardDetailOpenApiVo.class, tags={ "Omada/Wireguard VPN","Wireguard VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoWireguardDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/wireguards", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity listWireguard(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/vpn/wireguard-peers/{id} : Modify an existing wireguard peer + * Modify an existing wireguard peer.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33006 - This name already exists in this site.<br/>-43202 - The number of WireGuard peers has reached the limit.<br/>-43203 - The WireGuard peer does not exist.<br/>-43205 - The public key of the WireGuard peer for the same interface already exists.<br/>-43207 - Endpoint and Endpoint Port need to be filled in at the same time or both left blank. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Peer ID (required) + * @param wireguardPeerOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing wireguard peer", nickname = "modifyPeer", notes = "Modify an existing wireguard peer.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33006 - This name already exists in this site.
-43202 - The number of WireGuard peers has reached the limit.
-43203 - The WireGuard peer does not exist.
-43205 - The public key of the WireGuard peer for the same interface already exists.
-43207 - Endpoint and Endpoint Port need to be filled in at the same time or both left blank.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireguard VPN","Wireguard VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/wireguard-peers/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyPeer(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Peer ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) WireguardPeerOpenApiVo wireguardPeerOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/vpn/wireguards/{id} : Modify an existing wireguard + * Modify an existing wireguard.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33006 - This name already exists in this site.<br/>-43201 - The WireGuard entry does not exist.<br/>-43204 - The port has been used. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param id Wireguard ID (required) + * @param wireguardOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing wireguard", nickname = "modifyWireguard", notes = "Modify an existing wireguard.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33006 - This name already exists in this site.
-43201 - The WireGuard entry does not exist.
-43204 - The port has been used.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireguard VPN","Wireguard VPN", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/vpn/wireguards/{id}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyWireguard(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "Wireguard ID",required=true) @PathVariable("id") String id,@ApiParam(value = "" ) @Valid @RequestBody(required = false) WireguardOpenApiVo wireguardOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWirelessIdsIpsApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWirelessIdsIpsApi.java new file mode 100644 index 0000000..54e2a8a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWirelessIdsIpsApi.java @@ -0,0 +1,102 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.OperationResponseWidsConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWipsConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.UpdateWidsConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.UpdateWipsConfigOpenApiVo; + +import javax.validation.Valid; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaWirelessIdsIps", description = "the OmadaWirelessIdsIps API") +@FeignClient(name="OmadaWirelessIdsIpsApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaWirelessIdsIpsApi { + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/network-security/wireless-ids : Get wireless IDS config + * Get wireless IDS config. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get wireless IDS config", nickname = "getWidsConfig", notes = "Get wireless IDS config. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWidsConfigOpenApiVo.class, tags={ "Omada/Wireless IDS/IPS","Wireless IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWidsConfigOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/wireless-ids", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWidsConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/network-security/wireless-ips : Get wireless IPS config + * Get wireless IPS config. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get wireless IPS config", nickname = "getWipsConfig", notes = "Get wireless IPS config. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWipsConfigOpenApiVo.class, tags={ "Omada/Wireless IDS/IPS","Wireless IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWipsConfigOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/wireless-ips", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWipsConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/network-security/wireless-ids : Modify wireless IDS config + * Modify wireless IDS config. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param updateWidsConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify wireless IDS config", nickname = "modifyWidsConfig", notes = "Modify wireless IDS config. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless IDS/IPS","Wireless IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/wireless-ids", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyWidsConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateWidsConfigOpenApiVo updateWidsConfigOpenApiVo); + + + /** + * PUT /openapi/v1/{omadacId}/sites/{siteId}/network-security/wireless-ips : Modify wireless IPS config + * Modify wireless IPS config. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param updateWipsConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify wireless IPS config", nickname = "modifyWipsConfig", notes = "Modify wireless IPS config. This interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless IDS/IPS","Wireless IDS/IPS", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/network-security/wireless-ips", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PUT) + ResponseEntity modifyWipsConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateWipsConfigOpenApiVo updateWipsConfigOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWirelessNetworkApi.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWirelessNetworkApi.java new file mode 100644 index 0000000..12a0b86 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/OmadaWirelessNetworkApi.java @@ -0,0 +1,341 @@ +package org.wfc.omada.api.sitesetting; + +import io.swagger.annotations.Api; +import io.swagger.annotations.ApiOperation; +import io.swagger.annotations.ApiParam; +import io.swagger.annotations.ApiResponse; +import io.swagger.annotations.ApiResponses; +import org.springframework.cloud.openfeign.FeignClient; +import org.springframework.http.ResponseEntity; +import org.springframework.validation.annotation.Validated; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestMethod; +import org.springframework.web.bind.annotation.RequestParam; +import org.wfc.omada.api.config.FeignConfig; +import org.wfc.omada.api.config.FeignHttpsConfig; +import org.wfc.omada.api.sitesetting.model.CreateSsidOpenApiVo; +import org.wfc.omada.api.sitesetting.model.CreateWlanGroupOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseGridVoSsidOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseListWlanGroupOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseObject; +import org.wfc.omada.api.sitesetting.model.OperationResponseSsidDetailOpenApiVo; +import org.wfc.omada.api.sitesetting.model.OperationResponseWithoutResult; +import org.wfc.omada.api.sitesetting.model.UpdateSsidBasicConfigOpenApiVo; +import org.wfc.omada.api.sitesetting.model.UpdateSsidDhcpOptionOpenApiVo; +import org.wfc.omada.api.sitesetting.model.UpdateSsidMacFilterOpenApiVo; +import org.wfc.omada.api.sitesetting.model.UpdateSsidMultiCastOpenApiVo; +import org.wfc.omada.api.sitesetting.model.UpdateSsidRateControlOpenApiVo; +import org.wfc.omada.api.sitesetting.model.UpdateSsidRateLimitOpenApiVo; +import org.wfc.omada.api.sitesetting.model.UpdateSsidWlanScheduleOpenApiVo; +import org.wfc.omada.api.sitesetting.model.UpdateWlanGroupOpenApiVo; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:31:51.978+08:00[Asia/Shanghai]") + +@Validated +@Api(value = "OmadaWirelessNetwork", description = "the OmadaWirelessNetwork API") +@FeignClient(name="OmadaWirelessNetworkApi", url = "${omada.omada-url}", configuration = {FeignConfig.class, FeignHttpsConfig.class}) +public interface OmadaWirelessNetworkApi { + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids : Create new SSID + * Create new SSID<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33217 - Invalid SSID security mode.<br/>-33219 - This SSID already exists.<br/>-33220 - Enter a different SSID to override the current SSID.<br/>-33231 - The ssid' s name should not be the same with emergency ssid.<br/>-33240 - The SSID name should be between 1 and 32 bytes.<br/>-33788 - PPSK and OUI Based VLAN are mutually exclusive. Please make sure the SSID is not enabled in OUI Based VLAN.<br/>-33807 - Invalid VLAN ID. Enter a number from 1 to 4094.<br/>-34017 - Only the EKMS authentication method in PPSK with RADIUS supports domain name. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param createSsidOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new SSID", nickname = "createSsid", notes = "Create new SSID

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33217 - Invalid SSID security mode.
-33219 - This SSID already exists.
-33220 - Enter a different SSID to override the current SSID.
-33231 - The ssid' s name should not be the same with emergency ssid.
-33240 - The SSID name should be between 1 and 32 bytes.
-33788 - PPSK and OUI Based VLAN are mutually exclusive. Please make sure the SSID is not enabled in OUI Based VLAN.
-33807 - Invalid VLAN ID. Enter a number from 1 to 4094.
-34017 - Only the EKMS authentication method in PPSK with RADIUS supports domain name.", response = OperationResponseObject.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createSsid(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateSsidOpenApiVo createSsidOpenApiVo); + + + /** + * POST /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans : Create new WLAN group + * Create new WLAN group<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33200 - This WLAN group has been already created.<br/>-33201 - The number of WLAN groups has reached the limit.<br/>-33202 - This WLAN group is not in the same site. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param createWlanGroupOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Create new WLAN group", nickname = "createWlanGroup", notes = "Create new WLAN group

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33200 - This WLAN group has been already created.
-33201 - The number of WLAN groups has reached the limit.
-33202 - This WLAN group is not in the same site.", response = OperationResponseObject.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseObject.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.POST) + ResponseEntity createWlanGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) CreateWlanGroupOpenApiVo createWlanGroupOpenApiVo); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId} : Delete an existing SSID + * Delete an existing SSID<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param ssidId SSID ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing SSID", nickname = "deleteSsid", notes = "Delete an existing SSID

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteSsid(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@ApiParam(value = "SSID ID",required=true) @PathVariable("ssidId") String ssidId); + + + /** + * DELETE /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId} : Delete an existing WLAN group + * Delete an existing WLAN group<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33203 - The default WLAN group cannot be deleted. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Delete an existing WLAN group", nickname = "deleteWlanGroup", notes = "Delete an existing WLAN group

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33203 - The default WLAN group cannot be deleted.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}", + produces = "*/*", + method = RequestMethod.DELETE) + ResponseEntity deleteWlanGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId} : Get SSID detail info + * Get SSID detail info<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param ssidId SSID ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get SSID detail info", nickname = "getSsidDetail", notes = "Get SSID detail info

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.", response = OperationResponseSsidDetailOpenApiVo.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseSsidDetailOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSsidDetail(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@ApiParam(value = "SSID ID",required=true) @PathVariable("ssidId") String ssidId); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids : Get SSID list + * Get SSID list<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-1300 - Failed to get site information. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param page Start page number. Start from 1. (required) + * @param pageSize Number of entries per page. It should be within the range of 1–1000. (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get SSID list", nickname = "getSsidList", notes = "Get SSID list

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-1300 - Failed to get site information.", response = OperationResponseGridVoSsidOpenApiVo.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseGridVoSsidOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getSsidList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@NotNull @ApiParam(value = "Start page number. Start from 1.", required = true) @Valid @RequestParam(value = "page", required = true) Integer page,@NotNull @ApiParam(value = "Number of entries per page. It should be within the range of 1–1000.", required = true) @Valid @RequestParam(value = "pageSize", required = true) Integer pageSize); + + + /** + * GET /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans : Get WLAN group list + * Get WLAN group list<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager View Only<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @return OK (status code 200) + */ + @ApiOperation(value = "Get WLAN group list", nickname = "getWlanGroupList", notes = "Get WLAN group list

The interface requires one of the permissions:
Site Settings Manager View Only

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.", response = OperationResponseListWlanGroupOpenApiVo.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseListWlanGroupOpenApiVo.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans", + produces = "*/*", + method = RequestMethod.GET) + ResponseEntity getWlanGroupList(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-basic-config : Update SSID basic config + * Update SSID basic config<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33217 - Invalid SSID security mode.<br/>-33219 - This SSID already exists.<br/>-33220 - Enter a different SSID to override the current SSID.<br/>-33231 - The ssid' s name should not be the same with emergency ssid.<br/>-33235 - PPSK without RADIUS do not support WPA Mode with WPA3-SAE.<br/>-33238 - The number of SSIDs on %band% has reached the limit. At most 8 SSIDs can be created on each band.<br/>-33240 - The SSID name should be between 1 and 32 bytes.<br/>-33807 - Invalid VLAN ID. Enter a number from 1 to 4094.<br/>-34017 - Only the EKMS authentication method in PPSK with RADIUS supports domain name. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param ssidId SSID ID (required) + * @param updateSsidBasicConfigOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Update SSID basic config", nickname = "updateSsidBasicConfig", notes = "Update SSID basic config

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33217 - Invalid SSID security mode.
-33219 - This SSID already exists.
-33220 - Enter a different SSID to override the current SSID.
-33231 - The ssid' s name should not be the same with emergency ssid.
-33235 - PPSK without RADIUS do not support WPA Mode with WPA3-SAE.
-33238 - The number of SSIDs on %band% has reached the limit. At most 8 SSIDs can be created on each band.
-33240 - The SSID name should be between 1 and 32 bytes.
-33807 - Invalid VLAN ID. Enter a number from 1 to 4094.
-34017 - Only the EKMS authentication method in PPSK with RADIUS supports domain name.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-basic-config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateSsidBasicConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@ApiParam(value = "SSID ID",required=true) @PathVariable("ssidId") String ssidId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateSsidBasicConfigOpenApiVo updateSsidBasicConfigOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-dhcp-option : Update SSID DHCP option 82 config + * Update SSID DHCP option 82 configThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param ssidId SSID ID (required) + * @param updateSsidDhcpOptionOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Update SSID DHCP option 82 config", nickname = "updateSsidDhcpOptionConfig", notes = "Update SSID DHCP option 82 configThis interface applies to the Omada Pro Controller only. Please do not use it for non-Pro controllers.

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-44119 - This interface applies to the Omada Pro only. Please do not use it for non-Pro controllers or sites.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-dhcp-option", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateSsidDhcpOptionConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@ApiParam(value = "SSID ID",required=true) @PathVariable("ssidId") String ssidId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateSsidDhcpOptionOpenApiVo updateSsidDhcpOptionOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-mac-filter : Update SSID mac filter config + * Update SSID MAC filter config<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param ssidId SSID ID (required) + * @param updateSsidMacFilterOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Update SSID mac filter config", nickname = "updateSsidMacFilterConfig", notes = "Update SSID MAC filter config

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-mac-filter", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateSsidMacFilterConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@ApiParam(value = "SSID ID",required=true) @PathVariable("ssidId") String ssidId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateSsidMacFilterOpenApiVo updateSsidMacFilterOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-multicast-config : Update SSID Multicast/Broadcast management config + * Update SSID Multicast/Broadcast management config<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param ssidId SSID ID (required) + * @param updateSsidMultiCastOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Update SSID Multicast/Broadcast management config", nickname = "updateSsidMultiCastConfig", notes = "Update SSID Multicast/Broadcast management config

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-multicast-config", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateSsidMultiCastConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@ApiParam(value = "SSID ID",required=true) @PathVariable("ssidId") String ssidId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateSsidMultiCastOpenApiVo updateSsidMultiCastOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-rate-control : Update SSID 802.11 rate control config + * Update SSID 802.11 rate control config<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param ssidId SSID ID (required) + * @param updateSsidRateControlOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Update SSID 802.11 rate control config", nickname = "updateSsidRateControlConfig", notes = "Update SSID 802.11 rate control config

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-rate-control", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateSsidRateControlConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@ApiParam(value = "SSID ID",required=true) @PathVariable("ssidId") String ssidId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateSsidRateControlOpenApiVo updateSsidRateControlOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-rate-limit : Update SSID rate limit config + * Update SSID rate limit config<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param ssidId SSID ID (required) + * @param updateSsidRateLimitOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Update SSID rate limit config", nickname = "updateSsidRateLimitConfig", notes = "Update SSID rate limit config

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-rate-limit", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateSsidRateLimitConfig(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@ApiParam(value = "SSID ID",required=true) @PathVariable("ssidId") String ssidId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateSsidRateLimitOpenApiVo updateSsidRateLimitOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-wlan-schedule : Update SSID WLAN schedule config + * Update SSID WLAN schedule config<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param ssidId SSID ID (required) + * @param updateSsidWlanScheduleOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Update SSID WLAN schedule config", nickname = "updateSsidWlanSchedule", notes = "Update SSID WLAN schedule config

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}/ssids/{ssidId}/update-wlan-schedule", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateSsidWlanSchedule(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@ApiParam(value = "SSID ID",required=true) @PathVariable("ssidId") String ssidId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateSsidWlanScheduleOpenApiVo updateSsidWlanScheduleOpenApiVo); + + + /** + * PATCH /openapi/v1/{omadacId}/sites/{siteId}/wireless-network/wlans/{wlanId} : Modify an existing WLAN group + * Modify an existing WLAN group<br/><br/>The interface requires one of the permissions: <br/>Site Settings Manager Modify<br/><br/>The possible error code for the interface in the returned body is one of the following error codes (non generic error codes): <br/>-33000 - This site does not exist.<br/>-33200 - This WLAN group has been already created. + * + * @param omadacId Omada ID (required) + * @param siteId Site ID (required) + * @param wlanId WLAN ID (required) + * @param updateWlanGroupOpenApiVo (optional) + * @return OK (status code 200) + */ + @ApiOperation(value = "Modify an existing WLAN group", nickname = "updateWlanGroup", notes = "Modify an existing WLAN group

The interface requires one of the permissions:
Site Settings Manager Modify

The possible error code for the interface in the returned body is one of the following error codes (non generic error codes):
-33000 - This site does not exist.
-33200 - This WLAN group has been already created.", response = OperationResponseWithoutResult.class, tags={ "Omada/Wireless Network","Wireless Network", }) + @ApiResponses(value = { + @ApiResponse(code = 200, message = "OK", response = OperationResponseWithoutResult.class) }) + @RequestMapping(value = "/openapi/v1/${omada.omadac-id}/sites/{siteId}/wireless-network/wlans/{wlanId}", + produces = "*/*", + consumes = "application/json", + method = RequestMethod.PATCH) + ResponseEntity updateWlanGroup(@ApiParam(value = "Site ID",required=true) @PathVariable("siteId") String siteId,@ApiParam(value = "WLAN ID",required=true) @PathVariable("wlanId") String wlanId,@ApiParam(value = "" ) @Valid @RequestBody(required = false) UpdateWlanGroupOpenApiVo updateWlanGroupOpenApiVo); + +} diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddCallForwardingRuleResp.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddCallForwardingRuleResp.java new file mode 100644 index 0000000..586ce2b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddCallForwardingRuleResp.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * AddCallForwardingRuleResp + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class AddCallForwardingRuleResp { + @JsonProperty("ruleId") + private String ruleId; + + public AddCallForwardingRuleResp ruleId(String ruleId) { + this.ruleId = ruleId; + return this; + } + + /** + * Call Forwarding rule id. + * @return ruleId + */ + @ApiModelProperty(value = "Call Forwarding rule id.") + + + public String getRuleId() { + return ruleId; + } + + public void setRuleId(String ruleId) { + this.ruleId = ruleId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddCallForwardingRuleResp addCallForwardingRuleResp = (AddCallForwardingRuleResp) o; + return Objects.equals(this.ruleId, addCallForwardingRuleResp.ruleId); + } + + @Override + public int hashCode() { + return Objects.hash(ruleId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddCallForwardingRuleResp {\n"); + + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddFilterEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddFilterEntity.java new file mode 100644 index 0000000..947a403 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddFilterEntity.java @@ -0,0 +1,140 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * AddFilterEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class AddFilterEntity { + @JsonProperty("filterName") + private String filterName; + + @JsonProperty("description") + private String description; + + @JsonProperty("rules") + @Valid + private List rules = new ArrayList<>(); + + public AddFilterEntity filterName(String filterName) { + this.filterName = filterName; + return this; + } + + /** + * Filter name. It should be 1 - 128 characters + * @return filterName + */ + @ApiModelProperty(required = true, value = "Filter name. It should be 1 - 128 characters") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getFilterName() { + return filterName; + } + + public void setFilterName(String filterName) { + this.filterName = filterName; + } + + public AddFilterEntity description(String description) { + this.description = description; + return this; + } + + /** + * Description of filter. It should be 1 - 128 characters + * @return description + */ + @ApiModelProperty(required = true, value = "Description of filter. It should be 1 - 128 characters") + @NotNull + +@Pattern(regexp="^.{1,128}$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public AddFilterEntity rules(List rules) { + this.rules = rules; + return this; + } + + public AddFilterEntity addRulesItem(Integer rulesItem) { + this.rules.add(rulesItem); + return this; + } + + /** + * Rule ID list can be obtained from 'Get rule list' interface. + * @return rules + */ + @ApiModelProperty(required = true, value = "Rule ID list can be obtained from 'Get rule list' interface.") + @NotNull + + + public List getRules() { + return rules; + } + + public void setRules(List rules) { + this.rules = rules; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddFilterEntity addFilterEntity = (AddFilterEntity) o; + return Objects.equals(this.filterName, addFilterEntity.filterName) && + Objects.equals(this.description, addFilterEntity.description) && + Objects.equals(this.rules, addFilterEntity.rules); + } + + @Override + public int hashCode() { + return Objects.hash(filterName, description, rules); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddFilterEntity {\n"); + + sb.append(" filterName: ").append(toIndentedString(filterName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddRuleEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddRuleEntity.java new file mode 100644 index 0000000..81418d0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AddRuleEntity.java @@ -0,0 +1,217 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * AddRuleEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class AddRuleEntity { + @JsonProperty("ruleName") + private String ruleName; + + @JsonProperty("schedule") + private String schedule; + + @JsonProperty("qos") + private Boolean qos; + + @JsonProperty("qosClass") + private Integer qosClass; + + @JsonProperty("applications") + @Valid + private List applications = new ArrayList<>(); + + @JsonProperty("selectType") + private String selectType; + + public AddRuleEntity ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Rule name. It should be 1 - 128 characters + * @return ruleName + */ + @ApiModelProperty(required = true, value = "Rule name. It should be 1 - 128 characters") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public AddRuleEntity schedule(String schedule) { + this.schedule = schedule; + return this; + } + + /** + * Schedule profile ID, which can be queried by request: Get time range profile list. + * @return schedule + */ + @ApiModelProperty(required = true, value = "Schedule profile ID, which can be queried by request: Get time range profile list.") + @NotNull + + + public String getSchedule() { + return schedule; + } + + public void setSchedule(String schedule) { + this.schedule = schedule; + } + + public AddRuleEntity qos(Boolean qos) { + this.qos = qos; + return this; + } + + /** + * Enable qos. true:enable / false:disable + * @return qos + */ + @ApiModelProperty(required = true, value = "Enable qos. true:enable / false:disable") + @NotNull + + + public Boolean getQos() { + return qos; + } + + public void setQos(Boolean qos) { + this.qos = qos; + } + + public AddRuleEntity qosClass(Integer qosClass) { + this.qosClass = qosClass; + return this; + } + + /** + * The Class value selected in the Qos Class configuration, required when qos is enable. Valid values is 0: Others, 1: Class 1, 2: Class 2, 3: Class 3. + * @return qosClass + */ + @ApiModelProperty(value = "The Class value selected in the Qos Class configuration, required when qos is enable. Valid values is 0: Others, 1: Class 1, 2: Class 2, 3: Class 3.") + + + public Integer getQosClass() { + return qosClass; + } + + public void setQosClass(Integer qosClass) { + this.qosClass = qosClass; + } + + public AddRuleEntity applications(List applications) { + this.applications = applications; + return this; + } + + public AddRuleEntity addApplicationsItem(Integer applicationsItem) { + this.applications.add(applicationsItem); + return this; + } + + /** + * Application ID list can be obtained from 'Get application list' interface. + * @return applications + */ + @ApiModelProperty(required = true, value = "Application ID list can be obtained from 'Get application list' interface.") + @NotNull + + + public List getApplications() { + return applications; + } + + public void setApplications(List applications) { + this.applications = applications; + } + + public AddRuleEntity selectType(String selectType) { + this.selectType = selectType; + return this; + } + + /** + * Select type of applications. include: include selected applications, exclude: all but exclude selected applications, all: include all applications. + * @return selectType + */ + @ApiModelProperty(required = true, value = "Select type of applications. include: include selected applications, exclude: all but exclude selected applications, all: include all applications.") + @NotNull + + + public String getSelectType() { + return selectType; + } + + public void setSelectType(String selectType) { + this.selectType = selectType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AddRuleEntity addRuleEntity = (AddRuleEntity) o; + return Objects.equals(this.ruleName, addRuleEntity.ruleName) && + Objects.equals(this.schedule, addRuleEntity.schedule) && + Objects.equals(this.qos, addRuleEntity.qos) && + Objects.equals(this.qosClass, addRuleEntity.qosClass) && + Objects.equals(this.applications, addRuleEntity.applications) && + Objects.equals(this.selectType, addRuleEntity.selectType); + } + + @Override + public int hashCode() { + return Objects.hash(ruleName, schedule, qos, qosClass, applications, selectType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AddRuleEntity {\n"); + + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); + sb.append(" qos: ").append(toIndentedString(qos)).append("\n"); + sb.append(" qosClass: ").append(toIndentedString(qosClass)).append("\n"); + sb.append(" applications: ").append(toIndentedString(applications)).append("\n"); + sb.append(" selectType: ").append(toIndentedString(selectType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AdvertisementSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AdvertisementSetting.java new file mode 100644 index 0000000..2cdf0bd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AdvertisementSetting.java @@ -0,0 +1,192 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Advertisement Setting. + */ +@ApiModel(description = "Advertisement Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class AdvertisementSetting { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("pictureIds") + @Valid + private List pictureIds = null; + + @JsonProperty("totalDuration") + private Integer totalDuration; + + @JsonProperty("pictureInterval") + private Integer pictureInterval; + + @JsonProperty("skipEnable") + private Boolean skipEnable; + + public AdvertisementSetting enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Advertisement enable. + * @return enable + */ + @ApiModelProperty(required = true, value = "Advertisement enable.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public AdvertisementSetting pictureIds(List pictureIds) { + this.pictureIds = pictureIds; + return this; + } + + public AdvertisementSetting addPictureIdsItem(String pictureIdsItem) { + if (this.pictureIds == null) { + this.pictureIds = new ArrayList<>(); + } + this.pictureIds.add(pictureIdsItem); + return this; + } + + /** + * Picture ID list, Up to 5 entries are allowed for the pictureIds list. + * @return pictureIds + */ + @ApiModelProperty(value = "Picture ID list, Up to 5 entries are allowed for the pictureIds list.") + + + public List getPictureIds() { + return pictureIds; + } + + public void setPictureIds(List pictureIds) { + this.pictureIds = pictureIds; + } + + public AdvertisementSetting totalDuration(Integer totalDuration) { + this.totalDuration = totalDuration; + return this; + } + + /** + * Advertisement totalDuration, should be within the range of 1–30, time unit is second. + * @return totalDuration + */ + @ApiModelProperty(value = "Advertisement totalDuration, should be within the range of 1–30, time unit is second.") + + + public Integer getTotalDuration() { + return totalDuration; + } + + public void setTotalDuration(Integer totalDuration) { + this.totalDuration = totalDuration; + } + + public AdvertisementSetting pictureInterval(Integer pictureInterval) { + this.pictureInterval = pictureInterval; + return this; + } + + /** + * Advertisement picture interval, should be within the range of 1–10, time unit is second. + * @return pictureInterval + */ + @ApiModelProperty(value = "Advertisement picture interval, should be within the range of 1–10, time unit is second.") + + + public Integer getPictureInterval() { + return pictureInterval; + } + + public void setPictureInterval(Integer pictureInterval) { + this.pictureInterval = pictureInterval; + } + + public AdvertisementSetting skipEnable(Boolean skipEnable) { + this.skipEnable = skipEnable; + return this; + } + + /** + * Whether allow users to skip the advertisement. + * @return skipEnable + */ + @ApiModelProperty(value = "Whether allow users to skip the advertisement.") + + + public Boolean getSkipEnable() { + return skipEnable; + } + + public void setSkipEnable(Boolean skipEnable) { + this.skipEnable = skipEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AdvertisementSetting advertisementSetting = (AdvertisementSetting) o; + return Objects.equals(this.enable, advertisementSetting.enable) && + Objects.equals(this.pictureIds, advertisementSetting.pictureIds) && + Objects.equals(this.totalDuration, advertisementSetting.totalDuration) && + Objects.equals(this.pictureInterval, advertisementSetting.pictureInterval) && + Objects.equals(this.skipEnable, advertisementSetting.skipEnable); + } + + @Override + public int hashCode() { + return Objects.hash(enable, pictureIds, totalDuration, pictureInterval, skipEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AdvertisementSetting {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" pictureIds: ").append(toIndentedString(pictureIds)).append("\n"); + sb.append(" totalDuration: ").append(toIndentedString(totalDuration)).append("\n"); + sb.append(" pictureInterval: ").append(toIndentedString(pictureInterval)).append("\n"); + sb.append(" skipEnable: ").append(toIndentedString(skipEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AdvertisementSettingResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AdvertisementSettingResOpenApiVo.java new file mode 100644 index 0000000..e113577 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AdvertisementSettingResOpenApiVo.java @@ -0,0 +1,191 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Advertisement setting + */ +@ApiModel(description = "Advertisement setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class AdvertisementSettingResOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("pictures") + @Valid + private List pictures = null; + + @JsonProperty("totalDuration") + private Integer totalDuration; + + @JsonProperty("pictureInterval") + private Integer pictureInterval; + + @JsonProperty("skipEnable") + private Boolean skipEnable; + + public AdvertisementSettingResOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Whether to enable Advertisement setting + * @return enable + */ + @ApiModelProperty(value = "Whether to enable Advertisement setting") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public AdvertisementSettingResOpenApiVo pictures(List pictures) { + this.pictures = pictures; + return this; + } + + public AdvertisementSettingResOpenApiVo addPicturesItem(PortalPictureInfo picturesItem) { + if (this.pictures == null) { + this.pictures = new ArrayList<>(); + } + this.pictures.add(picturesItem); + return this; + } + + /** + * Advertisement picture list. Up to 5 entries are allowed for the pictures list + * @return pictures + */ + @ApiModelProperty(value = "Advertisement picture list. Up to 5 entries are allowed for the pictures list") + + @Valid + + public List getPictures() { + return pictures; + } + + public void setPictures(List pictures) { + this.pictures = pictures; + } + + public AdvertisementSettingResOpenApiVo totalDuration(Integer totalDuration) { + this.totalDuration = totalDuration; + return this; + } + + /** + * Total duration of advertisement, should be within the range of 1–30 seconds + * @return totalDuration + */ + @ApiModelProperty(value = "Total duration of advertisement, should be within the range of 1–30 seconds") + + + public Integer getTotalDuration() { + return totalDuration; + } + + public void setTotalDuration(Integer totalDuration) { + this.totalDuration = totalDuration; + } + + public AdvertisementSettingResOpenApiVo pictureInterval(Integer pictureInterval) { + this.pictureInterval = pictureInterval; + return this; + } + + /** + * Advertisement picture interval, should be within the range of 1–10 seconds + * @return pictureInterval + */ + @ApiModelProperty(value = "Advertisement picture interval, should be within the range of 1–10 seconds") + + + public Integer getPictureInterval() { + return pictureInterval; + } + + public void setPictureInterval(Integer pictureInterval) { + this.pictureInterval = pictureInterval; + } + + public AdvertisementSettingResOpenApiVo skipEnable(Boolean skipEnable) { + this.skipEnable = skipEnable; + return this; + } + + /** + * Whether to allow users to skip the advertisement + * @return skipEnable + */ + @ApiModelProperty(value = "Whether to allow users to skip the advertisement") + + + public Boolean getSkipEnable() { + return skipEnable; + } + + public void setSkipEnable(Boolean skipEnable) { + this.skipEnable = skipEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AdvertisementSettingResOpenApiVo advertisementSettingResOpenApiVo = (AdvertisementSettingResOpenApiVo) o; + return Objects.equals(this.enable, advertisementSettingResOpenApiVo.enable) && + Objects.equals(this.pictures, advertisementSettingResOpenApiVo.pictures) && + Objects.equals(this.totalDuration, advertisementSettingResOpenApiVo.totalDuration) && + Objects.equals(this.pictureInterval, advertisementSettingResOpenApiVo.pictureInterval) && + Objects.equals(this.skipEnable, advertisementSettingResOpenApiVo.skipEnable); + } + + @Override + public int hashCode() { + return Objects.hash(enable, pictures, totalDuration, pictureInterval, skipEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AdvertisementSettingResOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" pictures: ").append(toIndentedString(pictures)).append("\n"); + sb.append(" totalDuration: ").append(toIndentedString(totalDuration)).append("\n"); + sb.append(" pictureInterval: ").append(toIndentedString(pictureInterval)).append("\n"); + sb.append(" skipEnable: ").append(toIndentedString(skipEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AirtimeFairnessSettingVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AirtimeFairnessSettingVo.java new file mode 100644 index 0000000..09e93ee --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AirtimeFairnessSettingVo.java @@ -0,0 +1,132 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Site airtimeFairness. + */ +@ApiModel(description = "Site airtimeFairness.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class AirtimeFairnessSettingVo { + @JsonProperty("enable2g") + private Boolean enable2g; + + @JsonProperty("enable5g") + private Boolean enable5g; + + @JsonProperty("enable6g") + private Boolean enable6g; + + public AirtimeFairnessSettingVo enable2g(Boolean enable2g) { + this.enable2g = enable2g; + return this; + } + + /** + * Whether to enable 2G airtime fairness + * @return enable2g + */ + @ApiModelProperty(required = true, value = "Whether to enable 2G airtime fairness") + @NotNull + + + public Boolean getEnable2g() { + return enable2g; + } + + public void setEnable2g(Boolean enable2g) { + this.enable2g = enable2g; + } + + public AirtimeFairnessSettingVo enable5g(Boolean enable5g) { + this.enable5g = enable5g; + return this; + } + + /** + * Whether to enable 5G airtime fairness + * @return enable5g + */ + @ApiModelProperty(required = true, value = "Whether to enable 5G airtime fairness") + @NotNull + + + public Boolean getEnable5g() { + return enable5g; + } + + public void setEnable5g(Boolean enable5g) { + this.enable5g = enable5g; + } + + public AirtimeFairnessSettingVo enable6g(Boolean enable6g) { + this.enable6g = enable6g; + return this; + } + + /** + * Whether to enable 6G airtime fairness + * @return enable6g + */ + @ApiModelProperty(required = true, value = "Whether to enable 6G airtime fairness") + @NotNull + + + public Boolean getEnable6g() { + return enable6g; + } + + public void setEnable6g(Boolean enable6g) { + this.enable6g = enable6g; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AirtimeFairnessSettingVo airtimeFairnessSettingVo = (AirtimeFairnessSettingVo) o; + return Objects.equals(this.enable2g, airtimeFairnessSettingVo.enable2g) && + Objects.equals(this.enable5g, airtimeFairnessSettingVo.enable5g) && + Objects.equals(this.enable6g, airtimeFairnessSettingVo.enable6g); + } + + @Override + public int hashCode() { + return Objects.hash(enable2g, enable5g, enable6g); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AirtimeFairnessSettingVo {\n"); + + sb.append(" enable2g: ").append(toIndentedString(enable2g)).append("\n"); + sb.append(" enable5g: ").append(toIndentedString(enable5g)).append("\n"); + sb.append(" enable6g: ").append(toIndentedString(enable6g)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AlgSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AlgSetting.java new file mode 100644 index 0000000..d3887cc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AlgSetting.java @@ -0,0 +1,182 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * AlgSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class AlgSetting { + @JsonProperty("ftp") + private Boolean ftp; + + @JsonProperty("h323") + private Boolean h323; + + @JsonProperty("pptp") + private Boolean pptp; + + @JsonProperty("sip") + private Boolean sip; + + @JsonProperty("ipSec") + private Boolean ipSec; + + public AlgSetting ftp(Boolean ftp) { + this.ftp = ftp; + return this; + } + + /** + * Whether to enable the FTP ALG + * @return ftp + */ + @ApiModelProperty(required = true, value = "Whether to enable the FTP ALG") + @NotNull + + + public Boolean getFtp() { + return ftp; + } + + public void setFtp(Boolean ftp) { + this.ftp = ftp; + } + + public AlgSetting h323(Boolean h323) { + this.h323 = h323; + return this; + } + + /** + * Whether to enable the H323 ALG + * @return h323 + */ + @ApiModelProperty(required = true, value = "Whether to enable the H323 ALG") + @NotNull + + + public Boolean getH323() { + return h323; + } + + public void setH323(Boolean h323) { + this.h323 = h323; + } + + public AlgSetting pptp(Boolean pptp) { + this.pptp = pptp; + return this; + } + + /** + * Whether to enable the PPTP ALG + * @return pptp + */ + @ApiModelProperty(required = true, value = "Whether to enable the PPTP ALG") + @NotNull + + + public Boolean getPptp() { + return pptp; + } + + public void setPptp(Boolean pptp) { + this.pptp = pptp; + } + + public AlgSetting sip(Boolean sip) { + this.sip = sip; + return this; + } + + /** + * Whether to enable the SIP ALG + * @return sip + */ + @ApiModelProperty(required = true, value = "Whether to enable the SIP ALG") + @NotNull + + + public Boolean getSip() { + return sip; + } + + public void setSip(Boolean sip) { + this.sip = sip; + } + + public AlgSetting ipSec(Boolean ipSec) { + this.ipSec = ipSec; + return this; + } + + /** + * Whether to enable the IPSec ALG + * @return ipSec + */ + @ApiModelProperty(required = true, value = "Whether to enable the IPSec ALG") + @NotNull + + + public Boolean getIpSec() { + return ipSec; + } + + public void setIpSec(Boolean ipSec) { + this.ipSec = ipSec; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AlgSetting algSetting = (AlgSetting) o; + return Objects.equals(this.ftp, algSetting.ftp) && + Objects.equals(this.h323, algSetting.h323) && + Objects.equals(this.pptp, algSetting.pptp) && + Objects.equals(this.sip, algSetting.sip) && + Objects.equals(this.ipSec, algSetting.ipSec); + } + + @Override + public int hashCode() { + return Objects.hash(ftp, h323, pptp, sip, ipSec); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AlgSetting {\n"); + + sb.append(" ftp: ").append(toIndentedString(ftp)).append("\n"); + sb.append(" h323: ").append(toIndentedString(h323)).append("\n"); + sb.append(" pptp: ").append(toIndentedString(pptp)).append("\n"); + sb.append(" sip: ").append(toIndentedString(sip)).append("\n"); + sb.append(" ipSec: ").append(toIndentedString(ipSec)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApMdnsRuleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApMdnsRuleOpenApiVo.java new file mode 100644 index 0000000..d06dfbc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApMdnsRuleOpenApiVo.java @@ -0,0 +1,107 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * MDNS rule AP config, valid when parameter [type] is 0 + */ +@ApiModel(description = "MDNS rule AP config, valid when parameter [type] is 0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ApMdnsRuleOpenApiVo { + @JsonProperty("serviceVlan") + private String serviceVlan; + + @JsonProperty("clientVlan") + private String clientVlan; + + public ApMdnsRuleOpenApiVo serviceVlan(String serviceVlan) { + this.serviceVlan = serviceVlan; + return this; + } + + /** + * Services Network VLAN. ServiceVlan should be within the range of 1 to 4094. Enter only one VLAN + * @return serviceVlan + */ + @ApiModelProperty(required = true, value = "Services Network VLAN. ServiceVlan should be within the range of 1 to 4094. Enter only one VLAN") + @NotNull + + + public String getServiceVlan() { + return serviceVlan; + } + + public void setServiceVlan(String serviceVlan) { + this.serviceVlan = serviceVlan; + } + + public ApMdnsRuleOpenApiVo clientVlan(String clientVlan) { + this.clientVlan = clientVlan; + return this; + } + + /** + * Client Network VLAN. ClientVlan should be within the range of 1 to 4094. Enter one or multiple VLANs. For example: 1,2-100 + * @return clientVlan + */ + @ApiModelProperty(required = true, value = "Client Network VLAN. ClientVlan should be within the range of 1 to 4094. Enter one or multiple VLANs. For example: 1,2-100") + @NotNull + +@Pattern(regexp="^[\\d|\\d-\\d]+(,[\\d|\\d-\\d]+)*$") + public String getClientVlan() { + return clientVlan; + } + + public void setClientVlan(String clientVlan) { + this.clientVlan = clientVlan; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApMdnsRuleOpenApiVo apMdnsRuleOpenApiVo = (ApMdnsRuleOpenApiVo) o; + return Objects.equals(this.serviceVlan, apMdnsRuleOpenApiVo.serviceVlan) && + Objects.equals(this.clientVlan, apMdnsRuleOpenApiVo.clientVlan); + } + + @Override + public int hashCode() { + return Objects.hash(serviceVlan, clientVlan); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApMdnsRuleOpenApiVo {\n"); + + sb.append(" serviceVlan: ").append(toIndentedString(serviceVlan)).append("\n"); + sb.append(" clientVlan: ").append(toIndentedString(clientVlan)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApnProfile.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApnProfile.java new file mode 100644 index 0000000..cf66fc8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApnProfile.java @@ -0,0 +1,282 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ApnProfile + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ApnProfile { + @JsonProperty("apnProfileId") + private String apnProfileId; + + @JsonProperty("name") + private String name; + + @JsonProperty("pdpType") + private Integer pdpType; + + @JsonProperty("apnType") + private Integer apnType; + + @JsonProperty("apn") + private String apn; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + @JsonProperty("authentication") + private Integer authentication; + + @JsonProperty("buildIn") + private Boolean buildIn; + + public ApnProfile apnProfileId(String apnProfileId) { + this.apnProfileId = apnProfileId; + return this; + } + + /** + * APN profile ID + * @return apnProfileId + */ + @ApiModelProperty(value = "APN profile ID") + + + public String getApnProfileId() { + return apnProfileId; + } + + public void setApnProfileId(String apnProfileId) { + this.apnProfileId = apnProfileId; + } + + public ApnProfile name(String name) { + this.name = name; + return this; + } + + /** + * APN profile name, name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "APN profile name, name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ApnProfile pdpType(Integer pdpType) { + this.pdpType = pdpType; + return this; + } + + /** + * PdpType should be a value as follows: 0: IPv4; 1: IPv6; 2: IPv4 & IPv6. + * @return pdpType + */ + @ApiModelProperty(required = true, value = "PdpType should be a value as follows: 0: IPv4; 1: IPv6; 2: IPv4 & IPv6.") + @NotNull + + + public Integer getPdpType() { + return pdpType; + } + + public void setPdpType(Integer pdpType) { + this.pdpType = pdpType; + } + + public ApnProfile apnType(Integer apnType) { + this.apnType = apnType; + return this; + } + + /** + * ApnType should be a value as follows: 0: static; 1: dynamic. + * @return apnType + */ + @ApiModelProperty(required = true, value = "ApnType should be a value as follows: 0: static; 1: dynamic.") + @NotNull + + + public Integer getApnType() { + return apnType; + } + + public void setApnType(Integer apnType) { + this.apnType = apnType; + } + + public ApnProfile apn(String apn) { + this.apn = apn; + return this; + } + + /** + * Access point name, only for apnType static, should contain 1 to 64 characters and should meet the following requirements: 1. Should not start with \"rac\", \"lac\", \"sgsn\" or \"rnc\" and end with \".gprs\", ignoring case. 2. Should not contain \".*.\", \".-\", \"-.\" and spaces. 3. Should not contain any of the characters #!$%^&*(),:;\"'|\\@. + * @return apn + */ + @ApiModelProperty(value = "Access point name, only for apnType static, should contain 1 to 64 characters and should meet the following requirements: 1. Should not start with \"rac\", \"lac\", \"sgsn\" or \"rnc\" and end with \".gprs\", ignoring case. 2. Should not contain \".*.\", \".-\", \"-.\" and spaces. 3. Should not contain any of the characters #!$%^&*(),:;\"'|\\@. ") + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getApn() { + return apn; + } + + public void setApn(String apn) { + this.apn = apn; + } + + public ApnProfile username(String username) { + this.username = username; + return this; + } + + /** + * Username should contain 1 to 64 characters, spaces, comma, single quotation marks and double quotation marks are not allowed. + * @return username + */ + @ApiModelProperty(value = "Username should contain 1 to 64 characters, spaces, comma, single quotation marks and double quotation marks are not allowed.") + +@Pattern(regexp="^([\\041-\\053]|[\\055-\\0176]){1,64}$") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public ApnProfile password(String password) { + this.password = password; + return this; + } + + /** + * Password should contain 1 to 64 characters, spaces, comma, single quotation marks and double quotation marks are not allowed. + * @return password + */ + @ApiModelProperty(value = "Password should contain 1 to 64 characters, spaces, comma, single quotation marks and double quotation marks are not allowed.") + +@Pattern(regexp="^([\\041-\\053]|[\\055-\\0176]){1,64}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public ApnProfile authentication(Integer authentication) { + this.authentication = authentication; + return this; + } + + /** + * Authentication should be a value as follows: 0: None; 1: PAP; 2: CHAP + * @return authentication + */ + @ApiModelProperty(required = true, value = "Authentication should be a value as follows: 0: None; 1: PAP; 2: CHAP") + @NotNull + + + public Integer getAuthentication() { + return authentication; + } + + public void setAuthentication(Integer authentication) { + this.authentication = authentication; + } + + public ApnProfile buildIn(Boolean buildIn) { + this.buildIn = buildIn; + return this; + } + + /** + * Indicates whether this APN profile is a built-in APN profile for SIM card. + * @return buildIn + */ + @ApiModelProperty(value = "Indicates whether this APN profile is a built-in APN profile for SIM card.") + + + public Boolean getBuildIn() { + return buildIn; + } + + public void setBuildIn(Boolean buildIn) { + this.buildIn = buildIn; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApnProfile apnProfile = (ApnProfile) o; + return Objects.equals(this.apnProfileId, apnProfile.apnProfileId) && + Objects.equals(this.name, apnProfile.name) && + Objects.equals(this.pdpType, apnProfile.pdpType) && + Objects.equals(this.apnType, apnProfile.apnType) && + Objects.equals(this.apn, apnProfile.apn) && + Objects.equals(this.username, apnProfile.username) && + Objects.equals(this.password, apnProfile.password) && + Objects.equals(this.authentication, apnProfile.authentication) && + Objects.equals(this.buildIn, apnProfile.buildIn); + } + + @Override + public int hashCode() { + return Objects.hash(apnProfileId, name, pdpType, apnType, apn, username, password, authentication, buildIn); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApnProfile {\n"); + + sb.append(" apnProfileId: ").append(toIndentedString(apnProfileId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" pdpType: ").append(toIndentedString(pdpType)).append("\n"); + sb.append(" apnType: ").append(toIndentedString(apnType)).append("\n"); + sb.append(" apn: ").append(toIndentedString(apn)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" authentication: ").append(toIndentedString(authentication)).append("\n"); + sb.append(" buildIn: ").append(toIndentedString(buildIn)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApnProfileConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApnProfileConfig.java new file mode 100644 index 0000000..93c8525 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApnProfileConfig.java @@ -0,0 +1,232 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ApnProfileConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ApnProfileConfig { + @JsonProperty("name") + private String name; + + @JsonProperty("pdpType") + private Integer pdpType; + + @JsonProperty("apnType") + private Integer apnType; + + @JsonProperty("apn") + private String apn; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + @JsonProperty("authentication") + private Integer authentication; + + public ApnProfileConfig name(String name) { + this.name = name; + return this; + } + + /** + * APN profile name, name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "APN profile name, name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ApnProfileConfig pdpType(Integer pdpType) { + this.pdpType = pdpType; + return this; + } + + /** + * PdpType should be a value as follows: 0: IPv4; 1: IPv6; 2: IPv4 & IPv6. + * @return pdpType + */ + @ApiModelProperty(required = true, value = "PdpType should be a value as follows: 0: IPv4; 1: IPv6; 2: IPv4 & IPv6.") + @NotNull + + + public Integer getPdpType() { + return pdpType; + } + + public void setPdpType(Integer pdpType) { + this.pdpType = pdpType; + } + + public ApnProfileConfig apnType(Integer apnType) { + this.apnType = apnType; + return this; + } + + /** + * ApnType should be a value as follows: 0: static; 1: dynamic. + * @return apnType + */ + @ApiModelProperty(required = true, value = "ApnType should be a value as follows: 0: static; 1: dynamic.") + @NotNull + + + public Integer getApnType() { + return apnType; + } + + public void setApnType(Integer apnType) { + this.apnType = apnType; + } + + public ApnProfileConfig apn(String apn) { + this.apn = apn; + return this; + } + + /** + * Access point name, only for apnType static, should contain 1 to 64 characters and should meet the following requirements: 1. Should not start with \"rac\", \"lac\", \"sgsn\" or \"rnc\" and end with \".gprs\", ignoring case. 2. Should not contain \".*.\", \".-\", \"-.\" and spaces. 3. Should not contain any of the characters #!$%^&*(),:;\"'|\\@. + * @return apn + */ + @ApiModelProperty(value = "Access point name, only for apnType static, should contain 1 to 64 characters and should meet the following requirements: 1. Should not start with \"rac\", \"lac\", \"sgsn\" or \"rnc\" and end with \".gprs\", ignoring case. 2. Should not contain \".*.\", \".-\", \"-.\" and spaces. 3. Should not contain any of the characters #!$%^&*(),:;\"'|\\@. ") + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getApn() { + return apn; + } + + public void setApn(String apn) { + this.apn = apn; + } + + public ApnProfileConfig username(String username) { + this.username = username; + return this; + } + + /** + * Username should contain 1 to 64 characters, spaces, comma, single quotation marks and double quotation marks are not allowed. + * @return username + */ + @ApiModelProperty(value = "Username should contain 1 to 64 characters, spaces, comma, single quotation marks and double quotation marks are not allowed.") + +@Pattern(regexp="^[\\x21\\x23-\\x26\\x28-\\x2B\\x2D-\\x7E]{1,64}$") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public ApnProfileConfig password(String password) { + this.password = password; + return this; + } + + /** + * Password should contain 1 to 64 characters, spaces, comma, single quotation marks and double quotation marks are not allowed. + * @return password + */ + @ApiModelProperty(value = "Password should contain 1 to 64 characters, spaces, comma, single quotation marks and double quotation marks are not allowed.") + +@Pattern(regexp="^[\\x21\\x23-\\x26\\x28-\\x2B\\x2D-\\x7E]{1,64}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public ApnProfileConfig authentication(Integer authentication) { + this.authentication = authentication; + return this; + } + + /** + * Authentication should be a value as follows: 0: None; 1: PAP; 2: CHAP + * @return authentication + */ + @ApiModelProperty(required = true, value = "Authentication should be a value as follows: 0: None; 1: PAP; 2: CHAP") + @NotNull + + + public Integer getAuthentication() { + return authentication; + } + + public void setAuthentication(Integer authentication) { + this.authentication = authentication; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApnProfileConfig apnProfileConfig = (ApnProfileConfig) o; + return Objects.equals(this.name, apnProfileConfig.name) && + Objects.equals(this.pdpType, apnProfileConfig.pdpType) && + Objects.equals(this.apnType, apnProfileConfig.apnType) && + Objects.equals(this.apn, apnProfileConfig.apn) && + Objects.equals(this.username, apnProfileConfig.username) && + Objects.equals(this.password, apnProfileConfig.password) && + Objects.equals(this.authentication, apnProfileConfig.authentication); + } + + @Override + public int hashCode() { + return Objects.hash(name, pdpType, apnType, apn, username, password, authentication); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApnProfileConfig {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" pdpType: ").append(toIndentedString(pdpType)).append("\n"); + sb.append(" apnType: ").append(toIndentedString(apnType)).append("\n"); + sb.append(" apn: ").append(toIndentedString(apn)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" authentication: ").append(toIndentedString(authentication)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApplicationEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApplicationEntity.java new file mode 100644 index 0000000..5f461a1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ApplicationEntity.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Application list + */ +@ApiModel(description = "Application list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ApplicationEntity { + @JsonProperty("applicationName") + private String applicationName; + + @JsonProperty("applicationId") + private Integer applicationId; + + @JsonProperty("description") + private String description; + + @JsonProperty("family") + private String family; + + public ApplicationEntity applicationName(String applicationName) { + this.applicationName = applicationName; + return this; + } + + /** + * Application name + * @return applicationName + */ + @ApiModelProperty(value = "Application name") + + + public String getApplicationName() { + return applicationName; + } + + public void setApplicationName(String applicationName) { + this.applicationName = applicationName; + } + + public ApplicationEntity applicationId(Integer applicationId) { + this.applicationId = applicationId; + return this; + } + + /** + * Application ID + * @return applicationId + */ + @ApiModelProperty(value = "Application ID") + + + public Integer getApplicationId() { + return applicationId; + } + + public void setApplicationId(Integer applicationId) { + this.applicationId = applicationId; + } + + public ApplicationEntity description(String description) { + this.description = description; + return this; + } + + /** + * Description of application + * @return description + */ + @ApiModelProperty(value = "Description of application") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public ApplicationEntity family(String family) { + this.family = family; + return this; + } + + /** + * Family of application + * @return family + */ + @ApiModelProperty(value = "Family of application") + + + public String getFamily() { + return family; + } + + public void setFamily(String family) { + this.family = family; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ApplicationEntity applicationEntity = (ApplicationEntity) o; + return Objects.equals(this.applicationName, applicationEntity.applicationName) && + Objects.equals(this.applicationId, applicationEntity.applicationId) && + Objects.equals(this.description, applicationEntity.description) && + Objects.equals(this.family, applicationEntity.family); + } + + @Override + public int hashCode() { + return Objects.hash(applicationName, applicationId, description, family); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ApplicationEntity {\n"); + + sb.append(" applicationName: ").append(toIndentedString(applicationName)).append("\n"); + sb.append(" applicationId: ").append(toIndentedString(applicationId)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" family: ").append(toIndentedString(family)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AttackDefenseSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AttackDefenseSetting.java new file mode 100644 index 0000000..5be5386 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AttackDefenseSetting.java @@ -0,0 +1,618 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * AttackDefenseSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class AttackDefenseSetting { + @JsonProperty("tcpConnEnable") + private Boolean tcpConnEnable; + + @JsonProperty("tcpConnLimit") + private Integer tcpConnLimit; + + @JsonProperty("udpConnEnable") + private Boolean udpConnEnable; + + @JsonProperty("udpConnLimit") + private Integer udpConnLimit; + + @JsonProperty("icmpConnEnable") + private Boolean icmpConnEnable; + + @JsonProperty("icmpConnLimit") + private Integer icmpConnLimit; + + @JsonProperty("tcpSrcEnable") + private Boolean tcpSrcEnable; + + @JsonProperty("tcpSrcLimit") + private Integer tcpSrcLimit; + + @JsonProperty("udpSrcEnable") + private Boolean udpSrcEnable; + + @JsonProperty("udpSrcLimit") + private Integer udpSrcLimit; + + @JsonProperty("icmpSrcEnable") + private Boolean icmpSrcEnable; + + @JsonProperty("icmpSrcLimit") + private Integer icmpSrcLimit; + + @JsonProperty("tcpScanEnable") + private Boolean tcpScanEnable; + + @JsonProperty("tcpScanReject") + private Boolean tcpScanReject; + + @JsonProperty("pingDeathEnable") + private Boolean pingDeathEnable; + + @JsonProperty("largePingEnable") + private Boolean largePingEnable; + + @JsonProperty("pingWanEnable") + private Boolean pingWanEnable; + + @JsonProperty("winNukeAttackEnable") + private Boolean winNukeAttackEnable; + + @JsonProperty("tcpSynFinEnable") + private Boolean tcpSynFinEnable; + + @JsonProperty("tcpFinNoAckEnable") + private Boolean tcpFinNoAckEnable; + + @JsonProperty("specifiedOptionEnable") + private Boolean specifiedOptionEnable; + + @JsonProperty("specifiedOption") + private SpecifiedOptionOpenApiVo specifiedOption; + + public AttackDefenseSetting tcpConnEnable(Boolean tcpConnEnable) { + this.tcpConnEnable = tcpConnEnable; + return this; + } + + /** + * Multi-connections TCP SYN flood enable of the attack defense setting. + * @return tcpConnEnable + */ + @ApiModelProperty(required = true, value = "Multi-connections TCP SYN flood enable of the attack defense setting.") + @NotNull + + + public Boolean getTcpConnEnable() { + return tcpConnEnable; + } + + public void setTcpConnEnable(Boolean tcpConnEnable) { + this.tcpConnEnable = tcpConnEnable; + } + + public AttackDefenseSetting tcpConnLimit(Integer tcpConnLimit) { + this.tcpConnLimit = tcpConnLimit; + return this; + } + + /** + * Multi-connections TCP SYN flood limit should be within the range of 100–99999. + * @return tcpConnLimit + */ + @ApiModelProperty(value = "Multi-connections TCP SYN flood limit should be within the range of 100–99999.") + + + public Integer getTcpConnLimit() { + return tcpConnLimit; + } + + public void setTcpConnLimit(Integer tcpConnLimit) { + this.tcpConnLimit = tcpConnLimit; + } + + public AttackDefenseSetting udpConnEnable(Boolean udpConnEnable) { + this.udpConnEnable = udpConnEnable; + return this; + } + + /** + * Multi-connections UDP flood enable of the attack defense setting. + * @return udpConnEnable + */ + @ApiModelProperty(required = true, value = "Multi-connections UDP flood enable of the attack defense setting.") + @NotNull + + + public Boolean getUdpConnEnable() { + return udpConnEnable; + } + + public void setUdpConnEnable(Boolean udpConnEnable) { + this.udpConnEnable = udpConnEnable; + } + + public AttackDefenseSetting udpConnLimit(Integer udpConnLimit) { + this.udpConnLimit = udpConnLimit; + return this; + } + + /** + * Multi-connections UDP flood limit should be within the range of 100–99999. + * @return udpConnLimit + */ + @ApiModelProperty(value = "Multi-connections UDP flood limit should be within the range of 100–99999.") + + + public Integer getUdpConnLimit() { + return udpConnLimit; + } + + public void setUdpConnLimit(Integer udpConnLimit) { + this.udpConnLimit = udpConnLimit; + } + + public AttackDefenseSetting icmpConnEnable(Boolean icmpConnEnable) { + this.icmpConnEnable = icmpConnEnable; + return this; + } + + /** + * Multi-connections ICMP flood enable of the attack defense setting. + * @return icmpConnEnable + */ + @ApiModelProperty(required = true, value = "Multi-connections ICMP flood enable of the attack defense setting.") + @NotNull + + + public Boolean getIcmpConnEnable() { + return icmpConnEnable; + } + + public void setIcmpConnEnable(Boolean icmpConnEnable) { + this.icmpConnEnable = icmpConnEnable; + } + + public AttackDefenseSetting icmpConnLimit(Integer icmpConnLimit) { + this.icmpConnLimit = icmpConnLimit; + return this; + } + + /** + * Multi-connections ICMP flood limit should be within the range of 100–99999. + * @return icmpConnLimit + */ + @ApiModelProperty(value = "Multi-connections ICMP flood limit should be within the range of 100–99999.") + + + public Integer getIcmpConnLimit() { + return icmpConnLimit; + } + + public void setIcmpConnLimit(Integer icmpConnLimit) { + this.icmpConnLimit = icmpConnLimit; + } + + public AttackDefenseSetting tcpSrcEnable(Boolean tcpSrcEnable) { + this.tcpSrcEnable = tcpSrcEnable; + return this; + } + + /** + * Stationary source TCP SYN flood enable of the attack defense setting. + * @return tcpSrcEnable + */ + @ApiModelProperty(required = true, value = "Stationary source TCP SYN flood enable of the attack defense setting.") + @NotNull + + + public Boolean getTcpSrcEnable() { + return tcpSrcEnable; + } + + public void setTcpSrcEnable(Boolean tcpSrcEnable) { + this.tcpSrcEnable = tcpSrcEnable; + } + + public AttackDefenseSetting tcpSrcLimit(Integer tcpSrcLimit) { + this.tcpSrcLimit = tcpSrcLimit; + return this; + } + + /** + * Stationary source TCP SYN flood limit should be within the range of 100–99999. + * @return tcpSrcLimit + */ + @ApiModelProperty(value = "Stationary source TCP SYN flood limit should be within the range of 100–99999.") + + + public Integer getTcpSrcLimit() { + return tcpSrcLimit; + } + + public void setTcpSrcLimit(Integer tcpSrcLimit) { + this.tcpSrcLimit = tcpSrcLimit; + } + + public AttackDefenseSetting udpSrcEnable(Boolean udpSrcEnable) { + this.udpSrcEnable = udpSrcEnable; + return this; + } + + /** + * Stationary source UDP flood enable of the attack defense setting. + * @return udpSrcEnable + */ + @ApiModelProperty(required = true, value = "Stationary source UDP flood enable of the attack defense setting.") + @NotNull + + + public Boolean getUdpSrcEnable() { + return udpSrcEnable; + } + + public void setUdpSrcEnable(Boolean udpSrcEnable) { + this.udpSrcEnable = udpSrcEnable; + } + + public AttackDefenseSetting udpSrcLimit(Integer udpSrcLimit) { + this.udpSrcLimit = udpSrcLimit; + return this; + } + + /** + * Stationary source UDP flood limit should be within the range of 100–99999. + * @return udpSrcLimit + */ + @ApiModelProperty(value = "Stationary source UDP flood limit should be within the range of 100–99999.") + + + public Integer getUdpSrcLimit() { + return udpSrcLimit; + } + + public void setUdpSrcLimit(Integer udpSrcLimit) { + this.udpSrcLimit = udpSrcLimit; + } + + public AttackDefenseSetting icmpSrcEnable(Boolean icmpSrcEnable) { + this.icmpSrcEnable = icmpSrcEnable; + return this; + } + + /** + * Stationary source ICMP flood enable of the attack defense setting. + * @return icmpSrcEnable + */ + @ApiModelProperty(required = true, value = "Stationary source ICMP flood enable of the attack defense setting.") + @NotNull + + + public Boolean getIcmpSrcEnable() { + return icmpSrcEnable; + } + + public void setIcmpSrcEnable(Boolean icmpSrcEnable) { + this.icmpSrcEnable = icmpSrcEnable; + } + + public AttackDefenseSetting icmpSrcLimit(Integer icmpSrcLimit) { + this.icmpSrcLimit = icmpSrcLimit; + return this; + } + + /** + * Stationary source ICMP flood limit should be within the range of 100–99999. + * @return icmpSrcLimit + */ + @ApiModelProperty(value = "Stationary source ICMP flood limit should be within the range of 100–99999.") + + + public Integer getIcmpSrcLimit() { + return icmpSrcLimit; + } + + public void setIcmpSrcLimit(Integer icmpSrcLimit) { + this.icmpSrcLimit = icmpSrcLimit; + } + + public AttackDefenseSetting tcpScanEnable(Boolean tcpScanEnable) { + this.tcpScanEnable = tcpScanEnable; + return this; + } + + /** + * Block TCP scan enable of the attack defense setting. + * @return tcpScanEnable + */ + @ApiModelProperty(required = true, value = "Block TCP scan enable of the attack defense setting.") + @NotNull + + + public Boolean getTcpScanEnable() { + return tcpScanEnable; + } + + public void setTcpScanEnable(Boolean tcpScanEnable) { + this.tcpScanEnable = tcpScanEnable; + } + + public AttackDefenseSetting tcpScanReject(Boolean tcpScanReject) { + this.tcpScanReject = tcpScanReject; + return this; + } + + /** + * Block TCP scan with reject of the attack defense setting. + * @return tcpScanReject + */ + @ApiModelProperty(value = "Block TCP scan with reject of the attack defense setting.") + + + public Boolean getTcpScanReject() { + return tcpScanReject; + } + + public void setTcpScanReject(Boolean tcpScanReject) { + this.tcpScanReject = tcpScanReject; + } + + public AttackDefenseSetting pingDeathEnable(Boolean pingDeathEnable) { + this.pingDeathEnable = pingDeathEnable; + return this; + } + + /** + * Block ping of death of the attack defense setting. + * @return pingDeathEnable + */ + @ApiModelProperty(required = true, value = "Block ping of death of the attack defense setting.") + @NotNull + + + public Boolean getPingDeathEnable() { + return pingDeathEnable; + } + + public void setPingDeathEnable(Boolean pingDeathEnable) { + this.pingDeathEnable = pingDeathEnable; + } + + public AttackDefenseSetting largePingEnable(Boolean largePingEnable) { + this.largePingEnable = largePingEnable; + return this; + } + + /** + * Block large ping of the attack defense setting. + * @return largePingEnable + */ + @ApiModelProperty(required = true, value = "Block large ping of the attack defense setting.") + @NotNull + + + public Boolean getLargePingEnable() { + return largePingEnable; + } + + public void setLargePingEnable(Boolean largePingEnable) { + this.largePingEnable = largePingEnable; + } + + public AttackDefenseSetting pingWanEnable(Boolean pingWanEnable) { + this.pingWanEnable = pingWanEnable; + return this; + } + + /** + * Block ping from WAN of the attack defense setting. + * @return pingWanEnable + */ + @ApiModelProperty(required = true, value = "Block ping from WAN of the attack defense setting.") + @NotNull + + + public Boolean getPingWanEnable() { + return pingWanEnable; + } + + public void setPingWanEnable(Boolean pingWanEnable) { + this.pingWanEnable = pingWanEnable; + } + + public AttackDefenseSetting winNukeAttackEnable(Boolean winNukeAttackEnable) { + this.winNukeAttackEnable = winNukeAttackEnable; + return this; + } + + /** + * Block WinNuke attack of the attack defense setting. + * @return winNukeAttackEnable + */ + @ApiModelProperty(required = true, value = "Block WinNuke attack of the attack defense setting.") + @NotNull + + + public Boolean getWinNukeAttackEnable() { + return winNukeAttackEnable; + } + + public void setWinNukeAttackEnable(Boolean winNukeAttackEnable) { + this.winNukeAttackEnable = winNukeAttackEnable; + } + + public AttackDefenseSetting tcpSynFinEnable(Boolean tcpSynFinEnable) { + this.tcpSynFinEnable = tcpSynFinEnable; + return this; + } + + /** + * Block TCP packets with SYN and FIN Bits set of the attack defense setting. + * @return tcpSynFinEnable + */ + @ApiModelProperty(required = true, value = "Block TCP packets with SYN and FIN Bits set of the attack defense setting.") + @NotNull + + + public Boolean getTcpSynFinEnable() { + return tcpSynFinEnable; + } + + public void setTcpSynFinEnable(Boolean tcpSynFinEnable) { + this.tcpSynFinEnable = tcpSynFinEnable; + } + + public AttackDefenseSetting tcpFinNoAckEnable(Boolean tcpFinNoAckEnable) { + this.tcpFinNoAckEnable = tcpFinNoAckEnable; + return this; + } + + /** + * Block TCP packets with FIN Bit set but no ACK Bit set of the attack defense setting. + * @return tcpFinNoAckEnable + */ + @ApiModelProperty(required = true, value = "Block TCP packets with FIN Bit set but no ACK Bit set of the attack defense setting.") + @NotNull + + + public Boolean getTcpFinNoAckEnable() { + return tcpFinNoAckEnable; + } + + public void setTcpFinNoAckEnable(Boolean tcpFinNoAckEnable) { + this.tcpFinNoAckEnable = tcpFinNoAckEnable; + } + + public AttackDefenseSetting specifiedOptionEnable(Boolean specifiedOptionEnable) { + this.specifiedOptionEnable = specifiedOptionEnable; + return this; + } + + /** + * Block packets with specified options of the attack defense setting. + * @return specifiedOptionEnable + */ + @ApiModelProperty(required = true, value = "Block packets with specified options of the attack defense setting.") + @NotNull + + + public Boolean getSpecifiedOptionEnable() { + return specifiedOptionEnable; + } + + public void setSpecifiedOptionEnable(Boolean specifiedOptionEnable) { + this.specifiedOptionEnable = specifiedOptionEnable; + } + + public AttackDefenseSetting specifiedOption(SpecifiedOptionOpenApiVo specifiedOption) { + this.specifiedOption = specifiedOption; + return this; + } + + /** + * Get specifiedOption + * @return specifiedOption + */ + @ApiModelProperty(value = "") + + @Valid + + public SpecifiedOptionOpenApiVo getSpecifiedOption() { + return specifiedOption; + } + + public void setSpecifiedOption(SpecifiedOptionOpenApiVo specifiedOption) { + this.specifiedOption = specifiedOption; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AttackDefenseSetting attackDefenseSetting = (AttackDefenseSetting) o; + return Objects.equals(this.tcpConnEnable, attackDefenseSetting.tcpConnEnable) && + Objects.equals(this.tcpConnLimit, attackDefenseSetting.tcpConnLimit) && + Objects.equals(this.udpConnEnable, attackDefenseSetting.udpConnEnable) && + Objects.equals(this.udpConnLimit, attackDefenseSetting.udpConnLimit) && + Objects.equals(this.icmpConnEnable, attackDefenseSetting.icmpConnEnable) && + Objects.equals(this.icmpConnLimit, attackDefenseSetting.icmpConnLimit) && + Objects.equals(this.tcpSrcEnable, attackDefenseSetting.tcpSrcEnable) && + Objects.equals(this.tcpSrcLimit, attackDefenseSetting.tcpSrcLimit) && + Objects.equals(this.udpSrcEnable, attackDefenseSetting.udpSrcEnable) && + Objects.equals(this.udpSrcLimit, attackDefenseSetting.udpSrcLimit) && + Objects.equals(this.icmpSrcEnable, attackDefenseSetting.icmpSrcEnable) && + Objects.equals(this.icmpSrcLimit, attackDefenseSetting.icmpSrcLimit) && + Objects.equals(this.tcpScanEnable, attackDefenseSetting.tcpScanEnable) && + Objects.equals(this.tcpScanReject, attackDefenseSetting.tcpScanReject) && + Objects.equals(this.pingDeathEnable, attackDefenseSetting.pingDeathEnable) && + Objects.equals(this.largePingEnable, attackDefenseSetting.largePingEnable) && + Objects.equals(this.pingWanEnable, attackDefenseSetting.pingWanEnable) && + Objects.equals(this.winNukeAttackEnable, attackDefenseSetting.winNukeAttackEnable) && + Objects.equals(this.tcpSynFinEnable, attackDefenseSetting.tcpSynFinEnable) && + Objects.equals(this.tcpFinNoAckEnable, attackDefenseSetting.tcpFinNoAckEnable) && + Objects.equals(this.specifiedOptionEnable, attackDefenseSetting.specifiedOptionEnable) && + Objects.equals(this.specifiedOption, attackDefenseSetting.specifiedOption); + } + + @Override + public int hashCode() { + return Objects.hash(tcpConnEnable, tcpConnLimit, udpConnEnable, udpConnLimit, icmpConnEnable, icmpConnLimit, tcpSrcEnable, tcpSrcLimit, udpSrcEnable, udpSrcLimit, icmpSrcEnable, icmpSrcLimit, tcpScanEnable, tcpScanReject, pingDeathEnable, largePingEnable, pingWanEnable, winNukeAttackEnable, tcpSynFinEnable, tcpFinNoAckEnable, specifiedOptionEnable, specifiedOption); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AttackDefenseSetting {\n"); + + sb.append(" tcpConnEnable: ").append(toIndentedString(tcpConnEnable)).append("\n"); + sb.append(" tcpConnLimit: ").append(toIndentedString(tcpConnLimit)).append("\n"); + sb.append(" udpConnEnable: ").append(toIndentedString(udpConnEnable)).append("\n"); + sb.append(" udpConnLimit: ").append(toIndentedString(udpConnLimit)).append("\n"); + sb.append(" icmpConnEnable: ").append(toIndentedString(icmpConnEnable)).append("\n"); + sb.append(" icmpConnLimit: ").append(toIndentedString(icmpConnLimit)).append("\n"); + sb.append(" tcpSrcEnable: ").append(toIndentedString(tcpSrcEnable)).append("\n"); + sb.append(" tcpSrcLimit: ").append(toIndentedString(tcpSrcLimit)).append("\n"); + sb.append(" udpSrcEnable: ").append(toIndentedString(udpSrcEnable)).append("\n"); + sb.append(" udpSrcLimit: ").append(toIndentedString(udpSrcLimit)).append("\n"); + sb.append(" icmpSrcEnable: ").append(toIndentedString(icmpSrcEnable)).append("\n"); + sb.append(" icmpSrcLimit: ").append(toIndentedString(icmpSrcLimit)).append("\n"); + sb.append(" tcpScanEnable: ").append(toIndentedString(tcpScanEnable)).append("\n"); + sb.append(" tcpScanReject: ").append(toIndentedString(tcpScanReject)).append("\n"); + sb.append(" pingDeathEnable: ").append(toIndentedString(pingDeathEnable)).append("\n"); + sb.append(" largePingEnable: ").append(toIndentedString(largePingEnable)).append("\n"); + sb.append(" pingWanEnable: ").append(toIndentedString(pingWanEnable)).append("\n"); + sb.append(" winNukeAttackEnable: ").append(toIndentedString(winNukeAttackEnable)).append("\n"); + sb.append(" tcpSynFinEnable: ").append(toIndentedString(tcpSynFinEnable)).append("\n"); + sb.append(" tcpFinNoAckEnable: ").append(toIndentedString(tcpFinNoAckEnable)).append("\n"); + sb.append(" specifiedOptionEnable: ").append(toIndentedString(specifiedOptionEnable)).append("\n"); + sb.append(" specifiedOption: ").append(toIndentedString(specifiedOption)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AuthTimeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AuthTimeOpenApiVo.java new file mode 100644 index 0000000..de35ad1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AuthTimeOpenApiVo.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * RADIUS auth timeout setting. + */ +@ApiModel(description = "RADIUS auth timeout setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class AuthTimeOpenApiVo { + @JsonProperty("authTimeout") + private Integer authTimeout; + + @JsonProperty("customTimeout") + private Integer customTimeout; + + @JsonProperty("customTimeoutUnit") + private Integer customTimeoutUnit; + + public AuthTimeOpenApiVo authTimeout(Integer authTimeout) { + this.authTimeout = authTimeout; + return this; + } + + /** + * Validity period should be a value as follows: 0: Custom; 1: 30 Minutes; 2: 1 Hour; 3: 2 Hours; 4: 4 Hours; 5: 8 Hours; 6: 1 Day; 7: 7 Days integer. + * @return authTimeout + */ + @ApiModelProperty(required = true, value = "Validity period should be a value as follows: 0: Custom; 1: 30 Minutes; 2: 1 Hour; 3: 2 Hours; 4: 4 Hours; 5: 8 Hours; 6: 1 Day; 7: 7 Days integer.") + @NotNull + + + public Integer getAuthTimeout() { + return authTimeout; + } + + public void setAuthTimeout(Integer authTimeout) { + this.authTimeout = authTimeout; + } + + public AuthTimeOpenApiVo customTimeout(Integer customTimeout) { + this.customTimeout = customTimeout; + return this; + } + + /** + * Custom timeout should be within the range of 1 ~ 1,000,000 minutes(when parameter[customTimeoutUnit] value is 1), or 1 ~ 10,000 hours(when parameter[customTimeoutUnit] value is 2), or 1 ~ 1,000 days(when parameter[customTimeoutUnit] value is 3). + * @return customTimeout + */ + @ApiModelProperty(value = "Custom timeout should be within the range of 1 ~ 1,000,000 minutes(when parameter[customTimeoutUnit] value is 1), or 1 ~ 10,000 hours(when parameter[customTimeoutUnit] value is 2), or 1 ~ 1,000 days(when parameter[customTimeoutUnit] value is 3).") + + + public Integer getCustomTimeout() { + return customTimeout; + } + + public void setCustomTimeout(Integer customTimeout) { + this.customTimeout = customTimeout; + } + + public AuthTimeOpenApiVo customTimeoutUnit(Integer customTimeoutUnit) { + this.customTimeoutUnit = customTimeoutUnit; + return this; + } + + /** + * Custom timeout unit should be a value as follows: 1: min; 2: hour; 3: day. + * @return customTimeoutUnit + */ + @ApiModelProperty(value = "Custom timeout unit should be a value as follows: 1: min; 2: hour; 3: day.") + + + public Integer getCustomTimeoutUnit() { + return customTimeoutUnit; + } + + public void setCustomTimeoutUnit(Integer customTimeoutUnit) { + this.customTimeoutUnit = customTimeoutUnit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthTimeOpenApiVo authTimeOpenApiVo = (AuthTimeOpenApiVo) o; + return Objects.equals(this.authTimeout, authTimeOpenApiVo.authTimeout) && + Objects.equals(this.customTimeout, authTimeOpenApiVo.customTimeout) && + Objects.equals(this.customTimeoutUnit, authTimeOpenApiVo.customTimeoutUnit); + } + + @Override + public int hashCode() { + return Objects.hash(authTimeout, customTimeout, customTimeoutUnit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthTimeOpenApiVo {\n"); + + sb.append(" authTimeout: ").append(toIndentedString(authTimeout)).append("\n"); + sb.append(" customTimeout: ").append(toIndentedString(customTimeout)).append("\n"); + sb.append(" customTimeoutUnit: ").append(toIndentedString(customTimeoutUnit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AuthTimeoutSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AuthTimeoutSetting.java new file mode 100644 index 0000000..4aeb3ce --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AuthTimeoutSetting.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Auth Timeout Setting. + */ +@ApiModel(description = "Auth Timeout Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class AuthTimeoutSetting { + @JsonProperty("customTimeout") + private Integer customTimeout; + + @JsonProperty("customTimeoutUnit") + private Integer customTimeoutUnit; + + public AuthTimeoutSetting customTimeout(Integer customTimeout) { + this.customTimeout = customTimeout; + return this; + } + + /** + * Custom timeout should be within the range of 1 - 1,000,000 min or 1 - 10,000 hour or 1 - 1,000 day. + * @return customTimeout + */ + @ApiModelProperty(value = "Custom timeout should be within the range of 1 - 1,000,000 min or 1 - 10,000 hour or 1 - 1,000 day.") + + + public Integer getCustomTimeout() { + return customTimeout; + } + + public void setCustomTimeout(Integer customTimeout) { + this.customTimeout = customTimeout; + } + + public AuthTimeoutSetting customTimeoutUnit(Integer customTimeoutUnit) { + this.customTimeoutUnit = customTimeoutUnit; + return this; + } + + /** + * Timeout unit, should be a value as follows: 1: min; 2: hour; 3: day. + * @return customTimeoutUnit + */ + @ApiModelProperty(value = "Timeout unit, should be a value as follows: 1: min; 2: hour; 3: day.") + + + public Integer getCustomTimeoutUnit() { + return customTimeoutUnit; + } + + public void setCustomTimeoutUnit(Integer customTimeoutUnit) { + this.customTimeoutUnit = customTimeoutUnit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AuthTimeoutSetting authTimeoutSetting = (AuthTimeoutSetting) o; + return Objects.equals(this.customTimeout, authTimeoutSetting.customTimeout) && + Objects.equals(this.customTimeoutUnit, authTimeoutSetting.customTimeoutUnit); + } + + @Override + public int hashCode() { + return Objects.hash(customTimeout, customTimeoutUnit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AuthTimeoutSetting {\n"); + + sb.append(" customTimeout: ").append(toIndentedString(customTimeout)).append("\n"); + sb.append(" customTimeoutUnit: ").append(toIndentedString(customTimeoutUnit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AutoConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AutoConfigOpenApiVo.java new file mode 100644 index 0000000..7ed1381 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/AutoConfigOpenApiVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * It is required when [configType] is 0. + */ +@ApiModel(description = "It is required when [configType] is 0.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class AutoConfigOpenApiVo { + @JsonProperty("location") + private Integer location; + + @JsonProperty("mobileISP") + private Integer mobileISP; + + public AutoConfigOpenApiVo location(Integer location) { + this.location = location; + return this; + } + + /** + * Location index, which refers to \"Get location and ISP info\". + * @return location + */ + @ApiModelProperty(required = true, value = "Location index, which refers to \"Get location and ISP info\".") + @NotNull + + + public Integer getLocation() { + return location; + } + + public void setLocation(Integer location) { + this.location = location; + } + + public AutoConfigOpenApiVo mobileISP(Integer mobileISP) { + this.mobileISP = mobileISP; + return this; + } + + /** + * MobileISP index, which refers to \"Get location and ISP info\". + * @return mobileISP + */ + @ApiModelProperty(required = true, value = "MobileISP index, which refers to \"Get location and ISP info\".") + @NotNull + + + public Integer getMobileISP() { + return mobileISP; + } + + public void setMobileISP(Integer mobileISP) { + this.mobileISP = mobileISP; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + AutoConfigOpenApiVo autoConfigOpenApiVo = (AutoConfigOpenApiVo) o; + return Objects.equals(this.location, autoConfigOpenApiVo.location) && + Objects.equals(this.mobileISP, autoConfigOpenApiVo.mobileISP); + } + + @Override + public int hashCode() { + return Objects.hash(location, mobileISP); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class AutoConfigOpenApiVo {\n"); + + sb.append(" location: ").append(toIndentedString(location)).append("\n"); + sb.append(" mobileISP: ").append(toIndentedString(mobileISP)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandCtrlEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandCtrlEntity.java new file mode 100644 index 0000000..672e898 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandCtrlEntity.java @@ -0,0 +1,206 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * BandCtrl + */ +@ApiModel(description = "BandCtrl") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BandCtrlEntity { + @JsonProperty("egressEnable") + private Boolean egressEnable; + + @JsonProperty("egressLimit") + private Integer egressLimit; + + @JsonProperty("egressUnit") + private Integer egressUnit; + + @JsonProperty("ingressEnable") + private Boolean ingressEnable; + + @JsonProperty("ingressLimit") + private Integer ingressLimit; + + @JsonProperty("ingressUnit") + private Integer ingressUnit; + + public BandCtrlEntity egressEnable(Boolean egressEnable) { + this.egressEnable = egressEnable; + return this; + } + + /** + * Egress enable status + * @return egressEnable + */ + @ApiModelProperty(required = true, value = "Egress enable status") + @NotNull + + + public Boolean getEgressEnable() { + return egressEnable; + } + + public void setEgressEnable(Boolean egressEnable) { + this.egressEnable = egressEnable; + } + + public BandCtrlEntity egressLimit(Integer egressLimit) { + this.egressLimit = egressLimit; + return this; + } + + /** + * EgressLimit + * @return egressLimit + */ + @ApiModelProperty(value = "EgressLimit") + + + public Integer getEgressLimit() { + return egressLimit; + } + + public void setEgressLimit(Integer egressLimit) { + this.egressLimit = egressLimit; + } + + public BandCtrlEntity egressUnit(Integer egressUnit) { + this.egressUnit = egressUnit; + return this; + } + + /** + * EgressUnit should be a value as follows: 1: 1Kps and 2: Mbps + * @return egressUnit + */ + @ApiModelProperty(value = "EgressUnit should be a value as follows: 1: 1Kps and 2: Mbps") + + + public Integer getEgressUnit() { + return egressUnit; + } + + public void setEgressUnit(Integer egressUnit) { + this.egressUnit = egressUnit; + } + + public BandCtrlEntity ingressEnable(Boolean ingressEnable) { + this.ingressEnable = ingressEnable; + return this; + } + + /** + * Ingress enable status + * @return ingressEnable + */ + @ApiModelProperty(required = true, value = "Ingress enable status") + @NotNull + + + public Boolean getIngressEnable() { + return ingressEnable; + } + + public void setIngressEnable(Boolean ingressEnable) { + this.ingressEnable = ingressEnable; + } + + public BandCtrlEntity ingressLimit(Integer ingressLimit) { + this.ingressLimit = ingressLimit; + return this; + } + + /** + * IngressLimit + * @return ingressLimit + */ + @ApiModelProperty(value = "IngressLimit") + + + public Integer getIngressLimit() { + return ingressLimit; + } + + public void setIngressLimit(Integer ingressLimit) { + this.ingressLimit = ingressLimit; + } + + public BandCtrlEntity ingressUnit(Integer ingressUnit) { + this.ingressUnit = ingressUnit; + return this; + } + + /** + * IngressUnit should be a value as follows: 1: 1Kps and 2: Mbps + * @return ingressUnit + */ + @ApiModelProperty(value = "IngressUnit should be a value as follows: 1: 1Kps and 2: Mbps") + + + public Integer getIngressUnit() { + return ingressUnit; + } + + public void setIngressUnit(Integer ingressUnit) { + this.ingressUnit = ingressUnit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BandCtrlEntity bandCtrlEntity = (BandCtrlEntity) o; + return Objects.equals(this.egressEnable, bandCtrlEntity.egressEnable) && + Objects.equals(this.egressLimit, bandCtrlEntity.egressLimit) && + Objects.equals(this.egressUnit, bandCtrlEntity.egressUnit) && + Objects.equals(this.ingressEnable, bandCtrlEntity.ingressEnable) && + Objects.equals(this.ingressLimit, bandCtrlEntity.ingressLimit) && + Objects.equals(this.ingressUnit, bandCtrlEntity.ingressUnit); + } + + @Override + public int hashCode() { + return Objects.hash(egressEnable, egressLimit, egressUnit, ingressEnable, ingressLimit, ingressUnit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BandCtrlEntity {\n"); + + sb.append(" egressEnable: ").append(toIndentedString(egressEnable)).append("\n"); + sb.append(" egressLimit: ").append(toIndentedString(egressLimit)).append("\n"); + sb.append(" egressUnit: ").append(toIndentedString(egressUnit)).append("\n"); + sb.append(" ingressEnable: ").append(toIndentedString(ingressEnable)).append("\n"); + sb.append(" ingressLimit: ").append(toIndentedString(ingressLimit)).append("\n"); + sb.append(" ingressUnit: ").append(toIndentedString(ingressUnit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandSteeringMultiBandVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandSteeringMultiBandVo.java new file mode 100644 index 0000000..7d11dd4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandSteeringMultiBandVo.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Site band steering. + */ +@ApiModel(description = "Site band steering.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BandSteeringMultiBandVo { + @JsonProperty("mode") + private Integer mode; + + public BandSteeringMultiBandVo mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Mode should be a value as follows: 0: Disable; 1: Prefer 5GHz/6GHz; 2: Balance + * @return mode + */ + @ApiModelProperty(required = true, value = "Mode should be a value as follows: 0: Disable; 1: Prefer 5GHz/6GHz; 2: Balance") + @NotNull + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BandSteeringMultiBandVo bandSteeringMultiBandVo = (BandSteeringMultiBandVo) o; + return Objects.equals(this.mode, bandSteeringMultiBandVo.mode); + } + + @Override + public int hashCode() { + return Objects.hash(mode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BandSteeringMultiBandVo {\n"); + + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthControl.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthControl.java new file mode 100644 index 0000000..0cf0cc3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthControl.java @@ -0,0 +1,166 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BandwidthControl + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BandwidthControl { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("thresholdControlEnable") + private Boolean thresholdControlEnable; + + @JsonProperty("thresholdValue") + private Integer thresholdValue; + + @JsonProperty("bandwidthPortSettings") + @Valid + private List bandwidthPortSettings = null; + + public BandwidthControl enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Enable the bandwidth control. + * @return enable + */ + @ApiModelProperty(required = true, value = "Enable the bandwidth control.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public BandwidthControl thresholdControlEnable(Boolean thresholdControlEnable) { + this.thresholdControlEnable = thresholdControlEnable; + return this; + } + + /** + * Enable the threshold control of the bandwidth control. + * @return thresholdControlEnable + */ + @ApiModelProperty(value = "Enable the threshold control of the bandwidth control.") + + + public Boolean getThresholdControlEnable() { + return thresholdControlEnable; + } + + public void setThresholdControlEnable(Boolean thresholdControlEnable) { + this.thresholdControlEnable = thresholdControlEnable; + } + + public BandwidthControl thresholdValue(Integer thresholdValue) { + this.thresholdValue = thresholdValue; + return this; + } + + /** + * Threshold value should be within the range of 1–100. Threshold value must be entered when threshold control is enable. + * @return thresholdValue + */ + @ApiModelProperty(value = "Threshold value should be within the range of 1–100. Threshold value must be entered when threshold control is enable.") + + + public Integer getThresholdValue() { + return thresholdValue; + } + + public void setThresholdValue(Integer thresholdValue) { + this.thresholdValue = thresholdValue; + } + + public BandwidthControl bandwidthPortSettings(List bandwidthPortSettings) { + this.bandwidthPortSettings = bandwidthPortSettings; + return this; + } + + public BandwidthControl addBandwidthPortSettingsItem(BandwidthPortSetting bandwidthPortSettingsItem) { + if (this.bandwidthPortSettings == null) { + this.bandwidthPortSettings = new ArrayList<>(); + } + this.bandwidthPortSettings.add(bandwidthPortSettingsItem); + return this; + } + + /** + * Bandwidth port settings of the bandwidth control. + * @return bandwidthPortSettings + */ + @ApiModelProperty(value = "Bandwidth port settings of the bandwidth control.") + + @Valid + + public List getBandwidthPortSettings() { + return bandwidthPortSettings; + } + + public void setBandwidthPortSettings(List bandwidthPortSettings) { + this.bandwidthPortSettings = bandwidthPortSettings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BandwidthControl bandwidthControl = (BandwidthControl) o; + return Objects.equals(this.enable, bandwidthControl.enable) && + Objects.equals(this.thresholdControlEnable, bandwidthControl.thresholdControlEnable) && + Objects.equals(this.thresholdValue, bandwidthControl.thresholdValue) && + Objects.equals(this.bandwidthPortSettings, bandwidthControl.bandwidthPortSettings); + } + + @Override + public int hashCode() { + return Objects.hash(enable, thresholdControlEnable, thresholdValue, bandwidthPortSettings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BandwidthControl {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" thresholdControlEnable: ").append(toIndentedString(thresholdControlEnable)).append("\n"); + sb.append(" thresholdValue: ").append(toIndentedString(thresholdValue)).append("\n"); + sb.append(" bandwidthPortSettings: ").append(toIndentedString(bandwidthPortSettings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthControlRule.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthControlRule.java new file mode 100644 index 0000000..61d5b3d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthControlRule.java @@ -0,0 +1,377 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BandwidthControlRule + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BandwidthControlRule { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("index") + private Integer index; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = new ArrayList<>(); + + @JsonProperty("wanPortIds") + @Valid + private List wanPortIds = new ArrayList<>(); + + @JsonProperty("upstreamBandwidth") + private Integer upstreamBandwidth; + + @JsonProperty("upstreamBandwidthUnit") + private Integer upstreamBandwidthUnit; + + @JsonProperty("downstreamBandwidth") + private Integer downstreamBandwidth; + + @JsonProperty("downstreamBandwidthUnit") + private Integer downstreamBandwidthUnit; + + @JsonProperty("mode") + private Integer mode; + + public BandwidthControlRule id(String id) { + this.id = id; + return this; + } + + /** + * ID of the bandwidth control rule. + * @return id + */ + @ApiModelProperty(value = "ID of the bandwidth control rule.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public BandwidthControlRule name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public BandwidthControlRule index(Integer index) { + this.index = index; + return this; + } + + /** + * Index of the bandwidth control rule. + * @return index + */ + @ApiModelProperty(value = "Index of the bandwidth control rule.") + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public BandwidthControlRule status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the bandwidth control rule. + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the bandwidth control rule.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public BandwidthControlRule sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * Source type should be a value as follows: 0: network; 1: IP group. + * @return sourceType + */ + @ApiModelProperty(value = "Source type should be a value as follows: 0: network; 1: IP group.") + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public BandwidthControlRule sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public BandwidthControlRule addSourceIdsItem(String sourceIdsItem) { + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs of the bandwidth control rule. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. IP group can be created using 'Create a new group profile' interface, and IP group ID can be obtained from 'Get group profile list' interface. + * @return sourceIds + */ + @ApiModelProperty(required = true, value = "Source IDs of the bandwidth control rule. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. IP group can be created using 'Create a new group profile' interface, and IP group ID can be obtained from 'Get group profile list' interface.") + @NotNull + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public BandwidthControlRule wanPortIds(List wanPortIds) { + this.wanPortIds = wanPortIds; + return this; + } + + public BandwidthControlRule addWanPortIdsItem(String wanPortIdsItem) { + this.wanPortIds.add(wanPortIdsItem); + return this; + } + + /** + * WAN port IDs of the bandwidth control rule.WAN port ID can be obtained from 'Get internet basic info' interface. + * @return wanPortIds + */ + @ApiModelProperty(required = true, value = "WAN port IDs of the bandwidth control rule.WAN port ID can be obtained from 'Get internet basic info' interface.") + @NotNull + + + public List getWanPortIds() { + return wanPortIds; + } + + public void setWanPortIds(List wanPortIds) { + this.wanPortIds = wanPortIds; + } + + public BandwidthControlRule upstreamBandwidth(Integer upstreamBandwidth) { + this.upstreamBandwidth = upstreamBandwidth; + return this; + } + + /** + * Upstream bandwidth should be within the range of 1–9999999. + * @return upstreamBandwidth + */ + @ApiModelProperty(required = true, value = "Upstream bandwidth should be within the range of 1–9999999.") + @NotNull + + + public Integer getUpstreamBandwidth() { + return upstreamBandwidth; + } + + public void setUpstreamBandwidth(Integer upstreamBandwidth) { + this.upstreamBandwidth = upstreamBandwidth; + } + + public BandwidthControlRule upstreamBandwidthUnit(Integer upstreamBandwidthUnit) { + this.upstreamBandwidthUnit = upstreamBandwidthUnit; + return this; + } + + /** + * Upstream bandwidth unit should be a value as follows: 1: Kbps, 2: Mbps. + * @return upstreamBandwidthUnit + */ + @ApiModelProperty(required = true, value = "Upstream bandwidth unit should be a value as follows: 1: Kbps, 2: Mbps.") + @NotNull + + + public Integer getUpstreamBandwidthUnit() { + return upstreamBandwidthUnit; + } + + public void setUpstreamBandwidthUnit(Integer upstreamBandwidthUnit) { + this.upstreamBandwidthUnit = upstreamBandwidthUnit; + } + + public BandwidthControlRule downstreamBandwidth(Integer downstreamBandwidth) { + this.downstreamBandwidth = downstreamBandwidth; + return this; + } + + /** + * Downstream bandwidth should be within the range of 1–9999999. + * @return downstreamBandwidth + */ + @ApiModelProperty(required = true, value = "Downstream bandwidth should be within the range of 1–9999999.") + @NotNull + + + public Integer getDownstreamBandwidth() { + return downstreamBandwidth; + } + + public void setDownstreamBandwidth(Integer downstreamBandwidth) { + this.downstreamBandwidth = downstreamBandwidth; + } + + public BandwidthControlRule downstreamBandwidthUnit(Integer downstreamBandwidthUnit) { + this.downstreamBandwidthUnit = downstreamBandwidthUnit; + return this; + } + + /** + * Downstream bandwidth unit should be a value as follows: 1: Kbps, 2: Mbps. + * @return downstreamBandwidthUnit + */ + @ApiModelProperty(required = true, value = "Downstream bandwidth unit should be a value as follows: 1: Kbps, 2: Mbps.") + @NotNull + + + public Integer getDownstreamBandwidthUnit() { + return downstreamBandwidthUnit; + } + + public void setDownstreamBandwidthUnit(Integer downstreamBandwidthUnit) { + this.downstreamBandwidthUnit = downstreamBandwidthUnit; + } + + public BandwidthControlRule mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Mode should be a value as follows: 0: share; 1: individual. + * @return mode + */ + @ApiModelProperty(required = true, value = "Mode should be a value as follows: 0: share; 1: individual.") + @NotNull + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BandwidthControlRule bandwidthControlRule = (BandwidthControlRule) o; + return Objects.equals(this.id, bandwidthControlRule.id) && + Objects.equals(this.name, bandwidthControlRule.name) && + Objects.equals(this.index, bandwidthControlRule.index) && + Objects.equals(this.status, bandwidthControlRule.status) && + Objects.equals(this.sourceType, bandwidthControlRule.sourceType) && + Objects.equals(this.sourceIds, bandwidthControlRule.sourceIds) && + Objects.equals(this.wanPortIds, bandwidthControlRule.wanPortIds) && + Objects.equals(this.upstreamBandwidth, bandwidthControlRule.upstreamBandwidth) && + Objects.equals(this.upstreamBandwidthUnit, bandwidthControlRule.upstreamBandwidthUnit) && + Objects.equals(this.downstreamBandwidth, bandwidthControlRule.downstreamBandwidth) && + Objects.equals(this.downstreamBandwidthUnit, bandwidthControlRule.downstreamBandwidthUnit) && + Objects.equals(this.mode, bandwidthControlRule.mode); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, index, status, sourceType, sourceIds, wanPortIds, upstreamBandwidth, upstreamBandwidthUnit, downstreamBandwidth, downstreamBandwidthUnit, mode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BandwidthControlRule {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" wanPortIds: ").append(toIndentedString(wanPortIds)).append("\n"); + sb.append(" upstreamBandwidth: ").append(toIndentedString(upstreamBandwidth)).append("\n"); + sb.append(" upstreamBandwidthUnit: ").append(toIndentedString(upstreamBandwidthUnit)).append("\n"); + sb.append(" downstreamBandwidth: ").append(toIndentedString(downstreamBandwidth)).append("\n"); + sb.append(" downstreamBandwidthUnit: ").append(toIndentedString(downstreamBandwidthUnit)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthPortSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthPortSetting.java new file mode 100644 index 0000000..99150fd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BandwidthPortSetting.java @@ -0,0 +1,155 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Bandwidth port settings of the bandwidth control. + */ +@ApiModel(description = "Bandwidth port settings of the bandwidth control.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BandwidthPortSetting { + @JsonProperty("upstreamBandwidthUnit") + private Integer upstreamBandwidthUnit; + + @JsonProperty("upstreamBandwidth") + private Integer upstreamBandwidth; + + @JsonProperty("downstreamBandwidth") + private Integer downstreamBandwidth; + + @JsonProperty("downstreamBandwidthUnit") + private Integer downstreamBandwidthUnit; + + public BandwidthPortSetting upstreamBandwidthUnit(Integer upstreamBandwidthUnit) { + this.upstreamBandwidthUnit = upstreamBandwidthUnit; + return this; + } + + /** + * Upstream bandwidth unit should be a value as follows: 1: Kbps, 2: Mbps. + * @return upstreamBandwidthUnit + */ + @ApiModelProperty(required = true, value = "Upstream bandwidth unit should be a value as follows: 1: Kbps, 2: Mbps.") + @NotNull + + + public Integer getUpstreamBandwidthUnit() { + return upstreamBandwidthUnit; + } + + public void setUpstreamBandwidthUnit(Integer upstreamBandwidthUnit) { + this.upstreamBandwidthUnit = upstreamBandwidthUnit; + } + + public BandwidthPortSetting upstreamBandwidth(Integer upstreamBandwidth) { + this.upstreamBandwidth = upstreamBandwidth; + return this; + } + + /** + * Upstream bandwidth should be within the range of 1–9999999. + * @return upstreamBandwidth + */ + @ApiModelProperty(value = "Upstream bandwidth should be within the range of 1–9999999.") + + + public Integer getUpstreamBandwidth() { + return upstreamBandwidth; + } + + public void setUpstreamBandwidth(Integer upstreamBandwidth) { + this.upstreamBandwidth = upstreamBandwidth; + } + + public BandwidthPortSetting downstreamBandwidth(Integer downstreamBandwidth) { + this.downstreamBandwidth = downstreamBandwidth; + return this; + } + + /** + * Downstream bandwidth should be within the range of 1–9999999. + * @return downstreamBandwidth + */ + @ApiModelProperty(value = "Downstream bandwidth should be within the range of 1–9999999.") + + + public Integer getDownstreamBandwidth() { + return downstreamBandwidth; + } + + public void setDownstreamBandwidth(Integer downstreamBandwidth) { + this.downstreamBandwidth = downstreamBandwidth; + } + + public BandwidthPortSetting downstreamBandwidthUnit(Integer downstreamBandwidthUnit) { + this.downstreamBandwidthUnit = downstreamBandwidthUnit; + return this; + } + + /** + * Downstream bandwidth unit should be a value as follows: 1: Kbps, 2: Mbps. + * @return downstreamBandwidthUnit + */ + @ApiModelProperty(value = "Downstream bandwidth unit should be a value as follows: 1: Kbps, 2: Mbps.") + + + public Integer getDownstreamBandwidthUnit() { + return downstreamBandwidthUnit; + } + + public void setDownstreamBandwidthUnit(Integer downstreamBandwidthUnit) { + this.downstreamBandwidthUnit = downstreamBandwidthUnit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BandwidthPortSetting bandwidthPortSetting = (BandwidthPortSetting) o; + return Objects.equals(this.upstreamBandwidthUnit, bandwidthPortSetting.upstreamBandwidthUnit) && + Objects.equals(this.upstreamBandwidth, bandwidthPortSetting.upstreamBandwidth) && + Objects.equals(this.downstreamBandwidth, bandwidthPortSetting.downstreamBandwidth) && + Objects.equals(this.downstreamBandwidthUnit, bandwidthPortSetting.downstreamBandwidthUnit); + } + + @Override + public int hashCode() { + return Objects.hash(upstreamBandwidthUnit, upstreamBandwidth, downstreamBandwidth, downstreamBandwidthUnit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BandwidthPortSetting {\n"); + + sb.append(" upstreamBandwidthUnit: ").append(toIndentedString(upstreamBandwidthUnit)).append("\n"); + sb.append(" upstreamBandwidth: ").append(toIndentedString(upstreamBandwidth)).append("\n"); + sb.append(" downstreamBandwidth: ").append(toIndentedString(downstreamBandwidth)).append("\n"); + sb.append(" downstreamBandwidthUnit: ").append(toIndentedString(downstreamBandwidthUnit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BaseScheduleTimeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BaseScheduleTimeOpenApiVo.java new file mode 100644 index 0000000..2418ac7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BaseScheduleTimeOpenApiVo.java @@ -0,0 +1,207 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Execution occurrence setting. Required when type is 1. + */ +@ApiModel(description = "Execution occurrence setting. Required when type is 1.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BaseScheduleTimeOpenApiVo { + @JsonProperty("timingType") + private Integer timingType; + + @JsonProperty("dayOfWeek") + private Integer dayOfWeek; + + @JsonProperty("dayOfMonth") + private Integer dayOfMonth; + + @JsonProperty("monthOfYear") + private Integer monthOfYear; + + @JsonProperty("hour") + private Integer hour; + + @JsonProperty("minute") + private Integer minute; + + public BaseScheduleTimeOpenApiVo timingType(Integer timingType) { + this.timingType = timingType; + return this; + } + + /** + * Time type should be a value as follows: 1:Daily; 2:Weekly; 3:Monthly + * @return timingType + */ + @ApiModelProperty(required = true, value = "Time type should be a value as follows: 1:Daily; 2:Weekly; 3:Monthly") + @NotNull + + + public Integer getTimingType() { + return timingType; + } + + public void setTimingType(Integer timingType) { + this.timingType = timingType; + } + + public BaseScheduleTimeOpenApiVo dayOfWeek(Integer dayOfWeek) { + this.dayOfWeek = dayOfWeek; + return this; + } + + /** + * It should be within the range of 0(Sunday)~6(Saturday). Required when parameter [timingType] is 2. + * @return dayOfWeek + */ + @ApiModelProperty(value = "It should be within the range of 0(Sunday)~6(Saturday). Required when parameter [timingType] is 2.") + + + public Integer getDayOfWeek() { + return dayOfWeek; + } + + public void setDayOfWeek(Integer dayOfWeek) { + this.dayOfWeek = dayOfWeek; + } + + public BaseScheduleTimeOpenApiVo dayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + return this; + } + + /** + * It should be within the range of 1~31. Required when parameter [timingType] is 3. + * @return dayOfMonth + */ + @ApiModelProperty(value = "It should be within the range of 1~31. Required when parameter [timingType] is 3.") + + + public Integer getDayOfMonth() { + return dayOfMonth; + } + + public void setDayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + } + + public BaseScheduleTimeOpenApiVo monthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + return this; + } + + /** + * It should be within the range of 1~12. Required when parameter [timingType] is 4. + * @return monthOfYear + */ + @ApiModelProperty(value = "It should be within the range of 1~12. Required when parameter [timingType] is 4.") + + + public Integer getMonthOfYear() { + return monthOfYear; + } + + public void setMonthOfYear(Integer monthOfYear) { + this.monthOfYear = monthOfYear; + } + + public BaseScheduleTimeOpenApiVo hour(Integer hour) { + this.hour = hour; + return this; + } + + /** + * It should be within the range of 0~23 + * @return hour + */ + @ApiModelProperty(required = true, value = "It should be within the range of 0~23") + @NotNull + + + public Integer getHour() { + return hour; + } + + public void setHour(Integer hour) { + this.hour = hour; + } + + public BaseScheduleTimeOpenApiVo minute(Integer minute) { + this.minute = minute; + return this; + } + + /** + * It should be within the range of 0~59 + * @return minute + */ + @ApiModelProperty(required = true, value = "It should be within the range of 0~59") + @NotNull + + + public Integer getMinute() { + return minute; + } + + public void setMinute(Integer minute) { + this.minute = minute; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BaseScheduleTimeOpenApiVo baseScheduleTimeOpenApiVo = (BaseScheduleTimeOpenApiVo) o; + return Objects.equals(this.timingType, baseScheduleTimeOpenApiVo.timingType) && + Objects.equals(this.dayOfWeek, baseScheduleTimeOpenApiVo.dayOfWeek) && + Objects.equals(this.dayOfMonth, baseScheduleTimeOpenApiVo.dayOfMonth) && + Objects.equals(this.monthOfYear, baseScheduleTimeOpenApiVo.monthOfYear) && + Objects.equals(this.hour, baseScheduleTimeOpenApiVo.hour) && + Objects.equals(this.minute, baseScheduleTimeOpenApiVo.minute); + } + + @Override + public int hashCode() { + return Objects.hash(timingType, dayOfWeek, dayOfMonth, monthOfYear, hour, minute); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BaseScheduleTimeOpenApiVo {\n"); + + sb.append(" timingType: ").append(toIndentedString(timingType)).append("\n"); + sb.append(" dayOfWeek: ").append(toIndentedString(dayOfWeek)).append("\n"); + sb.append(" dayOfMonth: ").append(toIndentedString(dayOfMonth)).append("\n"); + sb.append(" monthOfYear: ").append(toIndentedString(monthOfYear)).append("\n"); + sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); + sb.append(" minute: ").append(toIndentedString(minute)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchModifyVoipDeviceConfigurationEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchModifyVoipDeviceConfigurationEntity.java new file mode 100644 index 0000000..98cecbe --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchModifyVoipDeviceConfigurationEntity.java @@ -0,0 +1,253 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Telephony settings. + */ +@ApiModel(description = "Telephony settings.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BatchModifyVoipDeviceConfigurationEntity { + @JsonProperty("vadSupportEnable") + private Boolean vadSupportEnable; + + @JsonProperty("speakerGain") + private Integer speakerGain; + + @JsonProperty("micGain") + private Integer micGain; + + @JsonProperty("callBlockingEnable") + private Boolean callBlockingEnable; + + @JsonProperty("callBlockingProfileId") + private String callBlockingProfileId; + + @JsonProperty("callBlockingProfileName") + private String callBlockingProfileName; + + @JsonProperty("digitMapProfileId") + private String digitMapProfileId; + + @JsonProperty("digitMapProfileName") + private String digitMapProfileName; + + public BatchModifyVoipDeviceConfigurationEntity vadSupportEnable(Boolean vadSupportEnable) { + this.vadSupportEnable = vadSupportEnable; + return this; + } + + /** + * Whether to enable vad support. + * @return vadSupportEnable + */ + @ApiModelProperty(value = "Whether to enable vad support.") + + + public Boolean getVadSupportEnable() { + return vadSupportEnable; + } + + public void setVadSupportEnable(Boolean vadSupportEnable) { + this.vadSupportEnable = vadSupportEnable; + } + + public BatchModifyVoipDeviceConfigurationEntity speakerGain(Integer speakerGain) { + this.speakerGain = speakerGain; + return this; + } + + /** + * The speaker gain of voip device. + * @return speakerGain + */ + @ApiModelProperty(value = "The speaker gain of voip device.") + + + public Integer getSpeakerGain() { + return speakerGain; + } + + public void setSpeakerGain(Integer speakerGain) { + this.speakerGain = speakerGain; + } + + public BatchModifyVoipDeviceConfigurationEntity micGain(Integer micGain) { + this.micGain = micGain; + return this; + } + + /** + * The mic gain of voip device. + * @return micGain + */ + @ApiModelProperty(value = "The mic gain of voip device.") + + + public Integer getMicGain() { + return micGain; + } + + public void setMicGain(Integer micGain) { + this.micGain = micGain; + } + + public BatchModifyVoipDeviceConfigurationEntity callBlockingEnable(Boolean callBlockingEnable) { + this.callBlockingEnable = callBlockingEnable; + return this; + } + + /** + * Whether to enable callBlocking. + * @return callBlockingEnable + */ + @ApiModelProperty(value = "Whether to enable callBlocking.") + + + public Boolean getCallBlockingEnable() { + return callBlockingEnable; + } + + public void setCallBlockingEnable(Boolean callBlockingEnable) { + this.callBlockingEnable = callBlockingEnable; + } + + public BatchModifyVoipDeviceConfigurationEntity callBlockingProfileId(String callBlockingProfileId) { + this.callBlockingProfileId = callBlockingProfileId; + return this; + } + + /** + * The call blocking profile ID of voip device.When callBlockingEnable is true, it can not be null. + * @return callBlockingProfileId + */ + @ApiModelProperty(value = "The call blocking profile ID of voip device.When callBlockingEnable is true, it can not be null.") + + + public String getCallBlockingProfileId() { + return callBlockingProfileId; + } + + public void setCallBlockingProfileId(String callBlockingProfileId) { + this.callBlockingProfileId = callBlockingProfileId; + } + + public BatchModifyVoipDeviceConfigurationEntity callBlockingProfileName(String callBlockingProfileName) { + this.callBlockingProfileName = callBlockingProfileName; + return this; + } + + /** + * The call blocking profile name of voip device. + * @return callBlockingProfileName + */ + @ApiModelProperty(value = "The call blocking profile name of voip device.") + + + public String getCallBlockingProfileName() { + return callBlockingProfileName; + } + + public void setCallBlockingProfileName(String callBlockingProfileName) { + this.callBlockingProfileName = callBlockingProfileName; + } + + public BatchModifyVoipDeviceConfigurationEntity digitMapProfileId(String digitMapProfileId) { + this.digitMapProfileId = digitMapProfileId; + return this; + } + + /** + * The digit map profile ID of voip device. + * @return digitMapProfileId + */ + @ApiModelProperty(value = "The digit map profile ID of voip device.") + + + public String getDigitMapProfileId() { + return digitMapProfileId; + } + + public void setDigitMapProfileId(String digitMapProfileId) { + this.digitMapProfileId = digitMapProfileId; + } + + public BatchModifyVoipDeviceConfigurationEntity digitMapProfileName(String digitMapProfileName) { + this.digitMapProfileName = digitMapProfileName; + return this; + } + + /** + * The digit map profile name of voip device. + * @return digitMapProfileName + */ + @ApiModelProperty(value = "The digit map profile name of voip device.") + + + public String getDigitMapProfileName() { + return digitMapProfileName; + } + + public void setDigitMapProfileName(String digitMapProfileName) { + this.digitMapProfileName = digitMapProfileName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchModifyVoipDeviceConfigurationEntity batchModifyVoipDeviceConfigurationEntity = (BatchModifyVoipDeviceConfigurationEntity) o; + return Objects.equals(this.vadSupportEnable, batchModifyVoipDeviceConfigurationEntity.vadSupportEnable) && + Objects.equals(this.speakerGain, batchModifyVoipDeviceConfigurationEntity.speakerGain) && + Objects.equals(this.micGain, batchModifyVoipDeviceConfigurationEntity.micGain) && + Objects.equals(this.callBlockingEnable, batchModifyVoipDeviceConfigurationEntity.callBlockingEnable) && + Objects.equals(this.callBlockingProfileId, batchModifyVoipDeviceConfigurationEntity.callBlockingProfileId) && + Objects.equals(this.callBlockingProfileName, batchModifyVoipDeviceConfigurationEntity.callBlockingProfileName) && + Objects.equals(this.digitMapProfileId, batchModifyVoipDeviceConfigurationEntity.digitMapProfileId) && + Objects.equals(this.digitMapProfileName, batchModifyVoipDeviceConfigurationEntity.digitMapProfileName); + } + + @Override + public int hashCode() { + return Objects.hash(vadSupportEnable, speakerGain, micGain, callBlockingEnable, callBlockingProfileId, callBlockingProfileName, digitMapProfileId, digitMapProfileName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchModifyVoipDeviceConfigurationEntity {\n"); + + sb.append(" vadSupportEnable: ").append(toIndentedString(vadSupportEnable)).append("\n"); + sb.append(" speakerGain: ").append(toIndentedString(speakerGain)).append("\n"); + sb.append(" micGain: ").append(toIndentedString(micGain)).append("\n"); + sb.append(" callBlockingEnable: ").append(toIndentedString(callBlockingEnable)).append("\n"); + sb.append(" callBlockingProfileId: ").append(toIndentedString(callBlockingProfileId)).append("\n"); + sb.append(" callBlockingProfileName: ").append(toIndentedString(callBlockingProfileName)).append("\n"); + sb.append(" digitMapProfileId: ").append(toIndentedString(digitMapProfileId)).append("\n"); + sb.append(" digitMapProfileName: ").append(toIndentedString(digitMapProfileName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchModifyVoipDeviceSettingEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchModifyVoipDeviceSettingEntity.java new file mode 100644 index 0000000..efa3926 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchModifyVoipDeviceSettingEntity.java @@ -0,0 +1,165 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchModifyVoipDeviceSettingEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BatchModifyVoipDeviceSettingEntity { + @JsonProperty("deviceMacList") + @Valid + private List deviceMacList = new ArrayList<>(); + + @JsonProperty("voipDeviceConfiguration") + private BatchModifyVoipDeviceConfigurationEntity voipDeviceConfiguration; + + @JsonProperty("telephoneNumberAdvancedSetting") + private TelephoneNumberAdvancedSettingApOpenApiVo telephoneNumberAdvancedSetting; + + @JsonProperty("skipConfirm") + private Boolean skipConfirm; + + public BatchModifyVoipDeviceSettingEntity deviceMacList(List deviceMacList) { + this.deviceMacList = deviceMacList; + return this; + } + + public BatchModifyVoipDeviceSettingEntity addDeviceMacListItem(String deviceMacListItem) { + this.deviceMacList.add(deviceMacListItem); + return this; + } + + /** + * Device MAC list. + * @return deviceMacList + */ + @ApiModelProperty(required = true, value = "Device MAC list.") + @NotNull + + + public List getDeviceMacList() { + return deviceMacList; + } + + public void setDeviceMacList(List deviceMacList) { + this.deviceMacList = deviceMacList; + } + + public BatchModifyVoipDeviceSettingEntity voipDeviceConfiguration(BatchModifyVoipDeviceConfigurationEntity voipDeviceConfiguration) { + this.voipDeviceConfiguration = voipDeviceConfiguration; + return this; + } + + /** + * Get voipDeviceConfiguration + * @return voipDeviceConfiguration + */ + @ApiModelProperty(value = "") + + @Valid + + public BatchModifyVoipDeviceConfigurationEntity getVoipDeviceConfiguration() { + return voipDeviceConfiguration; + } + + public void setVoipDeviceConfiguration(BatchModifyVoipDeviceConfigurationEntity voipDeviceConfiguration) { + this.voipDeviceConfiguration = voipDeviceConfiguration; + } + + public BatchModifyVoipDeviceSettingEntity telephoneNumberAdvancedSetting(TelephoneNumberAdvancedSettingApOpenApiVo telephoneNumberAdvancedSetting) { + this.telephoneNumberAdvancedSetting = telephoneNumberAdvancedSetting; + return this; + } + + /** + * Get telephoneNumberAdvancedSetting + * @return telephoneNumberAdvancedSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public TelephoneNumberAdvancedSettingApOpenApiVo getTelephoneNumberAdvancedSetting() { + return telephoneNumberAdvancedSetting; + } + + public void setTelephoneNumberAdvancedSetting(TelephoneNumberAdvancedSettingApOpenApiVo telephoneNumberAdvancedSetting) { + this.telephoneNumberAdvancedSetting = telephoneNumberAdvancedSetting; + } + + public BatchModifyVoipDeviceSettingEntity skipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + return this; + } + + /** + * skipConfirm indicates whether to skip the query of \"#'s conflict\" of voip device settings. false: Not to skip the query. true: Skip the query and the device(s) will give priority to the \"end with #\" configuration. + * @return skipConfirm + */ + @ApiModelProperty(required = true, value = "skipConfirm indicates whether to skip the query of \"#'s conflict\" of voip device settings. false: Not to skip the query. true: Skip the query and the device(s) will give priority to the \"end with #\" configuration. ") + @NotNull + + + public Boolean getSkipConfirm() { + return skipConfirm; + } + + public void setSkipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchModifyVoipDeviceSettingEntity batchModifyVoipDeviceSettingEntity = (BatchModifyVoipDeviceSettingEntity) o; + return Objects.equals(this.deviceMacList, batchModifyVoipDeviceSettingEntity.deviceMacList) && + Objects.equals(this.voipDeviceConfiguration, batchModifyVoipDeviceSettingEntity.voipDeviceConfiguration) && + Objects.equals(this.telephoneNumberAdvancedSetting, batchModifyVoipDeviceSettingEntity.telephoneNumberAdvancedSetting) && + Objects.equals(this.skipConfirm, batchModifyVoipDeviceSettingEntity.skipConfirm); + } + + @Override + public int hashCode() { + return Objects.hash(deviceMacList, voipDeviceConfiguration, telephoneNumberAdvancedSetting, skipConfirm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchModifyVoipDeviceSettingEntity {\n"); + + sb.append(" deviceMacList: ").append(toIndentedString(deviceMacList)).append("\n"); + sb.append(" voipDeviceConfiguration: ").append(toIndentedString(voipDeviceConfiguration)).append("\n"); + sb.append(" telephoneNumberAdvancedSetting: ").append(toIndentedString(telephoneNumberAdvancedSetting)).append("\n"); + sb.append(" skipConfirm: ").append(toIndentedString(skipConfirm)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchSelectIpMacBindingId.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchSelectIpMacBindingId.java new file mode 100644 index 0000000..7776d44 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BatchSelectIpMacBindingId.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BatchSelectIpMacBindingId + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BatchSelectIpMacBindingId { + @JsonProperty("ids") + @Valid + private List ids = null; + + public BatchSelectIpMacBindingId ids(List ids) { + this.ids = ids; + return this; + } + + public BatchSelectIpMacBindingId addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + /** + * Get ids + * @return ids + */ + @ApiModelProperty(value = "") + + + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BatchSelectIpMacBindingId batchSelectIpMacBindingId = (BatchSelectIpMacBindingId) o; + return Objects.equals(this.ids, batchSelectIpMacBindingId.ids); + } + + @Override + public int hashCode() { + return Objects.hash(ids); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BatchSelectIpMacBindingId {\n"); + + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BeaconControlVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BeaconControlVo.java new file mode 100644 index 0000000..9bb3e48 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BeaconControlVo.java @@ -0,0 +1,435 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Site beacon control. + */ +@ApiModel(description = "Site beacon control.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BeaconControlVo { + @JsonProperty("beaconInterval2g") + private Integer beaconInterval2g; + + @JsonProperty("beaconIntvMode2g") + private Integer beaconIntvMode2g; + + @JsonProperty("dtimPeriod2g") + private Integer dtimPeriod2g; + + @JsonProperty("rtsThreshold2g") + private Integer rtsThreshold2g; + + @JsonProperty("fragmentationThreshold2g") + private Integer fragmentationThreshold2g; + + @JsonProperty("beaconInterval5g") + private Integer beaconInterval5g; + + @JsonProperty("beaconIntvMode5g") + private Integer beaconIntvMode5g; + + @JsonProperty("dtimPeriod5g") + private Integer dtimPeriod5g; + + @JsonProperty("rtsThreshold5g") + private Integer rtsThreshold5g; + + @JsonProperty("fragmentationThreshold5g") + private Integer fragmentationThreshold5g; + + @JsonProperty("beaconInterval6g") + private Integer beaconInterval6g; + + @JsonProperty("beaconIntvMode6g") + private Integer beaconIntvMode6g; + + @JsonProperty("dtimPeriod6g") + private Integer dtimPeriod6g; + + @JsonProperty("rtsThreshold6g") + private Integer rtsThreshold6g; + + @JsonProperty("fragmentationThreshold6g") + private Integer fragmentationThreshold6g; + + public BeaconControlVo beaconInterval2g(Integer beaconInterval2g) { + this.beaconInterval2g = beaconInterval2g; + return this; + } + + /** + * 2.4GHz beacon interval, parameter beaconInterval2g should be within the range of 40-500) + * @return beaconInterval2g + */ + @ApiModelProperty(value = "2.4GHz beacon interval, parameter beaconInterval2g should be within the range of 40-500)") + + + public Integer getBeaconInterval2g() { + return beaconInterval2g; + } + + public void setBeaconInterval2g(Integer beaconInterval2g) { + this.beaconInterval2g = beaconInterval2g; + } + + public BeaconControlVo beaconIntvMode2g(Integer beaconIntvMode2g) { + this.beaconIntvMode2g = beaconIntvMode2g; + return this; + } + + /** + * Get beaconIntvMode2g + * @return beaconIntvMode2g + */ + @ApiModelProperty(value = "") + + + public Integer getBeaconIntvMode2g() { + return beaconIntvMode2g; + } + + public void setBeaconIntvMode2g(Integer beaconIntvMode2g) { + this.beaconIntvMode2g = beaconIntvMode2g; + } + + public BeaconControlVo dtimPeriod2g(Integer dtimPeriod2g) { + this.dtimPeriod2g = dtimPeriod2g; + return this; + } + + /** + * 2.4GHz DTIM period, parameter dtimPeriod2g should be within the range of 1-255 + * @return dtimPeriod2g + */ + @ApiModelProperty(required = true, value = "2.4GHz DTIM period, parameter dtimPeriod2g should be within the range of 1-255") + @NotNull + + + public Integer getDtimPeriod2g() { + return dtimPeriod2g; + } + + public void setDtimPeriod2g(Integer dtimPeriod2g) { + this.dtimPeriod2g = dtimPeriod2g; + } + + public BeaconControlVo rtsThreshold2g(Integer rtsThreshold2g) { + this.rtsThreshold2g = rtsThreshold2g; + return this; + } + + /** + * 2.4GHz RTS threshold, parameter rtsThreshold2g should be within the range of 1-2347 + * @return rtsThreshold2g + */ + @ApiModelProperty(required = true, value = "2.4GHz RTS threshold, parameter rtsThreshold2g should be within the range of 1-2347") + @NotNull + + + public Integer getRtsThreshold2g() { + return rtsThreshold2g; + } + + public void setRtsThreshold2g(Integer rtsThreshold2g) { + this.rtsThreshold2g = rtsThreshold2g; + } + + public BeaconControlVo fragmentationThreshold2g(Integer fragmentationThreshold2g) { + this.fragmentationThreshold2g = fragmentationThreshold2g; + return this; + } + + /** + * 2.4GHz fragmentation threshold, parameter fragmentationThreshold2g should be within the range of 256-2346 + * @return fragmentationThreshold2g + */ + @ApiModelProperty(value = "2.4GHz fragmentation threshold, parameter fragmentationThreshold2g should be within the range of 256-2346") + + + public Integer getFragmentationThreshold2g() { + return fragmentationThreshold2g; + } + + public void setFragmentationThreshold2g(Integer fragmentationThreshold2g) { + this.fragmentationThreshold2g = fragmentationThreshold2g; + } + + public BeaconControlVo beaconInterval5g(Integer beaconInterval5g) { + this.beaconInterval5g = beaconInterval5g; + return this; + } + + /** + * 5GHz beacon interval, parameter beaconInterval5g should be within the range of 40-500) + * @return beaconInterval5g + */ + @ApiModelProperty(value = "5GHz beacon interval, parameter beaconInterval5g should be within the range of 40-500)") + + + public Integer getBeaconInterval5g() { + return beaconInterval5g; + } + + public void setBeaconInterval5g(Integer beaconInterval5g) { + this.beaconInterval5g = beaconInterval5g; + } + + public BeaconControlVo beaconIntvMode5g(Integer beaconIntvMode5g) { + this.beaconIntvMode5g = beaconIntvMode5g; + return this; + } + + /** + * Get beaconIntvMode5g + * @return beaconIntvMode5g + */ + @ApiModelProperty(value = "") + + + public Integer getBeaconIntvMode5g() { + return beaconIntvMode5g; + } + + public void setBeaconIntvMode5g(Integer beaconIntvMode5g) { + this.beaconIntvMode5g = beaconIntvMode5g; + } + + public BeaconControlVo dtimPeriod5g(Integer dtimPeriod5g) { + this.dtimPeriod5g = dtimPeriod5g; + return this; + } + + /** + * 5GHz DTIM period, parameter dtimPeriod5g should be within the range of 1-255 + * @return dtimPeriod5g + */ + @ApiModelProperty(required = true, value = "5GHz DTIM period, parameter dtimPeriod5g should be within the range of 1-255") + @NotNull + + + public Integer getDtimPeriod5g() { + return dtimPeriod5g; + } + + public void setDtimPeriod5g(Integer dtimPeriod5g) { + this.dtimPeriod5g = dtimPeriod5g; + } + + public BeaconControlVo rtsThreshold5g(Integer rtsThreshold5g) { + this.rtsThreshold5g = rtsThreshold5g; + return this; + } + + /** + * 5GHz RTS threshold, parameter rtsThreshold5g should be within the range of 1-2347 + * @return rtsThreshold5g + */ + @ApiModelProperty(required = true, value = "5GHz RTS threshold, parameter rtsThreshold5g should be within the range of 1-2347") + @NotNull + + + public Integer getRtsThreshold5g() { + return rtsThreshold5g; + } + + public void setRtsThreshold5g(Integer rtsThreshold5g) { + this.rtsThreshold5g = rtsThreshold5g; + } + + public BeaconControlVo fragmentationThreshold5g(Integer fragmentationThreshold5g) { + this.fragmentationThreshold5g = fragmentationThreshold5g; + return this; + } + + /** + * 5GHz fragmentation threshold, parameter fragmentationThreshold5g should be within the range of 256-2346 + * @return fragmentationThreshold5g + */ + @ApiModelProperty(value = "5GHz fragmentation threshold, parameter fragmentationThreshold5g should be within the range of 256-2346") + + + public Integer getFragmentationThreshold5g() { + return fragmentationThreshold5g; + } + + public void setFragmentationThreshold5g(Integer fragmentationThreshold5g) { + this.fragmentationThreshold5g = fragmentationThreshold5g; + } + + public BeaconControlVo beaconInterval6g(Integer beaconInterval6g) { + this.beaconInterval6g = beaconInterval6g; + return this; + } + + /** + * 6GHz beacon interval, parameter beaconInterval6g should be within the range of 40-500) + * @return beaconInterval6g + */ + @ApiModelProperty(value = "6GHz beacon interval, parameter beaconInterval6g should be within the range of 40-500)") + + + public Integer getBeaconInterval6g() { + return beaconInterval6g; + } + + public void setBeaconInterval6g(Integer beaconInterval6g) { + this.beaconInterval6g = beaconInterval6g; + } + + public BeaconControlVo beaconIntvMode6g(Integer beaconIntvMode6g) { + this.beaconIntvMode6g = beaconIntvMode6g; + return this; + } + + /** + * Get beaconIntvMode6g + * @return beaconIntvMode6g + */ + @ApiModelProperty(value = "") + + + public Integer getBeaconIntvMode6g() { + return beaconIntvMode6g; + } + + public void setBeaconIntvMode6g(Integer beaconIntvMode6g) { + this.beaconIntvMode6g = beaconIntvMode6g; + } + + public BeaconControlVo dtimPeriod6g(Integer dtimPeriod6g) { + this.dtimPeriod6g = dtimPeriod6g; + return this; + } + + /** + * 6GHz DTIM period, parameter dtimPeriod6g should be within the range of 1-255 + * @return dtimPeriod6g + */ + @ApiModelProperty(required = true, value = "6GHz DTIM period, parameter dtimPeriod6g should be within the range of 1-255") + @NotNull + + + public Integer getDtimPeriod6g() { + return dtimPeriod6g; + } + + public void setDtimPeriod6g(Integer dtimPeriod6g) { + this.dtimPeriod6g = dtimPeriod6g; + } + + public BeaconControlVo rtsThreshold6g(Integer rtsThreshold6g) { + this.rtsThreshold6g = rtsThreshold6g; + return this; + } + + /** + * 6GHz RTS threshold, parameter rtsThreshold6g should be within the range of 1-2347 + * @return rtsThreshold6g + */ + @ApiModelProperty(required = true, value = "6GHz RTS threshold, parameter rtsThreshold6g should be within the range of 1-2347") + @NotNull + + + public Integer getRtsThreshold6g() { + return rtsThreshold6g; + } + + public void setRtsThreshold6g(Integer rtsThreshold6g) { + this.rtsThreshold6g = rtsThreshold6g; + } + + public BeaconControlVo fragmentationThreshold6g(Integer fragmentationThreshold6g) { + this.fragmentationThreshold6g = fragmentationThreshold6g; + return this; + } + + /** + * 6GHz fragmentation threshold, parameter fragmentationThreshold6g should be within the range of 256-2346 + * @return fragmentationThreshold6g + */ + @ApiModelProperty(value = "6GHz fragmentation threshold, parameter fragmentationThreshold6g should be within the range of 256-2346") + + + public Integer getFragmentationThreshold6g() { + return fragmentationThreshold6g; + } + + public void setFragmentationThreshold6g(Integer fragmentationThreshold6g) { + this.fragmentationThreshold6g = fragmentationThreshold6g; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BeaconControlVo beaconControlVo = (BeaconControlVo) o; + return Objects.equals(this.beaconInterval2g, beaconControlVo.beaconInterval2g) && + Objects.equals(this.beaconIntvMode2g, beaconControlVo.beaconIntvMode2g) && + Objects.equals(this.dtimPeriod2g, beaconControlVo.dtimPeriod2g) && + Objects.equals(this.rtsThreshold2g, beaconControlVo.rtsThreshold2g) && + Objects.equals(this.fragmentationThreshold2g, beaconControlVo.fragmentationThreshold2g) && + Objects.equals(this.beaconInterval5g, beaconControlVo.beaconInterval5g) && + Objects.equals(this.beaconIntvMode5g, beaconControlVo.beaconIntvMode5g) && + Objects.equals(this.dtimPeriod5g, beaconControlVo.dtimPeriod5g) && + Objects.equals(this.rtsThreshold5g, beaconControlVo.rtsThreshold5g) && + Objects.equals(this.fragmentationThreshold5g, beaconControlVo.fragmentationThreshold5g) && + Objects.equals(this.beaconInterval6g, beaconControlVo.beaconInterval6g) && + Objects.equals(this.beaconIntvMode6g, beaconControlVo.beaconIntvMode6g) && + Objects.equals(this.dtimPeriod6g, beaconControlVo.dtimPeriod6g) && + Objects.equals(this.rtsThreshold6g, beaconControlVo.rtsThreshold6g) && + Objects.equals(this.fragmentationThreshold6g, beaconControlVo.fragmentationThreshold6g); + } + + @Override + public int hashCode() { + return Objects.hash(beaconInterval2g, beaconIntvMode2g, dtimPeriod2g, rtsThreshold2g, fragmentationThreshold2g, beaconInterval5g, beaconIntvMode5g, dtimPeriod5g, rtsThreshold5g, fragmentationThreshold5g, beaconInterval6g, beaconIntvMode6g, dtimPeriod6g, rtsThreshold6g, fragmentationThreshold6g); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BeaconControlVo {\n"); + + sb.append(" beaconInterval2g: ").append(toIndentedString(beaconInterval2g)).append("\n"); + sb.append(" beaconIntvMode2g: ").append(toIndentedString(beaconIntvMode2g)).append("\n"); + sb.append(" dtimPeriod2g: ").append(toIndentedString(dtimPeriod2g)).append("\n"); + sb.append(" rtsThreshold2g: ").append(toIndentedString(rtsThreshold2g)).append("\n"); + sb.append(" fragmentationThreshold2g: ").append(toIndentedString(fragmentationThreshold2g)).append("\n"); + sb.append(" beaconInterval5g: ").append(toIndentedString(beaconInterval5g)).append("\n"); + sb.append(" beaconIntvMode5g: ").append(toIndentedString(beaconIntvMode5g)).append("\n"); + sb.append(" dtimPeriod5g: ").append(toIndentedString(dtimPeriod5g)).append("\n"); + sb.append(" rtsThreshold5g: ").append(toIndentedString(rtsThreshold5g)).append("\n"); + sb.append(" fragmentationThreshold5g: ").append(toIndentedString(fragmentationThreshold5g)).append("\n"); + sb.append(" beaconInterval6g: ").append(toIndentedString(beaconInterval6g)).append("\n"); + sb.append(" beaconIntvMode6g: ").append(toIndentedString(beaconIntvMode6g)).append("\n"); + sb.append(" dtimPeriod6g: ").append(toIndentedString(dtimPeriod6g)).append("\n"); + sb.append(" rtsThreshold6g: ").append(toIndentedString(rtsThreshold6g)).append("\n"); + sb.append(" fragmentationThreshold6g: ").append(toIndentedString(fragmentationThreshold6g)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BindNumberList.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BindNumberList.java new file mode 100644 index 0000000..bff76c5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BindNumberList.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BindNumberList + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BindNumberList { + @JsonProperty("bindNumberList") + @Valid + private List bindNumberList = new ArrayList<>(); + + public BindNumberList bindNumberList(List bindNumberList) { + this.bindNumberList = bindNumberList; + return this; + } + + public BindNumberList addBindNumberListItem(TelephoneNumberWithoutStatusOpenApiVo bindNumberListItem) { + this.bindNumberList.add(bindNumberListItem); + return this; + } + + /** + * The list of telephone number without status. + * @return bindNumberList + */ + @ApiModelProperty(required = true, value = "The list of telephone number without status.") + @NotNull + + @Valid + + public List getBindNumberList() { + return bindNumberList; + } + + public void setBindNumberList(List bindNumberList) { + this.bindNumberList = bindNumberList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BindNumberList bindNumberList = (BindNumberList) o; + return Objects.equals(this.bindNumberList, bindNumberList.bindNumberList); + } + + @Override + public int hashCode() { + return Objects.hash(bindNumberList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BindNumberList {\n"); + + sb.append(" bindNumberList: ").append(toIndentedString(bindNumberList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BonjourServiceDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BonjourServiceDetailOpenApiVo.java new file mode 100644 index 0000000..76626f8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BonjourServiceDetailOpenApiVo.java @@ -0,0 +1,163 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BonjourServiceDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BonjourServiceDetailOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("serviceIds") + @Valid + private List serviceIds = null; + + @JsonProperty("defaultProfile") + private Boolean defaultProfile; + + public BonjourServiceDetailOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * The id of Bonjour Service. + * @return id + */ + @ApiModelProperty(value = "The id of Bonjour Service.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public BonjourServiceDetailOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * The name of Bonjour Service should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "The name of Bonjour Service should contain 1 to 64 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public BonjourServiceDetailOpenApiVo serviceIds(List serviceIds) { + this.serviceIds = serviceIds; + return this; + } + + public BonjourServiceDetailOpenApiVo addServiceIdsItem(String serviceIdsItem) { + if (this.serviceIds == null) { + this.serviceIds = new ArrayList<>(); + } + this.serviceIds.add(serviceIdsItem); + return this; + } + + /** + * The Service ID list of Bonjour Service. Service ID is a string in \"_A._B.local\" format, where \"A\" can be lowercase letters/numbers/hyphens (-)/underscore (_), and \"B\" should be lowercase letters. For example: _a1._b.local.Up to 3 entries are allowed for the serviceIds list. + * @return serviceIds + */ + @ApiModelProperty(value = "The Service ID list of Bonjour Service. Service ID is a string in \"_A._B.local\" format, where \"A\" can be lowercase letters/numbers/hyphens (-)/underscore (_), and \"B\" should be lowercase letters. For example: _a1._b.local.Up to 3 entries are allowed for the serviceIds list.") + + + public List getServiceIds() { + return serviceIds; + } + + public void setServiceIds(List serviceIds) { + this.serviceIds = serviceIds; + } + + public BonjourServiceDetailOpenApiVo defaultProfile(Boolean defaultProfile) { + this.defaultProfile = defaultProfile; + return this; + } + + /** + * Indicating that this profile is default which can not be modified. + * @return defaultProfile + */ + @ApiModelProperty(value = "Indicating that this profile is default which can not be modified.") + + + public Boolean getDefaultProfile() { + return defaultProfile; + } + + public void setDefaultProfile(Boolean defaultProfile) { + this.defaultProfile = defaultProfile; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BonjourServiceDetailOpenApiVo bonjourServiceDetailOpenApiVo = (BonjourServiceDetailOpenApiVo) o; + return Objects.equals(this.id, bonjourServiceDetailOpenApiVo.id) && + Objects.equals(this.name, bonjourServiceDetailOpenApiVo.name) && + Objects.equals(this.serviceIds, bonjourServiceDetailOpenApiVo.serviceIds) && + Objects.equals(this.defaultProfile, bonjourServiceDetailOpenApiVo.defaultProfile); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, serviceIds, defaultProfile); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BonjourServiceDetailOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" serviceIds: ").append(toIndentedString(serviceIds)).append("\n"); + sb.append(" defaultProfile: ").append(toIndentedString(defaultProfile)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BonjourServiceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BonjourServiceOpenApiVo.java new file mode 100644 index 0000000..36afd9b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BonjourServiceOpenApiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * BonjourServiceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BonjourServiceOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("serviceIds") + @Valid + private List serviceIds = new ArrayList<>(); + + public BonjourServiceOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * The name of Bonjour Service should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "The name of Bonjour Service should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public BonjourServiceOpenApiVo serviceIds(List serviceIds) { + this.serviceIds = serviceIds; + return this; + } + + public BonjourServiceOpenApiVo addServiceIdsItem(String serviceIdsItem) { + this.serviceIds.add(serviceIdsItem); + return this; + } + + /** + * The Service ID list of Bonjour Service. Service ID is a string in \"_A._B.local\" format, where \"A\" can be lowercase letters/numbers/hyphens (-)/underscore (_), and \"B\" should be lowercase letters. For example: _a1._b.local.Up to 3 entries are allowed for the serviceIds list. + * @return serviceIds + */ + @ApiModelProperty(required = true, value = "The Service ID list of Bonjour Service. Service ID is a string in \"_A._B.local\" format, where \"A\" can be lowercase letters/numbers/hyphens (-)/underscore (_), and \"B\" should be lowercase letters. For example: _a1._b.local.Up to 3 entries are allowed for the serviceIds list.") + @NotNull + +@Size(min=1,max=3) + public List getServiceIds() { + return serviceIds; + } + + public void setServiceIds(List serviceIds) { + this.serviceIds = serviceIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BonjourServiceOpenApiVo bonjourServiceOpenApiVo = (BonjourServiceOpenApiVo) o; + return Objects.equals(this.name, bonjourServiceOpenApiVo.name) && + Objects.equals(this.serviceIds, bonjourServiceOpenApiVo.serviceIds); + } + + @Override + public int hashCode() { + return Objects.hash(name, serviceIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BonjourServiceOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" serviceIds: ").append(toIndentedString(serviceIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BookOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BookOpenApiVo.java new file mode 100644 index 0000000..3001739 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/BookOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Contacts. + */ +@ApiModel(description = "Contacts.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class BookOpenApiVo { + @JsonProperty("contact id") + private String contactId; + + @JsonProperty("contact name") + private String contactName; + + public BookOpenApiVo contactId(String contactId) { + this.contactId = contactId; + return this; + } + + /** + * contact id + * @return contactId + */ + @ApiModelProperty(value = "contact id") + + + public String getContactId() { + return contactId; + } + + public void setContactId(String contactId) { + this.contactId = contactId; + } + + public BookOpenApiVo contactName(String contactName) { + this.contactName = contactName; + return this; + } + + /** + * contact name + * @return contactName + */ + @ApiModelProperty(value = "contact name") + + + public String getContactName() { + return contactName; + } + + public void setContactName(String contactName) { + this.contactName = contactName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + BookOpenApiVo bookOpenApiVo = (BookOpenApiVo) o; + return Objects.equals(this.contactId, bookOpenApiVo.contactId) && + Objects.equals(this.contactName, bookOpenApiVo.contactName); + } + + @Override + public int hashCode() { + return Objects.hash(contactId, contactName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class BookOpenApiVo {\n"); + + sb.append(" contactId: ").append(toIndentedString(contactId)).append("\n"); + sb.append(" contactName: ").append(toIndentedString(contactName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallBlockingProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallBlockingProfileEntity.java new file mode 100644 index 0000000..551ee75 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallBlockingProfileEntity.java @@ -0,0 +1,254 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * CallBlockingProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CallBlockingProfileEntity { + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("omadacId") + private String omadacId; + + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("incomingCallsBlockingEnable") + private Boolean incomingCallsBlockingEnable; + + @JsonProperty("incomingCallsBlocking") + private IncomingCallsBlockingVo incomingCallsBlocking; + + @JsonProperty("outgoingCallsBlockingEnable") + private Boolean outgoingCallsBlockingEnable; + + @JsonProperty("outgoingCallsBlocking") + private OutgoingCallsBlockingVo outgoingCallsBlocking; + + public CallBlockingProfileEntity profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Call blocking profile ID + * @return profileId + */ + @ApiModelProperty(value = "Call blocking profile ID") + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public CallBlockingProfileEntity omadacId(String omadacId) { + this.omadacId = omadacId; + return this; + } + + /** + * Omadac ID + * @return omadacId + */ + @ApiModelProperty(value = "Omadac ID") + + + public String getOmadacId() { + return omadacId; + } + + public void setOmadacId(String omadacId) { + this.omadacId = omadacId; + } + + public CallBlockingProfileEntity siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public CallBlockingProfileEntity profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Call blocking profile name + * @return profileName + */ + @ApiModelProperty(value = "Call blocking profile name") + + + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public CallBlockingProfileEntity incomingCallsBlockingEnable(Boolean incomingCallsBlockingEnable) { + this.incomingCallsBlockingEnable = incomingCallsBlockingEnable; + return this; + } + + /** + * Enable incoming calls blocking or not. + * @return incomingCallsBlockingEnable + */ + @ApiModelProperty(value = "Enable incoming calls blocking or not.") + + + public Boolean getIncomingCallsBlockingEnable() { + return incomingCallsBlockingEnable; + } + + public void setIncomingCallsBlockingEnable(Boolean incomingCallsBlockingEnable) { + this.incomingCallsBlockingEnable = incomingCallsBlockingEnable; + } + + public CallBlockingProfileEntity incomingCallsBlocking(IncomingCallsBlockingVo incomingCallsBlocking) { + this.incomingCallsBlocking = incomingCallsBlocking; + return this; + } + + /** + * Get incomingCallsBlocking + * @return incomingCallsBlocking + */ + @ApiModelProperty(value = "") + + @Valid + + public IncomingCallsBlockingVo getIncomingCallsBlocking() { + return incomingCallsBlocking; + } + + public void setIncomingCallsBlocking(IncomingCallsBlockingVo incomingCallsBlocking) { + this.incomingCallsBlocking = incomingCallsBlocking; + } + + public CallBlockingProfileEntity outgoingCallsBlockingEnable(Boolean outgoingCallsBlockingEnable) { + this.outgoingCallsBlockingEnable = outgoingCallsBlockingEnable; + return this; + } + + /** + * Enable outgoing calls blocking or not. + * @return outgoingCallsBlockingEnable + */ + @ApiModelProperty(value = "Enable outgoing calls blocking or not.") + + + public Boolean getOutgoingCallsBlockingEnable() { + return outgoingCallsBlockingEnable; + } + + public void setOutgoingCallsBlockingEnable(Boolean outgoingCallsBlockingEnable) { + this.outgoingCallsBlockingEnable = outgoingCallsBlockingEnable; + } + + public CallBlockingProfileEntity outgoingCallsBlocking(OutgoingCallsBlockingVo outgoingCallsBlocking) { + this.outgoingCallsBlocking = outgoingCallsBlocking; + return this; + } + + /** + * Get outgoingCallsBlocking + * @return outgoingCallsBlocking + */ + @ApiModelProperty(value = "") + + @Valid + + public OutgoingCallsBlockingVo getOutgoingCallsBlocking() { + return outgoingCallsBlocking; + } + + public void setOutgoingCallsBlocking(OutgoingCallsBlockingVo outgoingCallsBlocking) { + this.outgoingCallsBlocking = outgoingCallsBlocking; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallBlockingProfileEntity callBlockingProfileEntity = (CallBlockingProfileEntity) o; + return Objects.equals(this.profileId, callBlockingProfileEntity.profileId) && + Objects.equals(this.omadacId, callBlockingProfileEntity.omadacId) && + Objects.equals(this.siteId, callBlockingProfileEntity.siteId) && + Objects.equals(this.profileName, callBlockingProfileEntity.profileName) && + Objects.equals(this.incomingCallsBlockingEnable, callBlockingProfileEntity.incomingCallsBlockingEnable) && + Objects.equals(this.incomingCallsBlocking, callBlockingProfileEntity.incomingCallsBlocking) && + Objects.equals(this.outgoingCallsBlockingEnable, callBlockingProfileEntity.outgoingCallsBlockingEnable) && + Objects.equals(this.outgoingCallsBlocking, callBlockingProfileEntity.outgoingCallsBlocking); + } + + @Override + public int hashCode() { + return Objects.hash(profileId, omadacId, siteId, profileName, incomingCallsBlockingEnable, incomingCallsBlocking, outgoingCallsBlockingEnable, outgoingCallsBlocking); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallBlockingProfileEntity {\n"); + + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" omadacId: ").append(toIndentedString(omadacId)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" incomingCallsBlockingEnable: ").append(toIndentedString(incomingCallsBlockingEnable)).append("\n"); + sb.append(" incomingCallsBlocking: ").append(toIndentedString(incomingCallsBlocking)).append("\n"); + sb.append(" outgoingCallsBlockingEnable: ").append(toIndentedString(outgoingCallsBlockingEnable)).append("\n"); + sb.append(" outgoingCallsBlocking: ").append(toIndentedString(outgoingCallsBlocking)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallForwardingRule.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallForwardingRule.java new file mode 100644 index 0000000..45ff73e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallForwardingRule.java @@ -0,0 +1,370 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CallForwardingRule + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CallForwardingRule { + @JsonProperty("omadacId") + private String omadacId; + + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("ruleId") + private String ruleId; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("condition") + private Integer condition; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("toNumbers") + @Valid + private List toNumbers = null; + + @JsonProperty("toDevices") + @Valid + private List toDevices = null; + + @JsonProperty("fromPersons") + @Valid + private List fromPersons = null; + + @JsonProperty("fromNumbers") + @Valid + private List fromNumbers = null; + + @JsonProperty("destNumber") + private String destNumber; + + public CallForwardingRule omadacId(String omadacId) { + this.omadacId = omadacId; + return this; + } + + /** + * Omadac ID + * @return omadacId + */ + @ApiModelProperty(value = "Omadac ID") + + + public String getOmadacId() { + return omadacId; + } + + public void setOmadacId(String omadacId) { + this.omadacId = omadacId; + } + + public CallForwardingRule siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public CallForwardingRule ruleId(String ruleId) { + this.ruleId = ruleId; + return this; + } + + /** + * Call forwarding rule id + * @return ruleId + */ + @ApiModelProperty(value = "Call forwarding rule id") + + + public String getRuleId() { + return ruleId; + } + + public void setRuleId(String ruleId) { + this.ruleId = ruleId; + } + + public CallForwardingRule enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Enable this rule or not + * @return enable + */ + @ApiModelProperty(required = true, value = "Enable this rule or not") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public CallForwardingRule condition(Integer condition) { + this.condition = condition; + return this; + } + + /** + * Forwarding condition. 0- no answer, 1- unconditional + * @return condition + */ + @ApiModelProperty(required = true, value = "Forwarding condition. 0- no answer, 1- unconditional") + @NotNull + + + public Integer getCondition() { + return condition; + } + + public void setCondition(Integer condition) { + this.condition = condition; + } + + public CallForwardingRule type(Integer type) { + this.type = type; + return this; + } + + /** + * The call type to be forwarded. 0: All Incoming Calls - If this option is selected, all incoming calls will be forwarded. 1: Calls to the Telephone Number - If this option is selected, select a telephone number from the list. Any incoming calls to this number will be forwarded. 2: Calls to the Phone - If this option is selected, select a telephony device from the list. Any incoming calls to this device will be forwarded. 3: Calls from a Person in the Telephone Book - If this option is selected, select a contact from the list. Any incoming calls from this contact will be forwarded. 4: Calls from the Telephone Number - If this option is selected, enter a specific telephone number. Any incoming calls from this number will be forwarded. + * @return type + */ + @ApiModelProperty(required = true, value = "The call type to be forwarded. 0: All Incoming Calls - If this option is selected, all incoming calls will be forwarded. 1: Calls to the Telephone Number - If this option is selected, select a telephone number from the list. Any incoming calls to this number will be forwarded. 2: Calls to the Phone - If this option is selected, select a telephony device from the list. Any incoming calls to this device will be forwarded. 3: Calls from a Person in the Telephone Book - If this option is selected, select a contact from the list. Any incoming calls from this contact will be forwarded. 4: Calls from the Telephone Number - If this option is selected, enter a specific telephone number. Any incoming calls from this number will be forwarded.") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public CallForwardingRule toNumbers(List toNumbers) { + this.toNumbers = toNumbers; + return this; + } + + public CallForwardingRule addToNumbersItem(String toNumbersItem) { + if (this.toNumbers == null) { + this.toNumbers = new ArrayList<>(); + } + this.toNumbers.add(toNumbersItem); + return this; + } + + /** + * Any incoming calls to these numbers will be forwarded. + * @return toNumbers + */ + @ApiModelProperty(value = "Any incoming calls to these numbers will be forwarded.") + + + public List getToNumbers() { + return toNumbers; + } + + public void setToNumbers(List toNumbers) { + this.toNumbers = toNumbers; + } + + public CallForwardingRule toDevices(List toDevices) { + this.toDevices = toDevices; + return this; + } + + public CallForwardingRule addToDevicesItem(Integer toDevicesItem) { + if (this.toDevices == null) { + this.toDevices = new ArrayList<>(); + } + this.toDevices.add(toDevicesItem); + return this; + } + + /** + * Any incoming calls to these devices will be forwarded. + * @return toDevices + */ + @ApiModelProperty(value = "Any incoming calls to these devices will be forwarded.") + + + public List getToDevices() { + return toDevices; + } + + public void setToDevices(List toDevices) { + this.toDevices = toDevices; + } + + public CallForwardingRule fromPersons(List fromPersons) { + this.fromPersons = fromPersons; + return this; + } + + public CallForwardingRule addFromPersonsItem(String fromPersonsItem) { + if (this.fromPersons == null) { + this.fromPersons = new ArrayList<>(); + } + this.fromPersons.add(fromPersonsItem); + return this; + } + + /** + * Any incoming calls from these contacts will be forwarded. + * @return fromPersons + */ + @ApiModelProperty(value = "Any incoming calls from these contacts will be forwarded.") + + + public List getFromPersons() { + return fromPersons; + } + + public void setFromPersons(List fromPersons) { + this.fromPersons = fromPersons; + } + + public CallForwardingRule fromNumbers(List fromNumbers) { + this.fromNumbers = fromNumbers; + return this; + } + + public CallForwardingRule addFromNumbersItem(String fromNumbersItem) { + if (this.fromNumbers == null) { + this.fromNumbers = new ArrayList<>(); + } + this.fromNumbers.add(fromNumbersItem); + return this; + } + + /** + * Any incoming calls from these numbers will be forwarded. + * @return fromNumbers + */ + @ApiModelProperty(value = "Any incoming calls from these numbers will be forwarded.") + + + public List getFromNumbers() { + return fromNumbers; + } + + public void setFromNumbers(List fromNumbers) { + this.fromNumbers = fromNumbers; + } + + public CallForwardingRule destNumber(String destNumber) { + this.destNumber = destNumber; + return this; + } + + /** + * The Destination Telephone Number that incoming calls will be redirected to. + * @return destNumber + */ + @ApiModelProperty(required = true, value = "The Destination Telephone Number that incoming calls will be redirected to.") + @NotNull + + + public String getDestNumber() { + return destNumber; + } + + public void setDestNumber(String destNumber) { + this.destNumber = destNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallForwardingRule callForwardingRule = (CallForwardingRule) o; + return Objects.equals(this.omadacId, callForwardingRule.omadacId) && + Objects.equals(this.siteId, callForwardingRule.siteId) && + Objects.equals(this.ruleId, callForwardingRule.ruleId) && + Objects.equals(this.enable, callForwardingRule.enable) && + Objects.equals(this.condition, callForwardingRule.condition) && + Objects.equals(this.type, callForwardingRule.type) && + Objects.equals(this.toNumbers, callForwardingRule.toNumbers) && + Objects.equals(this.toDevices, callForwardingRule.toDevices) && + Objects.equals(this.fromPersons, callForwardingRule.fromPersons) && + Objects.equals(this.fromNumbers, callForwardingRule.fromNumbers) && + Objects.equals(this.destNumber, callForwardingRule.destNumber); + } + + @Override + public int hashCode() { + return Objects.hash(omadacId, siteId, ruleId, enable, condition, type, toNumbers, toDevices, fromPersons, fromNumbers, destNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallForwardingRule {\n"); + + sb.append(" omadacId: ").append(toIndentedString(omadacId)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" condition: ").append(toIndentedString(condition)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" toNumbers: ").append(toIndentedString(toNumbers)).append("\n"); + sb.append(" toDevices: ").append(toIndentedString(toDevices)).append("\n"); + sb.append(" fromPersons: ").append(toIndentedString(fromPersons)).append("\n"); + sb.append(" fromNumbers: ").append(toIndentedString(fromNumbers)).append("\n"); + sb.append(" destNumber: ").append(toIndentedString(destNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallForwardingRulesGrid.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallForwardingRulesGrid.java new file mode 100644 index 0000000..1b7972b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallForwardingRulesGrid.java @@ -0,0 +1,268 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CallForwardingRulesGrid + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CallForwardingRulesGrid { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + @JsonProperty("numberList") + @Valid + private List numberList = null; + + @JsonProperty("deviceList") + @Valid + private List deviceList = null; + + @JsonProperty("bookList") + @Valid + private List bookList = null; + + public CallForwardingRulesGrid totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public CallForwardingRulesGrid currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public CallForwardingRulesGrid currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public CallForwardingRulesGrid data(List data) { + this.data = data; + return this; + } + + public CallForwardingRulesGrid addDataItem(Object dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public CallForwardingRulesGrid numberList(List numberList) { + this.numberList = numberList; + return this; + } + + public CallForwardingRulesGrid addNumberListItem(NumberOpenApiVo numberListItem) { + if (this.numberList == null) { + this.numberList = new ArrayList<>(); + } + this.numberList.add(numberListItem); + return this; + } + + /** + * Telephone numbers. + * @return numberList + */ + @ApiModelProperty(value = "Telephone numbers.") + + @Valid + + public List getNumberList() { + return numberList; + } + + public void setNumberList(List numberList) { + this.numberList = numberList; + } + + public CallForwardingRulesGrid deviceList(List deviceList) { + this.deviceList = deviceList; + return this; + } + + public CallForwardingRulesGrid addDeviceListItem(DeviceOpenApiVo deviceListItem) { + if (this.deviceList == null) { + this.deviceList = new ArrayList<>(); + } + this.deviceList.add(deviceListItem); + return this; + } + + /** + * Telephony devices. + * @return deviceList + */ + @ApiModelProperty(value = "Telephony devices.") + + @Valid + + public List getDeviceList() { + return deviceList; + } + + public void setDeviceList(List deviceList) { + this.deviceList = deviceList; + } + + public CallForwardingRulesGrid bookList(List bookList) { + this.bookList = bookList; + return this; + } + + public CallForwardingRulesGrid addBookListItem(BookOpenApiVo bookListItem) { + if (this.bookList == null) { + this.bookList = new ArrayList<>(); + } + this.bookList.add(bookListItem); + return this; + } + + /** + * Contacts. + * @return bookList + */ + @ApiModelProperty(value = "Contacts.") + + @Valid + + public List getBookList() { + return bookList; + } + + public void setBookList(List bookList) { + this.bookList = bookList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallForwardingRulesGrid callForwardingRulesGrid = (CallForwardingRulesGrid) o; + return Objects.equals(this.totalRows, callForwardingRulesGrid.totalRows) && + Objects.equals(this.currentPage, callForwardingRulesGrid.currentPage) && + Objects.equals(this.currentSize, callForwardingRulesGrid.currentSize) && + Objects.equals(this.data, callForwardingRulesGrid.data) && + Objects.equals(this.numberList, callForwardingRulesGrid.numberList) && + Objects.equals(this.deviceList, callForwardingRulesGrid.deviceList) && + Objects.equals(this.bookList, callForwardingRulesGrid.bookList); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data, numberList, deviceList, bookList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallForwardingRulesGrid {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" numberList: ").append(toIndentedString(numberList)).append("\n"); + sb.append(" deviceList: ").append(toIndentedString(deviceList)).append("\n"); + sb.append(" bookList: ").append(toIndentedString(bookList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogDeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogDeviceOpenApiVo.java new file mode 100644 index 0000000..9846a0c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogDeviceOpenApiVo.java @@ -0,0 +1,178 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * The telephonyDevice description of callLog. + */ +@ApiModel(description = "The telephonyDevice description of callLog.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CallLogDeviceOpenApiVo { + @JsonProperty("deviceName") + private String deviceName; + + @JsonProperty("deviceMac") + private String deviceMac; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + @JsonProperty("type") + private String type; + + public CallLogDeviceOpenApiVo deviceName(String deviceName) { + this.deviceName = deviceName; + return this; + } + + /** + * The device name of callLog. + * @return deviceName + */ + @ApiModelProperty(value = "The device name of callLog.") + + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public CallLogDeviceOpenApiVo deviceMac(String deviceMac) { + this.deviceMac = deviceMac; + return this; + } + + /** + * The device mac name of callLog. + * @return deviceMac + */ + @ApiModelProperty(value = "The device mac name of callLog.") + + + public String getDeviceMac() { + return deviceMac; + } + + public void setDeviceMac(String deviceMac) { + this.deviceMac = deviceMac; + } + + public CallLogDeviceOpenApiVo model(String model) { + this.model = model; + return this; + } + + /** + * The device model of callLog. + * @return model + */ + @ApiModelProperty(value = "The device model of callLog.") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public CallLogDeviceOpenApiVo modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * The device modelVersion of callLog. + * @return modelVersion + */ + @ApiModelProperty(value = "The device modelVersion of callLog.") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public CallLogDeviceOpenApiVo type(String type) { + this.type = type; + return this; + } + + /** + * The device type of callLog. + * @return type + */ + @ApiModelProperty(value = "The device type of callLog.") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallLogDeviceOpenApiVo callLogDeviceOpenApiVo = (CallLogDeviceOpenApiVo) o; + return Objects.equals(this.deviceName, callLogDeviceOpenApiVo.deviceName) && + Objects.equals(this.deviceMac, callLogDeviceOpenApiVo.deviceMac) && + Objects.equals(this.model, callLogDeviceOpenApiVo.model) && + Objects.equals(this.modelVersion, callLogDeviceOpenApiVo.modelVersion) && + Objects.equals(this.type, callLogDeviceOpenApiVo.type); + } + + @Override + public int hashCode() { + return Objects.hash(deviceName, deviceMac, model, modelVersion, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallLogDeviceOpenApiVo {\n"); + + sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); + sb.append(" deviceMac: ").append(toIndentedString(deviceMac)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogGridVoVoipCallLog.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogGridVoVoipCallLog.java new file mode 100644 index 0000000..2fdd765 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogGridVoVoipCallLog.java @@ -0,0 +1,190 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CallLogGridVoVoipCallLog + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CallLogGridVoVoipCallLog { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + @JsonProperty("statistic") + private CallLogStatisticVo statistic; + + public CallLogGridVoVoipCallLog totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public CallLogGridVoVoipCallLog currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public CallLogGridVoVoipCallLog currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public CallLogGridVoVoipCallLog data(List data) { + this.data = data; + return this; + } + + public CallLogGridVoVoipCallLog addDataItem(VoipCallLog dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public CallLogGridVoVoipCallLog statistic(CallLogStatisticVo statistic) { + this.statistic = statistic; + return this; + } + + /** + * Get statistic + * @return statistic + */ + @ApiModelProperty(value = "") + + @Valid + + public CallLogStatisticVo getStatistic() { + return statistic; + } + + public void setStatistic(CallLogStatisticVo statistic) { + this.statistic = statistic; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallLogGridVoVoipCallLog callLogGridVoVoipCallLog = (CallLogGridVoVoipCallLog) o; + return Objects.equals(this.totalRows, callLogGridVoVoipCallLog.totalRows) && + Objects.equals(this.currentPage, callLogGridVoVoipCallLog.currentPage) && + Objects.equals(this.currentSize, callLogGridVoVoipCallLog.currentSize) && + Objects.equals(this.data, callLogGridVoVoipCallLog.data) && + Objects.equals(this.statistic, callLogGridVoVoipCallLog.statistic); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data, statistic); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallLogGridVoVoipCallLog {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" statistic: ").append(toIndentedString(statistic)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogStatisticVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogStatisticVo.java new file mode 100644 index 0000000..b725aea --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CallLogStatisticVo.java @@ -0,0 +1,201 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CallLogStatisticVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CallLogStatisticVo { + @JsonProperty("all") + private Integer all; + + @JsonProperty("incoming") + private Integer incoming; + + @JsonProperty("outgoing") + private Integer outgoing; + + @JsonProperty("forwarding") + private Integer forwarding; + + @JsonProperty("missed") + private Integer missed; + + @JsonProperty("rejected") + private Integer rejected; + + public CallLogStatisticVo all(Integer all) { + this.all = all; + return this; + } + + /** + * Get all + * @return all + */ + @ApiModelProperty(value = "") + + + public Integer getAll() { + return all; + } + + public void setAll(Integer all) { + this.all = all; + } + + public CallLogStatisticVo incoming(Integer incoming) { + this.incoming = incoming; + return this; + } + + /** + * Get incoming + * @return incoming + */ + @ApiModelProperty(value = "") + + + public Integer getIncoming() { + return incoming; + } + + public void setIncoming(Integer incoming) { + this.incoming = incoming; + } + + public CallLogStatisticVo outgoing(Integer outgoing) { + this.outgoing = outgoing; + return this; + } + + /** + * Get outgoing + * @return outgoing + */ + @ApiModelProperty(value = "") + + + public Integer getOutgoing() { + return outgoing; + } + + public void setOutgoing(Integer outgoing) { + this.outgoing = outgoing; + } + + public CallLogStatisticVo forwarding(Integer forwarding) { + this.forwarding = forwarding; + return this; + } + + /** + * Get forwarding + * @return forwarding + */ + @ApiModelProperty(value = "") + + + public Integer getForwarding() { + return forwarding; + } + + public void setForwarding(Integer forwarding) { + this.forwarding = forwarding; + } + + public CallLogStatisticVo missed(Integer missed) { + this.missed = missed; + return this; + } + + /** + * Get missed + * @return missed + */ + @ApiModelProperty(value = "") + + + public Integer getMissed() { + return missed; + } + + public void setMissed(Integer missed) { + this.missed = missed; + } + + public CallLogStatisticVo rejected(Integer rejected) { + this.rejected = rejected; + return this; + } + + /** + * Get rejected + * @return rejected + */ + @ApiModelProperty(value = "") + + + public Integer getRejected() { + return rejected; + } + + public void setRejected(Integer rejected) { + this.rejected = rejected; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CallLogStatisticVo callLogStatisticVo = (CallLogStatisticVo) o; + return Objects.equals(this.all, callLogStatisticVo.all) && + Objects.equals(this.incoming, callLogStatisticVo.incoming) && + Objects.equals(this.outgoing, callLogStatisticVo.outgoing) && + Objects.equals(this.forwarding, callLogStatisticVo.forwarding) && + Objects.equals(this.missed, callLogStatisticVo.missed) && + Objects.equals(this.rejected, callLogStatisticVo.rejected); + } + + @Override + public int hashCode() { + return Objects.hash(all, incoming, outgoing, forwarding, missed, rejected); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CallLogStatisticVo {\n"); + + sb.append(" all: ").append(toIndentedString(all)).append("\n"); + sb.append(" incoming: ").append(toIndentedString(incoming)).append("\n"); + sb.append(" outgoing: ").append(toIndentedString(outgoing)).append("\n"); + sb.append(" forwarding: ").append(toIndentedString(forwarding)).append("\n"); + sb.append(" missed: ").append(toIndentedString(missed)).append("\n"); + sb.append(" rejected: ").append(toIndentedString(rejected)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ChannelLimitSettingVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ChannelLimitSettingVo.java new file mode 100644 index 0000000..0ae3517 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ChannelLimitSettingVo.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Site channel limit. + */ +@ApiModel(description = "Site channel limit.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ChannelLimitSettingVo { + @JsonProperty("enable") + private Boolean enable; + + public ChannelLimitSettingVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Whether to enable channel limit. + * @return enable + */ + @ApiModelProperty(required = true, value = "Whether to enable channel limit.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ChannelLimitSettingVo channelLimitSettingVo = (ChannelLimitSettingVo) o; + return Objects.equals(this.enable, channelLimitSettingVo.enable); + } + + @Override + public int hashCode() { + return Objects.hash(enable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ChannelLimitSettingVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CheckWanLanStatusOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CheckWanLanStatusOpenApiVo.java new file mode 100644 index 0000000..5dd3493 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CheckWanLanStatusOpenApiVo.java @@ -0,0 +1,258 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * CheckWanLanStatusOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CheckWanLanStatusOpenApiVo { + @JsonProperty("portName") + @Valid + private Map portName = null; + + @JsonProperty("networkComptent") + private Integer networkComptent; + + @JsonProperty("adoptedGateway") + private Boolean adoptedGateway; + + @JsonProperty("supportIpv6") + private Integer supportIpv6; + + @JsonProperty("wanList") + @Valid + private List wanList = null; + + @JsonProperty("iptvPorts") + @Valid + private List iptvPorts = null; + + @JsonProperty("preOsgModel") + private Integer preOsgModel; + + public CheckWanLanStatusOpenApiVo portName(Map portName) { + this.portName = portName; + return this; + } + + public CheckWanLanStatusOpenApiVo putPortNameItem(String key, String portNameItem) { + if (this.portName == null) { + this.portName = new HashMap<>(); + } + this.portName.put(key, portNameItem); + return this; + } + + /** + * The map of port name, key: \"port ID\", value: \"port name\" + * @return portName + */ + @ApiModelProperty(value = "The map of port name, key: \"port ID\", value: \"port name\"") + + + public Map getPortName() { + return portName; + } + + public void setPortName(Map portName) { + this.portName = portName; + } + + public CheckWanLanStatusOpenApiVo networkComptent(Integer networkComptent) { + this.networkComptent = networkComptent; + return this; + } + + /** + * NetworkComptent + * @return networkComptent + */ + @ApiModelProperty(value = "NetworkComptent") + + + public Integer getNetworkComptent() { + return networkComptent; + } + + public void setNetworkComptent(Integer networkComptent) { + this.networkComptent = networkComptent; + } + + public CheckWanLanStatusOpenApiVo adoptedGateway(Boolean adoptedGateway) { + this.adoptedGateway = adoptedGateway; + return this; + } + + /** + * Indicates whether the gateway is connected + * @return adoptedGateway + */ + @ApiModelProperty(value = "Indicates whether the gateway is connected") + + + public Boolean getAdoptedGateway() { + return adoptedGateway; + } + + public void setAdoptedGateway(Boolean adoptedGateway) { + this.adoptedGateway = adoptedGateway; + } + + public CheckWanLanStatusOpenApiVo supportIpv6(Integer supportIpv6) { + this.supportIpv6 = supportIpv6; + return this; + } + + /** + * IIndicates whether the gateway support IPv6 + * @return supportIpv6 + */ + @ApiModelProperty(value = "IIndicates whether the gateway support IPv6") + + + public Integer getSupportIpv6() { + return supportIpv6; + } + + public void setSupportIpv6(Integer supportIpv6) { + this.supportIpv6 = supportIpv6; + } + + public CheckWanLanStatusOpenApiVo wanList(List wanList) { + this.wanList = wanList; + return this; + } + + public CheckWanLanStatusOpenApiVo addWanListItem(Object wanListItem) { + if (this.wanList == null) { + this.wanList = new ArrayList<>(); + } + this.wanList.add(wanListItem); + return this; + } + + /** + * The WAN list of gateway + * @return wanList + */ + @ApiModelProperty(value = "The WAN list of gateway") + + + public List getWanList() { + return wanList; + } + + public void setWanList(List wanList) { + this.wanList = wanList; + } + + public CheckWanLanStatusOpenApiVo iptvPorts(List iptvPorts) { + this.iptvPorts = iptvPorts; + return this; + } + + public CheckWanLanStatusOpenApiVo addIptvPortsItem(String iptvPortsItem) { + if (this.iptvPorts == null) { + this.iptvPorts = new ArrayList<>(); + } + this.iptvPorts.add(iptvPortsItem); + return this; + } + + /** + * IPTVPorts + * @return iptvPorts + */ + @ApiModelProperty(value = "IPTVPorts") + + + public List getIptvPorts() { + return iptvPorts; + } + + public void setIptvPorts(List iptvPorts) { + this.iptvPorts = iptvPorts; + } + + public CheckWanLanStatusOpenApiVo preOsgModel(Integer preOsgModel) { + this.preOsgModel = preOsgModel; + return this; + } + + /** + * PreOSGModel + * @return preOsgModel + */ + @ApiModelProperty(value = "PreOSGModel") + + + public Integer getPreOsgModel() { + return preOsgModel; + } + + public void setPreOsgModel(Integer preOsgModel) { + this.preOsgModel = preOsgModel; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CheckWanLanStatusOpenApiVo checkWanLanStatusOpenApiVo = (CheckWanLanStatusOpenApiVo) o; + return Objects.equals(this.portName, checkWanLanStatusOpenApiVo.portName) && + Objects.equals(this.networkComptent, checkWanLanStatusOpenApiVo.networkComptent) && + Objects.equals(this.adoptedGateway, checkWanLanStatusOpenApiVo.adoptedGateway) && + Objects.equals(this.supportIpv6, checkWanLanStatusOpenApiVo.supportIpv6) && + Objects.equals(this.wanList, checkWanLanStatusOpenApiVo.wanList) && + Objects.equals(this.iptvPorts, checkWanLanStatusOpenApiVo.iptvPorts) && + Objects.equals(this.preOsgModel, checkWanLanStatusOpenApiVo.preOsgModel); + } + + @Override + public int hashCode() { + return Objects.hash(portName, networkComptent, adoptedGateway, supportIpv6, wanList, iptvPorts, preOsgModel); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CheckWanLanStatusOpenApiVo {\n"); + + sb.append(" portName: ").append(toIndentedString(portName)).append("\n"); + sb.append(" networkComptent: ").append(toIndentedString(networkComptent)).append("\n"); + sb.append(" adoptedGateway: ").append(toIndentedString(adoptedGateway)).append("\n"); + sb.append(" supportIpv6: ").append(toIndentedString(supportIpv6)).append("\n"); + sb.append(" wanList: ").append(toIndentedString(wanList)).append("\n"); + sb.append(" iptvPorts: ").append(toIndentedString(iptvPorts)).append("\n"); + sb.append(" preOsgModel: ").append(toIndentedString(preOsgModel)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClassRuleDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClassRuleDetailOpenApiVo.java new file mode 100644 index 0000000..b56c628 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClassRuleDetailOpenApiVo.java @@ -0,0 +1,251 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ClassRuleDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ClassRuleDetailOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ipVersion") + private Integer ipVersion; + + @JsonProperty("localIp") + private String localIp; + + @JsonProperty("remoteIp") + private String remoteIp; + + @JsonProperty("dscp") + private String dscp; + + @JsonProperty("serviceType") + private String serviceType; + + @JsonProperty("classType") + private Integer classType; + + public ClassRuleDetailOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * The ID of class rule. + * @return id + */ + @ApiModelProperty(value = "The ID of class rule.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ClassRuleDetailOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * The status of class rule. valid values are true or false. + * @return enable + */ + @ApiModelProperty(value = "The status of class rule. valid values are true or false.") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public ClassRuleDetailOpenApiVo ipVersion(Integer ipVersion) { + this.ipVersion = ipVersion; + return this; + } + + /** + * The IP Version of class rule should be a value as follows: 0: IPv4; 1: IPv6. + * @return ipVersion + */ + @ApiModelProperty(value = "The IP Version of class rule should be a value as follows: 0: IPv4; 1: IPv6.") + + + public Integer getIpVersion() { + return ipVersion; + } + + public void setIpVersion(Integer ipVersion) { + this.ipVersion = ipVersion; + } + + public ClassRuleDetailOpenApiVo localIp(String localIp) { + this.localIp = localIp; + return this; + } + + /** + * The ID of IP Group or IPv6 Group selected in the Local Address configuration. The ID can be obtained from 'Get group profile list' interface. + * @return localIp + */ + @ApiModelProperty(value = "The ID of IP Group or IPv6 Group selected in the Local Address configuration. The ID can be obtained from 'Get group profile list' interface.") + + + public String getLocalIp() { + return localIp; + } + + public void setLocalIp(String localIp) { + this.localIp = localIp; + } + + public ClassRuleDetailOpenApiVo remoteIp(String remoteIp) { + this.remoteIp = remoteIp; + return this; + } + + /** + * The ID of IP Group or IPv6 Group selected in the Remote Address configuration. The ID can be obtained from 'Get group profile list' interface. + * @return remoteIp + */ + @ApiModelProperty(value = "The ID of IP Group or IPv6 Group selected in the Remote Address configuration. The ID can be obtained from 'Get group profile list' interface.") + + + public String getRemoteIp() { + return remoteIp; + } + + public void setRemoteIp(String remoteIp) { + this.remoteIp = remoteIp; + } + + public ClassRuleDetailOpenApiVo dscp(String dscp) { + this.dscp = dscp; + return this; + } + + /** + * The DSCP value selected in the DSCP configuration should be a value as follows: any: any; 8: IP precedence 1; 16: IP precedence 2; 24: IP precedence 3; 32: IP precedence 4; 40: IP precedence 5; 48: IP precedence 6; 56: IP precedence 7; 10: AF Class 1 (Low Drop); 12: AF Class 1 (Medium Drop); 14: AF Class 1 (High Drop); 18: AF Class 2 (Low Drop); 20: AF Class 2 (Medium Drop); 22: AF Class 2 (High Drop); 26: AF Class 3 (Low Drop); 28: AF Class 3 (Medium Drop); 30: AF Class 3 (High Drop); 34: AF Class 4 (Low Drop); 36: AF Class 4 (Medium Drop); 38: AF Class 4 (High Drop); 46: EF Class. + * @return dscp + */ + @ApiModelProperty(value = "The DSCP value selected in the DSCP configuration should be a value as follows: any: any; 8: IP precedence 1; 16: IP precedence 2; 24: IP precedence 3; 32: IP precedence 4; 40: IP precedence 5; 48: IP precedence 6; 56: IP precedence 7; 10: AF Class 1 (Low Drop); 12: AF Class 1 (Medium Drop); 14: AF Class 1 (High Drop); 18: AF Class 2 (Low Drop); 20: AF Class 2 (Medium Drop); 22: AF Class 2 (High Drop); 26: AF Class 3 (Low Drop); 28: AF Class 3 (Medium Drop); 30: AF Class 3 (High Drop); 34: AF Class 4 (Low Drop); 36: AF Class 4 (Medium Drop); 38: AF Class 4 (High Drop); 46: EF Class.") + + + public String getDscp() { + return dscp; + } + + public void setDscp(String dscp) { + this.dscp = dscp; + } + + public ClassRuleDetailOpenApiVo serviceType(String serviceType) { + this.serviceType = serviceType; + return this; + } + + /** + * The ID of Gateway Qos Service selected in the Service Name configuration. The ID can be obtained from 'Get all Gateway QoS Service's ID and name info' interface. + * @return serviceType + */ + @ApiModelProperty(value = "The ID of Gateway Qos Service selected in the Service Name configuration. The ID can be obtained from 'Get all Gateway QoS Service's ID and name info' interface.") + + + public String getServiceType() { + return serviceType; + } + + public void setServiceType(String serviceType) { + this.serviceType = serviceType; + } + + public ClassRuleDetailOpenApiVo classType(Integer classType) { + this.classType = classType; + return this; + } + + /** + * The Class value selected in the Qos Class configuration should be a value as follows: 1: Class 1, 2: Class 2, 3: Class 3. + * @return classType + */ + @ApiModelProperty(value = "The Class value selected in the Qos Class configuration should be a value as follows: 1: Class 1, 2: Class 2, 3: Class 3.") + + + public Integer getClassType() { + return classType; + } + + public void setClassType(Integer classType) { + this.classType = classType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClassRuleDetailOpenApiVo classRuleDetailOpenApiVo = (ClassRuleDetailOpenApiVo) o; + return Objects.equals(this.id, classRuleDetailOpenApiVo.id) && + Objects.equals(this.enable, classRuleDetailOpenApiVo.enable) && + Objects.equals(this.ipVersion, classRuleDetailOpenApiVo.ipVersion) && + Objects.equals(this.localIp, classRuleDetailOpenApiVo.localIp) && + Objects.equals(this.remoteIp, classRuleDetailOpenApiVo.remoteIp) && + Objects.equals(this.dscp, classRuleDetailOpenApiVo.dscp) && + Objects.equals(this.serviceType, classRuleDetailOpenApiVo.serviceType) && + Objects.equals(this.classType, classRuleDetailOpenApiVo.classType); + } + + @Override + public int hashCode() { + return Objects.hash(id, enable, ipVersion, localIp, remoteIp, dscp, serviceType, classType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClassRuleDetailOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ipVersion: ").append(toIndentedString(ipVersion)).append("\n"); + sb.append(" localIp: ").append(toIndentedString(localIp)).append("\n"); + sb.append(" remoteIp: ").append(toIndentedString(remoteIp)).append("\n"); + sb.append(" dscp: ").append(toIndentedString(dscp)).append("\n"); + sb.append(" serviceType: ").append(toIndentedString(serviceType)).append("\n"); + sb.append(" classType: ").append(toIndentedString(classType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClassRuleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClassRuleOpenApiVo.java new file mode 100644 index 0000000..1a290fe --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClassRuleOpenApiVo.java @@ -0,0 +1,234 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ClassRuleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ClassRuleOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ipVersion") + private Integer ipVersion; + + @JsonProperty("localIp") + private String localIp; + + @JsonProperty("remoteIp") + private String remoteIp; + + @JsonProperty("dscp") + private String dscp; + + @JsonProperty("serviceType") + private String serviceType; + + @JsonProperty("classType") + private Integer classType; + + public ClassRuleOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * The status of class rule. valid values are true or false. + * @return enable + */ + @ApiModelProperty(required = true, value = "The status of class rule. valid values are true or false.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public ClassRuleOpenApiVo ipVersion(Integer ipVersion) { + this.ipVersion = ipVersion; + return this; + } + + /** + * The IP Version of class rule should be a value as follows: 0: IPv4; 1: IPv6. + * @return ipVersion + */ + @ApiModelProperty(required = true, value = "The IP Version of class rule should be a value as follows: 0: IPv4; 1: IPv6.") + @NotNull + + + public Integer getIpVersion() { + return ipVersion; + } + + public void setIpVersion(Integer ipVersion) { + this.ipVersion = ipVersion; + } + + public ClassRuleOpenApiVo localIp(String localIp) { + this.localIp = localIp; + return this; + } + + /** + * The ID of IP Group or IPv6 Group selected in the Local Address configuration. The ID can be obtained from 'Get group profile list' interface. + * @return localIp + */ + @ApiModelProperty(required = true, value = "The ID of IP Group or IPv6 Group selected in the Local Address configuration. The ID can be obtained from 'Get group profile list' interface.") + @NotNull + + + public String getLocalIp() { + return localIp; + } + + public void setLocalIp(String localIp) { + this.localIp = localIp; + } + + public ClassRuleOpenApiVo remoteIp(String remoteIp) { + this.remoteIp = remoteIp; + return this; + } + + /** + * The ID of IP Group or IPv6 Group selected in the Remote Address configuration. The ID can be obtained from 'Get group profile list' interface. + * @return remoteIp + */ + @ApiModelProperty(required = true, value = "The ID of IP Group or IPv6 Group selected in the Remote Address configuration. The ID can be obtained from 'Get group profile list' interface.") + @NotNull + + + public String getRemoteIp() { + return remoteIp; + } + + public void setRemoteIp(String remoteIp) { + this.remoteIp = remoteIp; + } + + public ClassRuleOpenApiVo dscp(String dscp) { + this.dscp = dscp; + return this; + } + + /** + * The DSCP value selected in the DSCP configuration should be a value as follows: any: any; 8: IP precedence 1; 16: IP precedence 2; 24: IP precedence 3; 32: IP precedence 4; 40: IP precedence 5; 48: IP precedence 6; 56: IP precedence 7; 10: AF Class 1 (Low Drop); 12: AF Class 1 (Medium Drop); 14: AF Class 1 (High Drop); 18: AF Class 2 (Low Drop); 20: AF Class 2 (Medium Drop); 22: AF Class 2 (High Drop); 26: AF Class 3 (Low Drop); 28: AF Class 3 (Medium Drop); 30: AF Class 3 (High Drop); 34: AF Class 4 (Low Drop); 36: AF Class 4 (Medium Drop); 38: AF Class 4 (High Drop); 46: EF Class. + * @return dscp + */ + @ApiModelProperty(required = true, value = "The DSCP value selected in the DSCP configuration should be a value as follows: any: any; 8: IP precedence 1; 16: IP precedence 2; 24: IP precedence 3; 32: IP precedence 4; 40: IP precedence 5; 48: IP precedence 6; 56: IP precedence 7; 10: AF Class 1 (Low Drop); 12: AF Class 1 (Medium Drop); 14: AF Class 1 (High Drop); 18: AF Class 2 (Low Drop); 20: AF Class 2 (Medium Drop); 22: AF Class 2 (High Drop); 26: AF Class 3 (Low Drop); 28: AF Class 3 (Medium Drop); 30: AF Class 3 (High Drop); 34: AF Class 4 (Low Drop); 36: AF Class 4 (Medium Drop); 38: AF Class 4 (High Drop); 46: EF Class.") + @NotNull + + + public String getDscp() { + return dscp; + } + + public void setDscp(String dscp) { + this.dscp = dscp; + } + + public ClassRuleOpenApiVo serviceType(String serviceType) { + this.serviceType = serviceType; + return this; + } + + /** + * The ID of Gateway Qos Service selected in the Service Name configuration. The ID can be obtained from 'Get all Gateway QoS Service's ID and name info' interface. + * @return serviceType + */ + @ApiModelProperty(required = true, value = "The ID of Gateway Qos Service selected in the Service Name configuration. The ID can be obtained from 'Get all Gateway QoS Service's ID and name info' interface.") + @NotNull + + + public String getServiceType() { + return serviceType; + } + + public void setServiceType(String serviceType) { + this.serviceType = serviceType; + } + + public ClassRuleOpenApiVo classType(Integer classType) { + this.classType = classType; + return this; + } + + /** + * The Class value selected in the Qos Class configuration should be a value as follows: 1: Class 1, 2: Class 2, 3: Class 3. + * @return classType + */ + @ApiModelProperty(required = true, value = "The Class value selected in the Qos Class configuration should be a value as follows: 1: Class 1, 2: Class 2, 3: Class 3.") + @NotNull + + + public Integer getClassType() { + return classType; + } + + public void setClassType(Integer classType) { + this.classType = classType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClassRuleOpenApiVo classRuleOpenApiVo = (ClassRuleOpenApiVo) o; + return Objects.equals(this.enable, classRuleOpenApiVo.enable) && + Objects.equals(this.ipVersion, classRuleOpenApiVo.ipVersion) && + Objects.equals(this.localIp, classRuleOpenApiVo.localIp) && + Objects.equals(this.remoteIp, classRuleOpenApiVo.remoteIp) && + Objects.equals(this.dscp, classRuleOpenApiVo.dscp) && + Objects.equals(this.serviceType, classRuleOpenApiVo.serviceType) && + Objects.equals(this.classType, classRuleOpenApiVo.classType); + } + + @Override + public int hashCode() { + return Objects.hash(enable, ipVersion, localIp, remoteIp, dscp, serviceType, classType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClassRuleOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ipVersion: ").append(toIndentedString(ipVersion)).append("\n"); + sb.append(" localIp: ").append(toIndentedString(localIp)).append("\n"); + sb.append(" remoteIp: ").append(toIndentedString(remoteIp)).append("\n"); + sb.append(" dscp: ").append(toIndentedString(dscp)).append("\n"); + sb.append(" serviceType: ").append(toIndentedString(serviceType)).append("\n"); + sb.append(" classType: ").append(toIndentedString(classType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClearDpiDataRequest.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClearDpiDataRequest.java new file mode 100644 index 0000000..9ec439c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClearDpiDataRequest.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ClearDpiDataRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ClearDpiDataRequest { + @JsonProperty("start") + private Long start; + + @JsonProperty("end") + private Long end; + + public ClearDpiDataRequest start(Long start) { + this.start = start; + return this; + } + + /** + * Start timestamp, in seconds, such as 1682000000 + * @return start + */ + @ApiModelProperty(required = true, value = "Start timestamp, in seconds, such as 1682000000") + @NotNull + + + public Long getStart() { + return start; + } + + public void setStart(Long start) { + this.start = start; + } + + public ClearDpiDataRequest end(Long end) { + this.end = end; + return this; + } + + /** + * End timestamp, in seconds, such as 1682000000 + * @return end + */ + @ApiModelProperty(required = true, value = "End timestamp, in seconds, such as 1682000000") + @NotNull + + + public Long getEnd() { + return end; + } + + public void setEnd(Long end) { + this.end = end; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClearDpiDataRequest clearDpiDataRequest = (ClearDpiDataRequest) o; + return Objects.equals(this.start, clearDpiDataRequest.start) && + Objects.equals(this.end, clearDpiDataRequest.end); + } + + @Override + public int hashCode() { + return Objects.hash(start, end); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClearDpiDataRequest {\n"); + + sb.append(" start: ").append(toIndentedString(start)).append("\n"); + sb.append(" end: ").append(toIndentedString(end)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClientToSiteVpnClient.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClientToSiteVpnClient.java new file mode 100644 index 0000000..e7f7978 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClientToSiteVpnClient.java @@ -0,0 +1,646 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ClientToSiteVpnClient + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ClientToSiteVpnClient { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("mode") + private Integer mode; + + @JsonProperty("remoteSite") + private String remoteSite; + + @JsonProperty("remoteIp") + private String remoteIp; + + @JsonProperty("remoteSubnet") + @Valid + private List remoteSubnet = null; + + @JsonProperty("networkType") + private Integer networkType; + + @JsonProperty("networkList") + @Valid + private List networkList = null; + + @JsonProperty("customNetwork") + @Valid + private List customNetwork = null; + + @JsonProperty("preSharedKey") + private String preSharedKey; + + @JsonProperty("wan") + @Valid + private List wan = new ArrayList<>(); + + @JsonProperty("clientVpnType") + private Integer clientVpnType; + + @JsonProperty("openVpnTunnelMode") + private Integer openVpnTunnelMode; + + @JsonProperty("openVpnMode") + private Integer openVpnMode; + + @JsonProperty("serviceType") + private Integer serviceType; + + @JsonProperty("servicePort") + private Integer servicePort; + + @JsonProperty("encryption") + private Integer encryption; + + @JsonProperty("workingMode") + private Integer workingMode; + + @JsonProperty("clientUserName") + private String clientUserName; + + @JsonProperty("clientPassword") + private String clientPassword; + + @JsonProperty("vpnConfiguration") + private VpnCertificateOpenApiVo vpnConfiguration; + + public ClientToSiteVpnClient id(String id) { + this.id = id; + return this; + } + + /** + * ID of the VPN. + * @return id + */ + @ApiModelProperty(value = "ID of the VPN.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ClientToSiteVpnClient name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 63 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 63 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,61}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ClientToSiteVpnClient status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the VPN. + * @return status + */ + @ApiModelProperty(value = "Status of the VPN.") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public ClientToSiteVpnClient mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Mode(only for server OpenVPN) should be a value as follows: 0: certification; 1: certification+account. + * @return mode + */ + @ApiModelProperty(value = "Mode(only for server OpenVPN) should be a value as follows: 0: certification; 1: certification+account.") + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + public ClientToSiteVpnClient remoteSite(String remoteSite) { + this.remoteSite = remoteSite; + return this; + } + + /** + * Remote site of the VPN. + * @return remoteSite + */ + @ApiModelProperty(value = "Remote site of the VPN.") + + + public String getRemoteSite() { + return remoteSite; + } + + public void setRemoteSite(String remoteSite) { + this.remoteSite = remoteSite; + } + + public ClientToSiteVpnClient remoteIp(String remoteIp) { + this.remoteIp = remoteIp; + return this; + } + + /** + * Remote IP of the VPN. + * @return remoteIp + */ + @ApiModelProperty(value = "Remote IP of the VPN.") + + + public String getRemoteIp() { + return remoteIp; + } + + public void setRemoteIp(String remoteIp) { + this.remoteIp = remoteIp; + } + + public ClientToSiteVpnClient remoteSubnet(List remoteSubnet) { + this.remoteSubnet = remoteSubnet; + return this; + } + + public ClientToSiteVpnClient addRemoteSubnetItem(IpSubnetsVo remoteSubnetItem) { + if (this.remoteSubnet == null) { + this.remoteSubnet = new ArrayList<>(); + } + this.remoteSubnet.add(remoteSubnetItem); + return this; + } + + /** + * Remote subnet of the VPN. + * @return remoteSubnet + */ + @ApiModelProperty(value = "Remote subnet of the VPN.") + + @Valid + + public List getRemoteSubnet() { + return remoteSubnet; + } + + public void setRemoteSubnet(List remoteSubnet) { + this.remoteSubnet = remoteSubnet; + } + + public ClientToSiteVpnClient networkType(Integer networkType) { + this.networkType = networkType; + return this; + } + + /** + * Network type should be a value as follows: 0: network list; 1: custom networks. + * @return networkType + */ + @ApiModelProperty(value = "Network type should be a value as follows: 0: network list; 1: custom networks.") + + + public Integer getNetworkType() { + return networkType; + } + + public void setNetworkType(Integer networkType) { + this.networkType = networkType; + } + + public ClientToSiteVpnClient networkList(List networkList) { + this.networkList = networkList; + return this; + } + + public ClientToSiteVpnClient addNetworkListItem(String networkListItem) { + if (this.networkList == null) { + this.networkList = new ArrayList<>(); + } + this.networkList.add(networkListItem); + return this; + } + + /** + * Network list of the VPN. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. + * @return networkList + */ + @ApiModelProperty(value = "Network list of the VPN. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface.") + + + public List getNetworkList() { + return networkList; + } + + public void setNetworkList(List networkList) { + this.networkList = networkList; + } + + public ClientToSiteVpnClient customNetwork(List customNetwork) { + this.customNetwork = customNetwork; + return this; + } + + public ClientToSiteVpnClient addCustomNetworkItem(IpSubnetsVo customNetworkItem) { + if (this.customNetwork == null) { + this.customNetwork = new ArrayList<>(); + } + this.customNetwork.add(customNetworkItem); + return this; + } + + /** + * Custom networks of the VPN. + * @return customNetwork + */ + @ApiModelProperty(value = "Custom networks of the VPN.") + + @Valid + + public List getCustomNetwork() { + return customNetwork; + } + + public void setCustomNetwork(List customNetwork) { + this.customNetwork = customNetwork; + } + + public ClientToSiteVpnClient preSharedKey(String preSharedKey) { + this.preSharedKey = preSharedKey; + return this; + } + + /** + * Pre-shared key of the VPN. + * @return preSharedKey + */ + @ApiModelProperty(value = "Pre-shared key of the VPN.") + + + public String getPreSharedKey() { + return preSharedKey; + } + + public void setPreSharedKey(String preSharedKey) { + this.preSharedKey = preSharedKey; + } + + public ClientToSiteVpnClient wan(List wan) { + this.wan = wan; + return this; + } + + public ClientToSiteVpnClient addWanItem(String wanItem) { + this.wan.add(wanItem); + return this; + } + + /** + * WAN list of the VPN. WAN port ID can be obtained from 'Get internet basic info' interface. + * @return wan + */ + @ApiModelProperty(required = true, value = "WAN list of the VPN. WAN port ID can be obtained from 'Get internet basic info' interface.") + @NotNull + + + public List getWan() { + return wan; + } + + public void setWan(List wan) { + this.wan = wan; + } + + public ClientToSiteVpnClient clientVpnType(Integer clientVpnType) { + this.clientVpnType = clientVpnType; + return this; + } + + /** + * Client Vpn type should be a value as follows: 0: L2TP; 1: PPTP; 2: IPSec; 3: OpenVPN. + * @return clientVpnType + */ + @ApiModelProperty(required = true, value = "Client Vpn type should be a value as follows: 0: L2TP; 1: PPTP; 2: IPSec; 3: OpenVPN.") + @NotNull + + + public Integer getClientVpnType() { + return clientVpnType; + } + + public void setClientVpnType(Integer clientVpnType) { + this.clientVpnType = clientVpnType; + } + + public ClientToSiteVpnClient openVpnTunnelMode(Integer openVpnTunnelMode) { + this.openVpnTunnelMode = openVpnTunnelMode; + return this; + } + + /** + * OpenVPN tunnel mode should be a value as follows: 0: split; 1: full. + * @return openVpnTunnelMode + */ + @ApiModelProperty(value = "OpenVPN tunnel mode should be a value as follows: 0: split; 1: full.") + + + public Integer getOpenVpnTunnelMode() { + return openVpnTunnelMode; + } + + public void setOpenVpnTunnelMode(Integer openVpnTunnelMode) { + this.openVpnTunnelMode = openVpnTunnelMode; + } + + public ClientToSiteVpnClient openVpnMode(Integer openVpnMode) { + this.openVpnMode = openVpnMode; + return this; + } + + /** + * OpenVPN mode should be a value as follows: 0: certification; 1: certification+account. + * @return openVpnMode + */ + @ApiModelProperty(value = "OpenVPN mode should be a value as follows: 0: certification; 1: certification+account.") + + + public Integer getOpenVpnMode() { + return openVpnMode; + } + + public void setOpenVpnMode(Integer openVpnMode) { + this.openVpnMode = openVpnMode; + } + + public ClientToSiteVpnClient serviceType(Integer serviceType) { + this.serviceType = serviceType; + return this; + } + + /** + * Service type should be a value as follows: 0: UDP; 1: TCP. + * @return serviceType + */ + @ApiModelProperty(value = "Service type should be a value as follows: 0: UDP; 1: TCP.") + + + public Integer getServiceType() { + return serviceType; + } + + public void setServiceType(Integer serviceType) { + this.serviceType = serviceType; + } + + public ClientToSiteVpnClient servicePort(Integer servicePort) { + this.servicePort = servicePort; + return this; + } + + /** + * Service port should be within the range of 1–65535. + * @return servicePort + */ + @ApiModelProperty(value = "Service port should be within the range of 1–65535.") + + + public Integer getServicePort() { + return servicePort; + } + + public void setServicePort(Integer servicePort) { + this.servicePort = servicePort; + } + + public ClientToSiteVpnClient encryption(Integer encryption) { + this.encryption = encryption; + return this; + } + + /** + * Encryption should be a value as follows: 0: Encrypted; 1: Unencrypted. + * @return encryption + */ + @ApiModelProperty(value = "Encryption should be a value as follows: 0: Encrypted; 1: Unencrypted.") + + + public Integer getEncryption() { + return encryption; + } + + public void setEncryption(Integer encryption) { + this.encryption = encryption; + } + + public ClientToSiteVpnClient workingMode(Integer workingMode) { + this.workingMode = workingMode; + return this; + } + + /** + * Working mode should be a value as follows: 0: NAT; 1: Routing. + * @return workingMode + */ + @ApiModelProperty(value = "Working mode should be a value as follows: 0: NAT; 1: Routing.") + + + public Integer getWorkingMode() { + return workingMode; + } + + public void setWorkingMode(Integer workingMode) { + this.workingMode = workingMode; + } + + public ClientToSiteVpnClient clientUserName(String clientUserName) { + this.clientUserName = clientUserName; + return this; + } + + /** + * Client username should contain 1 to 64 characters. + * @return clientUserName + */ + @ApiModelProperty(value = "Client username should contain 1 to 64 characters.") + +@Size(min=1,max=64) + public String getClientUserName() { + return clientUserName; + } + + public void setClientUserName(String clientUserName) { + this.clientUserName = clientUserName; + } + + public ClientToSiteVpnClient clientPassword(String clientPassword) { + this.clientPassword = clientPassword; + return this; + } + + /** + * Client password should contain 1 to 64 characters. + * @return clientPassword + */ + @ApiModelProperty(value = "Client password should contain 1 to 64 characters.") + +@Size(min=1,max=64) + public String getClientPassword() { + return clientPassword; + } + + public void setClientPassword(String clientPassword) { + this.clientPassword = clientPassword; + } + + public ClientToSiteVpnClient vpnConfiguration(VpnCertificateOpenApiVo vpnConfiguration) { + this.vpnConfiguration = vpnConfiguration; + return this; + } + + /** + * Get vpnConfiguration + * @return vpnConfiguration + */ + @ApiModelProperty(value = "") + + @Valid + + public VpnCertificateOpenApiVo getVpnConfiguration() { + return vpnConfiguration; + } + + public void setVpnConfiguration(VpnCertificateOpenApiVo vpnConfiguration) { + this.vpnConfiguration = vpnConfiguration; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientToSiteVpnClient clientToSiteVpnClient = (ClientToSiteVpnClient) o; + return Objects.equals(this.id, clientToSiteVpnClient.id) && + Objects.equals(this.name, clientToSiteVpnClient.name) && + Objects.equals(this.status, clientToSiteVpnClient.status) && + Objects.equals(this.mode, clientToSiteVpnClient.mode) && + Objects.equals(this.remoteSite, clientToSiteVpnClient.remoteSite) && + Objects.equals(this.remoteIp, clientToSiteVpnClient.remoteIp) && + Objects.equals(this.remoteSubnet, clientToSiteVpnClient.remoteSubnet) && + Objects.equals(this.networkType, clientToSiteVpnClient.networkType) && + Objects.equals(this.networkList, clientToSiteVpnClient.networkList) && + Objects.equals(this.customNetwork, clientToSiteVpnClient.customNetwork) && + Objects.equals(this.preSharedKey, clientToSiteVpnClient.preSharedKey) && + Objects.equals(this.wan, clientToSiteVpnClient.wan) && + Objects.equals(this.clientVpnType, clientToSiteVpnClient.clientVpnType) && + Objects.equals(this.openVpnTunnelMode, clientToSiteVpnClient.openVpnTunnelMode) && + Objects.equals(this.openVpnMode, clientToSiteVpnClient.openVpnMode) && + Objects.equals(this.serviceType, clientToSiteVpnClient.serviceType) && + Objects.equals(this.servicePort, clientToSiteVpnClient.servicePort) && + Objects.equals(this.encryption, clientToSiteVpnClient.encryption) && + Objects.equals(this.workingMode, clientToSiteVpnClient.workingMode) && + Objects.equals(this.clientUserName, clientToSiteVpnClient.clientUserName) && + Objects.equals(this.clientPassword, clientToSiteVpnClient.clientPassword) && + Objects.equals(this.vpnConfiguration, clientToSiteVpnClient.vpnConfiguration); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, status, mode, remoteSite, remoteIp, remoteSubnet, networkType, networkList, customNetwork, preSharedKey, wan, clientVpnType, openVpnTunnelMode, openVpnMode, serviceType, servicePort, encryption, workingMode, clientUserName, clientPassword, vpnConfiguration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientToSiteVpnClient {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" remoteSite: ").append(toIndentedString(remoteSite)).append("\n"); + sb.append(" remoteIp: ").append(toIndentedString(remoteIp)).append("\n"); + sb.append(" remoteSubnet: ").append(toIndentedString(remoteSubnet)).append("\n"); + sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); + sb.append(" networkList: ").append(toIndentedString(networkList)).append("\n"); + sb.append(" customNetwork: ").append(toIndentedString(customNetwork)).append("\n"); + sb.append(" preSharedKey: ").append(toIndentedString(preSharedKey)).append("\n"); + sb.append(" wan: ").append(toIndentedString(wan)).append("\n"); + sb.append(" clientVpnType: ").append(toIndentedString(clientVpnType)).append("\n"); + sb.append(" openVpnTunnelMode: ").append(toIndentedString(openVpnTunnelMode)).append("\n"); + sb.append(" openVpnMode: ").append(toIndentedString(openVpnMode)).append("\n"); + sb.append(" serviceType: ").append(toIndentedString(serviceType)).append("\n"); + sb.append(" servicePort: ").append(toIndentedString(servicePort)).append("\n"); + sb.append(" encryption: ").append(toIndentedString(encryption)).append("\n"); + sb.append(" workingMode: ").append(toIndentedString(workingMode)).append("\n"); + sb.append(" clientUserName: ").append(toIndentedString(clientUserName)).append("\n"); + sb.append(" clientPassword: ").append(toIndentedString(clientPassword)).append("\n"); + sb.append(" vpnConfiguration: ").append(toIndentedString(vpnConfiguration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClientToSiteVpnServer.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClientToSiteVpnServer.java new file mode 100644 index 0000000..fe1afcb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ClientToSiteVpnServer.java @@ -0,0 +1,688 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ClientToSiteVpnServer + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ClientToSiteVpnServer { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("accountPassword") + private Boolean accountPassword; + + @JsonProperty("tunnelMode") + private Integer tunnelMode; + + @JsonProperty("openVpnMode") + private Integer openVpnMode; + + @JsonProperty("remoteIp") + private String remoteIp; + + @JsonProperty("networkType") + private Integer networkType; + + @JsonProperty("networkList") + @Valid + private List networkList = null; + + @JsonProperty("customNetwork") + @Valid + private List customNetwork = null; + + @JsonProperty("preSharedKey") + private String preSharedKey; + + @JsonProperty("wan") + @Valid + private List wan = new ArrayList<>(); + + @JsonProperty("clientVpnType") + private Integer clientVpnType; + + @JsonProperty("encryption") + private Integer encryption; + + @JsonProperty("ipPoolType") + private Integer ipPoolType; + + @JsonProperty("ipPoolStart") + private String ipPoolStart; + + @JsonProperty("ipPoolEnd") + private String ipPoolEnd; + + @JsonProperty("ipPool") + private IpSubnetsVo ipPool; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + @JsonProperty("serviceType") + private Integer serviceType; + + @JsonProperty("servicePort") + private Integer servicePort; + + @JsonProperty("authMode") + private Integer authMode; + + @JsonProperty("advancedSetting") + private VpnAdvancedSettingOpenApiVo advancedSetting; + + public ClientToSiteVpnServer id(String id) { + this.id = id; + return this; + } + + /** + * ID of the VPN. + * @return id + */ + @ApiModelProperty(value = "ID of the VPN.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ClientToSiteVpnServer name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 63 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 63 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,61}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public ClientToSiteVpnServer status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the VPN. + * @return status + */ + @ApiModelProperty(value = "Status of the VPN.") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public ClientToSiteVpnServer accountPassword(Boolean accountPassword) { + this.accountPassword = accountPassword; + return this; + } + + /** + * Account password of the VPN, only for server OpenVPN. + * @return accountPassword + */ + @ApiModelProperty(value = "Account password of the VPN, only for server OpenVPN.") + + + public Boolean getAccountPassword() { + return accountPassword; + } + + public void setAccountPassword(Boolean accountPassword) { + this.accountPassword = accountPassword; + } + + public ClientToSiteVpnServer tunnelMode(Integer tunnelMode) { + this.tunnelMode = tunnelMode; + return this; + } + + /** + * Tunnel mode(only for server OpenVPN)should be a value as follows: 0: split; 1: full. + * @return tunnelMode + */ + @ApiModelProperty(value = "Tunnel mode(only for server OpenVPN)should be a value as follows: 0: split; 1: full.") + + + public Integer getTunnelMode() { + return tunnelMode; + } + + public void setTunnelMode(Integer tunnelMode) { + this.tunnelMode = tunnelMode; + } + + public ClientToSiteVpnServer openVpnMode(Integer openVpnMode) { + this.openVpnMode = openVpnMode; + return this; + } + + /** + * OpenVPN mode should be a value as follows: 0: certification; 1: certification+account. + * @return openVpnMode + */ + @ApiModelProperty(value = "OpenVPN mode should be a value as follows: 0: certification; 1: certification+account.") + + + public Integer getOpenVpnMode() { + return openVpnMode; + } + + public void setOpenVpnMode(Integer openVpnMode) { + this.openVpnMode = openVpnMode; + } + + public ClientToSiteVpnServer remoteIp(String remoteIp) { + this.remoteIp = remoteIp; + return this; + } + + /** + * Remote IP of the VPN + * @return remoteIp + */ + @ApiModelProperty(value = "Remote IP of the VPN") + + + public String getRemoteIp() { + return remoteIp; + } + + public void setRemoteIp(String remoteIp) { + this.remoteIp = remoteIp; + } + + public ClientToSiteVpnServer networkType(Integer networkType) { + this.networkType = networkType; + return this; + } + + /** + * Network type should be a value as follows: 0: network list; 1: custom networks. + * @return networkType + */ + @ApiModelProperty(value = "Network type should be a value as follows: 0: network list; 1: custom networks.") + + + public Integer getNetworkType() { + return networkType; + } + + public void setNetworkType(Integer networkType) { + this.networkType = networkType; + } + + public ClientToSiteVpnServer networkList(List networkList) { + this.networkList = networkList; + return this; + } + + public ClientToSiteVpnServer addNetworkListItem(String networkListItem) { + if (this.networkList == null) { + this.networkList = new ArrayList<>(); + } + this.networkList.add(networkListItem); + return this; + } + + /** + * Network list of the VPN. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. + * @return networkList + */ + @ApiModelProperty(value = "Network list of the VPN. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface.") + + + public List getNetworkList() { + return networkList; + } + + public void setNetworkList(List networkList) { + this.networkList = networkList; + } + + public ClientToSiteVpnServer customNetwork(List customNetwork) { + this.customNetwork = customNetwork; + return this; + } + + public ClientToSiteVpnServer addCustomNetworkItem(IpSubnetsVo customNetworkItem) { + if (this.customNetwork == null) { + this.customNetwork = new ArrayList<>(); + } + this.customNetwork.add(customNetworkItem); + return this; + } + + /** + * Custom networks of the VPN. + * @return customNetwork + */ + @ApiModelProperty(value = "Custom networks of the VPN.") + + @Valid + + public List getCustomNetwork() { + return customNetwork; + } + + public void setCustomNetwork(List customNetwork) { + this.customNetwork = customNetwork; + } + + public ClientToSiteVpnServer preSharedKey(String preSharedKey) { + this.preSharedKey = preSharedKey; + return this; + } + + /** + * Pre-shared key of the VPN. + * @return preSharedKey + */ + @ApiModelProperty(value = "Pre-shared key of the VPN.") + + + public String getPreSharedKey() { + return preSharedKey; + } + + public void setPreSharedKey(String preSharedKey) { + this.preSharedKey = preSharedKey; + } + + public ClientToSiteVpnServer wan(List wan) { + this.wan = wan; + return this; + } + + public ClientToSiteVpnServer addWanItem(String wanItem) { + this.wan.add(wanItem); + return this; + } + + /** + * WAN list of the VPN. WAN port ID can be obtained from 'Get internet basic info' interface. + * @return wan + */ + @ApiModelProperty(required = true, value = "WAN list of the VPN. WAN port ID can be obtained from 'Get internet basic info' interface.") + @NotNull + + + public List getWan() { + return wan; + } + + public void setWan(List wan) { + this.wan = wan; + } + + public ClientToSiteVpnServer clientVpnType(Integer clientVpnType) { + this.clientVpnType = clientVpnType; + return this; + } + + /** + * Client Vpn type should be a value as follows: 0: L2TP; 1: PPTP; 2: IPSec; 3: OpenVPN. + * @return clientVpnType + */ + @ApiModelProperty(required = true, value = "Client Vpn type should be a value as follows: 0: L2TP; 1: PPTP; 2: IPSec; 3: OpenVPN.") + @NotNull + + + public Integer getClientVpnType() { + return clientVpnType; + } + + public void setClientVpnType(Integer clientVpnType) { + this.clientVpnType = clientVpnType; + } + + public ClientToSiteVpnServer encryption(Integer encryption) { + this.encryption = encryption; + return this; + } + + /** + * Encryption should be a value as follows: 0: Encrypted; 1: Unencrypted. + * @return encryption + */ + @ApiModelProperty(value = "Encryption should be a value as follows: 0: Encrypted; 1: Unencrypted.") + + + public Integer getEncryption() { + return encryption; + } + + public void setEncryption(Integer encryption) { + this.encryption = encryption; + } + + public ClientToSiteVpnServer ipPoolType(Integer ipPoolType) { + this.ipPoolType = ipPoolType; + return this; + } + + /** + * IP pool type should be a value as follows: 0: Ip Address/Mask; 1: Ip Address Range. + * @return ipPoolType + */ + @ApiModelProperty(value = "IP pool type should be a value as follows: 0: Ip Address/Mask; 1: Ip Address Range.") + + + public Integer getIpPoolType() { + return ipPoolType; + } + + public void setIpPoolType(Integer ipPoolType) { + this.ipPoolType = ipPoolType; + } + + public ClientToSiteVpnServer ipPoolStart(String ipPoolStart) { + this.ipPoolStart = ipPoolStart; + return this; + } + + /** + * The start IP of the IP pool. + * @return ipPoolStart + */ + @ApiModelProperty(value = "The start IP of the IP pool.") + + + public String getIpPoolStart() { + return ipPoolStart; + } + + public void setIpPoolStart(String ipPoolStart) { + this.ipPoolStart = ipPoolStart; + } + + public ClientToSiteVpnServer ipPoolEnd(String ipPoolEnd) { + this.ipPoolEnd = ipPoolEnd; + return this; + } + + /** + * The end IP of the IP pool. + * @return ipPoolEnd + */ + @ApiModelProperty(value = "The end IP of the IP pool.") + + + public String getIpPoolEnd() { + return ipPoolEnd; + } + + public void setIpPoolEnd(String ipPoolEnd) { + this.ipPoolEnd = ipPoolEnd; + } + + public ClientToSiteVpnServer ipPool(IpSubnetsVo ipPool) { + this.ipPool = ipPool; + return this; + } + + /** + * Get ipPool + * @return ipPool + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public IpSubnetsVo getIpPool() { + return ipPool; + } + + public void setIpPool(IpSubnetsVo ipPool) { + this.ipPool = ipPool; + } + + public ClientToSiteVpnServer primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * Primary DNS of the VPN. + * @return primaryDns + */ + @ApiModelProperty(required = true, value = "Primary DNS of the VPN.") + @NotNull + + + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public ClientToSiteVpnServer secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * Secondary DNS of the VPN. + * @return secondaryDns + */ + @ApiModelProperty(value = "Secondary DNS of the VPN.") + + + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + public ClientToSiteVpnServer serviceType(Integer serviceType) { + this.serviceType = serviceType; + return this; + } + + /** + * Service type of the VPN. + * @return serviceType + */ + @ApiModelProperty(value = "Service type of the VPN.") + + + public Integer getServiceType() { + return serviceType; + } + + public void setServiceType(Integer serviceType) { + this.serviceType = serviceType; + } + + public ClientToSiteVpnServer servicePort(Integer servicePort) { + this.servicePort = servicePort; + return this; + } + + /** + * Service port should be within the range of 1–65535. + * @return servicePort + */ + @ApiModelProperty(value = "Service port should be within the range of 1–65535.") + + + public Integer getServicePort() { + return servicePort; + } + + public void setServicePort(Integer servicePort) { + this.servicePort = servicePort; + } + + public ClientToSiteVpnServer authMode(Integer authMode) { + this.authMode = authMode; + return this; + } + + /** + * Authentication mode should be a value as follows: 0: Local; 1: LDAP. + * @return authMode + */ + @ApiModelProperty(value = "Authentication mode should be a value as follows: 0: Local; 1: LDAP.") + + + public Integer getAuthMode() { + return authMode; + } + + public void setAuthMode(Integer authMode) { + this.authMode = authMode; + } + + public ClientToSiteVpnServer advancedSetting(VpnAdvancedSettingOpenApiVo advancedSetting) { + this.advancedSetting = advancedSetting; + return this; + } + + /** + * Get advancedSetting + * @return advancedSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public VpnAdvancedSettingOpenApiVo getAdvancedSetting() { + return advancedSetting; + } + + public void setAdvancedSetting(VpnAdvancedSettingOpenApiVo advancedSetting) { + this.advancedSetting = advancedSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ClientToSiteVpnServer clientToSiteVpnServer = (ClientToSiteVpnServer) o; + return Objects.equals(this.id, clientToSiteVpnServer.id) && + Objects.equals(this.name, clientToSiteVpnServer.name) && + Objects.equals(this.status, clientToSiteVpnServer.status) && + Objects.equals(this.accountPassword, clientToSiteVpnServer.accountPassword) && + Objects.equals(this.tunnelMode, clientToSiteVpnServer.tunnelMode) && + Objects.equals(this.openVpnMode, clientToSiteVpnServer.openVpnMode) && + Objects.equals(this.remoteIp, clientToSiteVpnServer.remoteIp) && + Objects.equals(this.networkType, clientToSiteVpnServer.networkType) && + Objects.equals(this.networkList, clientToSiteVpnServer.networkList) && + Objects.equals(this.customNetwork, clientToSiteVpnServer.customNetwork) && + Objects.equals(this.preSharedKey, clientToSiteVpnServer.preSharedKey) && + Objects.equals(this.wan, clientToSiteVpnServer.wan) && + Objects.equals(this.clientVpnType, clientToSiteVpnServer.clientVpnType) && + Objects.equals(this.encryption, clientToSiteVpnServer.encryption) && + Objects.equals(this.ipPoolType, clientToSiteVpnServer.ipPoolType) && + Objects.equals(this.ipPoolStart, clientToSiteVpnServer.ipPoolStart) && + Objects.equals(this.ipPoolEnd, clientToSiteVpnServer.ipPoolEnd) && + Objects.equals(this.ipPool, clientToSiteVpnServer.ipPool) && + Objects.equals(this.primaryDns, clientToSiteVpnServer.primaryDns) && + Objects.equals(this.secondaryDns, clientToSiteVpnServer.secondaryDns) && + Objects.equals(this.serviceType, clientToSiteVpnServer.serviceType) && + Objects.equals(this.servicePort, clientToSiteVpnServer.servicePort) && + Objects.equals(this.authMode, clientToSiteVpnServer.authMode) && + Objects.equals(this.advancedSetting, clientToSiteVpnServer.advancedSetting); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, status, accountPassword, tunnelMode, openVpnMode, remoteIp, networkType, networkList, customNetwork, preSharedKey, wan, clientVpnType, encryption, ipPoolType, ipPoolStart, ipPoolEnd, ipPool, primaryDns, secondaryDns, serviceType, servicePort, authMode, advancedSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ClientToSiteVpnServer {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" accountPassword: ").append(toIndentedString(accountPassword)).append("\n"); + sb.append(" tunnelMode: ").append(toIndentedString(tunnelMode)).append("\n"); + sb.append(" openVpnMode: ").append(toIndentedString(openVpnMode)).append("\n"); + sb.append(" remoteIp: ").append(toIndentedString(remoteIp)).append("\n"); + sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); + sb.append(" networkList: ").append(toIndentedString(networkList)).append("\n"); + sb.append(" customNetwork: ").append(toIndentedString(customNetwork)).append("\n"); + sb.append(" preSharedKey: ").append(toIndentedString(preSharedKey)).append("\n"); + sb.append(" wan: ").append(toIndentedString(wan)).append("\n"); + sb.append(" clientVpnType: ").append(toIndentedString(clientVpnType)).append("\n"); + sb.append(" encryption: ").append(toIndentedString(encryption)).append("\n"); + sb.append(" ipPoolType: ").append(toIndentedString(ipPoolType)).append("\n"); + sb.append(" ipPoolStart: ").append(toIndentedString(ipPoolStart)).append("\n"); + sb.append(" ipPoolEnd: ").append(toIndentedString(ipPoolEnd)).append("\n"); + sb.append(" ipPool: ").append(toIndentedString(ipPool)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append(" serviceType: ").append(toIndentedString(serviceType)).append("\n"); + sb.append(" servicePort: ").append(toIndentedString(servicePort)).append("\n"); + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" advancedSetting: ").append(toIndentedString(advancedSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ConfirmBindedDevicesEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ConfirmBindedDevicesEntity.java new file mode 100644 index 0000000..94593a5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ConfirmBindedDevicesEntity.java @@ -0,0 +1,113 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ConfirmBindedDevicesEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ConfirmBindedDevicesEntity { + @JsonProperty("profileIds") + @Valid + private List profileIds = new ArrayList<>(); + + @JsonProperty("skipConfirm") + private Boolean skipConfirm; + + public ConfirmBindedDevicesEntity profileIds(List profileIds) { + this.profileIds = profileIds; + return this; + } + + public ConfirmBindedDevicesEntity addProfileIdsItem(String profileIdsItem) { + this.profileIds.add(profileIdsItem); + return this; + } + + /** + * Provider profile IDs + * @return profileIds + */ + @ApiModelProperty(required = true, value = "Provider profile IDs") + @NotNull + + + public List getProfileIds() { + return profileIds; + } + + public void setProfileIds(List profileIds) { + this.profileIds = profileIds; + } + + public ConfirmBindedDevicesEntity skipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + return this; + } + + /** + * skipConfirm indicates whether to skip the query of the devices bound to provider profiles. false: Not to skip the query. true: Skip the query and delete the provider profiles corresponding to the profileIds. + * @return skipConfirm + */ + @ApiModelProperty(required = true, value = "skipConfirm indicates whether to skip the query of the devices bound to provider profiles. false: Not to skip the query. true: Skip the query and delete the provider profiles corresponding to the profileIds.") + @NotNull + + + public Boolean getSkipConfirm() { + return skipConfirm; + } + + public void setSkipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ConfirmBindedDevicesEntity confirmBindedDevicesEntity = (ConfirmBindedDevicesEntity) o; + return Objects.equals(this.profileIds, confirmBindedDevicesEntity.profileIds) && + Objects.equals(this.skipConfirm, confirmBindedDevicesEntity.skipConfirm); + } + + @Override + public int hashCode() { + return Objects.hash(profileIds, skipConfirm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ConfirmBindedDevicesEntity {\n"); + + sb.append(" profileIds: ").append(toIndentedString(profileIds)).append("\n"); + sb.append(" skipConfirm: ").append(toIndentedString(skipConfirm)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CorrectSimQuota.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CorrectSimQuota.java new file mode 100644 index 0000000..c69c579 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CorrectSimQuota.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * CorrectSimQuota + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CorrectSimQuota { + @JsonProperty("data") + private Float data; + + @JsonProperty("sms") + private Integer sms; + + public CorrectSimQuota data(Float data) { + this.data = data; + return this; + } + + /** + * The amount of data usage(KB) in current billing cycle. + * @return data + */ + @ApiModelProperty(value = "The amount of data usage(KB) in current billing cycle.") + + + public Float getData() { + return data; + } + + public void setData(Float data) { + this.data = data; + } + + public CorrectSimQuota sms(Integer sms) { + this.sms = sms; + return this; + } + + /** + * The amount of SMS in current billing cycle, valid date should be within the range of 0–100000. + * @return sms + */ + @ApiModelProperty(value = "The amount of SMS in current billing cycle, valid date should be within the range of 0–100000.") + + + public Integer getSms() { + return sms; + } + + public void setSms(Integer sms) { + this.sms = sms; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CorrectSimQuota correctSimQuota = (CorrectSimQuota) o; + return Objects.equals(this.data, correctSimQuota.data) && + Objects.equals(this.sms, correctSimQuota.sms); + } + + @Override + public int hashCode() { + return Objects.hash(data, sms); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CorrectSimQuota {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" sms: ").append(toIndentedString(sms)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateCallBlockingProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateCallBlockingProfileEntity.java new file mode 100644 index 0000000..0f3e12f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateCallBlockingProfileEntity.java @@ -0,0 +1,182 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CreateCallBlockingProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateCallBlockingProfileEntity { + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("incomingCallsBlockingEnable") + private Boolean incomingCallsBlockingEnable; + + @JsonProperty("incomingCallsBlocking") + private IncomingCallsBlockingVo incomingCallsBlocking; + + @JsonProperty("outgoingCallsBlockingEnable") + private Boolean outgoingCallsBlockingEnable; + + @JsonProperty("outgoingCallsBlocking") + private OutgoingCallsBlockingVo outgoingCallsBlocking; + + public CreateCallBlockingProfileEntity profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Call blocking profile name + * @return profileName + */ + @ApiModelProperty(required = true, value = "Call blocking profile name") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public CreateCallBlockingProfileEntity incomingCallsBlockingEnable(Boolean incomingCallsBlockingEnable) { + this.incomingCallsBlockingEnable = incomingCallsBlockingEnable; + return this; + } + + /** + * Enable incoming calls blocking or not. The default value is false. + * @return incomingCallsBlockingEnable + */ + @ApiModelProperty(value = "Enable incoming calls blocking or not. The default value is false.") + + + public Boolean getIncomingCallsBlockingEnable() { + return incomingCallsBlockingEnable; + } + + public void setIncomingCallsBlockingEnable(Boolean incomingCallsBlockingEnable) { + this.incomingCallsBlockingEnable = incomingCallsBlockingEnable; + } + + public CreateCallBlockingProfileEntity incomingCallsBlocking(IncomingCallsBlockingVo incomingCallsBlocking) { + this.incomingCallsBlocking = incomingCallsBlocking; + return this; + } + + /** + * Get incomingCallsBlocking + * @return incomingCallsBlocking + */ + @ApiModelProperty(value = "") + + @Valid + + public IncomingCallsBlockingVo getIncomingCallsBlocking() { + return incomingCallsBlocking; + } + + public void setIncomingCallsBlocking(IncomingCallsBlockingVo incomingCallsBlocking) { + this.incomingCallsBlocking = incomingCallsBlocking; + } + + public CreateCallBlockingProfileEntity outgoingCallsBlockingEnable(Boolean outgoingCallsBlockingEnable) { + this.outgoingCallsBlockingEnable = outgoingCallsBlockingEnable; + return this; + } + + /** + * Enable outgoing calls blocking or not. The default value is false. + * @return outgoingCallsBlockingEnable + */ + @ApiModelProperty(value = "Enable outgoing calls blocking or not. The default value is false.") + + + public Boolean getOutgoingCallsBlockingEnable() { + return outgoingCallsBlockingEnable; + } + + public void setOutgoingCallsBlockingEnable(Boolean outgoingCallsBlockingEnable) { + this.outgoingCallsBlockingEnable = outgoingCallsBlockingEnable; + } + + public CreateCallBlockingProfileEntity outgoingCallsBlocking(OutgoingCallsBlockingVo outgoingCallsBlocking) { + this.outgoingCallsBlocking = outgoingCallsBlocking; + return this; + } + + /** + * Get outgoingCallsBlocking + * @return outgoingCallsBlocking + */ + @ApiModelProperty(value = "") + + @Valid + + public OutgoingCallsBlockingVo getOutgoingCallsBlocking() { + return outgoingCallsBlocking; + } + + public void setOutgoingCallsBlocking(OutgoingCallsBlockingVo outgoingCallsBlocking) { + this.outgoingCallsBlocking = outgoingCallsBlocking; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateCallBlockingProfileEntity createCallBlockingProfileEntity = (CreateCallBlockingProfileEntity) o; + return Objects.equals(this.profileName, createCallBlockingProfileEntity.profileName) && + Objects.equals(this.incomingCallsBlockingEnable, createCallBlockingProfileEntity.incomingCallsBlockingEnable) && + Objects.equals(this.incomingCallsBlocking, createCallBlockingProfileEntity.incomingCallsBlocking) && + Objects.equals(this.outgoingCallsBlockingEnable, createCallBlockingProfileEntity.outgoingCallsBlockingEnable) && + Objects.equals(this.outgoingCallsBlocking, createCallBlockingProfileEntity.outgoingCallsBlocking); + } + + @Override + public int hashCode() { + return Objects.hash(profileName, incomingCallsBlockingEnable, incomingCallsBlocking, outgoingCallsBlockingEnable, outgoingCallsBlocking); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateCallBlockingProfileEntity {\n"); + + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" incomingCallsBlockingEnable: ").append(toIndentedString(incomingCallsBlockingEnable)).append("\n"); + sb.append(" incomingCallsBlocking: ").append(toIndentedString(incomingCallsBlocking)).append("\n"); + sb.append(" outgoingCallsBlockingEnable: ").append(toIndentedString(outgoingCallsBlockingEnable)).append("\n"); + sb.append(" outgoingCallsBlocking: ").append(toIndentedString(outgoingCallsBlocking)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDdnsOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDdnsOpenApiVo.java new file mode 100644 index 0000000..3597a17 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDdnsOpenApiVo.java @@ -0,0 +1,260 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CreateDdnsOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateDdnsOpenApiVo { + @JsonProperty("service") + private Integer service; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("interfacePortId") + private String interfacePortId; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + @JsonProperty("domainName") + private String domainName; + + @JsonProperty("interval") + private DdnsIntervalOpenApiVo interval; + + @JsonProperty("updateUrl") + private String updateUrl; + + public CreateDdnsOpenApiVo service(Integer service) { + this.service = service; + return this; + } + + /** + * Dynamic DNS service type. Service should be a value as follows: 0: DynDNS, 1: NO-IP, 2: Peanuthull, 3: Comexe, 4: Custom, 5: TP-Link DDNS + * @return service + */ + @ApiModelProperty(required = true, value = "Dynamic DNS service type. Service should be a value as follows: 0: DynDNS, 1: NO-IP, 2: Peanuthull, 3: Comexe, 4: Custom, 5: TP-Link DDNS") + @NotNull + + + public Integer getService() { + return service; + } + + public void setService(Integer service) { + this.service = service; + } + + public CreateDdnsOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Dynamic DNS enable status + * @return status + */ + @ApiModelProperty(required = true, value = "Dynamic DNS enable status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public CreateDdnsOpenApiVo interfacePortId(String interfacePortId) { + this.interfacePortId = interfacePortId; + return this; + } + + /** + * This field represents interface Port ID + * @return interfacePortId + */ + @ApiModelProperty(required = true, value = "This field represents interface Port ID") + @NotNull + + + public String getInterfacePortId() { + return interfacePortId; + } + + public void setInterfacePortId(String interfacePortId) { + this.interfacePortId = interfacePortId; + } + + public CreateDdnsOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * Dynamic DNS username. Username should contain 1 to 128 characters + * @return username + */ + @ApiModelProperty(required = true, value = "Dynamic DNS username. Username should contain 1 to 128 characters") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public CreateDdnsOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Dynamic DNS password. Password should contain 1 to 128 characters + * @return password + */ + @ApiModelProperty(required = true, value = "Dynamic DNS password. Password should contain 1 to 128 characters") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public CreateDdnsOpenApiVo domainName(String domainName) { + this.domainName = domainName; + return this; + } + + /** + * Dynamic DNS domainName, valid when parameter [service] is 0, 1 or 4 + * @return domainName + */ + @ApiModelProperty(value = "Dynamic DNS domainName, valid when parameter [service] is 0, 1 or 4") + +@Pattern(regexp="((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])){3}|([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})") + public String getDomainName() { + return domainName; + } + + public void setDomainName(String domainName) { + this.domainName = domainName; + } + + public CreateDdnsOpenApiVo interval(DdnsIntervalOpenApiVo interval) { + this.interval = interval; + return this; + } + + /** + * Get interval + * @return interval + */ + @ApiModelProperty(value = "") + + @Valid + + public DdnsIntervalOpenApiVo getInterval() { + return interval; + } + + public void setInterval(DdnsIntervalOpenApiVo interval) { + this.interval = interval; + } + + public CreateDdnsOpenApiVo updateUrl(String updateUrl) { + this.updateUrl = updateUrl; + return this; + } + + /** + * Dynamic DNS updateUrl, valid when parameter [service] is 4. Update URL must contain [USERNAME], [PASSWORD] and [DOMAIN], and Update-URL will be applied to all custom entries + * @return updateUrl + */ + @ApiModelProperty(value = "Dynamic DNS updateUrl, valid when parameter [service] is 4. Update URL must contain [USERNAME], [PASSWORD] and [DOMAIN], and Update-URL will be applied to all custom entries") + + + public String getUpdateUrl() { + return updateUrl; + } + + public void setUpdateUrl(String updateUrl) { + this.updateUrl = updateUrl; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateDdnsOpenApiVo createDdnsOpenApiVo = (CreateDdnsOpenApiVo) o; + return Objects.equals(this.service, createDdnsOpenApiVo.service) && + Objects.equals(this.status, createDdnsOpenApiVo.status) && + Objects.equals(this.interfacePortId, createDdnsOpenApiVo.interfacePortId) && + Objects.equals(this.username, createDdnsOpenApiVo.username) && + Objects.equals(this.password, createDdnsOpenApiVo.password) && + Objects.equals(this.domainName, createDdnsOpenApiVo.domainName) && + Objects.equals(this.interval, createDdnsOpenApiVo.interval) && + Objects.equals(this.updateUrl, createDdnsOpenApiVo.updateUrl); + } + + @Override + public int hashCode() { + return Objects.hash(service, status, interfacePortId, username, password, domainName, interval, updateUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDdnsOpenApiVo {\n"); + + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" interfacePortId: ").append(toIndentedString(interfacePortId)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" domainName: ").append(toIndentedString(domainName)).append("\n"); + sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); + sb.append(" updateUrl: ").append(toIndentedString(updateUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDhcpReservationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDhcpReservationOpenApiVo.java new file mode 100644 index 0000000..d0fd2b8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDhcpReservationOpenApiVo.java @@ -0,0 +1,207 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CreateDhcpReservationOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateDhcpReservationOpenApiVo { + @JsonProperty("netId") + private String netId; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("description") + private String description; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("confirmConflict") + private Boolean confirmConflict; + + public CreateDhcpReservationOpenApiVo netId(String netId) { + this.netId = netId; + return this; + } + + /** + * This field represents LAN Network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface + * @return netId + */ + @ApiModelProperty(required = true, value = "This field represents LAN Network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface") + @NotNull + + + public String getNetId() { + return netId; + } + + public void setNetId(String netId) { + this.netId = netId; + } + + public CreateDhcpReservationOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC address, format: AA-BB-CC-11-22-33 + * @return mac + */ + @ApiModelProperty(required = true, value = "Device MAC address, format: AA-BB-CC-11-22-33") + @NotNull + +@Pattern(regexp="[A-Fa-f0-9]{1}[02468aceACE]{1}([-:][A-Fa-f0-9]{2}){5}") + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public CreateDhcpReservationOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Reserved IP address + * @return ip + */ + @ApiModelProperty(required = true, value = "Reserved IP address") + @NotNull + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public CreateDhcpReservationOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description of DHCP reservation. Description should contain 1 to 128 characters + * @return description + */ + @ApiModelProperty(value = "Description of DHCP reservation. Description should contain 1 to 128 characters") + +@Pattern(regexp="^$|^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateDhcpReservationOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * DHCP reservation enable status + * @return status + */ + @ApiModelProperty(required = true, value = "DHCP reservation enable status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public CreateDhcpReservationOpenApiVo confirmConflict(Boolean confirmConflict) { + this.confirmConflict = confirmConflict; + return this; + } + + /** + * True when creating an entry with IP and IP-MAC Binding conflicts confirmed + * @return confirmConflict + */ + @ApiModelProperty(value = "True when creating an entry with IP and IP-MAC Binding conflicts confirmed") + + + public Boolean getConfirmConflict() { + return confirmConflict; + } + + public void setConfirmConflict(Boolean confirmConflict) { + this.confirmConflict = confirmConflict; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateDhcpReservationOpenApiVo createDhcpReservationOpenApiVo = (CreateDhcpReservationOpenApiVo) o; + return Objects.equals(this.netId, createDhcpReservationOpenApiVo.netId) && + Objects.equals(this.mac, createDhcpReservationOpenApiVo.mac) && + Objects.equals(this.ip, createDhcpReservationOpenApiVo.ip) && + Objects.equals(this.description, createDhcpReservationOpenApiVo.description) && + Objects.equals(this.status, createDhcpReservationOpenApiVo.status) && + Objects.equals(this.confirmConflict, createDhcpReservationOpenApiVo.confirmConflict); + } + + @Override + public int hashCode() { + return Objects.hash(netId, mac, ip, description, status, confirmConflict); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDhcpReservationOpenApiVo {\n"); + + sb.append(" netId: ").append(toIndentedString(netId)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" confirmConflict: ").append(toIndentedString(confirmConflict)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDigitMapProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDigitMapProfileEntity.java new file mode 100644 index 0000000..2cb2dd7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateDigitMapProfileEntity.java @@ -0,0 +1,105 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CreateDigitMapProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateDigitMapProfileEntity { + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("digitMap") + private String digitMap; + + public CreateDigitMapProfileEntity profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Digit map profile name + * @return profileName + */ + @ApiModelProperty(required = true, value = "Digit map profile name") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public CreateDigitMapProfileEntity digitMap(String digitMap) { + this.digitMap = digitMap; + return this; + } + + /** + * Digit map + * @return digitMap + */ + @ApiModelProperty(required = true, value = "Digit map") + @NotNull + + + public String getDigitMap() { + return digitMap; + } + + public void setDigitMap(String digitMap) { + this.digitMap = digitMap; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateDigitMapProfileEntity createDigitMapProfileEntity = (CreateDigitMapProfileEntity) o; + return Objects.equals(this.profileName, createDigitMapProfileEntity.profileName) && + Objects.equals(this.digitMap, createDigitMapProfileEntity.digitMap); + } + + @Override + public int hashCode() { + return Objects.hash(profileName, digitMap); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateDigitMapProfileEntity {\n"); + + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" digitMap: ").append(toIndentedString(digitMap)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateGroupOpenApiVo.java new file mode 100644 index 0000000..f3637fe --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateGroupOpenApiVo.java @@ -0,0 +1,401 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateGroupOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("ipList") + @Valid + private List ipList = null; + + @JsonProperty("ipv6List") + @Valid + private List ipv6List = null; + + @JsonProperty("portType") + private Integer portType; + + @JsonProperty("portList") + @Valid + private List portList = null; + + @JsonProperty("portMaskList") + @Valid + private List portMaskList = null; + + @JsonProperty("macAddressList") + @Valid + private List macAddressList = null; + + @JsonProperty("countryList") + @Valid + private List countryList = null; + + @JsonProperty("description") + private String description; + + @JsonProperty("domainNamePort") + @Valid + private List domainNamePort = null; + + public CreateGroupOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Group profile name. Name should contain 1 to 64 characters + * @return name + */ + @ApiModelProperty(required = true, value = "Group profile name. Name should contain 1 to 64 characters") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateGroupOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of group profile, type should be a value as follows: 0: IP Group; 1: IP Port Group; 2: MAC Group; 3: IPv6 Group; 4: IPv6 Port Group; 5: Country Group; 7: Domain Group + * @return type + */ + @ApiModelProperty(required = true, value = "Type of group profile, type should be a value as follows: 0: IP Group; 1: IP Port Group; 2: MAC Group; 3: IPv6 Group; 4: IPv6 Port Group; 5: Country Group; 7: Domain Group") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public CreateGroupOpenApiVo ipList(List ipList) { + this.ipList = ipList; + return this; + } + + public CreateGroupOpenApiVo addIpListItem(IpSubnetsOpenApiVo ipListItem) { + if (this.ipList == null) { + this.ipList = new ArrayList<>(); + } + this.ipList.add(ipListItem); + return this; + } + + /** + * IP subnet info list. [type] value of 0 or 1 is required + * @return ipList + */ + @ApiModelProperty(value = "IP subnet info list. [type] value of 0 or 1 is required") + + @Valid + + public List getIpList() { + return ipList; + } + + public void setIpList(List ipList) { + this.ipList = ipList; + } + + public CreateGroupOpenApiVo ipv6List(List ipv6List) { + this.ipv6List = ipv6List; + return this; + } + + public CreateGroupOpenApiVo addIpv6ListItem(IPv6SubnetsOpenApiVo ipv6ListItem) { + if (this.ipv6List == null) { + this.ipv6List = new ArrayList<>(); + } + this.ipv6List.add(ipv6ListItem); + return this; + } + + /** + * IPv6 subnet info list. [type] value of 3 or 4 is required + * @return ipv6List + */ + @ApiModelProperty(value = "IPv6 subnet info list. [type] value of 3 or 4 is required") + + @Valid + + public List getIpv6List() { + return ipv6List; + } + + public void setIpv6List(List ipv6List) { + this.ipv6List = ipv6List; + } + + public CreateGroupOpenApiVo portType(Integer portType) { + this.portType = portType; + return this; + } + + /** + * Port type, portType should be a value as follows: 0: port range 1: port mask. [type] value of 1 or 4 is required + * @return portType + */ + @ApiModelProperty(value = "Port type, portType should be a value as follows: 0: port range 1: port mask. [type] value of 1 or 4 is required") + + + public Integer getPortType() { + return portType; + } + + public void setPortType(Integer portType) { + this.portType = portType; + } + + public CreateGroupOpenApiVo portList(List portList) { + this.portList = portList; + return this; + } + + public CreateGroupOpenApiVo addPortListItem(String portListItem) { + if (this.portList == null) { + this.portList = new ArrayList<>(); + } + this.portList.add(portListItem); + return this; + } + + /** + * Port list. [portType] value of 0 is required. PortList should be within the range of 0-65535, e.g. 80 or 80-100 + * @return portList + */ + @ApiModelProperty(value = "Port list. [portType] value of 0 is required. PortList should be within the range of 0-65535, e.g. 80 or 80-100") + + + public List getPortList() { + return portList; + } + + public void setPortList(List portList) { + this.portList = portList; + } + + public CreateGroupOpenApiVo portMaskList(List portMaskList) { + this.portMaskList = portMaskList; + return this; + } + + public CreateGroupOpenApiVo addPortMaskListItem(PortMaskOpenApiVo portMaskListItem) { + if (this.portMaskList == null) { + this.portMaskList = new ArrayList<>(); + } + this.portMaskList.add(portMaskListItem); + return this; + } + + /** + * Port mask list. [portType] value of 1 is required + * @return portMaskList + */ + @ApiModelProperty(value = "Port mask list. [portType] value of 1 is required") + + @Valid + + public List getPortMaskList() { + return portMaskList; + } + + public void setPortMaskList(List portMaskList) { + this.portMaskList = portMaskList; + } + + public CreateGroupOpenApiVo macAddressList(List macAddressList) { + this.macAddressList = macAddressList; + return this; + } + + public CreateGroupOpenApiVo addMacAddressListItem(CreateMacAddressOpenApiVo macAddressListItem) { + if (this.macAddressList == null) { + this.macAddressList = new ArrayList<>(); + } + this.macAddressList.add(macAddressListItem); + return this; + } + + /** + * MAC address list. [type] value of 2 is required + * @return macAddressList + */ + @ApiModelProperty(value = "MAC address list. [type] value of 2 is required") + + @Valid + + public List getMacAddressList() { + return macAddressList; + } + + public void setMacAddressList(List macAddressList) { + this.macAddressList = macAddressList; + } + + public CreateGroupOpenApiVo countryList(List countryList) { + this.countryList = countryList; + return this; + } + + public CreateGroupOpenApiVo addCountryListItem(String countryListItem) { + if (this.countryList == null) { + this.countryList = new ArrayList<>(); + } + this.countryList.add(countryListItem); + return this; + } + + /** + * Country list. [type] value of 5 is required. For the values of countryList, refer to 'Country Name' section 5.4.1 of the Open API Access Guide + * @return countryList + */ + @ApiModelProperty(value = "Country list. [type] value of 5 is required. For the values of countryList, refer to 'Country Name' section 5.4.1 of the Open API Access Guide") + + + public List getCountryList() { + return countryList; + } + + public void setCountryList(List countryList) { + this.countryList = countryList; + } + + public CreateGroupOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description should contain 1 to 256 characters. [type] value of 5 is required + * @return description + */ + @ApiModelProperty(value = "Description should contain 1 to 256 characters. [type] value of 5 is required") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public CreateGroupOpenApiVo domainNamePort(List domainNamePort) { + this.domainNamePort = domainNamePort; + return this; + } + + public CreateGroupOpenApiVo addDomainNamePortItem(DomainOpenApiVo domainNamePortItem) { + if (this.domainNamePort == null) { + this.domainNamePort = new ArrayList<>(); + } + this.domainNamePort.add(domainNamePortItem); + return this; + } + + /** + * Domain info. Handle situations where there are ports, [type] value of 7 is required + * @return domainNamePort + */ + @ApiModelProperty(value = "Domain info. Handle situations where there are ports, [type] value of 7 is required") + + @Valid + + public List getDomainNamePort() { + return domainNamePort; + } + + public void setDomainNamePort(List domainNamePort) { + this.domainNamePort = domainNamePort; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateGroupOpenApiVo createGroupOpenApiVo = (CreateGroupOpenApiVo) o; + return Objects.equals(this.name, createGroupOpenApiVo.name) && + Objects.equals(this.type, createGroupOpenApiVo.type) && + Objects.equals(this.ipList, createGroupOpenApiVo.ipList) && + Objects.equals(this.ipv6List, createGroupOpenApiVo.ipv6List) && + Objects.equals(this.portType, createGroupOpenApiVo.portType) && + Objects.equals(this.portList, createGroupOpenApiVo.portList) && + Objects.equals(this.portMaskList, createGroupOpenApiVo.portMaskList) && + Objects.equals(this.macAddressList, createGroupOpenApiVo.macAddressList) && + Objects.equals(this.countryList, createGroupOpenApiVo.countryList) && + Objects.equals(this.description, createGroupOpenApiVo.description) && + Objects.equals(this.domainNamePort, createGroupOpenApiVo.domainNamePort); + } + + @Override + public int hashCode() { + return Objects.hash(name, type, ipList, ipv6List, portType, portList, portMaskList, macAddressList, countryList, description, domainNamePort); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateGroupOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" ipList: ").append(toIndentedString(ipList)).append("\n"); + sb.append(" ipv6List: ").append(toIndentedString(ipv6List)).append("\n"); + sb.append(" portType: ").append(toIndentedString(portType)).append("\n"); + sb.append(" portList: ").append(toIndentedString(portList)).append("\n"); + sb.append(" portMaskList: ").append(toIndentedString(portMaskList)).append("\n"); + sb.append(" macAddressList: ").append(toIndentedString(macAddressList)).append("\n"); + sb.append(" countryList: ").append(toIndentedString(countryList)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" domainNamePort: ").append(toIndentedString(domainNamePort)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateLdapProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateLdapProfileOpenApiVo.java new file mode 100644 index 0000000..a8235b2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateLdapProfileOpenApiVo.java @@ -0,0 +1,361 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CreateLdapProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateLdapProfileOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("bindType") + private Integer bindType; + + @JsonProperty("server") + private String server; + + @JsonProperty("dstPort") + private Integer dstPort; + + @JsonProperty("useSsl") + private Boolean useSsl; + + @JsonProperty("cn") + private String cn; + + @JsonProperty("baseDn") + private String baseDn; + + @JsonProperty("groupDn") + private String groupDn; + + @JsonProperty("filter") + private String filter; + + @JsonProperty("regularDn") + private String regularDn; + + @JsonProperty("regularPassword") + private String regularPassword; + + public CreateLdapProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * LDAP profile name. Name should contain 1 to 64 characters + * @return name + */ + @ApiModelProperty(required = true, value = "LDAP profile name. Name should contain 1 to 64 characters") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateLdapProfileOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * LDAP profile enable status + * @return status + */ + @ApiModelProperty(required = true, value = "LDAP profile enable status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public CreateLdapProfileOpenApiVo bindType(Integer bindType) { + this.bindType = bindType; + return this; + } + + /** + * Type of LDAP bind. BindType should be a value as follows: 0: Simple Mode; 1: Anonymous Mode; 2: Regular Mode + * @return bindType + */ + @ApiModelProperty(required = true, value = "Type of LDAP bind. BindType should be a value as follows: 0: Simple Mode; 1: Anonymous Mode; 2: Regular Mode") + @NotNull + + + public Integer getBindType() { + return bindType; + } + + public void setBindType(Integer bindType) { + this.bindType = bindType; + } + + public CreateLdapProfileOpenApiVo server(String server) { + this.server = server; + return this; + } + + /** + * LDAP server address + * @return server + */ + @ApiModelProperty(required = true, value = "LDAP server address") + @NotNull + + + public String getServer() { + return server; + } + + public void setServer(String server) { + this.server = server; + } + + public CreateLdapProfileOpenApiVo dstPort(Integer dstPort) { + this.dstPort = dstPort; + return this; + } + + /** + * LDAP server listening port. dstPort should be within the range of 0-65535. When SSL is not enabled, it is generally 389, and when SSL is enabled, it is generally 636 + * @return dstPort + */ + @ApiModelProperty(required = true, value = "LDAP server listening port. dstPort should be within the range of 0-65535. When SSL is not enabled, it is generally 389, and when SSL is enabled, it is generally 636") + @NotNull + + + public Integer getDstPort() { + return dstPort; + } + + public void setDstPort(Integer dstPort) { + this.dstPort = dstPort; + } + + public CreateLdapProfileOpenApiVo useSsl(Boolean useSsl) { + this.useSsl = useSsl; + return this; + } + + /** + * LDAP server enable ssl status + * @return useSsl + */ + @ApiModelProperty(required = true, value = "LDAP server enable ssl status") + @NotNull + + + public Boolean getUseSsl() { + return useSsl; + } + + public void setUseSsl(Boolean useSsl) { + this.useSsl = useSsl; + } + + public CreateLdapProfileOpenApiVo cn(String cn) { + this.cn = cn; + return this; + } + + /** + * LDAP server common name, for example: cn, uid. Cn should contain 1 to 64 characters + * @return cn + */ + @ApiModelProperty(required = true, value = "LDAP server common name, for example: cn, uid. Cn should contain 1 to 64 characters") + @NotNull + + + public String getCn() { + return cn; + } + + public void setCn(String cn) { + this.cn = cn; + } + + public CreateLdapProfileOpenApiVo baseDn(String baseDn) { + this.baseDn = baseDn; + return this; + } + + /** + * LDAP server base distinguish name, for example: dc=xxx,dc=com. BaseDn should contain 1 to 200 characters. + * @return baseDn + */ + @ApiModelProperty(required = true, value = "LDAP server base distinguish name, for example: dc=xxx,dc=com. BaseDn should contain 1 to 200 characters.") + @NotNull + + + public String getBaseDn() { + return baseDn; + } + + public void setBaseDn(String baseDn) { + this.baseDn = baseDn; + } + + public CreateLdapProfileOpenApiVo groupDn(String groupDn) { + this.groupDn = groupDn; + return this; + } + + /** + * LDAP server group distinguish name, optional when parameter [type] is 1 or 2. For example: ou=xxx,dc=xxx,dc=com. GroupDn should contain 1 to 200 characters + * @return groupDn + */ + @ApiModelProperty(value = "LDAP server group distinguish name, optional when parameter [type] is 1 or 2. For example: ou=xxx,dc=xxx,dc=com. GroupDn should contain 1 to 200 characters") + + + public String getGroupDn() { + return groupDn; + } + + public void setGroupDn(String groupDn) { + this.groupDn = groupDn; + } + + public CreateLdapProfileOpenApiVo filter(String filter) { + this.filter = filter; + return this; + } + + /** + * Additional filter, optional when parameter [type] is 1 or 2. For example: ou=xxx. Filter should contain 1 to 64 characters + * @return filter + */ + @ApiModelProperty(value = "Additional filter, optional when parameter [type] is 1 or 2. For example: ou=xxx. Filter should contain 1 to 64 characters") + + + public String getFilter() { + return filter; + } + + public void setFilter(String filter) { + this.filter = filter; + } + + public CreateLdapProfileOpenApiVo regularDn(String regularDn) { + this.regularDn = regularDn; + return this; + } + + /** + * Regular Dn, required when parameter [type] is 2. RegularDn should contain 1 to 64 characters + * @return regularDn + */ + @ApiModelProperty(value = "Regular Dn, required when parameter [type] is 2. RegularDn should contain 1 to 64 characters") + + + public String getRegularDn() { + return regularDn; + } + + public void setRegularDn(String regularDn) { + this.regularDn = regularDn; + } + + public CreateLdapProfileOpenApiVo regularPassword(String regularPassword) { + this.regularPassword = regularPassword; + return this; + } + + /** + * Regular Password, required when parameter [type] is 2. RegularPassword should contain 6 to 32 characters + * @return regularPassword + */ + @ApiModelProperty(value = "Regular Password, required when parameter [type] is 2. RegularPassword should contain 6 to 32 characters") + + + public String getRegularPassword() { + return regularPassword; + } + + public void setRegularPassword(String regularPassword) { + this.regularPassword = regularPassword; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateLdapProfileOpenApiVo createLdapProfileOpenApiVo = (CreateLdapProfileOpenApiVo) o; + return Objects.equals(this.name, createLdapProfileOpenApiVo.name) && + Objects.equals(this.status, createLdapProfileOpenApiVo.status) && + Objects.equals(this.bindType, createLdapProfileOpenApiVo.bindType) && + Objects.equals(this.server, createLdapProfileOpenApiVo.server) && + Objects.equals(this.dstPort, createLdapProfileOpenApiVo.dstPort) && + Objects.equals(this.useSsl, createLdapProfileOpenApiVo.useSsl) && + Objects.equals(this.cn, createLdapProfileOpenApiVo.cn) && + Objects.equals(this.baseDn, createLdapProfileOpenApiVo.baseDn) && + Objects.equals(this.groupDn, createLdapProfileOpenApiVo.groupDn) && + Objects.equals(this.filter, createLdapProfileOpenApiVo.filter) && + Objects.equals(this.regularDn, createLdapProfileOpenApiVo.regularDn) && + Objects.equals(this.regularPassword, createLdapProfileOpenApiVo.regularPassword); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, bindType, server, dstPort, useSsl, cn, baseDn, groupDn, filter, regularDn, regularPassword); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateLdapProfileOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" bindType: ").append(toIndentedString(bindType)).append("\n"); + sb.append(" server: ").append(toIndentedString(server)).append("\n"); + sb.append(" dstPort: ").append(toIndentedString(dstPort)).append("\n"); + sb.append(" useSsl: ").append(toIndentedString(useSsl)).append("\n"); + sb.append(" cn: ").append(toIndentedString(cn)).append("\n"); + sb.append(" baseDn: ").append(toIndentedString(baseDn)).append("\n"); + sb.append(" groupDn: ").append(toIndentedString(groupDn)).append("\n"); + sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); + sb.append(" regularDn: ").append(toIndentedString(regularDn)).append("\n"); + sb.append(" regularPassword: ").append(toIndentedString(regularPassword)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateMacAddressOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateMacAddressOpenApiVo.java new file mode 100644 index 0000000..3dbe53a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateMacAddressOpenApiVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * MAC address list. [type] value of 2 is required + */ +@ApiModel(description = "MAC address list. [type] value of 2 is required") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateMacAddressOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("macAddress") + private String macAddress; + + public CreateMacAddressOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * MAC address name, name should contain 1 to 128 characters + * @return name + */ + @ApiModelProperty(value = "MAC address name, name should contain 1 to 128 characters") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateMacAddressOpenApiVo macAddress(String macAddress) { + this.macAddress = macAddress; + return this; + } + + /** + * MAC address, should be a valid MAC address format, e.g. AA-BB-CC-DD-11-22 + * @return macAddress + */ + @ApiModelProperty(required = true, value = "MAC address, should be a valid MAC address format, e.g. AA-BB-CC-DD-11-22") + @NotNull + +@Pattern(regexp="[A-Fa-f0-9]{1}[02468aceACE]{1}([-:][A-Fa-f0-9]{2}){5}") + public String getMacAddress() { + return macAddress; + } + + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateMacAddressOpenApiVo createMacAddressOpenApiVo = (CreateMacAddressOpenApiVo) o; + return Objects.equals(this.name, createMacAddressOpenApiVo.name) && + Objects.equals(this.macAddress, createMacAddressOpenApiVo.macAddress); + } + + @Override + public int hashCode() { + return Objects.hash(name, macAddress); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateMacAddressOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" macAddress: ").append(toIndentedString(macAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateMdnsRuleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateMdnsRuleOpenApiVo.java new file mode 100644 index 0000000..787ffef --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateMdnsRuleOpenApiVo.java @@ -0,0 +1,216 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateMdnsRuleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateMdnsRuleOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("profileIds") + @Valid + private List profileIds = new ArrayList<>(); + + @JsonProperty("type") + private Integer type; + + @JsonProperty("ap") + private ApMdnsRuleOpenApiVo ap; + + @JsonProperty("osg") + private OsgMdnsRuleOpenApiVo osg; + + public CreateMdnsRuleOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * MDNS rule name. Name should contain 1 to 64 characters + * @return name + */ + @ApiModelProperty(required = true, value = "MDNS rule name. Name should contain 1 to 64 characters") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateMdnsRuleOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * MDNS rule enable status + * @return status + */ + @ApiModelProperty(required = true, value = "MDNS rule enable status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public CreateMdnsRuleOpenApiVo profileIds(List profileIds) { + this.profileIds = profileIds; + return this; + } + + public CreateMdnsRuleOpenApiVo addProfileIdsItem(String profileIdsItem) { + this.profileIds.add(profileIdsItem); + return this; + } + + /** + * This field represents Bonjour service profile ID. Bonjour Service Profile can be created using 'Create new Bonjour Service' interface, and Bonjour service profile ID can be obtained from 'Get Bonjour Service list' interface + * @return profileIds + */ + @ApiModelProperty(required = true, value = "This field represents Bonjour service profile ID. Bonjour Service Profile can be created using 'Create new Bonjour Service' interface, and Bonjour service profile ID can be obtained from 'Get Bonjour Service list' interface") + @NotNull + + + public List getProfileIds() { + return profileIds; + } + + public void setProfileIds(List profileIds) { + this.profileIds = profileIds; + } + + public CreateMdnsRuleOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * MDNS rule type. Type should be a value as follows: 0: AP, 1: Gateway + * @return type + */ + @ApiModelProperty(value = "MDNS rule type. Type should be a value as follows: 0: AP, 1: Gateway") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public CreateMdnsRuleOpenApiVo ap(ApMdnsRuleOpenApiVo ap) { + this.ap = ap; + return this; + } + + /** + * Get ap + * @return ap + */ + @ApiModelProperty(value = "") + + @Valid + + public ApMdnsRuleOpenApiVo getAp() { + return ap; + } + + public void setAp(ApMdnsRuleOpenApiVo ap) { + this.ap = ap; + } + + public CreateMdnsRuleOpenApiVo osg(OsgMdnsRuleOpenApiVo osg) { + this.osg = osg; + return this; + } + + /** + * Get osg + * @return osg + */ + @ApiModelProperty(value = "") + + @Valid + + public OsgMdnsRuleOpenApiVo getOsg() { + return osg; + } + + public void setOsg(OsgMdnsRuleOpenApiVo osg) { + this.osg = osg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateMdnsRuleOpenApiVo createMdnsRuleOpenApiVo = (CreateMdnsRuleOpenApiVo) o; + return Objects.equals(this.name, createMdnsRuleOpenApiVo.name) && + Objects.equals(this.status, createMdnsRuleOpenApiVo.status) && + Objects.equals(this.profileIds, createMdnsRuleOpenApiVo.profileIds) && + Objects.equals(this.type, createMdnsRuleOpenApiVo.type) && + Objects.equals(this.ap, createMdnsRuleOpenApiVo.ap) && + Objects.equals(this.osg, createMdnsRuleOpenApiVo.osg); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, profileIds, type, ap, osg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateMdnsRuleOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" profileIds: ").append(toIndentedString(profileIds)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" ap: ").append(toIndentedString(ap)).append("\n"); + sb.append(" osg: ").append(toIndentedString(osg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateProviderProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateProviderProfileEntity.java new file mode 100644 index 0000000..86e0321 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateProviderProfileEntity.java @@ -0,0 +1,107 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CreateProviderProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateProviderProfileEntity { + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("providerSettings") + private ProviderSettingVo providerSettings; + + public CreateProviderProfileEntity profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Provider profile name + * @return profileName + */ + @ApiModelProperty(required = true, value = "Provider profile name") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public CreateProviderProfileEntity providerSettings(ProviderSettingVo providerSettings) { + this.providerSettings = providerSettings; + return this; + } + + /** + * Get providerSettings + * @return providerSettings + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public ProviderSettingVo getProviderSettings() { + return providerSettings; + } + + public void setProviderSettings(ProviderSettingVo providerSettings) { + this.providerSettings = providerSettings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateProviderProfileEntity createProviderProfileEntity = (CreateProviderProfileEntity) o; + return Objects.equals(this.profileName, createProviderProfileEntity.profileName) && + Objects.equals(this.providerSettings, createProviderProfileEntity.providerSettings); + } + + @Override + public int hashCode() { + return Objects.hash(profileName, providerSettings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateProviderProfileEntity {\n"); + + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" providerSettings: ").append(toIndentedString(providerSettings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRadiusProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRadiusProfileOpenApiVo.java new file mode 100644 index 0000000..a850544 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRadiusProfileOpenApiVo.java @@ -0,0 +1,302 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateRadiusProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateRadiusProfileOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("authServer") + @Valid + private List authServer = new ArrayList<>(); + + @JsonProperty("radiusAccountingEnable") + private Boolean radiusAccountingEnable; + + @JsonProperty("interimUpdateEnable") + private Boolean interimUpdateEnable; + + @JsonProperty("interimUpdateInterval") + private Integer interimUpdateInterval; + + @JsonProperty("acctServer") + @Valid + private List acctServer = null; + + @JsonProperty("wirelessVlanAssignment") + private Boolean wirelessVlanAssignment; + + @JsonProperty("coaEnable") + private Boolean coaEnable; + + @JsonProperty("coaPassword") + private String coaPassword; + + public CreateRadiusProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Radius profile name should contain 1 to 64 characters + * @return name + */ + @ApiModelProperty(required = true, value = "Radius profile name should contain 1 to 64 characters") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateRadiusProfileOpenApiVo authServer(List authServer) { + this.authServer = authServer; + return this; + } + + public CreateRadiusProfileOpenApiVo addAuthServerItem(RadiusAuthServerOpenApiVo authServerItem) { + this.authServer.add(authServerItem); + return this; + } + + /** + * Radius authentication server list + * @return authServer + */ + @ApiModelProperty(required = true, value = "Radius authentication server list") + @NotNull + + @Valid + + public List getAuthServer() { + return authServer; + } + + public void setAuthServer(List authServer) { + this.authServer = authServer; + } + + public CreateRadiusProfileOpenApiVo radiusAccountingEnable(Boolean radiusAccountingEnable) { + this.radiusAccountingEnable = radiusAccountingEnable; + return this; + } + + /** + * Radius accounting enable status + * @return radiusAccountingEnable + */ + @ApiModelProperty(required = true, value = "Radius accounting enable status") + @NotNull + + + public Boolean getRadiusAccountingEnable() { + return radiusAccountingEnable; + } + + public void setRadiusAccountingEnable(Boolean radiusAccountingEnable) { + this.radiusAccountingEnable = radiusAccountingEnable; + } + + public CreateRadiusProfileOpenApiVo interimUpdateEnable(Boolean interimUpdateEnable) { + this.interimUpdateEnable = interimUpdateEnable; + return this; + } + + /** + * When radius accounting enables, interval update enable status + * @return interimUpdateEnable + */ + @ApiModelProperty(value = "When radius accounting enables, interval update enable status") + + + public Boolean getInterimUpdateEnable() { + return interimUpdateEnable; + } + + public void setInterimUpdateEnable(Boolean interimUpdateEnable) { + this.interimUpdateEnable = interimUpdateEnable; + } + + public CreateRadiusProfileOpenApiVo interimUpdateInterval(Integer interimUpdateInterval) { + this.interimUpdateInterval = interimUpdateInterval; + return this; + } + + /** + * When interval update enables, interval update duration, unit: second. InterimUpdateInterval should be within the range of 60-86400 + * @return interimUpdateInterval + */ + @ApiModelProperty(value = "When interval update enables, interval update duration, unit: second. InterimUpdateInterval should be within the range of 60-86400") + + + public Integer getInterimUpdateInterval() { + return interimUpdateInterval; + } + + public void setInterimUpdateInterval(Integer interimUpdateInterval) { + this.interimUpdateInterval = interimUpdateInterval; + } + + public CreateRadiusProfileOpenApiVo acctServer(List acctServer) { + this.acctServer = acctServer; + return this; + } + + public CreateRadiusProfileOpenApiVo addAcctServerItem(RadiusAcctServerOpenApiVo acctServerItem) { + if (this.acctServer == null) { + this.acctServer = new ArrayList<>(); + } + this.acctServer.add(acctServerItem); + return this; + } + + /** + * Radius accounting server list, valid when parameter [radiusAccountingEnable] is true + * @return acctServer + */ + @ApiModelProperty(value = "Radius accounting server list, valid when parameter [radiusAccountingEnable] is true") + + @Valid + + public List getAcctServer() { + return acctServer; + } + + public void setAcctServer(List acctServer) { + this.acctServer = acctServer; + } + + public CreateRadiusProfileOpenApiVo wirelessVlanAssignment(Boolean wirelessVlanAssignment) { + this.wirelessVlanAssignment = wirelessVlanAssignment; + return this; + } + + /** + * VLAN assignment for wireless network enable status + * @return wirelessVlanAssignment + */ + @ApiModelProperty(required = true, value = "VLAN assignment for wireless network enable status") + @NotNull + + + public Boolean getWirelessVlanAssignment() { + return wirelessVlanAssignment; + } + + public void setWirelessVlanAssignment(Boolean wirelessVlanAssignment) { + this.wirelessVlanAssignment = wirelessVlanAssignment; + } + + public CreateRadiusProfileOpenApiVo coaEnable(Boolean coaEnable) { + this.coaEnable = coaEnable; + return this; + } + + /** + * Radius CoA enable status. This configuration applies to the Pro Site of the Omada Pro Controller only + * @return coaEnable + */ + @ApiModelProperty(value = "Radius CoA enable status. This configuration applies to the Pro Site of the Omada Pro Controller only") + + + public Boolean getCoaEnable() { + return coaEnable; + } + + public void setCoaEnable(Boolean coaEnable) { + this.coaEnable = coaEnable; + } + + public CreateRadiusProfileOpenApiVo coaPassword(String coaPassword) { + this.coaPassword = coaPassword; + return this; + } + + /** + * Radius CoA password, required when parameter [coaEnable] is true. CoaPassword should contain 1 to 128 characters. This configuration applies to the Pro Site of the Omada Pro Controller only + * @return coaPassword + */ + @ApiModelProperty(value = "Radius CoA password, required when parameter [coaEnable] is true. CoaPassword should contain 1 to 128 characters. This configuration applies to the Pro Site of the Omada Pro Controller only") + + + public String getCoaPassword() { + return coaPassword; + } + + public void setCoaPassword(String coaPassword) { + this.coaPassword = coaPassword; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateRadiusProfileOpenApiVo createRadiusProfileOpenApiVo = (CreateRadiusProfileOpenApiVo) o; + return Objects.equals(this.name, createRadiusProfileOpenApiVo.name) && + Objects.equals(this.authServer, createRadiusProfileOpenApiVo.authServer) && + Objects.equals(this.radiusAccountingEnable, createRadiusProfileOpenApiVo.radiusAccountingEnable) && + Objects.equals(this.interimUpdateEnable, createRadiusProfileOpenApiVo.interimUpdateEnable) && + Objects.equals(this.interimUpdateInterval, createRadiusProfileOpenApiVo.interimUpdateInterval) && + Objects.equals(this.acctServer, createRadiusProfileOpenApiVo.acctServer) && + Objects.equals(this.wirelessVlanAssignment, createRadiusProfileOpenApiVo.wirelessVlanAssignment) && + Objects.equals(this.coaEnable, createRadiusProfileOpenApiVo.coaEnable) && + Objects.equals(this.coaPassword, createRadiusProfileOpenApiVo.coaPassword); + } + + @Override + public int hashCode() { + return Objects.hash(name, authServer, radiusAccountingEnable, interimUpdateEnable, interimUpdateInterval, acctServer, wirelessVlanAssignment, coaEnable, coaPassword); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRadiusProfileOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" authServer: ").append(toIndentedString(authServer)).append("\n"); + sb.append(" radiusAccountingEnable: ").append(toIndentedString(radiusAccountingEnable)).append("\n"); + sb.append(" interimUpdateEnable: ").append(toIndentedString(interimUpdateEnable)).append("\n"); + sb.append(" interimUpdateInterval: ").append(toIndentedString(interimUpdateInterval)).append("\n"); + sb.append(" acctServer: ").append(toIndentedString(acctServer)).append("\n"); + sb.append(" wirelessVlanAssignment: ").append(toIndentedString(wirelessVlanAssignment)).append("\n"); + sb.append(" coaEnable: ").append(toIndentedString(coaEnable)).append("\n"); + sb.append(" coaPassword: ").append(toIndentedString(coaPassword)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRadiusUserOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRadiusUserOpenApiVo.java new file mode 100644 index 0000000..efef915 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRadiusUserOpenApiVo.java @@ -0,0 +1,280 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * CreateRadiusUserOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateRadiusUserOpenApiVo { + @JsonProperty("type") + private Integer type; + + @JsonProperty("userInfo") + private RadiusUserInfoOpenApiVo userInfo; + + @JsonProperty("macAddress") + private String macAddress; + + @JsonProperty("upRateLimit") + private Long upRateLimit; + + @JsonProperty("downRateLimit") + private Long downRateLimit; + + @JsonProperty("upLimit") + private Long upLimit; + + @JsonProperty("downLimit") + private Long downLimit; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("timeout") + private Integer timeout; + + public CreateRadiusUserOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of Build-in Radius profile user, 0: user auth; 1: MAC auth + * @return type + */ + @ApiModelProperty(required = true, value = "Type of Build-in Radius profile user, 0: user auth; 1: MAC auth") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public CreateRadiusUserOpenApiVo userInfo(RadiusUserInfoOpenApiVo userInfo) { + this.userInfo = userInfo; + return this; + } + + /** + * Get userInfo + * @return userInfo + */ + @ApiModelProperty(value = "") + + @Valid + + public RadiusUserInfoOpenApiVo getUserInfo() { + return userInfo; + } + + public void setUserInfo(RadiusUserInfoOpenApiVo userInfo) { + this.userInfo = userInfo; + } + + public CreateRadiusUserOpenApiVo macAddress(String macAddress) { + this.macAddress = macAddress; + return this; + } + + /** + * MAC address, required when parameter [type] is 1. Should be a valid MAC address format + * @return macAddress + */ + @ApiModelProperty(value = "MAC address, required when parameter [type] is 1. Should be a valid MAC address format") + + + public String getMacAddress() { + return macAddress; + } + + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + public CreateRadiusUserOpenApiVo upRateLimit(Long upRateLimit) { + this.upRateLimit = upRateLimit; + return this; + } + + /** + * Build-in Radius profile user uplink rate limit, unit: Kbps. UpRateLimit should be within the range of 1-10485760 + * @return upRateLimit + */ + @ApiModelProperty(value = "Build-in Radius profile user uplink rate limit, unit: Kbps. UpRateLimit should be within the range of 1-10485760") + + + public Long getUpRateLimit() { + return upRateLimit; + } + + public void setUpRateLimit(Long upRateLimit) { + this.upRateLimit = upRateLimit; + } + + public CreateRadiusUserOpenApiVo downRateLimit(Long downRateLimit) { + this.downRateLimit = downRateLimit; + return this; + } + + /** + * Build-in Radius profile user downlink rate limit, unit: Kbps. DownRateLimit should be within the range of 1-10485760 + * @return downRateLimit + */ + @ApiModelProperty(value = "Build-in Radius profile user downlink rate limit, unit: Kbps. DownRateLimit should be within the range of 1-10485760") + + + public Long getDownRateLimit() { + return downRateLimit; + } + + public void setDownRateLimit(Long downRateLimit) { + this.downRateLimit = downRateLimit; + } + + public CreateRadiusUserOpenApiVo upLimit(Long upLimit) { + this.upLimit = upLimit; + return this; + } + + /** + * Build-in Radius profile user uplink traffic limit, unit: MB. UpLimit should be within the range of 1-10485760 + * @return upLimit + */ + @ApiModelProperty(value = "Build-in Radius profile user uplink traffic limit, unit: MB. UpLimit should be within the range of 1-10485760") + + + public Long getUpLimit() { + return upLimit; + } + + public void setUpLimit(Long upLimit) { + this.upLimit = upLimit; + } + + public CreateRadiusUserOpenApiVo downLimit(Long downLimit) { + this.downLimit = downLimit; + return this; + } + + /** + * Build-in Radius profile user downlink traffic limit, unit: MB. DownLimit should be within the range of 1-10485760 + * @return downLimit + */ + @ApiModelProperty(value = "Build-in Radius profile user downlink traffic limit, unit: MB. DownLimit should be within the range of 1-10485760") + + + public Long getDownLimit() { + return downLimit; + } + + public void setDownLimit(Long downLimit) { + this.downLimit = downLimit; + } + + public CreateRadiusUserOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * VLAN ID. VlanId should be within the range of 1-4096 + * @return vlanId + */ + @ApiModelProperty(value = "VLAN ID. VlanId should be within the range of 1-4096") + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public CreateRadiusUserOpenApiVo timeout(Integer timeout) { + this.timeout = timeout; + return this; + } + + /** + * Session timeout, unit: second + * @return timeout + */ + @ApiModelProperty(value = "Session timeout, unit: second") + + + public Integer getTimeout() { + return timeout; + } + + public void setTimeout(Integer timeout) { + this.timeout = timeout; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateRadiusUserOpenApiVo createRadiusUserOpenApiVo = (CreateRadiusUserOpenApiVo) o; + return Objects.equals(this.type, createRadiusUserOpenApiVo.type) && + Objects.equals(this.userInfo, createRadiusUserOpenApiVo.userInfo) && + Objects.equals(this.macAddress, createRadiusUserOpenApiVo.macAddress) && + Objects.equals(this.upRateLimit, createRadiusUserOpenApiVo.upRateLimit) && + Objects.equals(this.downRateLimit, createRadiusUserOpenApiVo.downRateLimit) && + Objects.equals(this.upLimit, createRadiusUserOpenApiVo.upLimit) && + Objects.equals(this.downLimit, createRadiusUserOpenApiVo.downLimit) && + Objects.equals(this.vlanId, createRadiusUserOpenApiVo.vlanId) && + Objects.equals(this.timeout, createRadiusUserOpenApiVo.timeout); + } + + @Override + public int hashCode() { + return Objects.hash(type, userInfo, macAddress, upRateLimit, downRateLimit, upLimit, downLimit, vlanId, timeout); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRadiusUserOpenApiVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" userInfo: ").append(toIndentedString(userInfo)).append("\n"); + sb.append(" macAddress: ").append(toIndentedString(macAddress)).append("\n"); + sb.append(" upRateLimit: ").append(toIndentedString(upRateLimit)).append("\n"); + sb.append(" downRateLimit: ").append(toIndentedString(downRateLimit)).append("\n"); + sb.append(" upLimit: ").append(toIndentedString(upLimit)).append("\n"); + sb.append(" downLimit: ").append(toIndentedString(downLimit)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRateLimitProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRateLimitProfileOpenApiVo.java new file mode 100644 index 0000000..39f222f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateRateLimitProfileOpenApiVo.java @@ -0,0 +1,181 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CreateRateLimitProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateRateLimitProfileOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("downLimitEnable") + private Boolean downLimitEnable; + + @JsonProperty("downLimit") + private Long downLimit; + + @JsonProperty("upLimitEnable") + private Boolean upLimitEnable; + + @JsonProperty("upLimit") + private Long upLimit; + + public CreateRateLimitProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Rate limit profile name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Rate limit profile name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateRateLimitProfileOpenApiVo downLimitEnable(Boolean downLimitEnable) { + this.downLimitEnable = downLimitEnable; + return this; + } + + /** + * Whether to enable download limit + * @return downLimitEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable download limit") + @NotNull + + + public Boolean getDownLimitEnable() { + return downLimitEnable; + } + + public void setDownLimitEnable(Boolean downLimitEnable) { + this.downLimitEnable = downLimitEnable; + } + + public CreateRateLimitProfileOpenApiVo downLimit(Long downLimit) { + this.downLimit = downLimit; + return this; + } + + /** + * Download limit(Unit: Kbps), this field is required when parameter [downLimitEnable] is true; It should be within the range of 1–10485760. + * @return downLimit + */ + @ApiModelProperty(value = "Download limit(Unit: Kbps), this field is required when parameter [downLimitEnable] is true; It should be within the range of 1–10485760.") + + + public Long getDownLimit() { + return downLimit; + } + + public void setDownLimit(Long downLimit) { + this.downLimit = downLimit; + } + + public CreateRateLimitProfileOpenApiVo upLimitEnable(Boolean upLimitEnable) { + this.upLimitEnable = upLimitEnable; + return this; + } + + /** + * Whether to enable upload limit + * @return upLimitEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable upload limit") + @NotNull + + + public Boolean getUpLimitEnable() { + return upLimitEnable; + } + + public void setUpLimitEnable(Boolean upLimitEnable) { + this.upLimitEnable = upLimitEnable; + } + + public CreateRateLimitProfileOpenApiVo upLimit(Long upLimit) { + this.upLimit = upLimit; + return this; + } + + /** + * Upload limit(Unit: Kbps), this field is required when parameter [upLimitEnable] is true; It should be within the range of 1–10485760. + * @return upLimit + */ + @ApiModelProperty(value = "Upload limit(Unit: Kbps), this field is required when parameter [upLimitEnable] is true; It should be within the range of 1–10485760.") + + + public Long getUpLimit() { + return upLimit; + } + + public void setUpLimit(Long upLimit) { + this.upLimit = upLimit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateRateLimitProfileOpenApiVo createRateLimitProfileOpenApiVo = (CreateRateLimitProfileOpenApiVo) o; + return Objects.equals(this.name, createRateLimitProfileOpenApiVo.name) && + Objects.equals(this.downLimitEnable, createRateLimitProfileOpenApiVo.downLimitEnable) && + Objects.equals(this.downLimit, createRateLimitProfileOpenApiVo.downLimit) && + Objects.equals(this.upLimitEnable, createRateLimitProfileOpenApiVo.upLimitEnable) && + Objects.equals(this.upLimit, createRateLimitProfileOpenApiVo.upLimit); + } + + @Override + public int hashCode() { + return Objects.hash(name, downLimitEnable, downLimit, upLimitEnable, upLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateRateLimitProfileOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" downLimitEnable: ").append(toIndentedString(downLimitEnable)).append("\n"); + sb.append(" downLimit: ").append(toIndentedString(downLimit)).append("\n"); + sb.append(" upLimitEnable: ").append(toIndentedString(upLimitEnable)).append("\n"); + sb.append(" upLimit: ").append(toIndentedString(upLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateSsidOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateSsidOpenApiVo.java new file mode 100644 index 0000000..8143c6a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateSsidOpenApiVo.java @@ -0,0 +1,467 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * CreateSsidOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateSsidOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("deviceType") + private Integer deviceType; + + @JsonProperty("band") + private Integer band; + + @JsonProperty("guestNetEnable") + private Boolean guestNetEnable; + + @JsonProperty("security") + private Integer security; + + @JsonProperty("broadcast") + private Boolean broadcast; + + @JsonProperty("vlanEnable") + private Boolean vlanEnable; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("pskSetting") + private Object pskSetting; + + @JsonProperty("entSetting") + private Object entSetting; + + @JsonProperty("ppskSetting") + private Object ppskSetting; + + @JsonProperty("mloEnable") + private Boolean mloEnable; + + @JsonProperty("pmfMode") + private Integer pmfMode; + + @JsonProperty("enable11r") + private Boolean enable11r; + + @JsonProperty("hidePwd") + private Boolean hidePwd; + + @JsonProperty("greEnable") + private Boolean greEnable; + + public CreateSsidOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * SSID name. It should contain 1 to 32 UTF-8 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "SSID name. It should contain 1 to 32 UTF-8 characters.") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateSsidOpenApiVo deviceType(Integer deviceType) { + this.deviceType = deviceType; + return this; + } + + /** + * SSID device type, identify which devices this SSID will take effect; The lowest bit indicates whether [EAP] is included, the second low bit indicates whether [Gateway] is included, 1 means included while 0 means not included; For example, 3(11) means that EAP/Gateway is enabled, 1(01) means that EAP is enabled. + * @return deviceType + */ + @ApiModelProperty(required = true, value = "SSID device type, identify which devices this SSID will take effect; The lowest bit indicates whether [EAP] is included, the second low bit indicates whether [Gateway] is included, 1 means included while 0 means not included; For example, 3(11) means that EAP/Gateway is enabled, 1(01) means that EAP is enabled.") + @NotNull + + + public Integer getDeviceType() { + return deviceType; + } + + public void setDeviceType(Integer deviceType) { + this.deviceType = deviceType; + } + + public CreateSsidOpenApiVo band(Integer band) { + this.band = band; + return this; + } + + /** + * SSID band. The lowest bit indicates whether 2.4G is included; the second lowest bit indicates whether 5G is included; the third lowest bit indicates whether 6G is included; 1 means included while 0 means not included. For example, 7(111) means that 2G/5G/6G are enabled; 1(001) means that 2G is enabled. (When 5G is included,it means 5G/5G1/5G2 are enabled.) + * @return band + */ + @ApiModelProperty(required = true, value = "SSID band. The lowest bit indicates whether 2.4G is included; the second lowest bit indicates whether 5G is included; the third lowest bit indicates whether 6G is included; 1 means included while 0 means not included. For example, 7(111) means that 2G/5G/6G are enabled; 1(001) means that 2G is enabled. (When 5G is included,it means 5G/5G1/5G2 are enabled.)") + @NotNull + + + public Integer getBand() { + return band; + } + + public void setBand(Integer band) { + this.band = band; + } + + public CreateSsidOpenApiVo guestNetEnable(Boolean guestNetEnable) { + this.guestNetEnable = guestNetEnable; + return this; + } + + /** + * SSID guest network config status. True: enable, false: disable. + * @return guestNetEnable + */ + @ApiModelProperty(required = true, value = "SSID guest network config status. True: enable, false: disable.") + @NotNull + + + public Boolean getGuestNetEnable() { + return guestNetEnable; + } + + public void setGuestNetEnable(Boolean guestNetEnable) { + this.guestNetEnable = guestNetEnable; + } + + public CreateSsidOpenApiVo security(Integer security) { + this.security = security; + return this; + } + + /** + * SSID security mode; Security should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal; 4: PPSK without RADIUS; 5: PPSK with RADIUS. + * @return security + */ + @ApiModelProperty(required = true, value = "SSID security mode; Security should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal; 4: PPSK without RADIUS; 5: PPSK with RADIUS.") + @NotNull + + + public Integer getSecurity() { + return security; + } + + public void setSecurity(Integer security) { + this.security = security; + } + + public CreateSsidOpenApiVo broadcast(Boolean broadcast) { + this.broadcast = broadcast; + return this; + } + + /** + * SSID broadcast config status. True: enable, false: disable. + * @return broadcast + */ + @ApiModelProperty(required = true, value = "SSID broadcast config status. True: enable, false: disable.") + @NotNull + + + public Boolean getBroadcast() { + return broadcast; + } + + public void setBroadcast(Boolean broadcast) { + this.broadcast = broadcast; + } + + public CreateSsidOpenApiVo vlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + return this; + } + + /** + * SSID VLAN config status. True: enable, false: disable. + * @return vlanEnable + */ + @ApiModelProperty(required = true, value = "SSID VLAN config status. True: enable, false: disable.") + @NotNull + + + public Boolean getVlanEnable() { + return vlanEnable; + } + + public void setVlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + } + + public CreateSsidOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * SSID VLAN ID. This field is required when Parameter [vlanEnable] is true; It should be within the range of 1–4094. + * @return vlanId + */ + @ApiModelProperty(value = "SSID VLAN ID. This field is required when Parameter [vlanEnable] is true; It should be within the range of 1–4094.") + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public CreateSsidOpenApiVo pskSetting(Object pskSetting) { + this.pskSetting = pskSetting; + return this; + } + + /** + * Get pskSetting + * @return pskSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getPskSetting() { + return pskSetting; + } + + public void setPskSetting(Object pskSetting) { + this.pskSetting = pskSetting; + } + + public CreateSsidOpenApiVo entSetting(Object entSetting) { + this.entSetting = entSetting; + return this; + } + + /** + * Get entSetting + * @return entSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getEntSetting() { + return entSetting; + } + + public void setEntSetting(Object entSetting) { + this.entSetting = entSetting; + } + + public CreateSsidOpenApiVo ppskSetting(Object ppskSetting) { + this.ppskSetting = ppskSetting; + return this; + } + + /** + * Get ppskSetting + * @return ppskSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getPpskSetting() { + return ppskSetting; + } + + public void setPpskSetting(Object ppskSetting) { + this.ppskSetting = ppskSetting; + } + + public CreateSsidOpenApiVo mloEnable(Boolean mloEnable) { + this.mloEnable = mloEnable; + return this; + } + + /** + * SSID MLO config status. True: enable, false: disable. + * @return mloEnable + */ + @ApiModelProperty(required = true, value = "SSID MLO config status. True: enable, false: disable.") + @NotNull + + + public Boolean getMloEnable() { + return mloEnable; + } + + public void setMloEnable(Boolean mloEnable) { + this.mloEnable = mloEnable; + } + + public CreateSsidOpenApiVo pmfMode(Integer pmfMode) { + this.pmfMode = pmfMode; + return this; + } + + /** + * SSID PMF mode. It should be a value as follows: 1: Mandatory; 2: Capable; 3: Disable. + * @return pmfMode + */ + @ApiModelProperty(required = true, value = "SSID PMF mode. It should be a value as follows: 1: Mandatory; 2: Capable; 3: Disable.") + @NotNull + + + public Integer getPmfMode() { + return pmfMode; + } + + public void setPmfMode(Integer pmfMode) { + this.pmfMode = pmfMode; + } + + public CreateSsidOpenApiVo enable11r(Boolean enable11r) { + this.enable11r = enable11r; + return this; + } + + /** + * SSID 802.11r config status. True: enable, false: disable. + * @return enable11r + */ + @ApiModelProperty(required = true, value = "SSID 802.11r config status. True: enable, false: disable.") + @NotNull + + + public Boolean getEnable11r() { + return enable11r; + } + + public void setEnable11r(Boolean enable11r) { + this.enable11r = enable11r; + } + + public CreateSsidOpenApiVo hidePwd(Boolean hidePwd) { + this.hidePwd = hidePwd; + return this; + } + + /** + * If this field is true, the SSID password will be hidden. + * @return hidePwd + */ + @ApiModelProperty(required = true, value = "If this field is true, the SSID password will be hidden.") + @NotNull + + + public Boolean getHidePwd() { + return hidePwd; + } + + public void setHidePwd(Boolean hidePwd) { + this.hidePwd = hidePwd; + } + + public CreateSsidOpenApiVo greEnable(Boolean greEnable) { + this.greEnable = greEnable; + return this; + } + + /** + * SSID EoGre Tunnel config status. True: enable, false: disable. This configuration can be enabled only when the [VPN - EoGre Tunnel] global config is enabled;(This configuration applies to the Pro Site of the Omada Pro Controller only). + * @return greEnable + */ + @ApiModelProperty(value = "SSID EoGre Tunnel config status. True: enable, false: disable. This configuration can be enabled only when the [VPN - EoGre Tunnel] global config is enabled;(This configuration applies to the Pro Site of the Omada Pro Controller only).") + + + public Boolean getGreEnable() { + return greEnable; + } + + public void setGreEnable(Boolean greEnable) { + this.greEnable = greEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateSsidOpenApiVo createSsidOpenApiVo = (CreateSsidOpenApiVo) o; + return Objects.equals(this.name, createSsidOpenApiVo.name) && + Objects.equals(this.deviceType, createSsidOpenApiVo.deviceType) && + Objects.equals(this.band, createSsidOpenApiVo.band) && + Objects.equals(this.guestNetEnable, createSsidOpenApiVo.guestNetEnable) && + Objects.equals(this.security, createSsidOpenApiVo.security) && + Objects.equals(this.broadcast, createSsidOpenApiVo.broadcast) && + Objects.equals(this.vlanEnable, createSsidOpenApiVo.vlanEnable) && + Objects.equals(this.vlanId, createSsidOpenApiVo.vlanId) && + Objects.equals(this.pskSetting, createSsidOpenApiVo.pskSetting) && + Objects.equals(this.entSetting, createSsidOpenApiVo.entSetting) && + Objects.equals(this.ppskSetting, createSsidOpenApiVo.ppskSetting) && + Objects.equals(this.mloEnable, createSsidOpenApiVo.mloEnable) && + Objects.equals(this.pmfMode, createSsidOpenApiVo.pmfMode) && + Objects.equals(this.enable11r, createSsidOpenApiVo.enable11r) && + Objects.equals(this.hidePwd, createSsidOpenApiVo.hidePwd) && + Objects.equals(this.greEnable, createSsidOpenApiVo.greEnable); + } + + @Override + public int hashCode() { + return Objects.hash(name, deviceType, band, guestNetEnable, security, broadcast, vlanEnable, vlanId, pskSetting, entSetting, ppskSetting, mloEnable, pmfMode, enable11r, hidePwd, greEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateSsidOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" deviceType: ").append(toIndentedString(deviceType)).append("\n"); + sb.append(" band: ").append(toIndentedString(band)).append("\n"); + sb.append(" guestNetEnable: ").append(toIndentedString(guestNetEnable)).append("\n"); + sb.append(" security: ").append(toIndentedString(security)).append("\n"); + sb.append(" broadcast: ").append(toIndentedString(broadcast)).append("\n"); + sb.append(" vlanEnable: ").append(toIndentedString(vlanEnable)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" pskSetting: ").append(toIndentedString(pskSetting)).append("\n"); + sb.append(" entSetting: ").append(toIndentedString(entSetting)).append("\n"); + sb.append(" ppskSetting: ").append(toIndentedString(ppskSetting)).append("\n"); + sb.append(" mloEnable: ").append(toIndentedString(mloEnable)).append("\n"); + sb.append(" pmfMode: ").append(toIndentedString(pmfMode)).append("\n"); + sb.append(" enable11r: ").append(toIndentedString(enable11r)).append("\n"); + sb.append(" hidePwd: ").append(toIndentedString(hidePwd)).append("\n"); + sb.append(" greEnable: ").append(toIndentedString(greEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateTimeRangeProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateTimeRangeProfileOpenApiVo.java new file mode 100644 index 0000000..1a1cb2b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateTimeRangeProfileOpenApiVo.java @@ -0,0 +1,167 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * CreateTimeRangeProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateTimeRangeProfileOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("dayMode") + private Integer dayMode; + + @JsonProperty("customDayMode") + private CustomDayModeOpenApiVo customDayMode; + + @JsonProperty("timeList") + @Valid + private List timeList = new ArrayList<>(); + + public CreateTimeRangeProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Time range profile name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Time range profile name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateTimeRangeProfileOpenApiVo dayMode(Integer dayMode) { + this.dayMode = dayMode; + return this; + } + + /** + * Time range profile day mode; It should be a value as follows: 0: Every Day, 1: Weekday, 2: Weekend, 3: Customized + * @return dayMode + */ + @ApiModelProperty(required = true, value = "Time range profile day mode; It should be a value as follows: 0: Every Day, 1: Weekday, 2: Weekend, 3: Customized") + @NotNull + + + public Integer getDayMode() { + return dayMode; + } + + public void setDayMode(Integer dayMode) { + this.dayMode = dayMode; + } + + public CreateTimeRangeProfileOpenApiVo customDayMode(CustomDayModeOpenApiVo customDayMode) { + this.customDayMode = customDayMode; + return this; + } + + /** + * Get customDayMode + * @return customDayMode + */ + @ApiModelProperty(value = "") + + @Valid + + public CustomDayModeOpenApiVo getCustomDayMode() { + return customDayMode; + } + + public void setCustomDayMode(CustomDayModeOpenApiVo customDayMode) { + this.customDayMode = customDayMode; + } + + public CreateTimeRangeProfileOpenApiVo timeList(List timeList) { + this.timeList = timeList; + return this; + } + + public CreateTimeRangeProfileOpenApiVo addTimeListItem(ScheduleTimeOpenApiVo timeListItem) { + this.timeList.add(timeListItem); + return this; + } + + /** + * Time range profile schedule time config + * @return timeList + */ + @ApiModelProperty(required = true, value = "Time range profile schedule time config") + @NotNull + + @Valid + + public List getTimeList() { + return timeList; + } + + public void setTimeList(List timeList) { + this.timeList = timeList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateTimeRangeProfileOpenApiVo createTimeRangeProfileOpenApiVo = (CreateTimeRangeProfileOpenApiVo) o; + return Objects.equals(this.name, createTimeRangeProfileOpenApiVo.name) && + Objects.equals(this.dayMode, createTimeRangeProfileOpenApiVo.dayMode) && + Objects.equals(this.customDayMode, createTimeRangeProfileOpenApiVo.customDayMode) && + Objects.equals(this.timeList, createTimeRangeProfileOpenApiVo.timeList); + } + + @Override + public int hashCode() { + return Objects.hash(name, dayMode, customDayMode, timeList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateTimeRangeProfileOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" dayMode: ").append(toIndentedString(dayMode)).append("\n"); + sb.append(" customDayMode: ").append(toIndentedString(customDayMode)).append("\n"); + sb.append(" timeList: ").append(toIndentedString(timeList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateVlaNs.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateVlaNs.java new file mode 100644 index 0000000..bc16ef4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateVlaNs.java @@ -0,0 +1,259 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CreateVlaNs + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateVlaNs { + @JsonProperty("name") + private String name; + + @JsonProperty("vlans") + private String vlans; + + @JsonProperty("igmpSnoopEnable") + private Boolean igmpSnoopEnable; + + @JsonProperty("dhcpL2RelayEnable") + private Boolean dhcpL2RelayEnable; + + @JsonProperty("dhcpGuard") + private DhcpServersSetting dhcpGuard; + + @JsonProperty("mldSnoopEnable") + private Boolean mldSnoopEnable; + + @JsonProperty("dhcpv6Guard") + private Dhcpv6ServersSetting dhcpv6Guard; + + @JsonProperty("application") + private Integer application; + + public CreateVlaNs name(String name) { + this.name = name; + return this; + } + + /** + * LAN network name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "LAN network name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateVlaNs vlans(String vlans) { + this.vlans = vlans; + return this; + } + + /** + * Support batch VLAN creation. VLAN format: 200, 1-100. + * @return vlans + */ + @ApiModelProperty(required = true, value = "Support batch VLAN creation. VLAN format: 200, 1-100.") + @NotNull + +@Pattern(regexp="^[\\d|\\d-\\d]+(,[\\d|\\d-\\d]+)*$") + public String getVlans() { + return vlans; + } + + public void setVlans(String vlans) { + this.vlans = vlans; + } + + public CreateVlaNs igmpSnoopEnable(Boolean igmpSnoopEnable) { + this.igmpSnoopEnable = igmpSnoopEnable; + return this; + } + + /** + * Enable IGMP snooping + * @return igmpSnoopEnable + */ + @ApiModelProperty(required = true, value = "Enable IGMP snooping") + @NotNull + + + public Boolean getIgmpSnoopEnable() { + return igmpSnoopEnable; + } + + public void setIgmpSnoopEnable(Boolean igmpSnoopEnable) { + this.igmpSnoopEnable = igmpSnoopEnable; + } + + public CreateVlaNs dhcpL2RelayEnable(Boolean dhcpL2RelayEnable) { + this.dhcpL2RelayEnable = dhcpL2RelayEnable; + return this; + } + + /** + * The switch of DHCP L2 relay + * @return dhcpL2RelayEnable + */ + @ApiModelProperty(value = "The switch of DHCP L2 relay") + + + public Boolean getDhcpL2RelayEnable() { + return dhcpL2RelayEnable; + } + + public void setDhcpL2RelayEnable(Boolean dhcpL2RelayEnable) { + this.dhcpL2RelayEnable = dhcpL2RelayEnable; + } + + public CreateVlaNs dhcpGuard(DhcpServersSetting dhcpGuard) { + this.dhcpGuard = dhcpGuard; + return this; + } + + /** + * Get dhcpGuard + * @return dhcpGuard + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpServersSetting getDhcpGuard() { + return dhcpGuard; + } + + public void setDhcpGuard(DhcpServersSetting dhcpGuard) { + this.dhcpGuard = dhcpGuard; + } + + public CreateVlaNs mldSnoopEnable(Boolean mldSnoopEnable) { + this.mldSnoopEnable = mldSnoopEnable; + return this; + } + + /** + * Enable MLD snooping + * @return mldSnoopEnable + */ + @ApiModelProperty(value = "Enable MLD snooping") + + + public Boolean getMldSnoopEnable() { + return mldSnoopEnable; + } + + public void setMldSnoopEnable(Boolean mldSnoopEnable) { + this.mldSnoopEnable = mldSnoopEnable; + } + + public CreateVlaNs dhcpv6Guard(Dhcpv6ServersSetting dhcpv6Guard) { + this.dhcpv6Guard = dhcpv6Guard; + return this; + } + + /** + * Get dhcpv6Guard + * @return dhcpv6Guard + */ + @ApiModelProperty(value = "") + + @Valid + + public Dhcpv6ServersSetting getDhcpv6Guard() { + return dhcpv6Guard; + } + + public void setDhcpv6Guard(Dhcpv6ServersSetting dhcpv6Guard) { + this.dhcpv6Guard = dhcpv6Guard; + } + + public CreateVlaNs application(Integer application) { + this.application = application; + return this; + } + + /** + * Effective device type should be a value as follows: 0: Gateway and Switch; 1: Switch + * @return application + */ + @ApiModelProperty(value = "Effective device type should be a value as follows: 0: Gateway and Switch; 1: Switch") + + + public Integer getApplication() { + return application; + } + + public void setApplication(Integer application) { + this.application = application; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateVlaNs createVlaNs = (CreateVlaNs) o; + return Objects.equals(this.name, createVlaNs.name) && + Objects.equals(this.vlans, createVlaNs.vlans) && + Objects.equals(this.igmpSnoopEnable, createVlaNs.igmpSnoopEnable) && + Objects.equals(this.dhcpL2RelayEnable, createVlaNs.dhcpL2RelayEnable) && + Objects.equals(this.dhcpGuard, createVlaNs.dhcpGuard) && + Objects.equals(this.mldSnoopEnable, createVlaNs.mldSnoopEnable) && + Objects.equals(this.dhcpv6Guard, createVlaNs.dhcpv6Guard) && + Objects.equals(this.application, createVlaNs.application); + } + + @Override + public int hashCode() { + return Objects.hash(name, vlans, igmpSnoopEnable, dhcpL2RelayEnable, dhcpGuard, mldSnoopEnable, dhcpv6Guard, application); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateVlaNs {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" vlans: ").append(toIndentedString(vlans)).append("\n"); + sb.append(" igmpSnoopEnable: ").append(toIndentedString(igmpSnoopEnable)).append("\n"); + sb.append(" dhcpL2RelayEnable: ").append(toIndentedString(dhcpL2RelayEnable)).append("\n"); + sb.append(" dhcpGuard: ").append(toIndentedString(dhcpGuard)).append("\n"); + sb.append(" mldSnoopEnable: ").append(toIndentedString(mldSnoopEnable)).append("\n"); + sb.append(" dhcpv6Guard: ").append(toIndentedString(dhcpv6Guard)).append("\n"); + sb.append(" application: ").append(toIndentedString(application)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateWlanGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateWlanGroupOpenApiVo.java new file mode 100644 index 0000000..fd435c6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CreateWlanGroupOpenApiVo.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * CreateWlanGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CreateWlanGroupOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("clone") + private Boolean clone; + + @JsonProperty("clonedWlanId") + private String clonedWlanId; + + public CreateWlanGroupOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * WLAN group name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "WLAN group name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public CreateWlanGroupOpenApiVo clone(Boolean clone) { + this.clone = clone; + return this; + } + + /** + * Whether to clone SSID list from other WLAN group. + * @return clone + */ + @ApiModelProperty(required = true, value = "Whether to clone SSID list from other WLAN group.") + @NotNull + + + public Boolean getClone() { + return clone; + } + + public void setClone(Boolean clone) { + this.clone = clone; + } + + public CreateWlanGroupOpenApiVo clonedWlanId(String clonedWlanId) { + this.clonedWlanId = clonedWlanId; + return this; + } + + /** + * WLAN group ID that needs to be cloned. Parameter [clonedWlanId] should not be null when Parameter [clone] is true. + * @return clonedWlanId + */ + @ApiModelProperty(value = "WLAN group ID that needs to be cloned. Parameter [clonedWlanId] should not be null when Parameter [clone] is true.") + + + public String getClonedWlanId() { + return clonedWlanId; + } + + public void setClonedWlanId(String clonedWlanId) { + this.clonedWlanId = clonedWlanId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CreateWlanGroupOpenApiVo createWlanGroupOpenApiVo = (CreateWlanGroupOpenApiVo) o; + return Objects.equals(this.name, createWlanGroupOpenApiVo.name) && + Objects.equals(this.clone, createWlanGroupOpenApiVo.clone) && + Objects.equals(this.clonedWlanId, createWlanGroupOpenApiVo.clonedWlanId); + } + + @Override + public int hashCode() { + return Objects.hash(name, clone, clonedWlanId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CreateWlanGroupOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" clone: ").append(toIndentedString(clone)).append("\n"); + sb.append(" clonedWlanId: ").append(toIndentedString(clonedWlanId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomDayModeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomDayModeOpenApiVo.java new file mode 100644 index 0000000..3944be6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomDayModeOpenApiVo.java @@ -0,0 +1,236 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Time range profile custom day mode, this field is required when parameter [dayMode] is 3. + */ +@ApiModel(description = "Time range profile custom day mode, this field is required when parameter [dayMode] is 3.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CustomDayModeOpenApiVo { + @JsonProperty("dayMon") + private Boolean dayMon; + + @JsonProperty("dayTue") + private Boolean dayTue; + + @JsonProperty("dayWed") + private Boolean dayWed; + + @JsonProperty("dayThu") + private Boolean dayThu; + + @JsonProperty("dayFri") + private Boolean dayFri; + + @JsonProperty("daySat") + private Boolean daySat; + + @JsonProperty("daySun") + private Boolean daySun; + + public CustomDayModeOpenApiVo dayMon(Boolean dayMon) { + this.dayMon = dayMon; + return this; + } + + /** + * Whether to enable Monday of time range profile. + * @return dayMon + */ + @ApiModelProperty(required = true, value = "Whether to enable Monday of time range profile.") + @NotNull + + + public Boolean getDayMon() { + return dayMon; + } + + public void setDayMon(Boolean dayMon) { + this.dayMon = dayMon; + } + + public CustomDayModeOpenApiVo dayTue(Boolean dayTue) { + this.dayTue = dayTue; + return this; + } + + /** + * Whether to enable Tuesday of time range profile. + * @return dayTue + */ + @ApiModelProperty(required = true, value = "Whether to enable Tuesday of time range profile.") + @NotNull + + + public Boolean getDayTue() { + return dayTue; + } + + public void setDayTue(Boolean dayTue) { + this.dayTue = dayTue; + } + + public CustomDayModeOpenApiVo dayWed(Boolean dayWed) { + this.dayWed = dayWed; + return this; + } + + /** + * Whether to enable Wednesday of time range profile. + * @return dayWed + */ + @ApiModelProperty(required = true, value = "Whether to enable Wednesday of time range profile.") + @NotNull + + + public Boolean getDayWed() { + return dayWed; + } + + public void setDayWed(Boolean dayWed) { + this.dayWed = dayWed; + } + + public CustomDayModeOpenApiVo dayThu(Boolean dayThu) { + this.dayThu = dayThu; + return this; + } + + /** + * Whether to enable Thursday of time range profile. + * @return dayThu + */ + @ApiModelProperty(required = true, value = "Whether to enable Thursday of time range profile.") + @NotNull + + + public Boolean getDayThu() { + return dayThu; + } + + public void setDayThu(Boolean dayThu) { + this.dayThu = dayThu; + } + + public CustomDayModeOpenApiVo dayFri(Boolean dayFri) { + this.dayFri = dayFri; + return this; + } + + /** + * Whether to enable Friday of time range profile. + * @return dayFri + */ + @ApiModelProperty(required = true, value = "Whether to enable Friday of time range profile.") + @NotNull + + + public Boolean getDayFri() { + return dayFri; + } + + public void setDayFri(Boolean dayFri) { + this.dayFri = dayFri; + } + + public CustomDayModeOpenApiVo daySat(Boolean daySat) { + this.daySat = daySat; + return this; + } + + /** + * Whether to enable Saturday of time range profile. + * @return daySat + */ + @ApiModelProperty(required = true, value = "Whether to enable Saturday of time range profile.") + @NotNull + + + public Boolean getDaySat() { + return daySat; + } + + public void setDaySat(Boolean daySat) { + this.daySat = daySat; + } + + public CustomDayModeOpenApiVo daySun(Boolean daySun) { + this.daySun = daySun; + return this; + } + + /** + * Whether to enable Sunday of time range profile. + * @return daySun + */ + @ApiModelProperty(required = true, value = "Whether to enable Sunday of time range profile.") + @NotNull + + + public Boolean getDaySun() { + return daySun; + } + + public void setDaySun(Boolean daySun) { + this.daySun = daySun; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomDayModeOpenApiVo customDayModeOpenApiVo = (CustomDayModeOpenApiVo) o; + return Objects.equals(this.dayMon, customDayModeOpenApiVo.dayMon) && + Objects.equals(this.dayTue, customDayModeOpenApiVo.dayTue) && + Objects.equals(this.dayWed, customDayModeOpenApiVo.dayWed) && + Objects.equals(this.dayThu, customDayModeOpenApiVo.dayThu) && + Objects.equals(this.dayFri, customDayModeOpenApiVo.dayFri) && + Objects.equals(this.daySat, customDayModeOpenApiVo.daySat) && + Objects.equals(this.daySun, customDayModeOpenApiVo.daySun); + } + + @Override + public int hashCode() { + return Objects.hash(dayMon, dayTue, dayWed, dayThu, dayFri, daySat, daySun); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomDayModeOpenApiVo {\n"); + + sb.append(" dayMon: ").append(toIndentedString(dayMon)).append("\n"); + sb.append(" dayTue: ").append(toIndentedString(dayTue)).append("\n"); + sb.append(" dayWed: ").append(toIndentedString(dayWed)).append("\n"); + sb.append(" dayThu: ").append(toIndentedString(dayThu)).append("\n"); + sb.append(" dayFri: ").append(toIndentedString(dayFri)).append("\n"); + sb.append(" daySat: ").append(toIndentedString(daySat)).append("\n"); + sb.append(" daySun: ").append(toIndentedString(daySun)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomDhcpOptions.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomDhcpOptions.java new file mode 100644 index 0000000..becb614 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomDhcpOptions.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * User custom DHCP options + */ +@ApiModel(description = "User custom DHCP options") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CustomDhcpOptions { + @JsonProperty("code") + private Integer code; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("value") + private String value; + + public CustomDhcpOptions code(Integer code) { + this.code = code; + return this; + } + + /** + * Custom DHCP option code + * @return code + */ + @ApiModelProperty(value = "Custom DHCP option code") + + + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public CustomDhcpOptions type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: 0: \"String\"; 1: \"IP Address\"; 2: \"Hex Array\" + * @return type + */ + @ApiModelProperty(value = "Type should be a value as follows: 0: \"String\"; 1: \"IP Address\"; 2: \"Hex Array\"") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public CustomDhcpOptions value(String value) { + this.value = value; + return this; + } + + /** + * Value + * @return value + */ + @ApiModelProperty(value = "Value") + + + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomDhcpOptions customDhcpOptions = (CustomDhcpOptions) o; + return Objects.equals(this.code, customDhcpOptions.code) && + Objects.equals(this.type, customDhcpOptions.type) && + Objects.equals(this.value, customDhcpOptions.value); + } + + @Override + public int hashCode() { + return Objects.hash(code, type, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomDhcpOptions {\n"); + + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomRateLimitSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomRateLimitSettingOpenApiVo.java new file mode 100644 index 0000000..3f34f50 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/CustomRateLimitSettingOpenApiVo.java @@ -0,0 +1,206 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Rate limit custom setting + */ +@ApiModel(description = "Rate limit custom setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class CustomRateLimitSettingOpenApiVo { + @JsonProperty("downLimitEnable") + private Boolean downLimitEnable; + + @JsonProperty("downLimit") + private Integer downLimit; + + @JsonProperty("downLimitType") + private Integer downLimitType; + + @JsonProperty("upLimitEnable") + private Boolean upLimitEnable; + + @JsonProperty("upLimit") + private Integer upLimit; + + @JsonProperty("upLimitType") + private Integer upLimitType; + + public CustomRateLimitSettingOpenApiVo downLimitEnable(Boolean downLimitEnable) { + this.downLimitEnable = downLimitEnable; + return this; + } + + /** + * Whether to limit downlink speed; This field is required when select custom setting. True: enable, false: disable. + * @return downLimitEnable + */ + @ApiModelProperty(required = true, value = "Whether to limit downlink speed; This field is required when select custom setting. True: enable, false: disable.") + @NotNull + + + public Boolean getDownLimitEnable() { + return downLimitEnable; + } + + public void setDownLimitEnable(Boolean downLimitEnable) { + this.downLimitEnable = downLimitEnable; + } + + public CustomRateLimitSettingOpenApiVo downLimit(Integer downLimit) { + this.downLimit = downLimit; + return this; + } + + /** + * Downlink speed limit value. When the value of Parameter [downLimitType] is 0(Kbps), downLimit should be within the range of 1–10485760; when the value of Parameter [downLimitType] is 1(Mbps), downLimit should be within the range of 1-10240. + * @return downLimit + */ + @ApiModelProperty(value = "Downlink speed limit value. When the value of Parameter [downLimitType] is 0(Kbps), downLimit should be within the range of 1–10485760; when the value of Parameter [downLimitType] is 1(Mbps), downLimit should be within the range of 1-10240.") + + + public Integer getDownLimit() { + return downLimit; + } + + public void setDownLimit(Integer downLimit) { + this.downLimit = downLimit; + } + + public CustomRateLimitSettingOpenApiVo downLimitType(Integer downLimitType) { + this.downLimitType = downLimitType; + return this; + } + + /** + * Downlink speed limit unit config; DownLimitType should be a value as follows: 0: Kbps; 1: Mbps. + * @return downLimitType + */ + @ApiModelProperty(value = "Downlink speed limit unit config; DownLimitType should be a value as follows: 0: Kbps; 1: Mbps.") + + + public Integer getDownLimitType() { + return downLimitType; + } + + public void setDownLimitType(Integer downLimitType) { + this.downLimitType = downLimitType; + } + + public CustomRateLimitSettingOpenApiVo upLimitEnable(Boolean upLimitEnable) { + this.upLimitEnable = upLimitEnable; + return this; + } + + /** + * Whether to limit uplink speed; This field is required when select custom setting. True: enable, false: disable. + * @return upLimitEnable + */ + @ApiModelProperty(required = true, value = "Whether to limit uplink speed; This field is required when select custom setting. True: enable, false: disable.") + @NotNull + + + public Boolean getUpLimitEnable() { + return upLimitEnable; + } + + public void setUpLimitEnable(Boolean upLimitEnable) { + this.upLimitEnable = upLimitEnable; + } + + public CustomRateLimitSettingOpenApiVo upLimit(Integer upLimit) { + this.upLimit = upLimit; + return this; + } + + /** + * Uplink speed limit value. When the value of Parameter [upLimitType] is 0(Kbps), upLimit should be within the range of 1–10485760; when the value of Parameter [upLimitType] is 1(Mbps), upLimit should be within the range of 1-10240. + * @return upLimit + */ + @ApiModelProperty(value = "Uplink speed limit value. When the value of Parameter [upLimitType] is 0(Kbps), upLimit should be within the range of 1–10485760; when the value of Parameter [upLimitType] is 1(Mbps), upLimit should be within the range of 1-10240.") + + + public Integer getUpLimit() { + return upLimit; + } + + public void setUpLimit(Integer upLimit) { + this.upLimit = upLimit; + } + + public CustomRateLimitSettingOpenApiVo upLimitType(Integer upLimitType) { + this.upLimitType = upLimitType; + return this; + } + + /** + * Uplink speed limit unit config; UpLimitType should be a value as follows: 0: Kbps; 1: Mbps. + * @return upLimitType + */ + @ApiModelProperty(value = "Uplink speed limit unit config; UpLimitType should be a value as follows: 0: Kbps; 1: Mbps.") + + + public Integer getUpLimitType() { + return upLimitType; + } + + public void setUpLimitType(Integer upLimitType) { + this.upLimitType = upLimitType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + CustomRateLimitSettingOpenApiVo customRateLimitSettingOpenApiVo = (CustomRateLimitSettingOpenApiVo) o; + return Objects.equals(this.downLimitEnable, customRateLimitSettingOpenApiVo.downLimitEnable) && + Objects.equals(this.downLimit, customRateLimitSettingOpenApiVo.downLimit) && + Objects.equals(this.downLimitType, customRateLimitSettingOpenApiVo.downLimitType) && + Objects.equals(this.upLimitEnable, customRateLimitSettingOpenApiVo.upLimitEnable) && + Objects.equals(this.upLimit, customRateLimitSettingOpenApiVo.upLimit) && + Objects.equals(this.upLimitType, customRateLimitSettingOpenApiVo.upLimitType); + } + + @Override + public int hashCode() { + return Objects.hash(downLimitEnable, downLimit, downLimitType, upLimitEnable, upLimit, upLimitType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class CustomRateLimitSettingOpenApiVo {\n"); + + sb.append(" downLimitEnable: ").append(toIndentedString(downLimitEnable)).append("\n"); + sb.append(" downLimit: ").append(toIndentedString(downLimit)).append("\n"); + sb.append(" downLimitType: ").append(toIndentedString(downLimitType)).append("\n"); + sb.append(" upLimitEnable: ").append(toIndentedString(upLimitEnable)).append("\n"); + sb.append(" upLimit: ").append(toIndentedString(upLimit)).append("\n"); + sb.append(" upLimitType: ").append(toIndentedString(upLimitType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DdnsIntervalOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DdnsIntervalOpenApiVo.java new file mode 100644 index 0000000..f49ae31 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DdnsIntervalOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Dynamic DNS interval configuration. You can configure one of two intervals, when parameter [service] is 2 or 3, you can only choose [updateInterval] to configure, when parameter [service] is 5, you don’t need to configure interval. + */ +@ApiModel(description = "Dynamic DNS interval configuration. You can configure one of two intervals, when parameter [service] is 2 or 3, you can only choose [updateInterval] to configure, when parameter [service] is 5, you don’t need to configure interval.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DdnsIntervalOpenApiVo { + @JsonProperty("updateInterval") + private Integer updateInterval; + + @JsonProperty("customInterval") + private Integer customInterval; + + public DdnsIntervalOpenApiVo updateInterval(Integer updateInterval) { + this.updateInterval = updateInterval; + return this; + } + + /** + * Dynamic DNS update interval, unit: hour. UpdateInterval should be a value as follows: 0, 1, 6, 12, 24, 48 or 72 + * @return updateInterval + */ + @ApiModelProperty(value = "Dynamic DNS update interval, unit: hour. UpdateInterval should be a value as follows: 0, 1, 6, 12, 24, 48 or 72") + + + public Integer getUpdateInterval() { + return updateInterval; + } + + public void setUpdateInterval(Integer updateInterval) { + this.updateInterval = updateInterval; + } + + public DdnsIntervalOpenApiVo customInterval(Integer customInterval) { + this.customInterval = customInterval; + return this; + } + + /** + * Dynamic DNS custom interval, valid when parameter [server] is 0, 1 or 4, unit: minute. CustomInterval should be within the range of 1-60 + * @return customInterval + */ + @ApiModelProperty(value = "Dynamic DNS custom interval, valid when parameter [server] is 0, 1 or 4, unit: minute. CustomInterval should be within the range of 1-60") + + + public Integer getCustomInterval() { + return customInterval; + } + + public void setCustomInterval(Integer customInterval) { + this.customInterval = customInterval; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DdnsIntervalOpenApiVo ddnsIntervalOpenApiVo = (DdnsIntervalOpenApiVo) o; + return Objects.equals(this.updateInterval, ddnsIntervalOpenApiVo.updateInterval) && + Objects.equals(this.customInterval, ddnsIntervalOpenApiVo.customInterval); + } + + @Override + public int hashCode() { + return Objects.hash(updateInterval, customInterval); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DdnsIntervalOpenApiVo {\n"); + + sb.append(" updateInterval: ").append(toIndentedString(updateInterval)).append("\n"); + sb.append(" customInterval: ").append(toIndentedString(customInterval)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DdnsOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DdnsOpenApiVo.java new file mode 100644 index 0000000..d4c895e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DdnsOpenApiVo.java @@ -0,0 +1,301 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * DdnsOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DdnsOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("service") + private Integer service; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("interfacePortId") + private String interfacePortId; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + @JsonProperty("domainName") + private String domainName; + + @JsonProperty("updateInterval") + private Integer updateInterval; + + @JsonProperty("customInterval") + private Integer customInterval; + + @JsonProperty("updateUrl") + private String updateUrl; + + public DdnsOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Dynamic DNS ID + * @return id + */ + @ApiModelProperty(value = "Dynamic DNS ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DdnsOpenApiVo service(Integer service) { + this.service = service; + return this; + } + + /** + * Dynamic DNS service type, 0: DynDNS, 1: NO-IP, 2: Peanuthull, 3: Comexe, 4: Custom, 5: TP-Link DDNS + * @return service + */ + @ApiModelProperty(value = "Dynamic DNS service type, 0: DynDNS, 1: NO-IP, 2: Peanuthull, 3: Comexe, 4: Custom, 5: TP-Link DDNS") + + + public Integer getService() { + return service; + } + + public void setService(Integer service) { + this.service = service; + } + + public DdnsOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Dynamic DNS enable status + * @return status + */ + @ApiModelProperty(value = "Dynamic DNS enable status") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public DdnsOpenApiVo interfacePortId(String interfacePortId) { + this.interfacePortId = interfacePortId; + return this; + } + + /** + * Port ID of interface + * @return interfacePortId + */ + @ApiModelProperty(value = "Port ID of interface") + + + public String getInterfacePortId() { + return interfacePortId; + } + + public void setInterfacePortId(String interfacePortId) { + this.interfacePortId = interfacePortId; + } + + public DdnsOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * Dynamic DNS username + * @return username + */ + @ApiModelProperty(value = "Dynamic DNS username") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public DdnsOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Dynamic DNS password + * @return password + */ + @ApiModelProperty(value = "Dynamic DNS password") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public DdnsOpenApiVo domainName(String domainName) { + this.domainName = domainName; + return this; + } + + /** + * Dynamic DNS domainName + * @return domainName + */ + @ApiModelProperty(value = "Dynamic DNS domainName") + + + public String getDomainName() { + return domainName; + } + + public void setDomainName(String domainName) { + this.domainName = domainName; + } + + public DdnsOpenApiVo updateInterval(Integer updateInterval) { + this.updateInterval = updateInterval; + return this; + } + + /** + * Dynamic DNS update interval, unit: hour + * @return updateInterval + */ + @ApiModelProperty(value = "Dynamic DNS update interval, unit: hour") + + + public Integer getUpdateInterval() { + return updateInterval; + } + + public void setUpdateInterval(Integer updateInterval) { + this.updateInterval = updateInterval; + } + + public DdnsOpenApiVo customInterval(Integer customInterval) { + this.customInterval = customInterval; + return this; + } + + /** + * Dynamic DNS custom interval, valid when parameter [server] is 0, 1 or 4, unit: minute + * @return customInterval + */ + @ApiModelProperty(value = "Dynamic DNS custom interval, valid when parameter [server] is 0, 1 or 4, unit: minute") + + + public Integer getCustomInterval() { + return customInterval; + } + + public void setCustomInterval(Integer customInterval) { + this.customInterval = customInterval; + } + + public DdnsOpenApiVo updateUrl(String updateUrl) { + this.updateUrl = updateUrl; + return this; + } + + /** + * Dynamic DNS updateUrl, valid when parameter [server] is 4 + * @return updateUrl + */ + @ApiModelProperty(value = "Dynamic DNS updateUrl, valid when parameter [server] is 4") + + + public String getUpdateUrl() { + return updateUrl; + } + + public void setUpdateUrl(String updateUrl) { + this.updateUrl = updateUrl; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DdnsOpenApiVo ddnsOpenApiVo = (DdnsOpenApiVo) o; + return Objects.equals(this.id, ddnsOpenApiVo.id) && + Objects.equals(this.service, ddnsOpenApiVo.service) && + Objects.equals(this.status, ddnsOpenApiVo.status) && + Objects.equals(this.interfacePortId, ddnsOpenApiVo.interfacePortId) && + Objects.equals(this.username, ddnsOpenApiVo.username) && + Objects.equals(this.password, ddnsOpenApiVo.password) && + Objects.equals(this.domainName, ddnsOpenApiVo.domainName) && + Objects.equals(this.updateInterval, ddnsOpenApiVo.updateInterval) && + Objects.equals(this.customInterval, ddnsOpenApiVo.customInterval) && + Objects.equals(this.updateUrl, ddnsOpenApiVo.updateUrl); + } + + @Override + public int hashCode() { + return Objects.hash(id, service, status, interfacePortId, username, password, domainName, updateInterval, customInterval, updateUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DdnsOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" interfacePortId: ").append(toIndentedString(interfacePortId)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" domainName: ").append(toIndentedString(domainName)).append("\n"); + sb.append(" updateInterval: ").append(toIndentedString(updateInterval)).append("\n"); + sb.append(" customInterval: ").append(toIndentedString(customInterval)).append("\n"); + sb.append(" updateUrl: ").append(toIndentedString(updateUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteCallBlockingProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteCallBlockingProfileEntity.java new file mode 100644 index 0000000..4fa6349 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteCallBlockingProfileEntity.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DeleteCallBlockingProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DeleteCallBlockingProfileEntity { + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("skipConfirm") + private Boolean skipConfirm; + + public DeleteCallBlockingProfileEntity profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Profile ID + * @return profileId + */ + @ApiModelProperty(required = true, value = "Profile ID") + @NotNull + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public DeleteCallBlockingProfileEntity skipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + return this; + } + + /** + * skipConfirm indicates whether to skip the query of the devices bound to call blocking profile. false: Not to skip the query. true: Skip the query and delete the call blocking profile corresponding to the profileId. + * @return skipConfirm + */ + @ApiModelProperty(required = true, value = "skipConfirm indicates whether to skip the query of the devices bound to call blocking profile. false: Not to skip the query. true: Skip the query and delete the call blocking profile corresponding to the profileId.") + @NotNull + + + public Boolean getSkipConfirm() { + return skipConfirm; + } + + public void setSkipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteCallBlockingProfileEntity deleteCallBlockingProfileEntity = (DeleteCallBlockingProfileEntity) o; + return Objects.equals(this.profileId, deleteCallBlockingProfileEntity.profileId) && + Objects.equals(this.skipConfirm, deleteCallBlockingProfileEntity.skipConfirm); + } + + @Override + public int hashCode() { + return Objects.hash(profileId, skipConfirm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteCallBlockingProfileEntity {\n"); + + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" skipConfirm: ").append(toIndentedString(skipConfirm)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteCallForwardingRules.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteCallForwardingRules.java new file mode 100644 index 0000000..32b9765 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteCallForwardingRules.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * DeleteCallForwardingRules + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DeleteCallForwardingRules { + @JsonProperty("ruleIds") + @Valid + private List ruleIds = null; + + public DeleteCallForwardingRules ruleIds(List ruleIds) { + this.ruleIds = ruleIds; + return this; + } + + public DeleteCallForwardingRules addRuleIdsItem(String ruleIdsItem) { + if (this.ruleIds == null) { + this.ruleIds = new ArrayList<>(); + } + this.ruleIds.add(ruleIdsItem); + return this; + } + + /** + * Ids of call forwarding rules to be deleted. + * @return ruleIds + */ + @ApiModelProperty(value = "Ids of call forwarding rules to be deleted.") + + + public List getRuleIds() { + return ruleIds; + } + + public void setRuleIds(List ruleIds) { + this.ruleIds = ruleIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteCallForwardingRules deleteCallForwardingRules = (DeleteCallForwardingRules) o; + return Objects.equals(this.ruleIds, deleteCallForwardingRules.ruleIds); + } + + @Override + public int hashCode() { + return Objects.hash(ruleIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteCallForwardingRules {\n"); + + sb.append(" ruleIds: ").append(toIndentedString(ruleIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteDigitMapProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteDigitMapProfileEntity.java new file mode 100644 index 0000000..5304bf8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteDigitMapProfileEntity.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DeleteDigitMapProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DeleteDigitMapProfileEntity { + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("skipConfirm") + private Boolean skipConfirm; + + public DeleteDigitMapProfileEntity profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Profile ID. Default digit map profile cannot be deleted. + * @return profileId + */ + @ApiModelProperty(required = true, value = "Profile ID. Default digit map profile cannot be deleted.") + @NotNull + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public DeleteDigitMapProfileEntity skipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + return this; + } + + /** + * skipConfirm indicates whether to skip the query of the devices bound to digit map profile. false: Not to skip the query. true: Skip the query and delete the digit map profile corresponding to the profileId. + * @return skipConfirm + */ + @ApiModelProperty(required = true, value = "skipConfirm indicates whether to skip the query of the devices bound to digit map profile. false: Not to skip the query. true: Skip the query and delete the digit map profile corresponding to the profileId.") + @NotNull + + + public Boolean getSkipConfirm() { + return skipConfirm; + } + + public void setSkipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteDigitMapProfileEntity deleteDigitMapProfileEntity = (DeleteDigitMapProfileEntity) o; + return Objects.equals(this.profileId, deleteDigitMapProfileEntity.profileId) && + Objects.equals(this.skipConfirm, deleteDigitMapProfileEntity.skipConfirm); + } + + @Override + public int hashCode() { + return Objects.hash(profileId, skipConfirm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteDigitMapProfileEntity {\n"); + + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" skipConfirm: ").append(toIndentedString(skipConfirm)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteTelephoneNumber.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteTelephoneNumber.java new file mode 100644 index 0000000..a021def --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeleteTelephoneNumber.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DeleteTelephoneNumber + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DeleteTelephoneNumber { + @JsonProperty("forceDelete") + private Boolean forceDelete; + + public DeleteTelephoneNumber forceDelete(Boolean forceDelete) { + this.forceDelete = forceDelete; + return this; + } + + /** + * Other configurations depending on this number (call forwarding rules for instance) will be deleted together if this field is true. Otherwise, a pre-check will be executed and an error message will be returned when this number is already used in some other configurations. + * @return forceDelete + */ + @ApiModelProperty(required = true, value = "Other configurations depending on this number (call forwarding rules for instance) will be deleted together if this field is true. Otherwise, a pre-check will be executed and an error message will be returned when this number is already used in some other configurations.") + @NotNull + + + public Boolean getForceDelete() { + return forceDelete; + } + + public void setForceDelete(Boolean forceDelete) { + this.forceDelete = forceDelete; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeleteTelephoneNumber deleteTelephoneNumber = (DeleteTelephoneNumber) o; + return Objects.equals(this.forceDelete, deleteTelephoneNumber.forceDelete); + } + + @Override + public int hashCode() { + return Objects.hash(forceDelete); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeleteTelephoneNumber {\n"); + + sb.append(" forceDelete: ").append(toIndentedString(forceDelete)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOpenApiVo.java new file mode 100644 index 0000000..e42f33d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOpenApiVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Telephony devices. + */ +@ApiModel(description = "Telephony devices.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DeviceOpenApiVo { + @JsonProperty("telephony device id") + private Integer telephonyDeviceId; + + public DeviceOpenApiVo telephonyDeviceId(Integer telephonyDeviceId) { + this.telephonyDeviceId = telephonyDeviceId; + return this; + } + + /** + * telephony device id + * @return telephonyDeviceId + */ + @ApiModelProperty(value = "telephony device id") + + + public Integer getTelephonyDeviceId() { + return telephonyDeviceId; + } + + public void setTelephonyDeviceId(Integer telephonyDeviceId) { + this.telephonyDeviceId = telephonyDeviceId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceOpenApiVo deviceOpenApiVo = (DeviceOpenApiVo) o; + return Objects.equals(this.telephonyDeviceId, deviceOpenApiVo.telephonyDeviceId); + } + + @Override + public int hashCode() { + return Objects.hash(telephonyDeviceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceOpenApiVo {\n"); + + sb.append(" telephonyDeviceId: ").append(toIndentedString(telephonyDeviceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOuiModeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOuiModeOpenApiVo.java new file mode 100644 index 0000000..2b6d496 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOuiModeOpenApiVo.java @@ -0,0 +1,151 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * When mode is 0, should configure device info. + */ +@ApiModel(description = "When mode is 0, should configure device info.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DeviceOuiModeOpenApiVo { + @JsonProperty("deviceMac") + private String deviceMac; + + @JsonProperty("portList") + @Valid + private List portList = null; + + @JsonProperty("lagList") + @Valid + private List lagList = null; + + public DeviceOuiModeOpenApiVo deviceMac(String deviceMac) { + this.deviceMac = deviceMac; + return this; + } + + /** + * Device MAC. E.g. AA-BB-CC-DD-11-22 . When \"oldFirmwareDevice\" is true, deivce should configure in only one OUI Based VLAN rule. + * @return deviceMac + */ + @ApiModelProperty(required = true, value = "Device MAC. E.g. AA-BB-CC-DD-11-22 . When \"oldFirmwareDevice\" is true, deivce should configure in only one OUI Based VLAN rule.") + @NotNull + + + public String getDeviceMac() { + return deviceMac; + } + + public void setDeviceMac(String deviceMac) { + this.deviceMac = deviceMac; + } + + public DeviceOuiModeOpenApiVo portList(List portList) { + this.portList = portList; + return this; + } + + public DeviceOuiModeOpenApiVo addPortListItem(Integer portListItem) { + if (this.portList == null) { + this.portList = new ArrayList<>(); + } + this.portList.add(portListItem); + return this; + } + + /** + * Device port list. + * @return portList + */ + @ApiModelProperty(value = "Device port list.") + + + public List getPortList() { + return portList; + } + + public void setPortList(List portList) { + this.portList = portList; + } + + public DeviceOuiModeOpenApiVo lagList(List lagList) { + this.lagList = lagList; + return this; + } + + public DeviceOuiModeOpenApiVo addLagListItem(Integer lagListItem) { + if (this.lagList == null) { + this.lagList = new ArrayList<>(); + } + this.lagList.add(lagListItem); + return this; + } + + /** + * Device lag list. + * @return lagList + */ + @ApiModelProperty(value = "Device lag list.") + + + public List getLagList() { + return lagList; + } + + public void setLagList(List lagList) { + this.lagList = lagList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceOuiModeOpenApiVo deviceOuiModeOpenApiVo = (DeviceOuiModeOpenApiVo) o; + return Objects.equals(this.deviceMac, deviceOuiModeOpenApiVo.deviceMac) && + Objects.equals(this.portList, deviceOuiModeOpenApiVo.portList) && + Objects.equals(this.lagList, deviceOuiModeOpenApiVo.lagList); + } + + @Override + public int hashCode() { + return Objects.hash(deviceMac, portList, lagList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceOuiModeOpenApiVo {\n"); + + sb.append(" deviceMac: ").append(toIndentedString(deviceMac)).append("\n"); + sb.append(" portList: ").append(toIndentedString(portList)).append("\n"); + sb.append(" lagList: ").append(toIndentedString(lagList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOuiModeQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOuiModeQueryOpenApiVo.java new file mode 100644 index 0000000..0dbf032 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceOuiModeQueryOpenApiVo.java @@ -0,0 +1,211 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * When mode is 0, Show configured device info. + */ +@ApiModel(description = "When mode is 0, Show configured device info.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DeviceOuiModeQueryOpenApiVo { + @JsonProperty("deviceMac") + private String deviceMac; + + @JsonProperty("deviceName") + private String deviceName; + + @JsonProperty("portList") + @Valid + private List portList = null; + + @JsonProperty("lagList") + @Valid + private List lagList = null; + + @JsonProperty("lagInfo") + @Valid + private List lagInfo = null; + + public DeviceOuiModeQueryOpenApiVo deviceMac(String deviceMac) { + this.deviceMac = deviceMac; + return this; + } + + /** + * Device MAC. E.g. AA-BB-CC-DD-11-22 . + * @return deviceMac + */ + @ApiModelProperty(required = true, value = "Device MAC. E.g. AA-BB-CC-DD-11-22 .") + @NotNull + + + public String getDeviceMac() { + return deviceMac; + } + + public void setDeviceMac(String deviceMac) { + this.deviceMac = deviceMac; + } + + public DeviceOuiModeQueryOpenApiVo deviceName(String deviceName) { + this.deviceName = deviceName; + return this; + } + + /** + * Device Name + * @return deviceName + */ + @ApiModelProperty(value = "Device Name") + + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public DeviceOuiModeQueryOpenApiVo portList(List portList) { + this.portList = portList; + return this; + } + + public DeviceOuiModeQueryOpenApiVo addPortListItem(Integer portListItem) { + if (this.portList == null) { + this.portList = new ArrayList<>(); + } + this.portList.add(portListItem); + return this; + } + + /** + * Configured Switch port. + * @return portList + */ + @ApiModelProperty(value = "Configured Switch port.") + + + public List getPortList() { + return portList; + } + + public void setPortList(List portList) { + this.portList = portList; + } + + public DeviceOuiModeQueryOpenApiVo lagList(List lagList) { + this.lagList = lagList; + return this; + } + + public DeviceOuiModeQueryOpenApiVo addLagListItem(Integer lagListItem) { + if (this.lagList == null) { + this.lagList = new ArrayList<>(); + } + this.lagList.add(lagListItem); + return this; + } + + /** + * Configured Switch lag. + * @return lagList + */ + @ApiModelProperty(value = "Configured Switch lag.") + + + public List getLagList() { + return lagList; + } + + public void setLagList(List lagList) { + this.lagList = lagList; + } + + public DeviceOuiModeQueryOpenApiVo lagInfo(List lagInfo) { + this.lagInfo = lagInfo; + return this; + } + + public DeviceOuiModeQueryOpenApiVo addLagInfoItem(LagInfoOpenApiVo lagInfoItem) { + if (this.lagInfo == null) { + this.lagInfo = new ArrayList<>(); + } + this.lagInfo.add(lagInfoItem); + return this; + } + + /** + * Switch lag info. + * @return lagInfo + */ + @ApiModelProperty(value = "Switch lag info.") + + @Valid + + public List getLagInfo() { + return lagInfo; + } + + public void setLagInfo(List lagInfo) { + this.lagInfo = lagInfo; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceOuiModeQueryOpenApiVo deviceOuiModeQueryOpenApiVo = (DeviceOuiModeQueryOpenApiVo) o; + return Objects.equals(this.deviceMac, deviceOuiModeQueryOpenApiVo.deviceMac) && + Objects.equals(this.deviceName, deviceOuiModeQueryOpenApiVo.deviceName) && + Objects.equals(this.portList, deviceOuiModeQueryOpenApiVo.portList) && + Objects.equals(this.lagList, deviceOuiModeQueryOpenApiVo.lagList) && + Objects.equals(this.lagInfo, deviceOuiModeQueryOpenApiVo.lagInfo); + } + + @Override + public int hashCode() { + return Objects.hash(deviceMac, deviceName, portList, lagList, lagInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceOuiModeQueryOpenApiVo {\n"); + + sb.append(" deviceMac: ").append(toIndentedString(deviceMac)).append("\n"); + sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); + sb.append(" portList: ").append(toIndentedString(portList)).append("\n"); + sb.append(" lagList: ").append(toIndentedString(lagList)).append("\n"); + sb.append(" lagInfo: ").append(toIndentedString(lagInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DevicePoePorts.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DevicePoePorts.java new file mode 100644 index 0000000..52a961b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DevicePoePorts.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Device poe ports info. + */ +@ApiModel(description = "Device poe ports info.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DevicePoePorts { + @JsonProperty("portNum") + private Integer portNum; + + @JsonProperty("poePortIds") + @Valid + private List poePortIds = null; + + public DevicePoePorts portNum(Integer portNum) { + this.portNum = portNum; + return this; + } + + /** + * Total port num. + * @return portNum + */ + @ApiModelProperty(value = "Total port num.") + + + public Integer getPortNum() { + return portNum; + } + + public void setPortNum(Integer portNum) { + this.portNum = portNum; + } + + public DevicePoePorts poePortIds(List poePortIds) { + this.poePortIds = poePortIds; + return this; + } + + public DevicePoePorts addPoePortIdsItem(Integer poePortIdsItem) { + if (this.poePortIds == null) { + this.poePortIds = new ArrayList<>(); + } + this.poePortIds.add(poePortIdsItem); + return this; + } + + /** + * List of ports supporting Poe. + * @return poePortIds + */ + @ApiModelProperty(value = "List of ports supporting Poe.") + + + public List getPoePortIds() { + return poePortIds; + } + + public void setPoePortIds(List poePortIds) { + this.poePortIds = poePortIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DevicePoePorts devicePoePorts = (DevicePoePorts) o; + return Objects.equals(this.portNum, devicePoePorts.portNum) && + Objects.equals(this.poePortIds, devicePoePorts.poePortIds); + } + + @Override + public int hashCode() { + return Objects.hash(portNum, poePortIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DevicePoePorts {\n"); + + sb.append(" portNum: ").append(toIndentedString(portNum)).append("\n"); + sb.append(" poePortIds: ").append(toIndentedString(poePortIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DevicePorts.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DevicePorts.java new file mode 100644 index 0000000..a6065fe --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DevicePorts.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Device ports info. + */ +@ApiModel(description = "Device ports info.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DevicePorts { + @JsonProperty("portNum") + private Integer portNum; + + @JsonProperty("portIds") + @Valid + private List portIds = null; + + public DevicePorts portNum(Integer portNum) { + this.portNum = portNum; + return this; + } + + /** + * Device total ports number. + * @return portNum + */ + @ApiModelProperty(value = "Device total ports number.") + + + public Integer getPortNum() { + return portNum; + } + + public void setPortNum(Integer portNum) { + this.portNum = portNum; + } + + public DevicePorts portIds(List portIds) { + this.portIds = portIds; + return this; + } + + public DevicePorts addPortIdsItem(Integer portIdsItem) { + if (this.portIds == null) { + this.portIds = new ArrayList<>(); + } + this.portIds.add(portIdsItem); + return this; + } + + /** + * List of device ports supporting port schedule. + * @return portIds + */ + @ApiModelProperty(value = "List of device ports supporting port schedule.") + + + public List getPortIds() { + return portIds; + } + + public void setPortIds(List portIds) { + this.portIds = portIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DevicePorts devicePorts = (DevicePorts) o; + return Objects.equals(this.portNum, devicePorts.portNum) && + Objects.equals(this.portIds, devicePorts.portIds); + } + + @Override + public int hashCode() { + return Objects.hash(portNum, portIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DevicePorts {\n"); + + sb.append(" portNum: ").append(toIndentedString(portNum)).append("\n"); + sb.append(" portIds: ").append(toIndentedString(portIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceTelephoneNumber.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceTelephoneNumber.java new file mode 100644 index 0000000..5f4cb3a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DeviceTelephoneNumber.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * DeviceTelephoneNumber + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DeviceTelephoneNumber { + @JsonProperty("id") + private String id; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("bindNumberList") + @Valid + private List bindNumberList = null; + + public DeviceTelephoneNumber id(String id) { + this.id = id; + return this; + } + + /** + * The ID of voip device. + * @return id + */ + @ApiModelProperty(value = "The ID of voip device.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DeviceTelephoneNumber mac(String mac) { + this.mac = mac; + return this; + } + + /** + * The mac of voip device. + * @return mac + */ + @ApiModelProperty(value = "The mac of voip device.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public DeviceTelephoneNumber bindNumberList(List bindNumberList) { + this.bindNumberList = bindNumberList; + return this; + } + + public DeviceTelephoneNumber addBindNumberListItem(TelephoneNumberWithStatusOpenApiVo bindNumberListItem) { + if (this.bindNumberList == null) { + this.bindNumberList = new ArrayList<>(); + } + this.bindNumberList.add(bindNumberListItem); + return this; + } + + /** + * The list of telephone number. + * @return bindNumberList + */ + @ApiModelProperty(value = "The list of telephone number.") + + @Valid + + public List getBindNumberList() { + return bindNumberList; + } + + public void setBindNumberList(List bindNumberList) { + this.bindNumberList = bindNumberList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DeviceTelephoneNumber deviceTelephoneNumber = (DeviceTelephoneNumber) o; + return Objects.equals(this.id, deviceTelephoneNumber.id) && + Objects.equals(this.mac, deviceTelephoneNumber.mac) && + Objects.equals(this.bindNumberList, deviceTelephoneNumber.bindNumberList); + } + + @Override + public int hashCode() { + return Objects.hash(id, mac, bindNumberList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DeviceTelephoneNumber {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" bindNumberList: ").append(toIndentedString(bindNumberList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpL2RelayEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpL2RelayEntity.java new file mode 100644 index 0000000..3efb6cc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpL2RelayEntity.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * DHCPL2RelaySettings + */ +@ApiModel(description = "DHCPL2RelaySettings") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DhcpL2RelayEntity { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("format") + private Integer format; + + public DhcpL2RelayEntity enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Enable + * @return enable + */ + @ApiModelProperty(value = "Enable") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public DhcpL2RelayEntity format(Integer format) { + this.format = format; + return this; + } + + /** + * Format should be a value as follows: 0: normal, 1: private + * @return format + */ + @ApiModelProperty(value = "Format should be a value as follows: 0: normal, 1: private") + + + public Integer getFormat() { + return format; + } + + public void setFormat(Integer format) { + this.format = format; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DhcpL2RelayEntity dhcpL2RelayEntity = (DhcpL2RelayEntity) o; + return Objects.equals(this.enable, dhcpL2RelayEntity.enable) && + Objects.equals(this.format, dhcpL2RelayEntity.format); + } + + @Override + public int hashCode() { + return Objects.hash(enable, format); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DhcpL2RelayEntity {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpRangeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpRangeOpenApiVo.java new file mode 100644 index 0000000..80b8683 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpRangeOpenApiVo.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * The list of DHCP Range, which size can't be more than \"dhcpRangePoolSize\", \"dhcpRangePoolSize\" can be obtained from 'Get LAN network list' interface. + */ +@ApiModel(description = "The list of DHCP Range, which size can't be more than \"dhcpRangePoolSize\", \"dhcpRangePoolSize\" can be obtained from 'Get LAN network list' interface.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DhcpRangeOpenApiVo { + @JsonProperty("ipaddrStart") + private String ipaddrStart; + + @JsonProperty("ipaddrEnd") + private String ipaddrEnd; + + public DhcpRangeOpenApiVo ipaddrStart(String ipaddrStart) { + this.ipaddrStart = ipaddrStart; + return this; + } + + /** + * DHCP Range Start IP + * @return ipaddrStart + */ + @ApiModelProperty(value = "DHCP Range Start IP") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpaddrStart() { + return ipaddrStart; + } + + public void setIpaddrStart(String ipaddrStart) { + this.ipaddrStart = ipaddrStart; + } + + public DhcpRangeOpenApiVo ipaddrEnd(String ipaddrEnd) { + this.ipaddrEnd = ipaddrEnd; + return this; + } + + /** + * DHCP Range End IP + * @return ipaddrEnd + */ + @ApiModelProperty(value = "DHCP Range End IP") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpaddrEnd() { + return ipaddrEnd; + } + + public void setIpaddrEnd(String ipaddrEnd) { + this.ipaddrEnd = ipaddrEnd; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DhcpRangeOpenApiVo dhcpRangeOpenApiVo = (DhcpRangeOpenApiVo) o; + return Objects.equals(this.ipaddrStart, dhcpRangeOpenApiVo.ipaddrStart) && + Objects.equals(this.ipaddrEnd, dhcpRangeOpenApiVo.ipaddrEnd); + } + + @Override + public int hashCode() { + return Objects.hash(ipaddrStart, ipaddrEnd); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DhcpRangeOpenApiVo {\n"); + + sb.append(" ipaddrStart: ").append(toIndentedString(ipaddrStart)).append("\n"); + sb.append(" ipaddrEnd: ").append(toIndentedString(ipaddrEnd)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpReservationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpReservationOpenApiVo.java new file mode 100644 index 0000000..dbde297 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpReservationOpenApiVo.java @@ -0,0 +1,277 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * DhcpReservationOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DhcpReservationOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("description") + private String description; + + @JsonProperty("netId") + private String netId; + + @JsonProperty("netName") + private String netName; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("exportToIpMacBinding") + private Boolean exportToIpMacBinding; + + @JsonProperty("clientName") + private String clientName; + + public DhcpReservationOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * DHCP reservation ID + * @return id + */ + @ApiModelProperty(value = "DHCP reservation ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public DhcpReservationOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description of DHCP reservation + * @return description + */ + @ApiModelProperty(value = "Description of DHCP reservation") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public DhcpReservationOpenApiVo netId(String netId) { + this.netId = netId; + return this; + } + + /** + * ID of the configured LAN Network + * @return netId + */ + @ApiModelProperty(value = "ID of the configured LAN Network") + + + public String getNetId() { + return netId; + } + + public void setNetId(String netId) { + this.netId = netId; + } + + public DhcpReservationOpenApiVo netName(String netName) { + this.netName = netName; + return this; + } + + /** + * Name of the configured LAN Network + * @return netName + */ + @ApiModelProperty(value = "Name of the configured LAN Network") + + + public String getNetName() { + return netName; + } + + public void setNetName(String netName) { + this.netName = netName; + } + + public DhcpReservationOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC address + * @return mac + */ + @ApiModelProperty(value = "Device MAC address") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public DhcpReservationOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Reserved IP address + * @return ip + */ + @ApiModelProperty(value = "Reserved IP address") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public DhcpReservationOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * DHCP reservation enable status + * @return status + */ + @ApiModelProperty(value = "DHCP reservation enable status") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public DhcpReservationOpenApiVo exportToIpMacBinding(Boolean exportToIpMacBinding) { + this.exportToIpMacBinding = exportToIpMacBinding; + return this; + } + + /** + * Indicates whether DHCP reservation can be exported to the IP-MAC Binding list + * @return exportToIpMacBinding + */ + @ApiModelProperty(value = "Indicates whether DHCP reservation can be exported to the IP-MAC Binding list") + + + public Boolean getExportToIpMacBinding() { + return exportToIpMacBinding; + } + + public void setExportToIpMacBinding(Boolean exportToIpMacBinding) { + this.exportToIpMacBinding = exportToIpMacBinding; + } + + public DhcpReservationOpenApiVo clientName(String clientName) { + this.clientName = clientName; + return this; + } + + /** + * Client name + * @return clientName + */ + @ApiModelProperty(value = "Client name") + + + public String getClientName() { + return clientName; + } + + public void setClientName(String clientName) { + this.clientName = clientName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DhcpReservationOpenApiVo dhcpReservationOpenApiVo = (DhcpReservationOpenApiVo) o; + return Objects.equals(this.id, dhcpReservationOpenApiVo.id) && + Objects.equals(this.description, dhcpReservationOpenApiVo.description) && + Objects.equals(this.netId, dhcpReservationOpenApiVo.netId) && + Objects.equals(this.netName, dhcpReservationOpenApiVo.netName) && + Objects.equals(this.mac, dhcpReservationOpenApiVo.mac) && + Objects.equals(this.ip, dhcpReservationOpenApiVo.ip) && + Objects.equals(this.status, dhcpReservationOpenApiVo.status) && + Objects.equals(this.exportToIpMacBinding, dhcpReservationOpenApiVo.exportToIpMacBinding) && + Objects.equals(this.clientName, dhcpReservationOpenApiVo.clientName); + } + + @Override + public int hashCode() { + return Objects.hash(id, description, netId, netName, mac, ip, status, exportToIpMacBinding, clientName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DhcpReservationOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" netId: ").append(toIndentedString(netId)).append("\n"); + sb.append(" netName: ").append(toIndentedString(netName)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" exportToIpMacBinding: ").append(toIndentedString(exportToIpMacBinding)).append("\n"); + sb.append(" clientName: ").append(toIndentedString(clientName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpServersSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpServersSetting.java new file mode 100644 index 0000000..66f4643 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpServersSetting.java @@ -0,0 +1,131 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Legal DHCP Server + */ +@ApiModel(description = "Legal DHCP Server") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DhcpServersSetting { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("dhcpSvr1") + private String dhcpSvr1; + + @JsonProperty("dhcpSvr2") + private String dhcpSvr2; + + public DhcpServersSetting enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * The switch of DHCP Guarding + * @return enable + */ + @ApiModelProperty(required = true, value = "The switch of DHCP Guarding") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public DhcpServersSetting dhcpSvr1(String dhcpSvr1) { + this.dhcpSvr1 = dhcpSvr1; + return this; + } + + /** + * DHCP Server IP1 + * @return dhcpSvr1 + */ + @ApiModelProperty(value = "DHCP Server IP1") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDhcpSvr1() { + return dhcpSvr1; + } + + public void setDhcpSvr1(String dhcpSvr1) { + this.dhcpSvr1 = dhcpSvr1; + } + + public DhcpServersSetting dhcpSvr2(String dhcpSvr2) { + this.dhcpSvr2 = dhcpSvr2; + return this; + } + + /** + * DHCP Server IP2 + * @return dhcpSvr2 + */ + @ApiModelProperty(value = "DHCP Server IP2") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDhcpSvr2() { + return dhcpSvr2; + } + + public void setDhcpSvr2(String dhcpSvr2) { + this.dhcpSvr2 = dhcpSvr2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DhcpServersSetting dhcpServersSetting = (DhcpServersSetting) o; + return Objects.equals(this.enable, dhcpServersSetting.enable) && + Objects.equals(this.dhcpSvr1, dhcpServersSetting.dhcpSvr1) && + Objects.equals(this.dhcpSvr2, dhcpServersSetting.dhcpSvr2); + } + + @Override + public int hashCode() { + return Objects.hash(enable, dhcpSvr1, dhcpSvr2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DhcpServersSetting {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" dhcpSvr1: ").append(toIndentedString(dhcpSvr1)).append("\n"); + sb.append(" dhcpSvr2: ").append(toIndentedString(dhcpSvr2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettingConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettingConfig.java new file mode 100644 index 0000000..b52f1f8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettingConfig.java @@ -0,0 +1,277 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Configure DHCP settings + */ +@ApiModel(description = "Configure DHCP settings") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DhcpSettingConfig { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ipRangePool") + @Valid + private List ipRangePool = null; + + @JsonProperty("dhcpns") + private String dhcpns; + + @JsonProperty("priDns") + private String priDns; + + @JsonProperty("sndDns") + private String sndDns; + + @JsonProperty("leasetime") + private Integer leasetime; + + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("options") + @Valid + private List options = null; + + public DhcpSettingConfig enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * When value is true, DHCP server is enabled + * @return enable + */ + @ApiModelProperty(value = "When value is true, DHCP server is enabled") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public DhcpSettingConfig ipRangePool(List ipRangePool) { + this.ipRangePool = ipRangePool; + return this; + } + + public DhcpSettingConfig addIpRangePoolItem(DhcpRangeOpenApiVo ipRangePoolItem) { + if (this.ipRangePool == null) { + this.ipRangePool = new ArrayList<>(); + } + this.ipRangePool.add(ipRangePoolItem); + return this; + } + + /** + * The list of DHCP Range, which size can't be more than \"dhcpRangePoolSize\", \"dhcpRangePoolSize\" can be obtained from 'Get LAN network list' interface. + * @return ipRangePool + */ + @ApiModelProperty(value = "The list of DHCP Range, which size can't be more than \"dhcpRangePoolSize\", \"dhcpRangePoolSize\" can be obtained from 'Get LAN network list' interface.") + + @Valid + + public List getIpRangePool() { + return ipRangePool; + } + + public void setIpRangePool(List ipRangePool) { + this.ipRangePool = ipRangePool; + } + + public DhcpSettingConfig dhcpns(String dhcpns) { + this.dhcpns = dhcpns; + return this; + } + + /** + * Setup DHCP server: \"auto\" or \"manual\" + * @return dhcpns + */ + @ApiModelProperty(value = "Setup DHCP server: \"auto\" or \"manual\"") + + + public String getDhcpns() { + return dhcpns; + } + + public void setDhcpns(String dhcpns) { + this.dhcpns = dhcpns; + } + + public DhcpSettingConfig priDns(String priDns) { + this.priDns = priDns; + return this; + } + + /** + * When DHCPs are \"manual\", primary DNS Server. + * @return priDns + */ + @ApiModelProperty(value = "When DHCPs are \"manual\", primary DNS Server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPriDns() { + return priDns; + } + + public void setPriDns(String priDns) { + this.priDns = priDns; + } + + public DhcpSettingConfig sndDns(String sndDns) { + this.sndDns = sndDns; + return this; + } + + /** + * When DHCPs are \"manual\", second DNS Server. + * @return sndDns + */ + @ApiModelProperty(value = "When DHCPs are \"manual\", second DNS Server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSndDns() { + return sndDns; + } + + public void setSndDns(String sndDns) { + this.sndDns = sndDns; + } + + public DhcpSettingConfig leasetime(Integer leasetime) { + this.leasetime = leasetime; + return this; + } + + /** + * Leasetime should be within the range of 2-10080 + * @return leasetime + */ + @ApiModelProperty(value = "Leasetime should be within the range of 2-10080") + + + public Integer getLeasetime() { + return leasetime; + } + + public void setLeasetime(Integer leasetime) { + this.leasetime = leasetime; + } + + public DhcpSettingConfig gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Manual Setup of DHCP Gateway IP + * @return gateway + */ + @ApiModelProperty(value = "Manual Setup of DHCP Gateway IP") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public DhcpSettingConfig options(List options) { + this.options = options; + return this; + } + + public DhcpSettingConfig addOptionsItem(CustomDhcpOptions optionsItem) { + if (this.options == null) { + this.options = new ArrayList<>(); + } + this.options.add(optionsItem); + return this; + } + + /** + * User custom DHCP options + * @return options + */ + @ApiModelProperty(value = "User custom DHCP options") + + @Valid + + public List getOptions() { + return options; + } + + public void setOptions(List options) { + this.options = options; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DhcpSettingConfig dhcpSettingConfig = (DhcpSettingConfig) o; + return Objects.equals(this.enable, dhcpSettingConfig.enable) && + Objects.equals(this.ipRangePool, dhcpSettingConfig.ipRangePool) && + Objects.equals(this.dhcpns, dhcpSettingConfig.dhcpns) && + Objects.equals(this.priDns, dhcpSettingConfig.priDns) && + Objects.equals(this.sndDns, dhcpSettingConfig.sndDns) && + Objects.equals(this.leasetime, dhcpSettingConfig.leasetime) && + Objects.equals(this.gateway, dhcpSettingConfig.gateway) && + Objects.equals(this.options, dhcpSettingConfig.options); + } + + @Override + public int hashCode() { + return Objects.hash(enable, ipRangePool, dhcpns, priDns, sndDns, leasetime, gateway, options); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DhcpSettingConfig {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ipRangePool: ").append(toIndentedString(ipRangePool)).append("\n"); + sb.append(" dhcpns: ").append(toIndentedString(dhcpns)).append("\n"); + sb.append(" priDns: ").append(toIndentedString(priDns)).append("\n"); + sb.append(" sndDns: ").append(toIndentedString(sndDns)).append("\n"); + sb.append(" leasetime: ").append(toIndentedString(leasetime)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" options: ").append(toIndentedString(options)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettingInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettingInfo.java new file mode 100644 index 0000000..3dc0b7d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettingInfo.java @@ -0,0 +1,327 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Configure DHCP settings + */ +@ApiModel(description = "Configure DHCP settings") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DhcpSettingInfo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ipRangePool") + @Valid + private List ipRangePool = null; + + @JsonProperty("ipRangeStart") + private Long ipRangeStart; + + @JsonProperty("ipRangeEnd") + private Long ipRangeEnd; + + @JsonProperty("dhcpns") + private String dhcpns; + + @JsonProperty("priDns") + private String priDns; + + @JsonProperty("sndDns") + private String sndDns; + + @JsonProperty("leasetime") + private Integer leasetime; + + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("options") + @Valid + private List options = null; + + public DhcpSettingInfo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * When value is true, DHCP server is enabled + * @return enable + */ + @ApiModelProperty(value = "When value is true, DHCP server is enabled") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public DhcpSettingInfo ipRangePool(List ipRangePool) { + this.ipRangePool = ipRangePool; + return this; + } + + public DhcpSettingInfo addIpRangePoolItem(DhcpRangeOpenApiVo ipRangePoolItem) { + if (this.ipRangePool == null) { + this.ipRangePool = new ArrayList<>(); + } + this.ipRangePool.add(ipRangePoolItem); + return this; + } + + /** + * The list of DHCP Range, which size can't be more than \"dhcpRangePoolSize\", \"dhcpRangePoolSize\" can be obtained from 'Get LAN network list' interface. + * @return ipRangePool + */ + @ApiModelProperty(value = "The list of DHCP Range, which size can't be more than \"dhcpRangePoolSize\", \"dhcpRangePoolSize\" can be obtained from 'Get LAN network list' interface.") + + @Valid + + public List getIpRangePool() { + return ipRangePool; + } + + public void setIpRangePool(List ipRangePool) { + this.ipRangePool = ipRangePool; + } + + public DhcpSettingInfo ipRangeStart(Long ipRangeStart) { + this.ipRangeStart = ipRangeStart; + return this; + } + + /** + * The specific format value of Gateway Subnet start IP + * @return ipRangeStart + */ + @ApiModelProperty(value = "The specific format value of Gateway Subnet start IP") + + + public Long getIpRangeStart() { + return ipRangeStart; + } + + public void setIpRangeStart(Long ipRangeStart) { + this.ipRangeStart = ipRangeStart; + } + + public DhcpSettingInfo ipRangeEnd(Long ipRangeEnd) { + this.ipRangeEnd = ipRangeEnd; + return this; + } + + /** + * The specific format value of Gateway Subnet End IP + * @return ipRangeEnd + */ + @ApiModelProperty(value = "The specific format value of Gateway Subnet End IP") + + + public Long getIpRangeEnd() { + return ipRangeEnd; + } + + public void setIpRangeEnd(Long ipRangeEnd) { + this.ipRangeEnd = ipRangeEnd; + } + + public DhcpSettingInfo dhcpns(String dhcpns) { + this.dhcpns = dhcpns; + return this; + } + + /** + * Setup DHCP server: \"auto\" or \"manual\" + * @return dhcpns + */ + @ApiModelProperty(value = "Setup DHCP server: \"auto\" or \"manual\"") + + + public String getDhcpns() { + return dhcpns; + } + + public void setDhcpns(String dhcpns) { + this.dhcpns = dhcpns; + } + + public DhcpSettingInfo priDns(String priDns) { + this.priDns = priDns; + return this; + } + + /** + * When DHCPs are \"manual\", primary DNS Server. + * @return priDns + */ + @ApiModelProperty(value = "When DHCPs are \"manual\", primary DNS Server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPriDns() { + return priDns; + } + + public void setPriDns(String priDns) { + this.priDns = priDns; + } + + public DhcpSettingInfo sndDns(String sndDns) { + this.sndDns = sndDns; + return this; + } + + /** + * When DHCPs are \"manual\", second DNS Server. + * @return sndDns + */ + @ApiModelProperty(value = "When DHCPs are \"manual\", second DNS Server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSndDns() { + return sndDns; + } + + public void setSndDns(String sndDns) { + this.sndDns = sndDns; + } + + public DhcpSettingInfo leasetime(Integer leasetime) { + this.leasetime = leasetime; + return this; + } + + /** + * Leasetime should be within the range of 2-10080 + * @return leasetime + */ + @ApiModelProperty(value = "Leasetime should be within the range of 2-10080") + + + public Integer getLeasetime() { + return leasetime; + } + + public void setLeasetime(Integer leasetime) { + this.leasetime = leasetime; + } + + public DhcpSettingInfo gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Manual Setup of DHCP Gateway IP + * @return gateway + */ + @ApiModelProperty(value = "Manual Setup of DHCP Gateway IP") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public DhcpSettingInfo options(List options) { + this.options = options; + return this; + } + + public DhcpSettingInfo addOptionsItem(CustomDhcpOptions optionsItem) { + if (this.options == null) { + this.options = new ArrayList<>(); + } + this.options.add(optionsItem); + return this; + } + + /** + * User custom DHCP options + * @return options + */ + @ApiModelProperty(value = "User custom DHCP options") + + @Valid + + public List getOptions() { + return options; + } + + public void setOptions(List options) { + this.options = options; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DhcpSettingInfo dhcpSettingInfo = (DhcpSettingInfo) o; + return Objects.equals(this.enable, dhcpSettingInfo.enable) && + Objects.equals(this.ipRangePool, dhcpSettingInfo.ipRangePool) && + Objects.equals(this.ipRangeStart, dhcpSettingInfo.ipRangeStart) && + Objects.equals(this.ipRangeEnd, dhcpSettingInfo.ipRangeEnd) && + Objects.equals(this.dhcpns, dhcpSettingInfo.dhcpns) && + Objects.equals(this.priDns, dhcpSettingInfo.priDns) && + Objects.equals(this.sndDns, dhcpSettingInfo.sndDns) && + Objects.equals(this.leasetime, dhcpSettingInfo.leasetime) && + Objects.equals(this.gateway, dhcpSettingInfo.gateway) && + Objects.equals(this.options, dhcpSettingInfo.options); + } + + @Override + public int hashCode() { + return Objects.hash(enable, ipRangePool, ipRangeStart, ipRangeEnd, dhcpns, priDns, sndDns, leasetime, gateway, options); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DhcpSettingInfo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ipRangePool: ").append(toIndentedString(ipRangePool)).append("\n"); + sb.append(" ipRangeStart: ").append(toIndentedString(ipRangeStart)).append("\n"); + sb.append(" ipRangeEnd: ").append(toIndentedString(ipRangeEnd)).append("\n"); + sb.append(" dhcpns: ").append(toIndentedString(dhcpns)).append("\n"); + sb.append(" priDns: ").append(toIndentedString(priDns)).append("\n"); + sb.append(" sndDns: ").append(toIndentedString(sndDns)).append("\n"); + sb.append(" leasetime: ").append(toIndentedString(leasetime)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" options: ").append(toIndentedString(options)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettings.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettings.java new file mode 100644 index 0000000..f306c84 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DhcpSettings.java @@ -0,0 +1,442 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Configure DHCP settings + */ +@ApiModel(description = "Configure DHCP settings") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DhcpSettings { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ipaddrStart") + private String ipaddrStart; + + @JsonProperty("ipaddrEnd") + private String ipaddrEnd; + + @JsonProperty("ipRangeStart") + private Long ipRangeStart; + + @JsonProperty("ipRangeEnd") + private Long ipRangeEnd; + + @JsonProperty("dhcpns") + private String dhcpns; + + @JsonProperty("priDns") + private String priDns; + + @JsonProperty("sndDns") + private String sndDns; + + @JsonProperty("leasetime") + private Integer leasetime; + + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("hostIP") + private String hostIP; + + @JsonProperty("option60") + private String option60; + + @JsonProperty("option66") + private String option66; + + @JsonProperty("option138") + private String option138; + + @JsonProperty("options") + @Valid + private List options = null; + + public DhcpSettings enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * When value is true, DHCP server is enabled + * @return enable + */ + @ApiModelProperty(value = "When value is true, DHCP server is enabled") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public DhcpSettings ipaddrStart(String ipaddrStart) { + this.ipaddrStart = ipaddrStart; + return this; + } + + /** + * DHCP Range Start IP. Must use ipRangePool field If want to configure multiple DHCP Ranges. + * @return ipaddrStart + */ + @ApiModelProperty(value = "DHCP Range Start IP. Must use ipRangePool field If want to configure multiple DHCP Ranges.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpaddrStart() { + return ipaddrStart; + } + + public void setIpaddrStart(String ipaddrStart) { + this.ipaddrStart = ipaddrStart; + } + + public DhcpSettings ipaddrEnd(String ipaddrEnd) { + this.ipaddrEnd = ipaddrEnd; + return this; + } + + /** + * DHCP Range End IP. Must use ipRangePool field If want to configure multiple DHCP Ranges. + * @return ipaddrEnd + */ + @ApiModelProperty(value = "DHCP Range End IP. Must use ipRangePool field If want to configure multiple DHCP Ranges.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpaddrEnd() { + return ipaddrEnd; + } + + public void setIpaddrEnd(String ipaddrEnd) { + this.ipaddrEnd = ipaddrEnd; + } + + public DhcpSettings ipRangeStart(Long ipRangeStart) { + this.ipRangeStart = ipRangeStart; + return this; + } + + /** + * The specific format value of Gateway Subnet start IP + * @return ipRangeStart + */ + @ApiModelProperty(value = "The specific format value of Gateway Subnet start IP") + + + public Long getIpRangeStart() { + return ipRangeStart; + } + + public void setIpRangeStart(Long ipRangeStart) { + this.ipRangeStart = ipRangeStart; + } + + public DhcpSettings ipRangeEnd(Long ipRangeEnd) { + this.ipRangeEnd = ipRangeEnd; + return this; + } + + /** + * The specific format value of Gateway Subnet End IP + * @return ipRangeEnd + */ + @ApiModelProperty(value = "The specific format value of Gateway Subnet End IP") + + + public Long getIpRangeEnd() { + return ipRangeEnd; + } + + public void setIpRangeEnd(Long ipRangeEnd) { + this.ipRangeEnd = ipRangeEnd; + } + + public DhcpSettings dhcpns(String dhcpns) { + this.dhcpns = dhcpns; + return this; + } + + /** + * Setup DHCP server: \"auto\" or \"manual\" + * @return dhcpns + */ + @ApiModelProperty(value = "Setup DHCP server: \"auto\" or \"manual\"") + + + public String getDhcpns() { + return dhcpns; + } + + public void setDhcpns(String dhcpns) { + this.dhcpns = dhcpns; + } + + public DhcpSettings priDns(String priDns) { + this.priDns = priDns; + return this; + } + + /** + * When DHCPs are \"manual\", primary DNS Server. + * @return priDns + */ + @ApiModelProperty(value = "When DHCPs are \"manual\", primary DNS Server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPriDns() { + return priDns; + } + + public void setPriDns(String priDns) { + this.priDns = priDns; + } + + public DhcpSettings sndDns(String sndDns) { + this.sndDns = sndDns; + return this; + } + + /** + * When DHCPs are \"manual\", second DNS Server. + * @return sndDns + */ + @ApiModelProperty(value = "When DHCPs are \"manual\", second DNS Server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSndDns() { + return sndDns; + } + + public void setSndDns(String sndDns) { + this.sndDns = sndDns; + } + + public DhcpSettings leasetime(Integer leasetime) { + this.leasetime = leasetime; + return this; + } + + /** + * Valid value is from 2 to 2880 + * @return leasetime + */ + @ApiModelProperty(value = "Valid value is from 2 to 2880") + + + public Integer getLeasetime() { + return leasetime; + } + + public void setLeasetime(Integer leasetime) { + this.leasetime = leasetime; + } + + public DhcpSettings gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Manual Setup of DHCP Gateway IP + * @return gateway + */ + @ApiModelProperty(value = "Manual Setup of DHCP Gateway IP") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public DhcpSettings hostIP(String hostIP) { + this.hostIP = hostIP; + return this; + } + + /** + * DHCP Omada Controller IP + * @return hostIP + */ + @ApiModelProperty(value = "DHCP Omada Controller IP") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getHostIP() { + return hostIP; + } + + public void setHostIP(String hostIP) { + this.hostIP = hostIP; + } + + public DhcpSettings option60(String option60) { + this.option60 = option60; + return this; + } + + /** + * Option60 should be between 0 and 50, which is used to optionally identify the vendor type and configuration of a DHCP client. + * @return option60 + */ + @ApiModelProperty(value = "Option60 should be between 0 and 50, which is used to optionally identify the vendor type and configuration of a DHCP client.") + +@Pattern(regexp="^[\\041-\\0176]{0,50}$") + public String getOption60() { + return option60; + } + + public void setOption60(String option60) { + this.option60 = option60; + } + + public DhcpSettings option66(String option66) { + this.option66 = option66; + return this; + } + + /** + * The Option66 should be between 0 and 128, which specifies the TFTP server information and supports a single TFTP server IP address. + * @return option66 + */ + @ApiModelProperty(value = "The Option66 should be between 0 and 128, which specifies the TFTP server information and supports a single TFTP server IP address.") + +@Pattern(regexp="^[\\041-\\0176]{0,128}$") + public String getOption66() { + return option66; + } + + public void setOption66(String option66) { + this.option66 = option66; + } + + public DhcpSettings option138(String option138) { + this.option138 = option138; + return this; + } + + /** + * The option138 should be valid IP address, which is used in discovering the devices by the Omada controller. + * @return option138 + */ + @ApiModelProperty(value = "The option138 should be valid IP address, which is used in discovering the devices by the Omada controller.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getOption138() { + return option138; + } + + public void setOption138(String option138) { + this.option138 = option138; + } + + public DhcpSettings options(List options) { + this.options = options; + return this; + } + + public DhcpSettings addOptionsItem(CustomDhcpOptions optionsItem) { + if (this.options == null) { + this.options = new ArrayList<>(); + } + this.options.add(optionsItem); + return this; + } + + /** + * User custom DHCP options + * @return options + */ + @ApiModelProperty(value = "User custom DHCP options") + + @Valid + + public List getOptions() { + return options; + } + + public void setOptions(List options) { + this.options = options; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DhcpSettings dhcpSettings = (DhcpSettings) o; + return Objects.equals(this.enable, dhcpSettings.enable) && + Objects.equals(this.ipaddrStart, dhcpSettings.ipaddrStart) && + Objects.equals(this.ipaddrEnd, dhcpSettings.ipaddrEnd) && + Objects.equals(this.ipRangeStart, dhcpSettings.ipRangeStart) && + Objects.equals(this.ipRangeEnd, dhcpSettings.ipRangeEnd) && + Objects.equals(this.dhcpns, dhcpSettings.dhcpns) && + Objects.equals(this.priDns, dhcpSettings.priDns) && + Objects.equals(this.sndDns, dhcpSettings.sndDns) && + Objects.equals(this.leasetime, dhcpSettings.leasetime) && + Objects.equals(this.gateway, dhcpSettings.gateway) && + Objects.equals(this.hostIP, dhcpSettings.hostIP) && + Objects.equals(this.option60, dhcpSettings.option60) && + Objects.equals(this.option66, dhcpSettings.option66) && + Objects.equals(this.option138, dhcpSettings.option138) && + Objects.equals(this.options, dhcpSettings.options); + } + + @Override + public int hashCode() { + return Objects.hash(enable, ipaddrStart, ipaddrEnd, ipRangeStart, ipRangeEnd, dhcpns, priDns, sndDns, leasetime, gateway, hostIP, option60, option66, option138, options); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DhcpSettings {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ipaddrStart: ").append(toIndentedString(ipaddrStart)).append("\n"); + sb.append(" ipaddrEnd: ").append(toIndentedString(ipaddrEnd)).append("\n"); + sb.append(" ipRangeStart: ").append(toIndentedString(ipRangeStart)).append("\n"); + sb.append(" ipRangeEnd: ").append(toIndentedString(ipRangeEnd)).append("\n"); + sb.append(" dhcpns: ").append(toIndentedString(dhcpns)).append("\n"); + sb.append(" priDns: ").append(toIndentedString(priDns)).append("\n"); + sb.append(" sndDns: ").append(toIndentedString(sndDns)).append("\n"); + sb.append(" leasetime: ").append(toIndentedString(leasetime)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" hostIP: ").append(toIndentedString(hostIP)).append("\n"); + sb.append(" option60: ").append(toIndentedString(option60)).append("\n"); + sb.append(" option66: ").append(toIndentedString(option66)).append("\n"); + sb.append(" option138: ").append(toIndentedString(option138)).append("\n"); + sb.append(" options: ").append(toIndentedString(options)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dhcpv6ServersSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dhcpv6ServersSetting.java new file mode 100644 index 0000000..f9593ee --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dhcpv6ServersSetting.java @@ -0,0 +1,131 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Legal DHCPv6 Server + */ +@ApiModel(description = "Legal DHCPv6 Server") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Dhcpv6ServersSetting { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("dhcpv6Svr1") + private String dhcpv6Svr1; + + @JsonProperty("dhcpv6Svr2") + private String dhcpv6Svr2; + + public Dhcpv6ServersSetting enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * The switch of DHCPv6 Guarding + * @return enable + */ + @ApiModelProperty(required = true, value = "The switch of DHCPv6 Guarding") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public Dhcpv6ServersSetting dhcpv6Svr1(String dhcpv6Svr1) { + this.dhcpv6Svr1 = dhcpv6Svr1; + return this; + } + + /** + * DHCPv6 Server IP1 + * @return dhcpv6Svr1 + */ + @ApiModelProperty(value = "DHCPv6 Server IP1") + +@Pattern(regexp="(^\\S*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\S*$)") + public String getDhcpv6Svr1() { + return dhcpv6Svr1; + } + + public void setDhcpv6Svr1(String dhcpv6Svr1) { + this.dhcpv6Svr1 = dhcpv6Svr1; + } + + public Dhcpv6ServersSetting dhcpv6Svr2(String dhcpv6Svr2) { + this.dhcpv6Svr2 = dhcpv6Svr2; + return this; + } + + /** + * DHCPv6 Server IP2 + * @return dhcpv6Svr2 + */ + @ApiModelProperty(value = "DHCPv6 Server IP2") + +@Pattern(regexp="(^\\S*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\S*$)") + public String getDhcpv6Svr2() { + return dhcpv6Svr2; + } + + public void setDhcpv6Svr2(String dhcpv6Svr2) { + this.dhcpv6Svr2 = dhcpv6Svr2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Dhcpv6ServersSetting dhcpv6ServersSetting = (Dhcpv6ServersSetting) o; + return Objects.equals(this.enable, dhcpv6ServersSetting.enable) && + Objects.equals(this.dhcpv6Svr1, dhcpv6ServersSetting.dhcpv6Svr1) && + Objects.equals(this.dhcpv6Svr2, dhcpv6ServersSetting.dhcpv6Svr2); + } + + @Override + public int hashCode() { + return Objects.hash(enable, dhcpv6Svr1, dhcpv6Svr2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Dhcpv6ServersSetting {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" dhcpv6Svr1: ").append(toIndentedString(dhcpv6Svr1)).append("\n"); + sb.append(" dhcpv6Svr2: ").append(toIndentedString(dhcpv6Svr2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dhcpv6Setting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dhcpv6Setting.java new file mode 100644 index 0000000..daa245d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dhcpv6Setting.java @@ -0,0 +1,253 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Dhcpv6 Setting + */ +@ApiModel(description = "Dhcpv6 Setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Dhcpv6Setting { + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("subnet") + private Integer subnet; + + @JsonProperty("ipaddrStart") + private String ipaddrStart; + + @JsonProperty("ipaddrEnd") + private String ipaddrEnd; + + @JsonProperty("leasetime") + private Integer leasetime; + + @JsonProperty("dnsv6") + private Integer dnsv6; + + @JsonProperty("priDns") + private String priDns; + + @JsonProperty("sndDns") + private String sndDns; + + public Dhcpv6Setting gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Gateway IPv6 + * @return gateway + */ + @ApiModelProperty(value = "Gateway IPv6") + + + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public Dhcpv6Setting subnet(Integer subnet) { + this.subnet = subnet; + return this; + } + + /** + * Netmask IPv6 + * @return subnet + */ + @ApiModelProperty(value = "Netmask IPv6") + + + public Integer getSubnet() { + return subnet; + } + + public void setSubnet(Integer subnet) { + this.subnet = subnet; + } + + public Dhcpv6Setting ipaddrStart(String ipaddrStart) { + this.ipaddrStart = ipaddrStart; + return this; + } + + /** + * DHCP Range Start + * @return ipaddrStart + */ + @ApiModelProperty(value = "DHCP Range Start") + + + public String getIpaddrStart() { + return ipaddrStart; + } + + public void setIpaddrStart(String ipaddrStart) { + this.ipaddrStart = ipaddrStart; + } + + public Dhcpv6Setting ipaddrEnd(String ipaddrEnd) { + this.ipaddrEnd = ipaddrEnd; + return this; + } + + /** + * DHCP Range End + * @return ipaddrEnd + */ + @ApiModelProperty(value = "DHCP Range End") + + + public String getIpaddrEnd() { + return ipaddrEnd; + } + + public void setIpaddrEnd(String ipaddrEnd) { + this.ipaddrEnd = ipaddrEnd; + } + + public Dhcpv6Setting leasetime(Integer leasetime) { + this.leasetime = leasetime; + return this; + } + + /** + * Leasetime should be within the range of 1-11520. Time unit: min(s) + * @return leasetime + */ + @ApiModelProperty(value = "Leasetime should be within the range of 1-11520. Time unit: min(s)") + + + public Integer getLeasetime() { + return leasetime; + } + + public void setLeasetime(Integer leasetime) { + this.leasetime = leasetime; + } + + public Dhcpv6Setting dnsv6(Integer dnsv6) { + this.dnsv6 = dnsv6; + return this; + } + + /** + * DHCP Name Server, should be a value as follows: 0: \"auto\"; 1: \"manual\" + * @return dnsv6 + */ + @ApiModelProperty(value = "DHCP Name Server, should be a value as follows: 0: \"auto\"; 1: \"manual\"") + + + public Integer getDnsv6() { + return dnsv6; + } + + public void setDnsv6(Integer dnsv6) { + this.dnsv6 = dnsv6; + } + + public Dhcpv6Setting priDns(String priDns) { + this.priDns = priDns; + return this; + } + + /** + * When DNSv6 is 1: \"manual\", primary DNS Server + * @return priDns + */ + @ApiModelProperty(value = "When DNSv6 is 1: \"manual\", primary DNS Server") + + + public String getPriDns() { + return priDns; + } + + public void setPriDns(String priDns) { + this.priDns = priDns; + } + + public Dhcpv6Setting sndDns(String sndDns) { + this.sndDns = sndDns; + return this; + } + + /** + * When DNSv6 is 1: \"manual\", second DNS Server + * @return sndDns + */ + @ApiModelProperty(value = "When DNSv6 is 1: \"manual\", second DNS Server") + + + public String getSndDns() { + return sndDns; + } + + public void setSndDns(String sndDns) { + this.sndDns = sndDns; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Dhcpv6Setting dhcpv6Setting = (Dhcpv6Setting) o; + return Objects.equals(this.gateway, dhcpv6Setting.gateway) && + Objects.equals(this.subnet, dhcpv6Setting.subnet) && + Objects.equals(this.ipaddrStart, dhcpv6Setting.ipaddrStart) && + Objects.equals(this.ipaddrEnd, dhcpv6Setting.ipaddrEnd) && + Objects.equals(this.leasetime, dhcpv6Setting.leasetime) && + Objects.equals(this.dnsv6, dhcpv6Setting.dnsv6) && + Objects.equals(this.priDns, dhcpv6Setting.priDns) && + Objects.equals(this.sndDns, dhcpv6Setting.sndDns); + } + + @Override + public int hashCode() { + return Objects.hash(gateway, subnet, ipaddrStart, ipaddrEnd, leasetime, dnsv6, priDns, sndDns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Dhcpv6Setting {\n"); + + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" subnet: ").append(toIndentedString(subnet)).append("\n"); + sb.append(" ipaddrStart: ").append(toIndentedString(ipaddrStart)).append("\n"); + sb.append(" ipaddrEnd: ").append(toIndentedString(ipaddrEnd)).append("\n"); + sb.append(" leasetime: ").append(toIndentedString(leasetime)).append("\n"); + sb.append(" dnsv6: ").append(toIndentedString(dnsv6)).append("\n"); + sb.append(" priDns: ").append(toIndentedString(priDns)).append("\n"); + sb.append(" sndDns: ").append(toIndentedString(sndDns)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DialupSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DialupSettingOpenApiVo.java new file mode 100644 index 0000000..7a0d178 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DialupSettingOpenApiVo.java @@ -0,0 +1,181 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * dial-up setting + */ +@ApiModel(description = "dial-up setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DialupSettingOpenApiVo { + @JsonProperty("networkSearch") + private Integer networkSearch; + + @JsonProperty("isp") + private String isp; + + @JsonProperty("ispNum") + private Integer ispNum; + + @JsonProperty("apnMode") + private Integer apnMode; + + @JsonProperty("apn") + private String apn; + + public DialupSettingOpenApiVo networkSearch(Integer networkSearch) { + this.networkSearch = networkSearch; + return this; + } + + /** + * Network search mode should be a value as follows: 0: auto; 1: manual. + * @return networkSearch + */ + @ApiModelProperty(required = true, value = "Network search mode should be a value as follows: 0: auto; 1: manual.") + @NotNull + + + public Integer getNetworkSearch() { + return networkSearch; + } + + public void setNetworkSearch(Integer networkSearch) { + this.networkSearch = networkSearch; + } + + public DialupSettingOpenApiVo isp(String isp) { + this.isp = isp; + return this; + } + + /** + * Only for networkSearch mode manual. + * @return isp + */ + @ApiModelProperty(value = "Only for networkSearch mode manual.") + + + public String getIsp() { + return isp; + } + + public void setIsp(String isp) { + this.isp = isp; + } + + public DialupSettingOpenApiVo ispNum(Integer ispNum) { + this.ispNum = ispNum; + return this; + } + + /** + * Only for networkSearch mode manual. + * @return ispNum + */ + @ApiModelProperty(value = "Only for networkSearch mode manual.") + + + public Integer getIspNum() { + return ispNum; + } + + public void setIspNum(Integer ispNum) { + this.ispNum = ispNum; + } + + public DialupSettingOpenApiVo apnMode(Integer apnMode) { + this.apnMode = apnMode; + return this; + } + + /** + * Apn mode should be a value as follows: 0: auto; 1: manual. + * @return apnMode + */ + @ApiModelProperty(required = true, value = "Apn mode should be a value as follows: 0: auto; 1: manual.") + @NotNull + + + public Integer getApnMode() { + return apnMode; + } + + public void setApnMode(Integer apnMode) { + this.apnMode = apnMode; + } + + public DialupSettingOpenApiVo apn(String apn) { + this.apn = apn; + return this; + } + + /** + * APN profile ID, only for apnMode manual + * @return apn + */ + @ApiModelProperty(value = "APN profile ID, only for apnMode manual") + + + public String getApn() { + return apn; + } + + public void setApn(String apn) { + this.apn = apn; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DialupSettingOpenApiVo dialupSettingOpenApiVo = (DialupSettingOpenApiVo) o; + return Objects.equals(this.networkSearch, dialupSettingOpenApiVo.networkSearch) && + Objects.equals(this.isp, dialupSettingOpenApiVo.isp) && + Objects.equals(this.ispNum, dialupSettingOpenApiVo.ispNum) && + Objects.equals(this.apnMode, dialupSettingOpenApiVo.apnMode) && + Objects.equals(this.apn, dialupSettingOpenApiVo.apn); + } + + @Override + public int hashCode() { + return Objects.hash(networkSearch, isp, ispNum, apnMode, apn); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DialupSettingOpenApiVo {\n"); + + sb.append(" networkSearch: ").append(toIndentedString(networkSearch)).append("\n"); + sb.append(" isp: ").append(toIndentedString(isp)).append("\n"); + sb.append(" ispNum: ").append(toIndentedString(ispNum)).append("\n"); + sb.append(" apnMode: ").append(toIndentedString(apnMode)).append("\n"); + sb.append(" apn: ").append(toIndentedString(apn)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DigitMapProfileInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DigitMapProfileInfo.java new file mode 100644 index 0000000..e9175b7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DigitMapProfileInfo.java @@ -0,0 +1,201 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * DigitMapProfileInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DigitMapProfileInfo { + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("omadacId") + private String omadacId; + + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("digitMap") + private String digitMap; + + @JsonProperty("defaultProfile") + private Boolean defaultProfile; + + public DigitMapProfileInfo profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Digit map profile ID + * @return profileId + */ + @ApiModelProperty(value = "Digit map profile ID") + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public DigitMapProfileInfo omadacId(String omadacId) { + this.omadacId = omadacId; + return this; + } + + /** + * Omadac ID + * @return omadacId + */ + @ApiModelProperty(value = "Omadac ID") + + + public String getOmadacId() { + return omadacId; + } + + public void setOmadacId(String omadacId) { + this.omadacId = omadacId; + } + + public DigitMapProfileInfo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public DigitMapProfileInfo profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Digit map profile name + * @return profileName + */ + @ApiModelProperty(value = "Digit map profile name") + + + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public DigitMapProfileInfo digitMap(String digitMap) { + this.digitMap = digitMap; + return this; + } + + /** + * Digit map + * @return digitMap + */ + @ApiModelProperty(value = "Digit map") + + + public String getDigitMap() { + return digitMap; + } + + public void setDigitMap(String digitMap) { + this.digitMap = digitMap; + } + + public DigitMapProfileInfo defaultProfile(Boolean defaultProfile) { + this.defaultProfile = defaultProfile; + return this; + } + + /** + * Whether the digit map profile is the default one. + * @return defaultProfile + */ + @ApiModelProperty(value = "Whether the digit map profile is the default one.") + + + public Boolean getDefaultProfile() { + return defaultProfile; + } + + public void setDefaultProfile(Boolean defaultProfile) { + this.defaultProfile = defaultProfile; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DigitMapProfileInfo digitMapProfileInfo = (DigitMapProfileInfo) o; + return Objects.equals(this.profileId, digitMapProfileInfo.profileId) && + Objects.equals(this.omadacId, digitMapProfileInfo.omadacId) && + Objects.equals(this.siteId, digitMapProfileInfo.siteId) && + Objects.equals(this.profileName, digitMapProfileInfo.profileName) && + Objects.equals(this.digitMap, digitMapProfileInfo.digitMap) && + Objects.equals(this.defaultProfile, digitMapProfileInfo.defaultProfile); + } + + @Override + public int hashCode() { + return Objects.hash(profileId, omadacId, siteId, profileName, digitMap, defaultProfile); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DigitMapProfileInfo {\n"); + + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" omadacId: ").append(toIndentedString(omadacId)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" digitMap: ").append(toIndentedString(digitMap)).append("\n"); + sb.append(" defaultProfile: ").append(toIndentedString(defaultProfile)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DndSettingEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DndSettingEntity.java new file mode 100644 index 0000000..4bb4c81 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DndSettingEntity.java @@ -0,0 +1,203 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DndSettingEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DndSettingEntity { + @JsonProperty("omadacId") + private String omadacId; + + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("dayMode") + private Integer dayMode; + + @JsonProperty("timeBegin") + private Integer timeBegin; + + @JsonProperty("timeEnd") + private Integer timeEnd; + + public DndSettingEntity omadacId(String omadacId) { + this.omadacId = omadacId; + return this; + } + + /** + * Omadac ID + * @return omadacId + */ + @ApiModelProperty(value = "Omadac ID") + + + public String getOmadacId() { + return omadacId; + } + + public void setOmadacId(String omadacId) { + this.omadacId = omadacId; + } + + public DndSettingEntity siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public DndSettingEntity enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Enable DND or not + * @return enable + */ + @ApiModelProperty(required = true, value = "Enable DND or not") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public DndSettingEntity dayMode(Integer dayMode) { + this.dayMode = dayMode; + return this; + } + + /** + * The days you want to block the incoming calls. 1-daily,2-weekend,3-weekday + * @return dayMode + */ + @ApiModelProperty(value = "The days you want to block the incoming calls. 1-daily,2-weekend,3-weekday") + + + public Integer getDayMode() { + return dayMode; + } + + public void setDayMode(Integer dayMode) { + this.dayMode = dayMode; + } + + public DndSettingEntity timeBegin(Integer timeBegin) { + this.timeBegin = timeBegin; + return this; + } + + /** + * The start time of the DND period you want to block incoming calls. It should be an integer value between 0 and 1438. + * @return timeBegin + */ + @ApiModelProperty(value = "The start time of the DND period you want to block incoming calls. It should be an integer value between 0 and 1438.") + + + public Integer getTimeBegin() { + return timeBegin; + } + + public void setTimeBegin(Integer timeBegin) { + this.timeBegin = timeBegin; + } + + public DndSettingEntity timeEnd(Integer timeEnd) { + this.timeEnd = timeEnd; + return this; + } + + /** + * The end time of the DND period you want to block incoming calls. It should be an integer value between 1 and 1439. + * @return timeEnd + */ + @ApiModelProperty(value = "The end time of the DND period you want to block incoming calls. It should be an integer value between 1 and 1439.") + + + public Integer getTimeEnd() { + return timeEnd; + } + + public void setTimeEnd(Integer timeEnd) { + this.timeEnd = timeEnd; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DndSettingEntity dndSettingEntity = (DndSettingEntity) o; + return Objects.equals(this.omadacId, dndSettingEntity.omadacId) && + Objects.equals(this.siteId, dndSettingEntity.siteId) && + Objects.equals(this.enable, dndSettingEntity.enable) && + Objects.equals(this.dayMode, dndSettingEntity.dayMode) && + Objects.equals(this.timeBegin, dndSettingEntity.timeBegin) && + Objects.equals(this.timeEnd, dndSettingEntity.timeEnd); + } + + @Override + public int hashCode() { + return Objects.hash(omadacId, siteId, enable, dayMode, timeBegin, timeEnd); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DndSettingEntity {\n"); + + sb.append(" omadacId: ").append(toIndentedString(omadacId)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" dayMode: ").append(toIndentedString(dayMode)).append("\n"); + sb.append(" timeBegin: ").append(toIndentedString(timeBegin)).append("\n"); + sb.append(" timeEnd: ").append(toIndentedString(timeEnd)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsConfigOpenApiVo.java new file mode 100644 index 0000000..a1a0c8e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsConfigOpenApiVo.java @@ -0,0 +1,105 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * It is required when [dnsEnable] is true. + */ +@ApiModel(description = "It is required when [dnsEnable] is true.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DnsConfigOpenApiVo { + @JsonProperty("primary") + private String primary; + + @JsonProperty("secondary") + private String secondary; + + public DnsConfigOpenApiVo primary(String primary) { + this.primary = primary; + return this; + } + + /** + * Primary DNS + * @return primary + */ + @ApiModelProperty(required = true, value = "Primary DNS") + @NotNull + + + public String getPrimary() { + return primary; + } + + public void setPrimary(String primary) { + this.primary = primary; + } + + public DnsConfigOpenApiVo secondary(String secondary) { + this.secondary = secondary; + return this; + } + + /** + * Secondary DNS + * @return secondary + */ + @ApiModelProperty(value = "Secondary DNS") + + + public String getSecondary() { + return secondary; + } + + public void setSecondary(String secondary) { + this.secondary = secondary; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DnsConfigOpenApiVo dnsConfigOpenApiVo = (DnsConfigOpenApiVo) o; + return Objects.equals(this.primary, dnsConfigOpenApiVo.primary) && + Objects.equals(this.secondary, dnsConfigOpenApiVo.secondary); + } + + @Override + public int hashCode() { + return Objects.hash(primary, secondary); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DnsConfigOpenApiVo {\n"); + + sb.append(" primary: ").append(toIndentedString(primary)).append("\n"); + sb.append(" secondary: ").append(toIndentedString(secondary)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsProxySettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsProxySettingOpenApiVo.java new file mode 100644 index 0000000..15d4f6d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsProxySettingOpenApiVo.java @@ -0,0 +1,182 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DnsProxySettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DnsProxySettingOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("dnsSecSetting") + private DnsSecSettingOpenApiVo dnsSecSetting; + + @JsonProperty("dohSetting") + private DohSettingOpenApiVo dohSetting; + + @JsonProperty("dotSetting") + private DotSettingOpenApiVo dotSetting; + + public DnsProxySettingOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * DNS proxy setting enable status + * @return enable + */ + @ApiModelProperty(required = true, value = "DNS proxy setting enable status") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public DnsProxySettingOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * DNS proxy setting type. Type should be a value as follows: 0: DNSSEC, 1: DoH, 2: DoT + * @return type + */ + @ApiModelProperty(value = "DNS proxy setting type. Type should be a value as follows: 0: DNSSEC, 1: DoH, 2: DoT") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public DnsProxySettingOpenApiVo dnsSecSetting(DnsSecSettingOpenApiVo dnsSecSetting) { + this.dnsSecSetting = dnsSecSetting; + return this; + } + + /** + * Get dnsSecSetting + * @return dnsSecSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public DnsSecSettingOpenApiVo getDnsSecSetting() { + return dnsSecSetting; + } + + public void setDnsSecSetting(DnsSecSettingOpenApiVo dnsSecSetting) { + this.dnsSecSetting = dnsSecSetting; + } + + public DnsProxySettingOpenApiVo dohSetting(DohSettingOpenApiVo dohSetting) { + this.dohSetting = dohSetting; + return this; + } + + /** + * Get dohSetting + * @return dohSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public DohSettingOpenApiVo getDohSetting() { + return dohSetting; + } + + public void setDohSetting(DohSettingOpenApiVo dohSetting) { + this.dohSetting = dohSetting; + } + + public DnsProxySettingOpenApiVo dotSetting(DotSettingOpenApiVo dotSetting) { + this.dotSetting = dotSetting; + return this; + } + + /** + * Get dotSetting + * @return dotSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public DotSettingOpenApiVo getDotSetting() { + return dotSetting; + } + + public void setDotSetting(DotSettingOpenApiVo dotSetting) { + this.dotSetting = dotSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DnsProxySettingOpenApiVo dnsProxySettingOpenApiVo = (DnsProxySettingOpenApiVo) o; + return Objects.equals(this.enable, dnsProxySettingOpenApiVo.enable) && + Objects.equals(this.type, dnsProxySettingOpenApiVo.type) && + Objects.equals(this.dnsSecSetting, dnsProxySettingOpenApiVo.dnsSecSetting) && + Objects.equals(this.dohSetting, dnsProxySettingOpenApiVo.dohSetting) && + Objects.equals(this.dotSetting, dnsProxySettingOpenApiVo.dotSetting); + } + + @Override + public int hashCode() { + return Objects.hash(enable, type, dnsSecSetting, dohSetting, dotSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DnsProxySettingOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" dnsSecSetting: ").append(toIndentedString(dnsSecSetting)).append("\n"); + sb.append(" dohSetting: ").append(toIndentedString(dohSetting)).append("\n"); + sb.append(" dotSetting: ").append(toIndentedString(dotSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsSecSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsSecSettingOpenApiVo.java new file mode 100644 index 0000000..227826d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DnsSecSettingOpenApiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * DNS proxy DNSSEC setting, valid when parameter [type] is 0 + */ +@ApiModel(description = "DNS proxy DNSSEC setting, valid when parameter [type] is 0") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DnsSecSettingOpenApiVo { + @JsonProperty("servers") + @Valid + private List servers = new ArrayList<>(); + + @JsonProperty("replyPolicy") + private Integer replyPolicy; + + public DnsSecSettingOpenApiVo servers(List servers) { + this.servers = servers; + return this; + } + + public DnsSecSettingOpenApiVo addServersItem(String serversItem) { + this.servers.add(serversItem); + return this; + } + + /** + * DNS Server IP list, Up to 2 entries are allowed for the server list + * @return servers + */ + @ApiModelProperty(required = true, value = "DNS Server IP list, Up to 2 entries are allowed for the server list") + @NotNull + + + public List getServers() { + return servers; + } + + public void setServers(List servers) { + this.servers = servers; + } + + public DnsSecSettingOpenApiVo replyPolicy(Integer replyPolicy) { + this.replyPolicy = replyPolicy; + return this; + } + + /** + * Bogus DNS reply policy type. ReplyPolicy should be a value as follows: 0: Pass, 1: Drop + * @return replyPolicy + */ + @ApiModelProperty(required = true, value = "Bogus DNS reply policy type. ReplyPolicy should be a value as follows: 0: Pass, 1: Drop") + @NotNull + + + public Integer getReplyPolicy() { + return replyPolicy; + } + + public void setReplyPolicy(Integer replyPolicy) { + this.replyPolicy = replyPolicy; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DnsSecSettingOpenApiVo dnsSecSettingOpenApiVo = (DnsSecSettingOpenApiVo) o; + return Objects.equals(this.servers, dnsSecSettingOpenApiVo.servers) && + Objects.equals(this.replyPolicy, dnsSecSettingOpenApiVo.replyPolicy); + } + + @Override + public int hashCode() { + return Objects.hash(servers, replyPolicy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DnsSecSettingOpenApiVo {\n"); + + sb.append(" servers: ").append(toIndentedString(servers)).append("\n"); + sb.append(" replyPolicy: ").append(toIndentedString(replyPolicy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DohCustomizedServerOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DohCustomizedServerOpenApiVo.java new file mode 100644 index 0000000..a9d555d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DohCustomizedServerOpenApiVo.java @@ -0,0 +1,133 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Custom Service list. Up to 2 DoH default and custom Servers can be selected, setting the parameter [enable] to true indicates the selection of the custom server. Up to 8 custom servers can be configured + */ +@ApiModel(description = "Custom Service list. Up to 2 DoH default and custom Servers can be selected, setting the parameter [enable] to true indicates the selection of the custom server. Up to 8 custom servers can be configured") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DohCustomizedServerOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("name") + private String name; + + @JsonProperty("server") + private String server; + + public DohCustomizedServerOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Custom service enable status + * @return enable + */ + @ApiModelProperty(required = true, value = "Custom service enable status") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public DohCustomizedServerOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Custom service name, should contain 1 to 64 characters + * @return name + */ + @ApiModelProperty(required = true, value = "Custom service name, should contain 1 to 64 characters") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DohCustomizedServerOpenApiVo server(String server) { + this.server = server; + return this; + } + + /** + * Custom service IP or domain + * @return server + */ + @ApiModelProperty(required = true, value = "Custom service IP or domain") + @NotNull + +@Pattern(regexp="((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])){3}|([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})") + public String getServer() { + return server; + } + + public void setServer(String server) { + this.server = server; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DohCustomizedServerOpenApiVo dohCustomizedServerOpenApiVo = (DohCustomizedServerOpenApiVo) o; + return Objects.equals(this.enable, dohCustomizedServerOpenApiVo.enable) && + Objects.equals(this.name, dohCustomizedServerOpenApiVo.name) && + Objects.equals(this.server, dohCustomizedServerOpenApiVo.server); + } + + @Override + public int hashCode() { + return Objects.hash(enable, name, server); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DohCustomizedServerOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" server: ").append(toIndentedString(server)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DohSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DohSettingOpenApiVo.java new file mode 100644 index 0000000..ad30adf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DohSettingOpenApiVo.java @@ -0,0 +1,125 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * DNS proxy DoH setting, valid when parameter [type] is 1 + */ +@ApiModel(description = "DNS proxy DoH setting, valid when parameter [type] is 1") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DohSettingOpenApiVo { + @JsonProperty("defaultServers") + @Valid + private List defaultServers = null; + + @JsonProperty("customizedServers") + @Valid + private List customizedServers = null; + + public DohSettingOpenApiVo defaultServers(List defaultServers) { + this.defaultServers = defaultServers; + return this; + } + + public DohSettingOpenApiVo addDefaultServersItem(Integer defaultServersItem) { + if (this.defaultServers == null) { + this.defaultServers = new ArrayList<>(); + } + this.defaultServers.add(defaultServersItem); + return this; + } + + /** + * Preconfigured Server List. DefaultServers should be a value as follows: 0:Google, 1:Cloudflare, 4:CleanBrowsing, 5:Quad9_1, 6: Quad9_2. Up to 2 DoH default and custom servers can be selected. For example, defaultServers : [0, 1] represents that you have selected default services Google and Cloudflare + * @return defaultServers + */ + @ApiModelProperty(value = "Preconfigured Server List. DefaultServers should be a value as follows: 0:Google, 1:Cloudflare, 4:CleanBrowsing, 5:Quad9_1, 6: Quad9_2. Up to 2 DoH default and custom servers can be selected. For example, defaultServers : [0, 1] represents that you have selected default services Google and Cloudflare") + + + public List getDefaultServers() { + return defaultServers; + } + + public void setDefaultServers(List defaultServers) { + this.defaultServers = defaultServers; + } + + public DohSettingOpenApiVo customizedServers(List customizedServers) { + this.customizedServers = customizedServers; + return this; + } + + public DohSettingOpenApiVo addCustomizedServersItem(DohCustomizedServerOpenApiVo customizedServersItem) { + if (this.customizedServers == null) { + this.customizedServers = new ArrayList<>(); + } + this.customizedServers.add(customizedServersItem); + return this; + } + + /** + * Custom Service list. Up to 2 DoH default and custom Servers can be selected, setting the parameter [enable] to true indicates the selection of the custom server. Up to 8 custom servers can be configured + * @return customizedServers + */ + @ApiModelProperty(value = "Custom Service list. Up to 2 DoH default and custom Servers can be selected, setting the parameter [enable] to true indicates the selection of the custom server. Up to 8 custom servers can be configured") + + @Valid + + public List getCustomizedServers() { + return customizedServers; + } + + public void setCustomizedServers(List customizedServers) { + this.customizedServers = customizedServers; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DohSettingOpenApiVo dohSettingOpenApiVo = (DohSettingOpenApiVo) o; + return Objects.equals(this.defaultServers, dohSettingOpenApiVo.defaultServers) && + Objects.equals(this.customizedServers, dohSettingOpenApiVo.customizedServers); + } + + @Override + public int hashCode() { + return Objects.hash(defaultServers, customizedServers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DohSettingOpenApiVo {\n"); + + sb.append(" defaultServers: ").append(toIndentedString(defaultServers)).append("\n"); + sb.append(" customizedServers: ").append(toIndentedString(customizedServers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DomainOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DomainOpenApiVo.java new file mode 100644 index 0000000..5bed4db --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DomainOpenApiVo.java @@ -0,0 +1,131 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Domain info. Handle situations where there are ports, [type] value of 7 is required + */ +@ApiModel(description = "Domain info. Handle situations where there are ports, [type] value of 7 is required") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DomainOpenApiVo { + @JsonProperty("address") + private String address; + + @JsonProperty("port") + private String port; + + @JsonProperty("description") + private String description; + + public DomainOpenApiVo address(String address) { + this.address = address; + return this; + } + + /** + * Domain address, should be a valid domain address + * @return address + */ + @ApiModelProperty(required = true, value = "Domain address, should be a valid domain address") + @NotNull + + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public DomainOpenApiVo port(String port) { + this.port = port; + return this; + } + + /** + * Domain port, port should be within the range of 0-65535 or empty, e.g. 80,80-100 + * @return port + */ + @ApiModelProperty(value = "Domain port, port should be within the range of 0-65535 or empty, e.g. 80,80-100") + + + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port; + } + + public DomainOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Domain description, description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(value = "Domain description, description should contain 1 to 512 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DomainOpenApiVo domainOpenApiVo = (DomainOpenApiVo) o; + return Objects.equals(this.address, domainOpenApiVo.address) && + Objects.equals(this.port, domainOpenApiVo.port) && + Objects.equals(this.description, domainOpenApiVo.description); + } + + @Override + public int hashCode() { + return Objects.hash(address, port, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DomainOpenApiVo {\n"); + + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapInfoOpenApiVo.java new file mode 100644 index 0000000..f1cb361 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapInfoOpenApiVo.java @@ -0,0 +1,239 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Dot1xEapInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Dot1xEapInfoOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("model") + private String model; + + @JsonProperty("version") + private String version; + + @JsonProperty("status") + private String status; + + @JsonProperty("statusCategory") + private Integer statusCategory; + + @JsonProperty("ports") + @Valid + private List ports = null; + + public Dot1xEapInfoOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * EAP name + * @return name + */ + @ApiModelProperty(value = "EAP name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Dot1xEapInfoOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * EAP MAC address + * @return mac + */ + @ApiModelProperty(value = "EAP MAC address") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public Dot1xEapInfoOpenApiVo model(String model) { + this.model = model; + return this; + } + + /** + * EAP model + * @return model + */ + @ApiModelProperty(value = "EAP model") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public Dot1xEapInfoOpenApiVo version(String version) { + this.version = version; + return this; + } + + /** + * EAP firmwareVersion + * @return version + */ + @ApiModelProperty(value = "EAP firmwareVersion") + + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public Dot1xEapInfoOpenApiVo status(String status) { + this.status = status; + return this; + } + + /** + * Device status + * @return status + */ + @ApiModelProperty(value = "Device status") + + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public Dot1xEapInfoOpenApiVo statusCategory(Integer statusCategory) { + this.statusCategory = statusCategory; + return this; + } + + /** + * Device status category, 0: Disconnected, 1: Connected, 2: Pending,3: Heartbeat Missed, 4: Isolated + * @return statusCategory + */ + @ApiModelProperty(value = "Device status category, 0: Disconnected, 1: Connected, 2: Pending,3: Heartbeat Missed, 4: Isolated") + + + public Integer getStatusCategory() { + return statusCategory; + } + + public void setStatusCategory(Integer statusCategory) { + this.statusCategory = statusCategory; + } + + public Dot1xEapInfoOpenApiVo ports(List ports) { + this.ports = ports; + return this; + } + + public Dot1xEapInfoOpenApiVo addPortsItem(Dot1xEapPortInfoOpenApiVo portsItem) { + if (this.ports == null) { + this.ports = new ArrayList<>(); + } + this.ports.add(portsItem); + return this; + } + + /** + * EAP port information + * @return ports + */ + @ApiModelProperty(value = "EAP port information") + + @Valid + + public List getPorts() { + return ports; + } + + public void setPorts(List ports) { + this.ports = ports; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Dot1xEapInfoOpenApiVo dot1xEapInfoOpenApiVo = (Dot1xEapInfoOpenApiVo) o; + return Objects.equals(this.name, dot1xEapInfoOpenApiVo.name) && + Objects.equals(this.mac, dot1xEapInfoOpenApiVo.mac) && + Objects.equals(this.model, dot1xEapInfoOpenApiVo.model) && + Objects.equals(this.version, dot1xEapInfoOpenApiVo.version) && + Objects.equals(this.status, dot1xEapInfoOpenApiVo.status) && + Objects.equals(this.statusCategory, dot1xEapInfoOpenApiVo.statusCategory) && + Objects.equals(this.ports, dot1xEapInfoOpenApiVo.ports); + } + + @Override + public int hashCode() { + return Objects.hash(name, mac, model, version, status, statusCategory, ports); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Dot1xEapInfoOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" statusCategory: ").append(toIndentedString(statusCategory)).append("\n"); + sb.append(" ports: ").append(toIndentedString(ports)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapOpenApiVo.java new file mode 100644 index 0000000..01f850a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapOpenApiVo.java @@ -0,0 +1,166 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Dot1xEapOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Dot1xEapOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("radiusProfileId") + private String radiusProfileId; + + @JsonProperty("macFormat") + private Integer macFormat; + + @JsonProperty("eaps") + @Valid + private List eaps = null; + + public Dot1xEapOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * EAP 802.1x function enable status + * @return enable + */ + @ApiModelProperty(required = true, value = "EAP 802.1x function enable status") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public Dot1xEapOpenApiVo radiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + return this; + } + + /** + * This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface + * @return radiusProfileId + */ + @ApiModelProperty(value = "This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface") + + + public String getRadiusProfileId() { + return radiusProfileId; + } + + public void setRadiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + } + + public Dot1xEapOpenApiVo macFormat(Integer macFormat) { + this.macFormat = macFormat; + return this; + } + + /** + * Format of the MAC address. MacFormat should be a value as follows: 0: aabbccddeeff, 1: aa-bb-cc-dd-ee-ff, 2: aa:bb:cc:dd:ee:ff, 3: AABBCCDDEEFF, 4: AA-BB-CC-DD-EE-FF, 5: AA:BB:CC:DD:EE:FF + * @return macFormat + */ + @ApiModelProperty(value = "Format of the MAC address. MacFormat should be a value as follows: 0: aabbccddeeff, 1: aa-bb-cc-dd-ee-ff, 2: aa:bb:cc:dd:ee:ff, 3: AABBCCDDEEFF, 4: AA-BB-CC-DD-EE-FF, 5: AA:BB:CC:DD:EE:FF") + + + public Integer getMacFormat() { + return macFormat; + } + + public void setMacFormat(Integer macFormat) { + this.macFormat = macFormat; + } + + public Dot1xEapOpenApiVo eaps(List eaps) { + this.eaps = eaps; + return this; + } + + public Dot1xEapOpenApiVo addEapsItem(Dot1xEapSettingOpenApiVo eapsItem) { + if (this.eaps == null) { + this.eaps = new ArrayList<>(); + } + this.eaps.add(eapsItem); + return this; + } + + /** + * Enabled eap ports + * @return eaps + */ + @ApiModelProperty(value = "Enabled eap ports") + + @Valid + + public List getEaps() { + return eaps; + } + + public void setEaps(List eaps) { + this.eaps = eaps; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Dot1xEapOpenApiVo dot1xEapOpenApiVo = (Dot1xEapOpenApiVo) o; + return Objects.equals(this.enable, dot1xEapOpenApiVo.enable) && + Objects.equals(this.radiusProfileId, dot1xEapOpenApiVo.radiusProfileId) && + Objects.equals(this.macFormat, dot1xEapOpenApiVo.macFormat) && + Objects.equals(this.eaps, dot1xEapOpenApiVo.eaps); + } + + @Override + public int hashCode() { + return Objects.hash(enable, radiusProfileId, macFormat, eaps); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Dot1xEapOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" radiusProfileId: ").append(toIndentedString(radiusProfileId)).append("\n"); + sb.append(" macFormat: ").append(toIndentedString(macFormat)).append("\n"); + sb.append(" eaps: ").append(toIndentedString(eaps)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapPortInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapPortInfoOpenApiVo.java new file mode 100644 index 0000000..f20708c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapPortInfoOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * EAP port information + */ +@ApiModel(description = "EAP port information") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Dot1xEapPortInfoOpenApiVo { + @JsonProperty("port") + private String port; + + @JsonProperty("dot1xEnable") + private Boolean dot1xEnable; + + @JsonProperty("mabEnable") + private Boolean mabEnable; + + public Dot1xEapPortInfoOpenApiVo port(String port) { + this.port = port; + return this; + } + + /** + * Port number + * @return port + */ + @ApiModelProperty(value = "Port number") + + + public String getPort() { + return port; + } + + public void setPort(String port) { + this.port = port; + } + + public Dot1xEapPortInfoOpenApiVo dot1xEnable(Boolean dot1xEnable) { + this.dot1xEnable = dot1xEnable; + return this; + } + + /** + * 802.1x enable status + * @return dot1xEnable + */ + @ApiModelProperty(value = "802.1x enable status") + + + public Boolean getDot1xEnable() { + return dot1xEnable; + } + + public void setDot1xEnable(Boolean dot1xEnable) { + this.dot1xEnable = dot1xEnable; + } + + public Dot1xEapPortInfoOpenApiVo mabEnable(Boolean mabEnable) { + this.mabEnable = mabEnable; + return this; + } + + /** + * MAB enable status + * @return mabEnable + */ + @ApiModelProperty(value = "MAB enable status") + + + public Boolean getMabEnable() { + return mabEnable; + } + + public void setMabEnable(Boolean mabEnable) { + this.mabEnable = mabEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Dot1xEapPortInfoOpenApiVo dot1xEapPortInfoOpenApiVo = (Dot1xEapPortInfoOpenApiVo) o; + return Objects.equals(this.port, dot1xEapPortInfoOpenApiVo.port) && + Objects.equals(this.dot1xEnable, dot1xEapPortInfoOpenApiVo.dot1xEnable) && + Objects.equals(this.mabEnable, dot1xEapPortInfoOpenApiVo.mabEnable); + } + + @Override + public int hashCode() { + return Objects.hash(port, dot1xEnable, mabEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Dot1xEapPortInfoOpenApiVo {\n"); + + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" dot1xEnable: ").append(toIndentedString(dot1xEnable)).append("\n"); + sb.append(" mabEnable: ").append(toIndentedString(mabEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapSettingOpenApiVo.java new file mode 100644 index 0000000..8c16c5d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xEapSettingOpenApiVo.java @@ -0,0 +1,152 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Enabled eap ports + */ +@ApiModel(description = "Enabled eap ports") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Dot1xEapSettingOpenApiVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("dot1xPorts") + @Valid + private List dot1xPorts = null; + + @JsonProperty("mabPorts") + @Valid + private List mabPorts = null; + + public Dot1xEapSettingOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * MAC address of the EAP + * @return mac + */ + @ApiModelProperty(required = true, value = "MAC address of the EAP") + @NotNull + +@Pattern(regexp="[A-Fa-f0-9]{1}[02468aceACE]{1}([-:][A-Fa-f0-9]{2}){5}") + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public Dot1xEapSettingOpenApiVo dot1xPorts(List dot1xPorts) { + this.dot1xPorts = dot1xPorts; + return this; + } + + public Dot1xEapSettingOpenApiVo addDot1xPortsItem(String dot1xPortsItem) { + if (this.dot1xPorts == null) { + this.dot1xPorts = new ArrayList<>(); + } + this.dot1xPorts.add(dot1xPortsItem); + return this; + } + + /** + * EAP 802.1x enabled ports + * @return dot1xPorts + */ + @ApiModelProperty(value = "EAP 802.1x enabled ports") + + + public List getDot1xPorts() { + return dot1xPorts; + } + + public void setDot1xPorts(List dot1xPorts) { + this.dot1xPorts = dot1xPorts; + } + + public Dot1xEapSettingOpenApiVo mabPorts(List mabPorts) { + this.mabPorts = mabPorts; + return this; + } + + public Dot1xEapSettingOpenApiVo addMabPortsItem(String mabPortsItem) { + if (this.mabPorts == null) { + this.mabPorts = new ArrayList<>(); + } + this.mabPorts.add(mabPortsItem); + return this; + } + + /** + * EAP MAB enabled ports + * @return mabPorts + */ + @ApiModelProperty(value = "EAP MAB enabled ports") + + + public List getMabPorts() { + return mabPorts; + } + + public void setMabPorts(List mabPorts) { + this.mabPorts = mabPorts; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Dot1xEapSettingOpenApiVo dot1xEapSettingOpenApiVo = (Dot1xEapSettingOpenApiVo) o; + return Objects.equals(this.mac, dot1xEapSettingOpenApiVo.mac) && + Objects.equals(this.dot1xPorts, dot1xEapSettingOpenApiVo.dot1xPorts) && + Objects.equals(this.mabPorts, dot1xEapSettingOpenApiVo.mabPorts); + } + + @Override + public int hashCode() { + return Objects.hash(mac, dot1xPorts, mabPorts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Dot1xEapSettingOpenApiVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" dot1xPorts: ").append(toIndentedString(dot1xPorts)).append("\n"); + sb.append(" mabPorts: ").append(toIndentedString(mabPorts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xPortInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xPortInfoOpenApiVo.java new file mode 100644 index 0000000..7bf3c04 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xPortInfoOpenApiVo.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Switch port information + */ +@ApiModel(description = "Switch port information") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Dot1xPortInfoOpenApiVo { + @JsonProperty("port") + private Integer port; + + @JsonProperty("dot1xEnable") + private Boolean dot1xEnable; + + @JsonProperty("mabEnable") + private Boolean mabEnable; + + @JsonProperty("operation") + private String operation; + + public Dot1xPortInfoOpenApiVo port(Integer port) { + this.port = port; + return this; + } + + /** + * Port number + * @return port + */ + @ApiModelProperty(value = "Port number") + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public Dot1xPortInfoOpenApiVo dot1xEnable(Boolean dot1xEnable) { + this.dot1xEnable = dot1xEnable; + return this; + } + + /** + * 802.1x enable status + * @return dot1xEnable + */ + @ApiModelProperty(value = "802.1x enable status") + + + public Boolean getDot1xEnable() { + return dot1xEnable; + } + + public void setDot1xEnable(Boolean dot1xEnable) { + this.dot1xEnable = dot1xEnable; + } + + public Dot1xPortInfoOpenApiVo mabEnable(Boolean mabEnable) { + this.mabEnable = mabEnable; + return this; + } + + /** + * MAB enable status + * @return mabEnable + */ + @ApiModelProperty(value = "MAB enable status") + + + public Boolean getMabEnable() { + return mabEnable; + } + + public void setMabEnable(Boolean mabEnable) { + this.mabEnable = mabEnable; + } + + public Dot1xPortInfoOpenApiVo operation(String operation) { + this.operation = operation; + return this; + } + + /** + * switching or mirroring or aggregating + * @return operation + */ + @ApiModelProperty(value = "switching or mirroring or aggregating") + + + public String getOperation() { + return operation; + } + + public void setOperation(String operation) { + this.operation = operation; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Dot1xPortInfoOpenApiVo dot1xPortInfoOpenApiVo = (Dot1xPortInfoOpenApiVo) o; + return Objects.equals(this.port, dot1xPortInfoOpenApiVo.port) && + Objects.equals(this.dot1xEnable, dot1xPortInfoOpenApiVo.dot1xEnable) && + Objects.equals(this.mabEnable, dot1xPortInfoOpenApiVo.mabEnable) && + Objects.equals(this.operation, dot1xPortInfoOpenApiVo.operation); + } + + @Override + public int hashCode() { + return Objects.hash(port, dot1xEnable, mabEnable, operation); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Dot1xPortInfoOpenApiVo {\n"); + + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" dot1xEnable: ").append(toIndentedString(dot1xEnable)).append("\n"); + sb.append(" mabEnable: ").append(toIndentedString(mabEnable)).append("\n"); + sb.append(" operation: ").append(toIndentedString(operation)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchInfoOpenApiVo.java new file mode 100644 index 0000000..d814b54 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchInfoOpenApiVo.java @@ -0,0 +1,264 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Dot1xSwitchInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Dot1xSwitchInfoOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("model") + private String model; + + @JsonProperty("version") + private String version; + + @JsonProperty("status") + private String status; + + @JsonProperty("statusCategory") + private Integer statusCategory; + + @JsonProperty("addedInAdvanced") + private Boolean addedInAdvanced; + + @JsonProperty("ports") + @Valid + private List ports = null; + + public Dot1xSwitchInfoOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Switch name + * @return name + */ + @ApiModelProperty(value = "Switch name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Dot1xSwitchInfoOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Switch MAC address + * @return mac + */ + @ApiModelProperty(value = "Switch MAC address") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public Dot1xSwitchInfoOpenApiVo model(String model) { + this.model = model; + return this; + } + + /** + * Switch model + * @return model + */ + @ApiModelProperty(value = "Switch model") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public Dot1xSwitchInfoOpenApiVo version(String version) { + this.version = version; + return this; + } + + /** + * Switch firmwareVersion + * @return version + */ + @ApiModelProperty(value = "Switch firmwareVersion") + + + public String getVersion() { + return version; + } + + public void setVersion(String version) { + this.version = version; + } + + public Dot1xSwitchInfoOpenApiVo status(String status) { + this.status = status; + return this; + } + + /** + * Device status + * @return status + */ + @ApiModelProperty(value = "Device status") + + + public String getStatus() { + return status; + } + + public void setStatus(String status) { + this.status = status; + } + + public Dot1xSwitchInfoOpenApiVo statusCategory(Integer statusCategory) { + this.statusCategory = statusCategory; + return this; + } + + /** + * Device status category, 0: Disconnected, 1: Connected, 2: Pending,3: Heartbeat Missed, 4: Isolated + * @return statusCategory + */ + @ApiModelProperty(value = "Device status category, 0: Disconnected, 1: Connected, 2: Pending,3: Heartbeat Missed, 4: Isolated") + + + public Integer getStatusCategory() { + return statusCategory; + } + + public void setStatusCategory(Integer statusCategory) { + this.statusCategory = statusCategory; + } + + public Dot1xSwitchInfoOpenApiVo addedInAdvanced(Boolean addedInAdvanced) { + this.addedInAdvanced = addedInAdvanced; + return this; + } + + /** + * Whether the device is added offline + * @return addedInAdvanced + */ + @ApiModelProperty(value = "Whether the device is added offline") + + + public Boolean getAddedInAdvanced() { + return addedInAdvanced; + } + + public void setAddedInAdvanced(Boolean addedInAdvanced) { + this.addedInAdvanced = addedInAdvanced; + } + + public Dot1xSwitchInfoOpenApiVo ports(List ports) { + this.ports = ports; + return this; + } + + public Dot1xSwitchInfoOpenApiVo addPortsItem(Dot1xPortInfoOpenApiVo portsItem) { + if (this.ports == null) { + this.ports = new ArrayList<>(); + } + this.ports.add(portsItem); + return this; + } + + /** + * Switch port information + * @return ports + */ + @ApiModelProperty(value = "Switch port information") + + @Valid + + public List getPorts() { + return ports; + } + + public void setPorts(List ports) { + this.ports = ports; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Dot1xSwitchInfoOpenApiVo dot1xSwitchInfoOpenApiVo = (Dot1xSwitchInfoOpenApiVo) o; + return Objects.equals(this.name, dot1xSwitchInfoOpenApiVo.name) && + Objects.equals(this.mac, dot1xSwitchInfoOpenApiVo.mac) && + Objects.equals(this.model, dot1xSwitchInfoOpenApiVo.model) && + Objects.equals(this.version, dot1xSwitchInfoOpenApiVo.version) && + Objects.equals(this.status, dot1xSwitchInfoOpenApiVo.status) && + Objects.equals(this.statusCategory, dot1xSwitchInfoOpenApiVo.statusCategory) && + Objects.equals(this.addedInAdvanced, dot1xSwitchInfoOpenApiVo.addedInAdvanced) && + Objects.equals(this.ports, dot1xSwitchInfoOpenApiVo.ports); + } + + @Override + public int hashCode() { + return Objects.hash(name, mac, model, version, status, statusCategory, addedInAdvanced, ports); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Dot1xSwitchInfoOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" statusCategory: ").append(toIndentedString(statusCategory)).append("\n"); + sb.append(" addedInAdvanced: ").append(toIndentedString(addedInAdvanced)).append("\n"); + sb.append(" ports: ").append(toIndentedString(ports)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchOpenApiVo.java new file mode 100644 index 0000000..6c1f4a6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchOpenApiVo.java @@ -0,0 +1,266 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Dot1xSwitchOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Dot1xSwitchOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("radiusProfileId") + private String radiusProfileId; + + @JsonProperty("authMode") + private Integer authMode; + + @JsonProperty("authType") + private Integer authType; + + @JsonProperty("vlanAssign") + private Boolean vlanAssign; + + @JsonProperty("mab") + private Boolean mab; + + @JsonProperty("macFormat") + private Integer macFormat; + + @JsonProperty("switches") + @Valid + private List switches = null; + + public Dot1xSwitchOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Switch 802.1x function enable status + * @return enable + */ + @ApiModelProperty(required = true, value = "Switch 802.1x function enable status") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public Dot1xSwitchOpenApiVo radiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + return this; + } + + /** + * This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface + * @return radiusProfileId + */ + @ApiModelProperty(value = "This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface") + + + public String getRadiusProfileId() { + return radiusProfileId; + } + + public void setRadiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + } + + public Dot1xSwitchOpenApiVo authMode(Integer authMode) { + this.authMode = authMode; + return this; + } + + /** + * Mode of authentication protocol. AuthMode should be a value as follows: 0: PAP, 1: EAP + * @return authMode + */ + @ApiModelProperty(value = "Mode of authentication protocol. AuthMode should be a value as follows: 0: PAP, 1: EAP") + + + public Integer getAuthMode() { + return authMode; + } + + public void setAuthMode(Integer authMode) { + this.authMode = authMode; + } + + public Dot1xSwitchOpenApiVo authType(Integer authType) { + this.authType = authType; + return this; + } + + /** + * Type of the authentication. AuthType should be a value as follows: 0: MAC based, 1: Port based + * @return authType + */ + @ApiModelProperty(value = "Type of the authentication. AuthType should be a value as follows: 0: MAC based, 1: Port based") + + + public Integer getAuthType() { + return authType; + } + + public void setAuthType(Integer authType) { + this.authType = authType; + } + + public Dot1xSwitchOpenApiVo vlanAssign(Boolean vlanAssign) { + this.vlanAssign = vlanAssign; + return this; + } + + /** + * VLAN Assignment enable status + * @return vlanAssign + */ + @ApiModelProperty(value = "VLAN Assignment enable status") + + + public Boolean getVlanAssign() { + return vlanAssign; + } + + public void setVlanAssign(Boolean vlanAssign) { + this.vlanAssign = vlanAssign; + } + + public Dot1xSwitchOpenApiVo mab(Boolean mab) { + this.mab = mab; + return this; + } + + /** + * MAB enable status + * @return mab + */ + @ApiModelProperty(value = "MAB enable status") + + + public Boolean getMab() { + return mab; + } + + public void setMab(Boolean mab) { + this.mab = mab; + } + + public Dot1xSwitchOpenApiVo macFormat(Integer macFormat) { + this.macFormat = macFormat; + return this; + } + + /** + * Format of the MAC address. MacFormat should be a value as follows: 0: aabbccddeeff, 1: aa-bb-cc-dd-ee-ff, 2: aa:bb:cc:dd:ee:ff, 3: AABBCCDDEEFF, 4: AA-BB-CC-DD-EE-FF, 5: AA:BB:CC:DD:EE:FF + * @return macFormat + */ + @ApiModelProperty(value = "Format of the MAC address. MacFormat should be a value as follows: 0: aabbccddeeff, 1: aa-bb-cc-dd-ee-ff, 2: aa:bb:cc:dd:ee:ff, 3: AABBCCDDEEFF, 4: AA-BB-CC-DD-EE-FF, 5: AA:BB:CC:DD:EE:FF") + + + public Integer getMacFormat() { + return macFormat; + } + + public void setMacFormat(Integer macFormat) { + this.macFormat = macFormat; + } + + public Dot1xSwitchOpenApiVo switches(List switches) { + this.switches = switches; + return this; + } + + public Dot1xSwitchOpenApiVo addSwitchesItem(Dot1xSwitchSettingOpenApiVo switchesItem) { + if (this.switches == null) { + this.switches = new ArrayList<>(); + } + this.switches.add(switchesItem); + return this; + } + + /** + * Enabled switch ports, optional when update switch 802.1x setting + * @return switches + */ + @ApiModelProperty(value = "Enabled switch ports, optional when update switch 802.1x setting") + + @Valid + + public List getSwitches() { + return switches; + } + + public void setSwitches(List switches) { + this.switches = switches; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Dot1xSwitchOpenApiVo dot1xSwitchOpenApiVo = (Dot1xSwitchOpenApiVo) o; + return Objects.equals(this.enable, dot1xSwitchOpenApiVo.enable) && + Objects.equals(this.radiusProfileId, dot1xSwitchOpenApiVo.radiusProfileId) && + Objects.equals(this.authMode, dot1xSwitchOpenApiVo.authMode) && + Objects.equals(this.authType, dot1xSwitchOpenApiVo.authType) && + Objects.equals(this.vlanAssign, dot1xSwitchOpenApiVo.vlanAssign) && + Objects.equals(this.mab, dot1xSwitchOpenApiVo.mab) && + Objects.equals(this.macFormat, dot1xSwitchOpenApiVo.macFormat) && + Objects.equals(this.switches, dot1xSwitchOpenApiVo.switches); + } + + @Override + public int hashCode() { + return Objects.hash(enable, radiusProfileId, authMode, authType, vlanAssign, mab, macFormat, switches); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Dot1xSwitchOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" radiusProfileId: ").append(toIndentedString(radiusProfileId)).append("\n"); + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" vlanAssign: ").append(toIndentedString(vlanAssign)).append("\n"); + sb.append(" mab: ").append(toIndentedString(mab)).append("\n"); + sb.append(" macFormat: ").append(toIndentedString(macFormat)).append("\n"); + sb.append(" switches: ").append(toIndentedString(switches)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchSettingOpenApiVo.java new file mode 100644 index 0000000..6a4d849 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Dot1xSwitchSettingOpenApiVo.java @@ -0,0 +1,152 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Enabled switch ports, optional when update switch 802.1x setting + */ +@ApiModel(description = "Enabled switch ports, optional when update switch 802.1x setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Dot1xSwitchSettingOpenApiVo { + @JsonProperty("mac") + private String mac; + + @JsonProperty("dot1xPorts") + @Valid + private List dot1xPorts = null; + + @JsonProperty("mabPorts") + @Valid + private List mabPorts = null; + + public Dot1xSwitchSettingOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * MAC address of the switch + * @return mac + */ + @ApiModelProperty(required = true, value = "MAC address of the switch") + @NotNull + +@Pattern(regexp="[A-Fa-f0-9]{1}[02468aceACE]{1}([-:][A-Fa-f0-9]{2}){5}") + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public Dot1xSwitchSettingOpenApiVo dot1xPorts(List dot1xPorts) { + this.dot1xPorts = dot1xPorts; + return this; + } + + public Dot1xSwitchSettingOpenApiVo addDot1xPortsItem(Integer dot1xPortsItem) { + if (this.dot1xPorts == null) { + this.dot1xPorts = new ArrayList<>(); + } + this.dot1xPorts.add(dot1xPortsItem); + return this; + } + + /** + * Switch 802.1x enabled ports + * @return dot1xPorts + */ + @ApiModelProperty(value = "Switch 802.1x enabled ports") + + + public List getDot1xPorts() { + return dot1xPorts; + } + + public void setDot1xPorts(List dot1xPorts) { + this.dot1xPorts = dot1xPorts; + } + + public Dot1xSwitchSettingOpenApiVo mabPorts(List mabPorts) { + this.mabPorts = mabPorts; + return this; + } + + public Dot1xSwitchSettingOpenApiVo addMabPortsItem(Integer mabPortsItem) { + if (this.mabPorts == null) { + this.mabPorts = new ArrayList<>(); + } + this.mabPorts.add(mabPortsItem); + return this; + } + + /** + * Switch MAB enabled ports + * @return mabPorts + */ + @ApiModelProperty(value = "Switch MAB enabled ports") + + + public List getMabPorts() { + return mabPorts; + } + + public void setMabPorts(List mabPorts) { + this.mabPorts = mabPorts; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Dot1xSwitchSettingOpenApiVo dot1xSwitchSettingOpenApiVo = (Dot1xSwitchSettingOpenApiVo) o; + return Objects.equals(this.mac, dot1xSwitchSettingOpenApiVo.mac) && + Objects.equals(this.dot1xPorts, dot1xSwitchSettingOpenApiVo.dot1xPorts) && + Objects.equals(this.mabPorts, dot1xSwitchSettingOpenApiVo.mabPorts); + } + + @Override + public int hashCode() { + return Objects.hash(mac, dot1xPorts, mabPorts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Dot1xSwitchSettingOpenApiVo {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" dot1xPorts: ").append(toIndentedString(dot1xPorts)).append("\n"); + sb.append(" mabPorts: ").append(toIndentedString(mabPorts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DotCustomizedServerOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DotCustomizedServerOpenApiVo.java new file mode 100644 index 0000000..a776823 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DotCustomizedServerOpenApiVo.java @@ -0,0 +1,141 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Custom Service list. Up to 2 DoT default and custom Servers can be selected, setting the parameter [enable] to true indicates the selection of the custom server. Up to 8 custom servers can be configured + */ +@ApiModel(description = "Custom Service list. Up to 2 DoT default and custom Servers can be selected, setting the parameter [enable] to true indicates the selection of the custom server. Up to 8 custom servers can be configured") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DotCustomizedServerOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("name") + private String name; + + @JsonProperty("server") + @Valid + private List server = new ArrayList<>(); + + public DotCustomizedServerOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Custom service enable status + * @return enable + */ + @ApiModelProperty(required = true, value = "Custom service enable status") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public DotCustomizedServerOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Custom service name, should contain 1 to 64 characters + * @return name + */ + @ApiModelProperty(required = true, value = "Custom service name, should contain 1 to 64 characters") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public DotCustomizedServerOpenApiVo server(List server) { + this.server = server; + return this; + } + + public DotCustomizedServerOpenApiVo addServerItem(String serverItem) { + this.server.add(serverItem); + return this; + } + + /** + * Custom service IPs, up to 2 IPs can be configured + * @return server + */ + @ApiModelProperty(required = true, value = "Custom service IPs, up to 2 IPs can be configured") + @NotNull + + + public List getServer() { + return server; + } + + public void setServer(List server) { + this.server = server; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DotCustomizedServerOpenApiVo dotCustomizedServerOpenApiVo = (DotCustomizedServerOpenApiVo) o; + return Objects.equals(this.enable, dotCustomizedServerOpenApiVo.enable) && + Objects.equals(this.name, dotCustomizedServerOpenApiVo.name) && + Objects.equals(this.server, dotCustomizedServerOpenApiVo.server); + } + + @Override + public int hashCode() { + return Objects.hash(enable, name, server); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DotCustomizedServerOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" server: ").append(toIndentedString(server)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DotSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DotSettingOpenApiVo.java new file mode 100644 index 0000000..7df8a7d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DotSettingOpenApiVo.java @@ -0,0 +1,125 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * DNS proxy DoT setting, valid when parameter [type] is 2 + */ +@ApiModel(description = "DNS proxy DoT setting, valid when parameter [type] is 2") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DotSettingOpenApiVo { + @JsonProperty("defaultServers") + @Valid + private List defaultServers = null; + + @JsonProperty("customizedServers") + @Valid + private List customizedServers = null; + + public DotSettingOpenApiVo defaultServers(List defaultServers) { + this.defaultServers = defaultServers; + return this; + } + + public DotSettingOpenApiVo addDefaultServersItem(Integer defaultServersItem) { + if (this.defaultServers == null) { + this.defaultServers = new ArrayList<>(); + } + this.defaultServers.add(defaultServersItem); + return this; + } + + /** + * Preconfigured Server List. DefaultServers should be a value as follows: 0:Google, 1:Cloudflare, 2:OpenDNS, 3:Quad9, 4: CleanBrowsing. Up to 2 DoT default and custom servers can be selected. For example, defaultServers : [0, 1] represents that you have selected default services Google and Cloudflare + * @return defaultServers + */ + @ApiModelProperty(value = "Preconfigured Server List. DefaultServers should be a value as follows: 0:Google, 1:Cloudflare, 2:OpenDNS, 3:Quad9, 4: CleanBrowsing. Up to 2 DoT default and custom servers can be selected. For example, defaultServers : [0, 1] represents that you have selected default services Google and Cloudflare") + + + public List getDefaultServers() { + return defaultServers; + } + + public void setDefaultServers(List defaultServers) { + this.defaultServers = defaultServers; + } + + public DotSettingOpenApiVo customizedServers(List customizedServers) { + this.customizedServers = customizedServers; + return this; + } + + public DotSettingOpenApiVo addCustomizedServersItem(DotCustomizedServerOpenApiVo customizedServersItem) { + if (this.customizedServers == null) { + this.customizedServers = new ArrayList<>(); + } + this.customizedServers.add(customizedServersItem); + return this; + } + + /** + * Custom Service list. Up to 2 DoT default and custom Servers can be selected, setting the parameter [enable] to true indicates the selection of the custom server. Up to 8 custom servers can be configured + * @return customizedServers + */ + @ApiModelProperty(value = "Custom Service list. Up to 2 DoT default and custom Servers can be selected, setting the parameter [enable] to true indicates the selection of the custom server. Up to 8 custom servers can be configured") + + @Valid + + public List getCustomizedServers() { + return customizedServers; + } + + public void setCustomizedServers(List customizedServers) { + this.customizedServers = customizedServers; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DotSettingOpenApiVo dotSettingOpenApiVo = (DotSettingOpenApiVo) o; + return Objects.equals(this.defaultServers, dotSettingOpenApiVo.defaultServers) && + Objects.equals(this.customizedServers, dotSettingOpenApiVo.customizedServers); + } + + @Override + public int hashCode() { + return Objects.hash(defaultServers, customizedServers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DotSettingOpenApiVo {\n"); + + sb.append(" defaultServers: ").append(toIndentedString(defaultServers)).append("\n"); + sb.append(" customizedServers: ").append(toIndentedString(customizedServers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DpiSettings.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DpiSettings.java new file mode 100644 index 0000000..ea5039f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DpiSettings.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * DpiSettings + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DpiSettings { + @JsonProperty("dpi") + private Boolean dpi; + + @JsonProperty("loggingTraffic") + private Boolean loggingTraffic; + + public DpiSettings dpi(Boolean dpi) { + this.dpi = dpi; + return this; + } + + /** + * Enable dpi. true:enable / false:disable + * @return dpi + */ + @ApiModelProperty(required = true, value = "Enable dpi. true:enable / false:disable") + @NotNull + + + public Boolean getDpi() { + return dpi; + } + + public void setDpi(Boolean dpi) { + this.dpi = dpi; + } + + public DpiSettings loggingTraffic(Boolean loggingTraffic) { + this.loggingTraffic = loggingTraffic; + return this; + } + + /** + * Enable logging traffic. true:enable / false:disable + * @return loggingTraffic + */ + @ApiModelProperty(required = true, value = "Enable logging traffic. true:enable / false:disable") + @NotNull + + + public Boolean getLoggingTraffic() { + return loggingTraffic; + } + + public void setLoggingTraffic(Boolean loggingTraffic) { + this.loggingTraffic = loggingTraffic; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DpiSettings dpiSettings = (DpiSettings) o; + return Objects.equals(this.dpi, dpiSettings.dpi) && + Objects.equals(this.loggingTraffic, dpiSettings.loggingTraffic); + } + + @Override + public int hashCode() { + return Objects.hash(dpi, loggingTraffic); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DpiSettings {\n"); + + sb.append(" dpi: ").append(toIndentedString(dpi)).append("\n"); + sb.append(" loggingTraffic: ").append(toIndentedString(loggingTraffic)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DragSortIndexOpenapiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DragSortIndexOpenapiVo.java new file mode 100644 index 0000000..766b888 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/DragSortIndexOpenapiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * DragSort index entity + */ +@ApiModel(description = "DragSort index entity") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class DragSortIndexOpenapiVo { + @JsonProperty("type") + private String type; + + @JsonProperty("indexes") + @Valid + private Map indexes = new HashMap<>(); + + public DragSortIndexOpenapiVo type(String type) { + this.type = type; + return this; + } + + /** + * \"gateway\" or \"switch\" or \"eap\" + * @return type + */ + @ApiModelProperty(required = true, value = "\"gateway\" or \"switch\" or \"eap\"") + @NotNull + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public DragSortIndexOpenapiVo indexes(Map indexes) { + this.indexes = indexes; + return this; + } + + public DragSortIndexOpenapiVo putIndexesItem(String key, Integer indexesItem) { + this.indexes.put(key, indexesItem); + return this; + } + + /** + * The order in which items take effect, this object is a Map, the key is item ID and the value is the index you want to set. + * @return indexes + */ + @ApiModelProperty(required = true, value = "The order in which items take effect, this object is a Map, the key is item ID and the value is the index you want to set.") + @NotNull + + + public Map getIndexes() { + return indexes; + } + + public void setIndexes(Map indexes) { + this.indexes = indexes; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + DragSortIndexOpenapiVo dragSortIndexOpenapiVo = (DragSortIndexOpenapiVo) o; + return Objects.equals(this.type, dragSortIndexOpenapiVo.type) && + Objects.equals(this.indexes, dragSortIndexOpenapiVo.indexes); + } + + @Override + public int hashCode() { + return Objects.hash(type, indexes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class DragSortIndexOpenapiVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" indexes: ").append(toIndentedString(indexes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EapAclConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EapAclConfig.java new file mode 100644 index 0000000..feea948 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EapAclConfig.java @@ -0,0 +1,284 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * EapAclConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class EapAclConfig { + @JsonProperty("description") + private String description; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("protocols") + @Valid + private List protocols = new ArrayList<>(); + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = new ArrayList<>(); + + @JsonProperty("destinationIds") + @Valid + private List destinationIds = null; + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("destinationType") + private Integer destinationType; + + public EapAclConfig description(String description) { + this.description = description; + return this; + } + + /** + * ACL rule description, description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(required = true, value = "ACL rule description, description should contain 1 to 512 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public EapAclConfig status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: disable; 1: enable + * @return status + */ + @ApiModelProperty(required = true, value = "Status should be a value as follows: 0: disable; 1: enable") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public EapAclConfig policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * Policy should be a value as follows: 0: drop; 1: allow; + * @return policy + */ + @ApiModelProperty(required = true, value = "Policy should be a value as follows: 0: drop; 1: allow;") + @NotNull + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public EapAclConfig protocols(List protocols) { + this.protocols = protocols; + return this; + } + + public EapAclConfig addProtocolsItem(Integer protocolsItem) { + this.protocols.add(protocolsItem); + return this; + } + + /** + * For the values of protocols, refer to section 5.5 of the Open API Access Guide. + * @return protocols + */ + @ApiModelProperty(required = true, value = "For the values of protocols, refer to section 5.5 of the Open API Access Guide.") + @NotNull + + + public List getProtocols() { + return protocols; + } + + public void setProtocols(List protocols) { + this.protocols = protocols; + } + + public EapAclConfig sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public EapAclConfig addSourceIdsItem(String sourceIdsItem) { + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return sourceIds + */ + @ApiModelProperty(required = true, value = "Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public EapAclConfig destinationIds(List destinationIds) { + this.destinationIds = destinationIds; + return this; + } + + public EapAclConfig addDestinationIdsItem(String destinationIdsItem) { + if (this.destinationIds == null) { + this.destinationIds = new ArrayList<>(); + } + this.destinationIds.add(destinationIdsItem); + return this; + } + + /** + * Source IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return destinationIds + */ + @ApiModelProperty(value = "Source IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + + + public List getDestinationIds() { + return destinationIds; + } + + public void setDestinationIds(List destinationIds) { + this.destinationIds = destinationIds; + } + + public EapAclConfig sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group + * @return sourceType + */ + @ApiModelProperty(required = true, value = "SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public EapAclConfig destinationType(Integer destinationType) { + this.destinationType = destinationType; + return this; + } + + /** + * DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group + * @return destinationType + */ + @ApiModelProperty(required = true, value = "DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group") + @NotNull + + + public Integer getDestinationType() { + return destinationType; + } + + public void setDestinationType(Integer destinationType) { + this.destinationType = destinationType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EapAclConfig eapAclConfig = (EapAclConfig) o; + return Objects.equals(this.description, eapAclConfig.description) && + Objects.equals(this.status, eapAclConfig.status) && + Objects.equals(this.policy, eapAclConfig.policy) && + Objects.equals(this.protocols, eapAclConfig.protocols) && + Objects.equals(this.sourceIds, eapAclConfig.sourceIds) && + Objects.equals(this.destinationIds, eapAclConfig.destinationIds) && + Objects.equals(this.sourceType, eapAclConfig.sourceType) && + Objects.equals(this.destinationType, eapAclConfig.destinationType); + } + + @Override + public int hashCode() { + return Objects.hash(description, status, policy, protocols, sourceIds, destinationIds, sourceType, destinationType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EapAclConfig {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" protocols: ").append(toIndentedString(protocols)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" destinationIds: ").append(toIndentedString(destinationIds)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" destinationType: ").append(toIndentedString(destinationType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EapAclInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EapAclInfo.java new file mode 100644 index 0000000..c7dfb59 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EapAclInfo.java @@ -0,0 +1,334 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * EapAclInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class EapAclInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("index") + private Integer index; + + @JsonProperty("description") + private String description; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("protocols") + @Valid + private List protocols = new ArrayList<>(); + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = new ArrayList<>(); + + @JsonProperty("destinationIds") + @Valid + private List destinationIds = new ArrayList<>(); + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("destinationType") + private Integer destinationType; + + public EapAclInfo id(String id) { + this.id = id; + return this; + } + + /** + * ACL ID + * @return id + */ + @ApiModelProperty(required = true, value = "ACL ID") + @NotNull + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public EapAclInfo index(Integer index) { + this.index = index; + return this; + } + + /** + * Index + * @return index + */ + @ApiModelProperty(required = true, value = "Index") + @NotNull + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public EapAclInfo description(String description) { + this.description = description; + return this; + } + + /** + * ACL rule description, description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(required = true, value = "ACL rule description, description should contain 1 to 512 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public EapAclInfo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: disable; 1: enable + * @return status + */ + @ApiModelProperty(required = true, value = "Status should be a value as follows: 0: disable; 1: enable") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public EapAclInfo policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * Policy should be a value as follows: 0: drop; 1: allow; + * @return policy + */ + @ApiModelProperty(required = true, value = "Policy should be a value as follows: 0: drop; 1: allow;") + @NotNull + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public EapAclInfo protocols(List protocols) { + this.protocols = protocols; + return this; + } + + public EapAclInfo addProtocolsItem(Integer protocolsItem) { + this.protocols.add(protocolsItem); + return this; + } + + /** + * For the values of protocols, refer to section 5.5 of the Open API Access Guide. + * @return protocols + */ + @ApiModelProperty(required = true, value = "For the values of protocols, refer to section 5.5 of the Open API Access Guide.") + @NotNull + + + public List getProtocols() { + return protocols; + } + + public void setProtocols(List protocols) { + this.protocols = protocols; + } + + public EapAclInfo sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public EapAclInfo addSourceIdsItem(String sourceIdsItem) { + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return sourceIds + */ + @ApiModelProperty(required = true, value = "Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public EapAclInfo destinationIds(List destinationIds) { + this.destinationIds = destinationIds; + return this; + } + + public EapAclInfo addDestinationIdsItem(String destinationIdsItem) { + this.destinationIds.add(destinationIdsItem); + return this; + } + + /** + * Destination IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return destinationIds + */ + @ApiModelProperty(required = true, value = "Destination IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getDestinationIds() { + return destinationIds; + } + + public void setDestinationIds(List destinationIds) { + this.destinationIds = destinationIds; + } + + public EapAclInfo sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group. + * @return sourceType + */ + @ApiModelProperty(required = true, value = "SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group.") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public EapAclInfo destinationType(Integer destinationType) { + this.destinationType = destinationType; + return this; + } + + /** + * DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group + * @return destinationType + */ + @ApiModelProperty(required = true, value = "DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group") + @NotNull + + + public Integer getDestinationType() { + return destinationType; + } + + public void setDestinationType(Integer destinationType) { + this.destinationType = destinationType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EapAclInfo eapAclInfo = (EapAclInfo) o; + return Objects.equals(this.id, eapAclInfo.id) && + Objects.equals(this.index, eapAclInfo.index) && + Objects.equals(this.description, eapAclInfo.description) && + Objects.equals(this.status, eapAclInfo.status) && + Objects.equals(this.policy, eapAclInfo.policy) && + Objects.equals(this.protocols, eapAclInfo.protocols) && + Objects.equals(this.sourceIds, eapAclInfo.sourceIds) && + Objects.equals(this.destinationIds, eapAclInfo.destinationIds) && + Objects.equals(this.sourceType, eapAclInfo.sourceType) && + Objects.equals(this.destinationType, eapAclInfo.destinationType); + } + + @Override + public int hashCode() { + return Objects.hash(id, index, description, status, policy, protocols, sourceIds, destinationIds, sourceType, destinationType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EapAclInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" protocols: ").append(toIndentedString(protocols)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" destinationIds: ").append(toIndentedString(destinationIds)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" destinationType: ").append(toIndentedString(destinationType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EditFilterEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EditFilterEntity.java new file mode 100644 index 0000000..a4b5548 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EditFilterEntity.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * EditFilterEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class EditFilterEntity { + @JsonProperty("filterName") + private String filterName; + + @JsonProperty("description") + private String description; + + @JsonProperty("rules") + @Valid + private List rules = new ArrayList<>(); + + public EditFilterEntity filterName(String filterName) { + this.filterName = filterName; + return this; + } + + /** + * Filter name. It should be 1 - 128 characters + * @return filterName + */ + @ApiModelProperty(required = true, value = "Filter name. It should be 1 - 128 characters") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getFilterName() { + return filterName; + } + + public void setFilterName(String filterName) { + this.filterName = filterName; + } + + public EditFilterEntity description(String description) { + this.description = description; + return this; + } + + /** + * Description of filter. It should be 1 - 128 characters + * @return description + */ + @ApiModelProperty(value = "Description of filter. It should be 1 - 128 characters") + +@Pattern(regexp="^.{1,128}$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public EditFilterEntity rules(List rules) { + this.rules = rules; + return this; + } + + public EditFilterEntity addRulesItem(Integer rulesItem) { + this.rules.add(rulesItem); + return this; + } + + /** + * Rule ID list can be obtained from 'Get rule list' interface. + * @return rules + */ + @ApiModelProperty(required = true, value = "Rule ID list can be obtained from 'Get rule list' interface.") + @NotNull + + + public List getRules() { + return rules; + } + + public void setRules(List rules) { + this.rules = rules; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EditFilterEntity editFilterEntity = (EditFilterEntity) o; + return Objects.equals(this.filterName, editFilterEntity.filterName) && + Objects.equals(this.description, editFilterEntity.description) && + Objects.equals(this.rules, editFilterEntity.rules); + } + + @Override + public int hashCode() { + return Objects.hash(filterName, description, rules); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EditFilterEntity {\n"); + + sb.append(" filterName: ").append(toIndentedString(filterName)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EditRuleEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EditRuleEntity.java new file mode 100644 index 0000000..89a3e23 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/EditRuleEntity.java @@ -0,0 +1,191 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * EditRuleEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class EditRuleEntity { + @JsonProperty("ruleName") + private String ruleName; + + @JsonProperty("schedule") + private String schedule; + + @JsonProperty("qos") + private Boolean qos; + + @JsonProperty("qosClass") + private Integer qosClass; + + @JsonProperty("applications") + @Valid + private List applications = new ArrayList<>(); + + public EditRuleEntity ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Rule name. It should be 1 - 128 characters + * @return ruleName + */ + @ApiModelProperty(required = true, value = "Rule name. It should be 1 - 128 characters") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,126}[\\041-\\0176]$") + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public EditRuleEntity schedule(String schedule) { + this.schedule = schedule; + return this; + } + + /** + * Schedule profile ID, which can be queried by request: Get time range profile list. + * @return schedule + */ + @ApiModelProperty(required = true, value = "Schedule profile ID, which can be queried by request: Get time range profile list.") + @NotNull + + + public String getSchedule() { + return schedule; + } + + public void setSchedule(String schedule) { + this.schedule = schedule; + } + + public EditRuleEntity qos(Boolean qos) { + this.qos = qos; + return this; + } + + /** + * Enable qos. true:enable / false:disable + * @return qos + */ + @ApiModelProperty(required = true, value = "Enable qos. true:enable / false:disable") + @NotNull + + + public Boolean getQos() { + return qos; + } + + public void setQos(Boolean qos) { + this.qos = qos; + } + + public EditRuleEntity qosClass(Integer qosClass) { + this.qosClass = qosClass; + return this; + } + + /** + * The Class value selected in the Qos Class configuration, required when qos is enable. Valid values is 0: Others, 1: Class 1, 2: Class 2, 3: Class 3. + * @return qosClass + */ + @ApiModelProperty(value = "The Class value selected in the Qos Class configuration, required when qos is enable. Valid values is 0: Others, 1: Class 1, 2: Class 2, 3: Class 3.") + + + public Integer getQosClass() { + return qosClass; + } + + public void setQosClass(Integer qosClass) { + this.qosClass = qosClass; + } + + public EditRuleEntity applications(List applications) { + this.applications = applications; + return this; + } + + public EditRuleEntity addApplicationsItem(Integer applicationsItem) { + this.applications.add(applicationsItem); + return this; + } + + /** + * Application ID list can be obtained from 'Get application list' interface. + * @return applications + */ + @ApiModelProperty(required = true, value = "Application ID list can be obtained from 'Get application list' interface.") + @NotNull + + + public List getApplications() { + return applications; + } + + public void setApplications(List applications) { + this.applications = applications; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + EditRuleEntity editRuleEntity = (EditRuleEntity) o; + return Objects.equals(this.ruleName, editRuleEntity.ruleName) && + Objects.equals(this.schedule, editRuleEntity.schedule) && + Objects.equals(this.qos, editRuleEntity.qos) && + Objects.equals(this.qosClass, editRuleEntity.qosClass) && + Objects.equals(this.applications, editRuleEntity.applications); + } + + @Override + public int hashCode() { + return Objects.hash(ruleName, schedule, qos, qosClass, applications); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class EditRuleEntity {\n"); + + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); + sb.append(" qos: ").append(toIndentedString(qos)).append("\n"); + sb.append(" qosClass: ").append(toIndentedString(qosClass)).append("\n"); + sb.append(" applications: ").append(toIndentedString(applications)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExportDhcpReservationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExportDhcpReservationOpenApiVo.java new file mode 100644 index 0000000..e95fb39 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExportDhcpReservationOpenApiVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ExportDhcpReservationOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ExportDhcpReservationOpenApiVo { + @JsonProperty("interfaceId") + private String interfaceId; + + public ExportDhcpReservationOpenApiVo interfaceId(String interfaceId) { + this.interfaceId = interfaceId; + return this; + } + + /** + * This field represents LAN Network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface + * @return interfaceId + */ + @ApiModelProperty(required = true, value = "This field represents LAN Network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface") + @NotNull + + + public String getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExportDhcpReservationOpenApiVo exportDhcpReservationOpenApiVo = (ExportDhcpReservationOpenApiVo) o; + return Objects.equals(this.interfaceId, exportDhcpReservationOpenApiVo.interfaceId); + } + + @Override + public int hashCode() { + return Objects.hash(interfaceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExportDhcpReservationOpenApiVo {\n"); + + sb.append(" interfaceId: ").append(toIndentedString(interfaceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalRadiusSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalRadiusSetting.java new file mode 100644 index 0000000..3cc41bc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalRadiusSetting.java @@ -0,0 +1,259 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * External RADIUS Portal Setting. + */ +@ApiModel(description = "External RADIUS Portal Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ExternalRadiusSetting { + @JsonProperty("radiusProfileId") + private String radiusProfileId; + + @JsonProperty("authMode") + private Integer authMode; + + @JsonProperty("nasId") + private String nasId; + + @JsonProperty("portalCustom") + private Integer portalCustom; + + @JsonProperty("externalUrlScheme") + private String externalUrlScheme; + + @JsonProperty("externalUrl") + private String externalUrl; + + @JsonProperty("disconnectReq") + private Boolean disconnectReq; + + @JsonProperty("receiverPort") + private Integer receiverPort; + + public ExternalRadiusSetting radiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + return this; + } + + /** + * RADIUS profile ID. + * @return radiusProfileId + */ + @ApiModelProperty(required = true, value = "RADIUS profile ID.") + @NotNull + + + public String getRadiusProfileId() { + return radiusProfileId; + } + + public void setRadiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + } + + public ExternalRadiusSetting authMode(Integer authMode) { + this.authMode = authMode; + return this; + } + + /** + * RADIUS auth mode, should be a value as follows: 1: PAP; 2: CHAP + * @return authMode + */ + @ApiModelProperty(required = true, value = "RADIUS auth mode, should be a value as follows: 1: PAP; 2: CHAP") + @NotNull + + + public Integer getAuthMode() { + return authMode; + } + + public void setAuthMode(Integer authMode) { + this.authMode = authMode; + } + + public ExternalRadiusSetting nasId(String nasId) { + this.nasId = nasId; + return this; + } + + /** + * RADIUS Attribute: NasID, should contain 1 to 64 characters. + * @return nasId + */ + @ApiModelProperty(required = true, value = "RADIUS Attribute: NasID, should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getNasId() { + return nasId; + } + + public void setNasId(String nasId) { + this.nasId = nasId; + } + + public ExternalRadiusSetting portalCustom(Integer portalCustom) { + this.portalCustom = portalCustom; + return this; + } + + /** + * Portal customization, should be a value as follows: 1: Local Web Portal; 2: External Web Portal. + * @return portalCustom + */ + @ApiModelProperty(required = true, value = "Portal customization, should be a value as follows: 1: Local Web Portal; 2: External Web Portal.") + @NotNull + + + public Integer getPortalCustom() { + return portalCustom; + } + + public void setPortalCustom(Integer portalCustom) { + this.portalCustom = portalCustom; + } + + public ExternalRadiusSetting externalUrlScheme(String externalUrlScheme) { + this.externalUrlScheme = externalUrlScheme; + return this; + } + + /** + * External URL scheme, required when [portalCustom] is 2, value could be 'http' or 'https'. + * @return externalUrlScheme + */ + @ApiModelProperty(value = "External URL scheme, required when [portalCustom] is 2, value could be 'http' or 'https'.") + +@Pattern(regexp="http|https") + public String getExternalUrlScheme() { + return externalUrlScheme; + } + + public void setExternalUrlScheme(String externalUrlScheme) { + this.externalUrlScheme = externalUrlScheme; + } + + public ExternalRadiusSetting externalUrl(String externalUrl) { + this.externalUrl = externalUrl; + return this; + } + + /** + * External URL, required when [portalCustom] is 2 + * @return externalUrl + */ + @ApiModelProperty(value = "External URL, required when [portalCustom] is 2") + +@Pattern(regexp="^(([-a-zA-Z0-9@:%._+~#=]{2,256}\\.[a-z]{2,63})|(((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.)){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))((:([1-9]|[1-9]\\d|[1-9]\\d{2}|[1-9]\\d{3}|[1-5]\\d{4}|6[0-4]\\d{3}|65[0-4]\\d{2}|655[0-2]\\d|6553[0-5]))?)(/([-a-zA-Z0-9@:%_+.~#?&//=]*))?$") + public String getExternalUrl() { + return externalUrl; + } + + public void setExternalUrl(String externalUrl) { + this.externalUrl = externalUrl; + } + + public ExternalRadiusSetting disconnectReq(Boolean disconnectReq) { + this.disconnectReq = disconnectReq; + return this; + } + + /** + * Whether to support disconnect messages. + * @return disconnectReq + */ + @ApiModelProperty(value = "Whether to support disconnect messages.") + + + public Boolean getDisconnectReq() { + return disconnectReq; + } + + public void setDisconnectReq(Boolean disconnectReq) { + this.disconnectReq = disconnectReq; + } + + public ExternalRadiusSetting receiverPort(Integer receiverPort) { + this.receiverPort = receiverPort; + return this; + } + + /** + * Port for listening to disconnect messages, should be within the range of 1–65535. + * @return receiverPort + */ + @ApiModelProperty(value = "Port for listening to disconnect messages, should be within the range of 1–65535.") + + + public Integer getReceiverPort() { + return receiverPort; + } + + public void setReceiverPort(Integer receiverPort) { + this.receiverPort = receiverPort; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalRadiusSetting externalRadiusSetting = (ExternalRadiusSetting) o; + return Objects.equals(this.radiusProfileId, externalRadiusSetting.radiusProfileId) && + Objects.equals(this.authMode, externalRadiusSetting.authMode) && + Objects.equals(this.nasId, externalRadiusSetting.nasId) && + Objects.equals(this.portalCustom, externalRadiusSetting.portalCustom) && + Objects.equals(this.externalUrlScheme, externalRadiusSetting.externalUrlScheme) && + Objects.equals(this.externalUrl, externalRadiusSetting.externalUrl) && + Objects.equals(this.disconnectReq, externalRadiusSetting.disconnectReq) && + Objects.equals(this.receiverPort, externalRadiusSetting.receiverPort); + } + + @Override + public int hashCode() { + return Objects.hash(radiusProfileId, authMode, nasId, portalCustom, externalUrlScheme, externalUrl, disconnectReq, receiverPort); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalRadiusSetting {\n"); + + sb.append(" radiusProfileId: ").append(toIndentedString(radiusProfileId)).append("\n"); + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" nasId: ").append(toIndentedString(nasId)).append("\n"); + sb.append(" portalCustom: ").append(toIndentedString(portalCustom)).append("\n"); + sb.append(" externalUrlScheme: ").append(toIndentedString(externalUrlScheme)).append("\n"); + sb.append(" externalUrl: ").append(toIndentedString(externalUrl)).append("\n"); + sb.append(" disconnectReq: ").append(toIndentedString(disconnectReq)).append("\n"); + sb.append(" receiverPort: ").append(toIndentedString(receiverPort)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalRadiusSettingResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalRadiusSettingResOpenApiVo.java new file mode 100644 index 0000000..a083eff --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalRadiusSettingResOpenApiVo.java @@ -0,0 +1,278 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * External Radius Portal setting, required when [authType] is 2. + */ +@ApiModel(description = "External Radius Portal setting, required when [authType] is 2.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ExternalRadiusSettingResOpenApiVo { + @JsonProperty("radiusProfileId") + private String radiusProfileId; + + @JsonProperty("authMode") + private Integer authMode; + + @JsonProperty("nasId") + private String nasId; + + @JsonProperty("portalCustom") + private Integer portalCustom; + + @JsonProperty("externalUrlScheme") + private String externalUrlScheme; + + @JsonProperty("externalUrl") + private String externalUrl; + + @JsonProperty("disconnectReq") + private Boolean disconnectReq; + + @JsonProperty("receiverPort") + private Integer receiverPort; + + @JsonProperty("receiverPortStatus") + private Integer receiverPortStatus; + + public ExternalRadiusSettingResOpenApiVo radiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + return this; + } + + /** + * This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface + * @return radiusProfileId + */ + @ApiModelProperty(value = "This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface") + + + public String getRadiusProfileId() { + return radiusProfileId; + } + + public void setRadiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + } + + public ExternalRadiusSettingResOpenApiVo authMode(Integer authMode) { + this.authMode = authMode; + return this; + } + + /** + * RADIUS auth mode, should be a value as follows: 1: PAP; 2: CHAP + * @return authMode + */ + @ApiModelProperty(value = "RADIUS auth mode, should be a value as follows: 1: PAP; 2: CHAP") + + + public Integer getAuthMode() { + return authMode; + } + + public void setAuthMode(Integer authMode) { + this.authMode = authMode; + } + + public ExternalRadiusSettingResOpenApiVo nasId(String nasId) { + this.nasId = nasId; + return this; + } + + /** + * RADIUS Attribute: NasID, should contain 1 to 64 characters. + * @return nasId + */ + @ApiModelProperty(value = "RADIUS Attribute: NasID, should contain 1 to 64 characters.") + + + public String getNasId() { + return nasId; + } + + public void setNasId(String nasId) { + this.nasId = nasId; + } + + public ExternalRadiusSettingResOpenApiVo portalCustom(Integer portalCustom) { + this.portalCustom = portalCustom; + return this; + } + + /** + * Portal customization, should be a value as follows: 1: Local Web Portal; 2: External Web Portal. + * @return portalCustom + */ + @ApiModelProperty(value = "Portal customization, should be a value as follows: 1: Local Web Portal; 2: External Web Portal.") + + + public Integer getPortalCustom() { + return portalCustom; + } + + public void setPortalCustom(Integer portalCustom) { + this.portalCustom = portalCustom; + } + + public ExternalRadiusSettingResOpenApiVo externalUrlScheme(String externalUrlScheme) { + this.externalUrlScheme = externalUrlScheme; + return this; + } + + /** + * External URL scheme, required when [portalCustom] is 2, value could be 'http' or 'https'. + * @return externalUrlScheme + */ + @ApiModelProperty(value = "External URL scheme, required when [portalCustom] is 2, value could be 'http' or 'https'.") + + + public String getExternalUrlScheme() { + return externalUrlScheme; + } + + public void setExternalUrlScheme(String externalUrlScheme) { + this.externalUrlScheme = externalUrlScheme; + } + + public ExternalRadiusSettingResOpenApiVo externalUrl(String externalUrl) { + this.externalUrl = externalUrl; + return this; + } + + /** + * External URL, required when [portalCustom] is 2 + * @return externalUrl + */ + @ApiModelProperty(value = "External URL, required when [portalCustom] is 2") + + + public String getExternalUrl() { + return externalUrl; + } + + public void setExternalUrl(String externalUrl) { + this.externalUrl = externalUrl; + } + + public ExternalRadiusSettingResOpenApiVo disconnectReq(Boolean disconnectReq) { + this.disconnectReq = disconnectReq; + return this; + } + + /** + * Whether to support disconnect messages. Only for Omada Local Controller + * @return disconnectReq + */ + @ApiModelProperty(value = "Whether to support disconnect messages. Only for Omada Local Controller") + + + public Boolean getDisconnectReq() { + return disconnectReq; + } + + public void setDisconnectReq(Boolean disconnectReq) { + this.disconnectReq = disconnectReq; + } + + public ExternalRadiusSettingResOpenApiVo receiverPort(Integer receiverPort) { + this.receiverPort = receiverPort; + return this; + } + + /** + * Port for listening to disconnect messages, should be within the range of 1–65535.Only for Omada Local Controller + * @return receiverPort + */ + @ApiModelProperty(value = "Port for listening to disconnect messages, should be within the range of 1–65535.Only for Omada Local Controller") + + + public Integer getReceiverPort() { + return receiverPort; + } + + public void setReceiverPort(Integer receiverPort) { + this.receiverPort = receiverPort; + } + + public ExternalRadiusSettingResOpenApiVo receiverPortStatus(Integer receiverPortStatus) { + this.receiverPortStatus = receiverPortStatus; + return this; + } + + /** + * Port binding status, should be a value as follow: 1: Disconnect Requests port status running, 2: Disconnect Requests port status disable. Only for Omada Local Controller + * @return receiverPortStatus + */ + @ApiModelProperty(value = "Port binding status, should be a value as follow: 1: Disconnect Requests port status running, 2: Disconnect Requests port status disable. Only for Omada Local Controller") + + + public Integer getReceiverPortStatus() { + return receiverPortStatus; + } + + public void setReceiverPortStatus(Integer receiverPortStatus) { + this.receiverPortStatus = receiverPortStatus; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalRadiusSettingResOpenApiVo externalRadiusSettingResOpenApiVo = (ExternalRadiusSettingResOpenApiVo) o; + return Objects.equals(this.radiusProfileId, externalRadiusSettingResOpenApiVo.radiusProfileId) && + Objects.equals(this.authMode, externalRadiusSettingResOpenApiVo.authMode) && + Objects.equals(this.nasId, externalRadiusSettingResOpenApiVo.nasId) && + Objects.equals(this.portalCustom, externalRadiusSettingResOpenApiVo.portalCustom) && + Objects.equals(this.externalUrlScheme, externalRadiusSettingResOpenApiVo.externalUrlScheme) && + Objects.equals(this.externalUrl, externalRadiusSettingResOpenApiVo.externalUrl) && + Objects.equals(this.disconnectReq, externalRadiusSettingResOpenApiVo.disconnectReq) && + Objects.equals(this.receiverPort, externalRadiusSettingResOpenApiVo.receiverPort) && + Objects.equals(this.receiverPortStatus, externalRadiusSettingResOpenApiVo.receiverPortStatus); + } + + @Override + public int hashCode() { + return Objects.hash(radiusProfileId, authMode, nasId, portalCustom, externalUrlScheme, externalUrl, disconnectReq, receiverPort, receiverPortStatus); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalRadiusSettingResOpenApiVo {\n"); + + sb.append(" radiusProfileId: ").append(toIndentedString(radiusProfileId)).append("\n"); + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" nasId: ").append(toIndentedString(nasId)).append("\n"); + sb.append(" portalCustom: ").append(toIndentedString(portalCustom)).append("\n"); + sb.append(" externalUrlScheme: ").append(toIndentedString(externalUrlScheme)).append("\n"); + sb.append(" externalUrl: ").append(toIndentedString(externalUrl)).append("\n"); + sb.append(" disconnectReq: ").append(toIndentedString(disconnectReq)).append("\n"); + sb.append(" receiverPort: ").append(toIndentedString(receiverPort)).append("\n"); + sb.append(" receiverPortStatus: ").append(toIndentedString(receiverPortStatus)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalServerPortalSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalServerPortalSetting.java new file mode 100644 index 0000000..bfb4c4d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ExternalServerPortalSetting.java @@ -0,0 +1,181 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * External Server Portal Setting. + */ +@ApiModel(description = "External Server Portal Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ExternalServerPortalSetting { + @JsonProperty("hostType") + private Integer hostType; + + @JsonProperty("serverIp") + private String serverIp; + + @JsonProperty("serverPort") + private Integer serverPort; + + @JsonProperty("serverUrlScheme") + private String serverUrlScheme; + + @JsonProperty("serverUrl") + private String serverUrl; + + public ExternalServerPortalSetting hostType(Integer hostType) { + this.hostType = hostType; + return this; + } + + /** + * Host type, should be a value as follows: 1: IP; 2: URL + * @return hostType + */ + @ApiModelProperty(required = true, value = "Host type, should be a value as follows: 1: IP; 2: URL") + @NotNull + + + public Integer getHostType() { + return hostType; + } + + public void setHostType(Integer hostType) { + this.hostType = hostType; + } + + public ExternalServerPortalSetting serverIp(String serverIp) { + this.serverIp = serverIp; + return this; + } + + /** + * Server IP, required when [hostType] is 1, pattern as \"xx.xx.xx.xx\". + * @return serverIp + */ + @ApiModelProperty(value = "Server IP, required when [hostType] is 1, pattern as \"xx.xx.xx.xx\".") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getServerIp() { + return serverIp; + } + + public void setServerIp(String serverIp) { + this.serverIp = serverIp; + } + + public ExternalServerPortalSetting serverPort(Integer serverPort) { + this.serverPort = serverPort; + return this; + } + + /** + * Server port, required when [hostType] is 1, from 1 to 65535. + * @return serverPort + */ + @ApiModelProperty(value = "Server port, required when [hostType] is 1, from 1 to 65535.") + + + public Integer getServerPort() { + return serverPort; + } + + public void setServerPort(Integer serverPort) { + this.serverPort = serverPort; + } + + public ExternalServerPortalSetting serverUrlScheme(String serverUrlScheme) { + this.serverUrlScheme = serverUrlScheme; + return this; + } + + /** + * Server url scheme, required when [hostType] is 2, value is http or https. + * @return serverUrlScheme + */ + @ApiModelProperty(value = "Server url scheme, required when [hostType] is 2, value is http or https.") + +@Pattern(regexp="http|https") + public String getServerUrlScheme() { + return serverUrlScheme; + } + + public void setServerUrlScheme(String serverUrlScheme) { + this.serverUrlScheme = serverUrlScheme; + } + + public ExternalServerPortalSetting serverUrl(String serverUrl) { + this.serverUrl = serverUrl; + return this; + } + + /** + * Server url, required when [hostType] is 2. + * @return serverUrl + */ + @ApiModelProperty(value = "Server url, required when [hostType] is 2.") + +@Pattern(regexp="^(([-a-zA-Z0-9@:%._+~#=]{2,256}\\.[a-z]{2,63})|(((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.)){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))((:([1-9]|[1-9]\\d|[1-9]\\d{2}|[1-9]\\d{3}|[1-5]\\d{4}|6[0-4]\\d{3}|65[0-4]\\d{2}|655[0-2]\\d|6553[0-5]))?)(/([-a-zA-Z0-9@:%_+.~#?&//=]*))?$") + public String getServerUrl() { + return serverUrl; + } + + public void setServerUrl(String serverUrl) { + this.serverUrl = serverUrl; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ExternalServerPortalSetting externalServerPortalSetting = (ExternalServerPortalSetting) o; + return Objects.equals(this.hostType, externalServerPortalSetting.hostType) && + Objects.equals(this.serverIp, externalServerPortalSetting.serverIp) && + Objects.equals(this.serverPort, externalServerPortalSetting.serverPort) && + Objects.equals(this.serverUrlScheme, externalServerPortalSetting.serverUrlScheme) && + Objects.equals(this.serverUrl, externalServerPortalSetting.serverUrl); + } + + @Override + public int hashCode() { + return Objects.hash(hostType, serverIp, serverPort, serverUrlScheme, serverUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ExternalServerPortalSetting {\n"); + + sb.append(" hostType: ").append(toIndentedString(hostType)).append("\n"); + sb.append(" serverIp: ").append(toIndentedString(serverIp)).append("\n"); + sb.append(" serverPort: ").append(toIndentedString(serverPort)).append("\n"); + sb.append(" serverUrlScheme: ").append(toIndentedString(serverUrlScheme)).append("\n"); + sb.append(" serverUrl: ").append(toIndentedString(serverUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FamilyEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FamilyEntity.java new file mode 100644 index 0000000..8259dee --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FamilyEntity.java @@ -0,0 +1,126 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * FamilyEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class FamilyEntity { + @JsonProperty("familyName") + private String familyName; + + @JsonProperty("familyId") + private Integer familyId; + + @JsonProperty("description") + private String description; + + public FamilyEntity familyName(String familyName) { + this.familyName = familyName; + return this; + } + + /** + * Family name + * @return familyName + */ + @ApiModelProperty(value = "Family name") + + + public String getFamilyName() { + return familyName; + } + + public void setFamilyName(String familyName) { + this.familyName = familyName; + } + + public FamilyEntity familyId(Integer familyId) { + this.familyId = familyId; + return this; + } + + /** + * Family ID + * @return familyId + */ + @ApiModelProperty(value = "Family ID") + + + public Integer getFamilyId() { + return familyId; + } + + public void setFamilyId(Integer familyId) { + this.familyId = familyId; + } + + public FamilyEntity description(String description) { + this.description = description; + return this; + } + + /** + * Description of family + * @return description + */ + @ApiModelProperty(value = "Description of family") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FamilyEntity familyEntity = (FamilyEntity) o; + return Objects.equals(this.familyName, familyEntity.familyName) && + Objects.equals(this.familyId, familyEntity.familyId) && + Objects.equals(this.description, familyEntity.description); + } + + @Override + public int hashCode() { + return Objects.hash(familyName, familyId, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FamilyEntity {\n"); + + sb.append(" familyName: ").append(toIndentedString(familyName)).append("\n"); + sb.append(" familyId: ").append(toIndentedString(familyId)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FilterEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FilterEntity.java new file mode 100644 index 0000000..a63ab8b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FilterEntity.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * FilterEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class FilterEntity { + @JsonProperty("filterName") + private String filterName; + + @JsonProperty("filterId") + private Integer filterId; + + @JsonProperty("description") + private String description; + + @JsonProperty("rules") + @Valid + private List rules = null; + + public FilterEntity filterName(String filterName) { + this.filterName = filterName; + return this; + } + + /** + * Filter name + * @return filterName + */ + @ApiModelProperty(value = "Filter name") + + + public String getFilterName() { + return filterName; + } + + public void setFilterName(String filterName) { + this.filterName = filterName; + } + + public FilterEntity filterId(Integer filterId) { + this.filterId = filterId; + return this; + } + + /** + * Filter ID + * @return filterId + */ + @ApiModelProperty(value = "Filter ID") + + + public Integer getFilterId() { + return filterId; + } + + public void setFilterId(Integer filterId) { + this.filterId = filterId; + } + + public FilterEntity description(String description) { + this.description = description; + return this; + } + + /** + * Description of filter + * @return description + */ + @ApiModelProperty(value = "Description of filter") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public FilterEntity rules(List rules) { + this.rules = rules; + return this; + } + + public FilterEntity addRulesItem(RuleEntity rulesItem) { + if (this.rules == null) { + this.rules = new ArrayList<>(); + } + this.rules.add(rulesItem); + return this; + } + + /** + * Rule list + * @return rules + */ + @ApiModelProperty(value = "Rule list") + + @Valid + + public List getRules() { + return rules; + } + + public void setRules(List rules) { + this.rules = rules; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FilterEntity filterEntity = (FilterEntity) o; + return Objects.equals(this.filterName, filterEntity.filterName) && + Objects.equals(this.filterId, filterEntity.filterId) && + Objects.equals(this.description, filterEntity.description) && + Objects.equals(this.rules, filterEntity.rules); + } + + @Override + public int hashCode() { + return Objects.hash(filterName, filterId, description, rules); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FilterEntity {\n"); + + sb.append(" filterName: ").append(toIndentedString(filterName)).append("\n"); + sb.append(" filterId: ").append(toIndentedString(filterId)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" rules: ").append(toIndentedString(rules)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FirewallSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FirewallSetting.java new file mode 100644 index 0000000..5417c5c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/FirewallSetting.java @@ -0,0 +1,468 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * FirewallSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class FirewallSetting { + @JsonProperty("icmp") + private Integer icmp; + + @JsonProperty("other") + private Integer other; + + @JsonProperty("tcpClose") + private Integer tcpClose; + + @JsonProperty("tcpCloseWait") + private Integer tcpCloseWait; + + @JsonProperty("tcpEstablished") + private Integer tcpEstablished; + + @JsonProperty("tcpFinWait") + private Integer tcpFinWait; + + @JsonProperty("tcpLastAck") + private Integer tcpLastAck; + + @JsonProperty("tcpSynReceive") + private Integer tcpSynReceive; + + @JsonProperty("tcpSynSent") + private Integer tcpSynSent; + + @JsonProperty("tcpTimeWait") + private Integer tcpTimeWait; + + @JsonProperty("udpOther") + private Integer udpOther; + + @JsonProperty("udpStream") + private Integer udpStream; + + @JsonProperty("broadcastPing") + private Boolean broadcastPing; + + @JsonProperty("receiveRedirects") + private Boolean receiveRedirects; + + @JsonProperty("sendRedirects") + private Boolean sendRedirects; + + @JsonProperty("synCookies") + private Boolean synCookies; + + public FirewallSetting icmp(Integer icmp) { + this.icmp = icmp; + return this; + } + + /** + * ICMP should be within the range of 1–21474836. + * @return icmp + */ + @ApiModelProperty(required = true, value = "ICMP should be within the range of 1–21474836.") + @NotNull + + + public Integer getIcmp() { + return icmp; + } + + public void setIcmp(Integer icmp) { + this.icmp = icmp; + } + + public FirewallSetting other(Integer other) { + this.other = other; + return this; + } + + /** + * Other should be within the range of 1–21474836. + * @return other + */ + @ApiModelProperty(required = true, value = "Other should be within the range of 1–21474836.") + @NotNull + + + public Integer getOther() { + return other; + } + + public void setOther(Integer other) { + this.other = other; + } + + public FirewallSetting tcpClose(Integer tcpClose) { + this.tcpClose = tcpClose; + return this; + } + + /** + * TCP close should be within the range of 1–21474836. + * @return tcpClose + */ + @ApiModelProperty(required = true, value = "TCP close should be within the range of 1–21474836.") + @NotNull + + + public Integer getTcpClose() { + return tcpClose; + } + + public void setTcpClose(Integer tcpClose) { + this.tcpClose = tcpClose; + } + + public FirewallSetting tcpCloseWait(Integer tcpCloseWait) { + this.tcpCloseWait = tcpCloseWait; + return this; + } + + /** + * TCP close wait should be within the range of 1–21474836. + * @return tcpCloseWait + */ + @ApiModelProperty(required = true, value = "TCP close wait should be within the range of 1–21474836.") + @NotNull + + + public Integer getTcpCloseWait() { + return tcpCloseWait; + } + + public void setTcpCloseWait(Integer tcpCloseWait) { + this.tcpCloseWait = tcpCloseWait; + } + + public FirewallSetting tcpEstablished(Integer tcpEstablished) { + this.tcpEstablished = tcpEstablished; + return this; + } + + /** + * TCP established should be within the range of 1–21474836. + * @return tcpEstablished + */ + @ApiModelProperty(required = true, value = "TCP established should be within the range of 1–21474836.") + @NotNull + + + public Integer getTcpEstablished() { + return tcpEstablished; + } + + public void setTcpEstablished(Integer tcpEstablished) { + this.tcpEstablished = tcpEstablished; + } + + public FirewallSetting tcpFinWait(Integer tcpFinWait) { + this.tcpFinWait = tcpFinWait; + return this; + } + + /** + * TCP FIN wait should be within the range of 1–21474836. + * @return tcpFinWait + */ + @ApiModelProperty(required = true, value = "TCP FIN wait should be within the range of 1–21474836.") + @NotNull + + + public Integer getTcpFinWait() { + return tcpFinWait; + } + + public void setTcpFinWait(Integer tcpFinWait) { + this.tcpFinWait = tcpFinWait; + } + + public FirewallSetting tcpLastAck(Integer tcpLastAck) { + this.tcpLastAck = tcpLastAck; + return this; + } + + /** + * TCP last ACK should be within the range of 1–21474836. + * @return tcpLastAck + */ + @ApiModelProperty(required = true, value = "TCP last ACK should be within the range of 1–21474836.") + @NotNull + + + public Integer getTcpLastAck() { + return tcpLastAck; + } + + public void setTcpLastAck(Integer tcpLastAck) { + this.tcpLastAck = tcpLastAck; + } + + public FirewallSetting tcpSynReceive(Integer tcpSynReceive) { + this.tcpSynReceive = tcpSynReceive; + return this; + } + + /** + * TCP SYN receive should be within the range of 1–21474836. + * @return tcpSynReceive + */ + @ApiModelProperty(required = true, value = "TCP SYN receive should be within the range of 1–21474836.") + @NotNull + + + public Integer getTcpSynReceive() { + return tcpSynReceive; + } + + public void setTcpSynReceive(Integer tcpSynReceive) { + this.tcpSynReceive = tcpSynReceive; + } + + public FirewallSetting tcpSynSent(Integer tcpSynSent) { + this.tcpSynSent = tcpSynSent; + return this; + } + + /** + * TCP SYN sent should be within the range of 1–21474836. + * @return tcpSynSent + */ + @ApiModelProperty(required = true, value = "TCP SYN sent should be within the range of 1–21474836.") + @NotNull + + + public Integer getTcpSynSent() { + return tcpSynSent; + } + + public void setTcpSynSent(Integer tcpSynSent) { + this.tcpSynSent = tcpSynSent; + } + + public FirewallSetting tcpTimeWait(Integer tcpTimeWait) { + this.tcpTimeWait = tcpTimeWait; + return this; + } + + /** + * TCP time wait should be within the range of 1–21474836. + * @return tcpTimeWait + */ + @ApiModelProperty(required = true, value = "TCP time wait should be within the range of 1–21474836.") + @NotNull + + + public Integer getTcpTimeWait() { + return tcpTimeWait; + } + + public void setTcpTimeWait(Integer tcpTimeWait) { + this.tcpTimeWait = tcpTimeWait; + } + + public FirewallSetting udpOther(Integer udpOther) { + this.udpOther = udpOther; + return this; + } + + /** + * UDP other should be within the range of 1–21474836. + * @return udpOther + */ + @ApiModelProperty(required = true, value = "UDP other should be within the range of 1–21474836.") + @NotNull + + + public Integer getUdpOther() { + return udpOther; + } + + public void setUdpOther(Integer udpOther) { + this.udpOther = udpOther; + } + + public FirewallSetting udpStream(Integer udpStream) { + this.udpStream = udpStream; + return this; + } + + /** + * UDP stream should be within the range of 1–21474836. + * @return udpStream + */ + @ApiModelProperty(required = true, value = "UDP stream should be within the range of 1–21474836.") + @NotNull + + + public Integer getUdpStream() { + return udpStream; + } + + public void setUdpStream(Integer udpStream) { + this.udpStream = udpStream; + } + + public FirewallSetting broadcastPing(Boolean broadcastPing) { + this.broadcastPing = broadcastPing; + return this; + } + + /** + * Broadcast ping of the firewall setting. + * @return broadcastPing + */ + @ApiModelProperty(required = true, value = "Broadcast ping of the firewall setting.") + @NotNull + + + public Boolean getBroadcastPing() { + return broadcastPing; + } + + public void setBroadcastPing(Boolean broadcastPing) { + this.broadcastPing = broadcastPing; + } + + public FirewallSetting receiveRedirects(Boolean receiveRedirects) { + this.receiveRedirects = receiveRedirects; + return this; + } + + /** + * Receive redirects of the firewall setting. + * @return receiveRedirects + */ + @ApiModelProperty(required = true, value = "Receive redirects of the firewall setting.") + @NotNull + + + public Boolean getReceiveRedirects() { + return receiveRedirects; + } + + public void setReceiveRedirects(Boolean receiveRedirects) { + this.receiveRedirects = receiveRedirects; + } + + public FirewallSetting sendRedirects(Boolean sendRedirects) { + this.sendRedirects = sendRedirects; + return this; + } + + /** + * Send redirects of the firewall setting. + * @return sendRedirects + */ + @ApiModelProperty(required = true, value = "Send redirects of the firewall setting.") + @NotNull + + + public Boolean getSendRedirects() { + return sendRedirects; + } + + public void setSendRedirects(Boolean sendRedirects) { + this.sendRedirects = sendRedirects; + } + + public FirewallSetting synCookies(Boolean synCookies) { + this.synCookies = synCookies; + return this; + } + + /** + * SYN Cookies of the firewall setting. + * @return synCookies + */ + @ApiModelProperty(required = true, value = "SYN Cookies of the firewall setting.") + @NotNull + + + public Boolean getSynCookies() { + return synCookies; + } + + public void setSynCookies(Boolean synCookies) { + this.synCookies = synCookies; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + FirewallSetting firewallSetting = (FirewallSetting) o; + return Objects.equals(this.icmp, firewallSetting.icmp) && + Objects.equals(this.other, firewallSetting.other) && + Objects.equals(this.tcpClose, firewallSetting.tcpClose) && + Objects.equals(this.tcpCloseWait, firewallSetting.tcpCloseWait) && + Objects.equals(this.tcpEstablished, firewallSetting.tcpEstablished) && + Objects.equals(this.tcpFinWait, firewallSetting.tcpFinWait) && + Objects.equals(this.tcpLastAck, firewallSetting.tcpLastAck) && + Objects.equals(this.tcpSynReceive, firewallSetting.tcpSynReceive) && + Objects.equals(this.tcpSynSent, firewallSetting.tcpSynSent) && + Objects.equals(this.tcpTimeWait, firewallSetting.tcpTimeWait) && + Objects.equals(this.udpOther, firewallSetting.udpOther) && + Objects.equals(this.udpStream, firewallSetting.udpStream) && + Objects.equals(this.broadcastPing, firewallSetting.broadcastPing) && + Objects.equals(this.receiveRedirects, firewallSetting.receiveRedirects) && + Objects.equals(this.sendRedirects, firewallSetting.sendRedirects) && + Objects.equals(this.synCookies, firewallSetting.synCookies); + } + + @Override + public int hashCode() { + return Objects.hash(icmp, other, tcpClose, tcpCloseWait, tcpEstablished, tcpFinWait, tcpLastAck, tcpSynReceive, tcpSynSent, tcpTimeWait, udpOther, udpStream, broadcastPing, receiveRedirects, sendRedirects, synCookies); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class FirewallSetting {\n"); + + sb.append(" icmp: ").append(toIndentedString(icmp)).append("\n"); + sb.append(" other: ").append(toIndentedString(other)).append("\n"); + sb.append(" tcpClose: ").append(toIndentedString(tcpClose)).append("\n"); + sb.append(" tcpCloseWait: ").append(toIndentedString(tcpCloseWait)).append("\n"); + sb.append(" tcpEstablished: ").append(toIndentedString(tcpEstablished)).append("\n"); + sb.append(" tcpFinWait: ").append(toIndentedString(tcpFinWait)).append("\n"); + sb.append(" tcpLastAck: ").append(toIndentedString(tcpLastAck)).append("\n"); + sb.append(" tcpSynReceive: ").append(toIndentedString(tcpSynReceive)).append("\n"); + sb.append(" tcpSynSent: ").append(toIndentedString(tcpSynSent)).append("\n"); + sb.append(" tcpTimeWait: ").append(toIndentedString(tcpTimeWait)).append("\n"); + sb.append(" udpOther: ").append(toIndentedString(udpOther)).append("\n"); + sb.append(" udpStream: ").append(toIndentedString(udpStream)).append("\n"); + sb.append(" broadcastPing: ").append(toIndentedString(broadcastPing)).append("\n"); + sb.append(" receiveRedirects: ").append(toIndentedString(receiveRedirects)).append("\n"); + sb.append(" sendRedirects: ").append(toIndentedString(sendRedirects)).append("\n"); + sb.append(" synCookies: ").append(toIndentedString(synCookies)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclConfig.java new file mode 100644 index 0000000..3ef64be --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclConfig.java @@ -0,0 +1,414 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GatewayAclConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayAclConfig { + @JsonProperty("description") + private String description; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("protocols") + @Valid + private List protocols = new ArrayList<>(); + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = new ArrayList<>(); + + @JsonProperty("destinationIds") + @Valid + private List destinationIds = null; + + @JsonProperty("syslog") + private Boolean syslog; + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("destinationType") + private Integer destinationType; + + @JsonProperty("direction") + private GatewayDirectionEntity direction; + + @JsonProperty("stateMode") + private Integer stateMode; + + @JsonProperty("states") + private GatewayAclStatesEntity states; + + @JsonProperty("timeRangeId") + private String timeRangeId; + + public GatewayAclConfig description(String description) { + this.description = description; + return this; + } + + /** + * ACL rule description, description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(required = true, value = "ACL rule description, description should contain 1 to 512 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public GatewayAclConfig status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: disable; 1: enable + * @return status + */ + @ApiModelProperty(required = true, value = "Status should be a value as follows: 0: disable; 1: enable") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public GatewayAclConfig policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * Policy should be a value as follows: 0: drop; 1: allow; + * @return policy + */ + @ApiModelProperty(required = true, value = "Policy should be a value as follows: 0: drop; 1: allow;") + @NotNull + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public GatewayAclConfig protocols(List protocols) { + this.protocols = protocols; + return this; + } + + public GatewayAclConfig addProtocolsItem(Integer protocolsItem) { + this.protocols.add(protocolsItem); + return this; + } + + /** + * For the values of protocols, refer to section 5.5 of the Open API Access Guide. + * @return protocols + */ + @ApiModelProperty(required = true, value = "For the values of protocols, refer to section 5.5 of the Open API Access Guide.") + @NotNull + + + public List getProtocols() { + return protocols; + } + + public void setProtocols(List protocols) { + this.protocols = protocols; + } + + public GatewayAclConfig sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public GatewayAclConfig addSourceIdsItem(String sourceIdsItem) { + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return sourceIds + */ + @ApiModelProperty(required = true, value = "Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public GatewayAclConfig destinationIds(List destinationIds) { + this.destinationIds = destinationIds; + return this; + } + + public GatewayAclConfig addDestinationIdsItem(String destinationIdsItem) { + if (this.destinationIds == null) { + this.destinationIds = new ArrayList<>(); + } + this.destinationIds.add(destinationIdsItem); + return this; + } + + /** + * Source IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return destinationIds + */ + @ApiModelProperty(value = "Source IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + + + public List getDestinationIds() { + return destinationIds; + } + + public void setDestinationIds(List destinationIds) { + this.destinationIds = destinationIds; + } + + public GatewayAclConfig syslog(Boolean syslog) { + this.syslog = syslog; + return this; + } + + /** + * Enable remote log + * @return syslog + */ + @ApiModelProperty(required = true, value = "Enable remote log") + @NotNull + + + public Boolean getSyslog() { + return syslog; + } + + public void setSyslog(Boolean syslog) { + this.syslog = syslog; + } + + public GatewayAclConfig sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group. + * @return sourceType + */ + @ApiModelProperty(required = true, value = "SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group.") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public GatewayAclConfig destinationType(Integer destinationType) { + this.destinationType = destinationType; + return this; + } + + /** + * DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group;10: Domain Group. + * @return destinationType + */ + @ApiModelProperty(required = true, value = "DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group;10: Domain Group.") + @NotNull + + + public Integer getDestinationType() { + return destinationType; + } + + public void setDestinationType(Integer destinationType) { + this.destinationType = destinationType; + } + + public GatewayAclConfig direction(GatewayDirectionEntity direction) { + this.direction = direction; + return this; + } + + /** + * Get direction + * @return direction + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public GatewayDirectionEntity getDirection() { + return direction; + } + + public void setDirection(GatewayDirectionEntity direction) { + this.direction = direction; + } + + public GatewayAclConfig stateMode(Integer stateMode) { + this.stateMode = stateMode; + return this; + } + + /** + * StateMode should be a value as follows: 0: auto; 1: manual + * @return stateMode + */ + @ApiModelProperty(required = true, value = "StateMode should be a value as follows: 0: auto; 1: manual") + @NotNull + + + public Integer getStateMode() { + return stateMode; + } + + public void setStateMode(Integer stateMode) { + this.stateMode = stateMode; + } + + public GatewayAclConfig states(GatewayAclStatesEntity states) { + this.states = states; + return this; + } + + /** + * Get states + * @return states + */ + @ApiModelProperty(value = "") + + @Valid + + public GatewayAclStatesEntity getStates() { + return states; + } + + public void setStates(GatewayAclStatesEntity states) { + this.states = states; + } + + public GatewayAclConfig timeRangeId(String timeRangeId) { + this.timeRangeId = timeRangeId; + return this; + } + + /** + * Gateway ACL time range ID. + * @return timeRangeId + */ + @ApiModelProperty(value = "Gateway ACL time range ID.") + + + public String getTimeRangeId() { + return timeRangeId; + } + + public void setTimeRangeId(String timeRangeId) { + this.timeRangeId = timeRangeId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayAclConfig gatewayAclConfig = (GatewayAclConfig) o; + return Objects.equals(this.description, gatewayAclConfig.description) && + Objects.equals(this.status, gatewayAclConfig.status) && + Objects.equals(this.policy, gatewayAclConfig.policy) && + Objects.equals(this.protocols, gatewayAclConfig.protocols) && + Objects.equals(this.sourceIds, gatewayAclConfig.sourceIds) && + Objects.equals(this.destinationIds, gatewayAclConfig.destinationIds) && + Objects.equals(this.syslog, gatewayAclConfig.syslog) && + Objects.equals(this.sourceType, gatewayAclConfig.sourceType) && + Objects.equals(this.destinationType, gatewayAclConfig.destinationType) && + Objects.equals(this.direction, gatewayAclConfig.direction) && + Objects.equals(this.stateMode, gatewayAclConfig.stateMode) && + Objects.equals(this.states, gatewayAclConfig.states) && + Objects.equals(this.timeRangeId, gatewayAclConfig.timeRangeId); + } + + @Override + public int hashCode() { + return Objects.hash(description, status, policy, protocols, sourceIds, destinationIds, syslog, sourceType, destinationType, direction, stateMode, states, timeRangeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayAclConfig {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" protocols: ").append(toIndentedString(protocols)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" destinationIds: ").append(toIndentedString(destinationIds)).append("\n"); + sb.append(" syslog: ").append(toIndentedString(syslog)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" destinationType: ").append(toIndentedString(destinationType)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" stateMode: ").append(toIndentedString(stateMode)).append("\n"); + sb.append(" states: ").append(toIndentedString(states)).append("\n"); + sb.append(" timeRangeId: ").append(toIndentedString(timeRangeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclConfigModeEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclConfigModeEntity.java new file mode 100644 index 0000000..4c3ec54 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclConfigModeEntity.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * GatewayAclConfigModeEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayAclConfigModeEntity { + @JsonProperty("mode") + private Integer mode; + + public GatewayAclConfigModeEntity mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Gateway acl config mode should be a value as follows: 0: Through profiles; 1: Custom + * @return mode + */ + @ApiModelProperty(required = true, value = "Gateway acl config mode should be a value as follows: 0: Through profiles; 1: Custom") + @NotNull + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayAclConfigModeEntity gatewayAclConfigModeEntity = (GatewayAclConfigModeEntity) o; + return Objects.equals(this.mode, gatewayAclConfigModeEntity.mode); + } + + @Override + public int hashCode() { + return Objects.hash(mode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayAclConfigModeEntity {\n"); + + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclInfo.java new file mode 100644 index 0000000..5e23298 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclInfo.java @@ -0,0 +1,463 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GatewayAclInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayAclInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("index") + private Integer index; + + @JsonProperty("description") + private String description; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("protocols") + @Valid + private List protocols = new ArrayList<>(); + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = new ArrayList<>(); + + @JsonProperty("destinationIds") + @Valid + private List destinationIds = new ArrayList<>(); + + @JsonProperty("syslog") + private Boolean syslog; + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("destinationType") + private Integer destinationType; + + @JsonProperty("direction") + private GatewayDirectionEntity direction; + + @JsonProperty("stateMode") + private Integer stateMode; + + @JsonProperty("states") + private GatewayAclStatesEntity states; + + @JsonProperty("timeRangeId") + private String timeRangeId; + + public GatewayAclInfo id(String id) { + this.id = id; + return this; + } + + /** + * ACL ID + * @return id + */ + @ApiModelProperty(required = true, value = "ACL ID") + @NotNull + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GatewayAclInfo index(Integer index) { + this.index = index; + return this; + } + + /** + * Index + * @return index + */ + @ApiModelProperty(required = true, value = "Index") + @NotNull + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public GatewayAclInfo description(String description) { + this.description = description; + return this; + } + + /** + * ACL rule description, description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(required = true, value = "ACL rule description, description should contain 1 to 512 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public GatewayAclInfo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: disable; 1: enable + * @return status + */ + @ApiModelProperty(required = true, value = "Status should be a value as follows: 0: disable; 1: enable") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public GatewayAclInfo policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * Policy should be a value as follows: 0: drop; 1: allow; + * @return policy + */ + @ApiModelProperty(required = true, value = "Policy should be a value as follows: 0: drop; 1: allow;") + @NotNull + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public GatewayAclInfo protocols(List protocols) { + this.protocols = protocols; + return this; + } + + public GatewayAclInfo addProtocolsItem(Integer protocolsItem) { + this.protocols.add(protocolsItem); + return this; + } + + /** + * For the values of protocols, refer to section 5.5 of the Open API Access Guide. + * @return protocols + */ + @ApiModelProperty(required = true, value = "For the values of protocols, refer to section 5.5 of the Open API Access Guide.") + @NotNull + + + public List getProtocols() { + return protocols; + } + + public void setProtocols(List protocols) { + this.protocols = protocols; + } + + public GatewayAclInfo sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public GatewayAclInfo addSourceIdsItem(String sourceIdsItem) { + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return sourceIds + */ + @ApiModelProperty(required = true, value = "Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public GatewayAclInfo destinationIds(List destinationIds) { + this.destinationIds = destinationIds; + return this; + } + + public GatewayAclInfo addDestinationIdsItem(String destinationIdsItem) { + this.destinationIds.add(destinationIdsItem); + return this; + } + + /** + * Destination IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return destinationIds + */ + @ApiModelProperty(required = true, value = "Destination IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getDestinationIds() { + return destinationIds; + } + + public void setDestinationIds(List destinationIds) { + this.destinationIds = destinationIds; + } + + public GatewayAclInfo syslog(Boolean syslog) { + this.syslog = syslog; + return this; + } + + /** + * Enable remote log + * @return syslog + */ + @ApiModelProperty(required = true, value = "Enable remote log") + @NotNull + + + public Boolean getSyslog() { + return syslog; + } + + public void setSyslog(Boolean syslog) { + this.syslog = syslog; + } + + public GatewayAclInfo sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group; 8: Country; 9: Country Group + * @return sourceType + */ + @ApiModelProperty(required = true, value = "SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group; 8: Country; 9: Country Group") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public GatewayAclInfo destinationType(Integer destinationType) { + this.destinationType = destinationType; + return this; + } + + /** + * DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group;10: Domain Group. + * @return destinationType + */ + @ApiModelProperty(required = true, value = "DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group;10: Domain Group.") + @NotNull + + + public Integer getDestinationType() { + return destinationType; + } + + public void setDestinationType(Integer destinationType) { + this.destinationType = destinationType; + } + + public GatewayAclInfo direction(GatewayDirectionEntity direction) { + this.direction = direction; + return this; + } + + /** + * Get direction + * @return direction + */ + @ApiModelProperty(value = "") + + @Valid + + public GatewayDirectionEntity getDirection() { + return direction; + } + + public void setDirection(GatewayDirectionEntity direction) { + this.direction = direction; + } + + public GatewayAclInfo stateMode(Integer stateMode) { + this.stateMode = stateMode; + return this; + } + + /** + * StateMode should be a value as follows: 0: auto; 1: manual + * @return stateMode + */ + @ApiModelProperty(required = true, value = "StateMode should be a value as follows: 0: auto; 1: manual") + @NotNull + + + public Integer getStateMode() { + return stateMode; + } + + public void setStateMode(Integer stateMode) { + this.stateMode = stateMode; + } + + public GatewayAclInfo states(GatewayAclStatesEntity states) { + this.states = states; + return this; + } + + /** + * Get states + * @return states + */ + @ApiModelProperty(value = "") + + @Valid + + public GatewayAclStatesEntity getStates() { + return states; + } + + public void setStates(GatewayAclStatesEntity states) { + this.states = states; + } + + public GatewayAclInfo timeRangeId(String timeRangeId) { + this.timeRangeId = timeRangeId; + return this; + } + + /** + * Gateway ACL time range ID. + * @return timeRangeId + */ + @ApiModelProperty(value = "Gateway ACL time range ID.") + + + public String getTimeRangeId() { + return timeRangeId; + } + + public void setTimeRangeId(String timeRangeId) { + this.timeRangeId = timeRangeId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayAclInfo gatewayAclInfo = (GatewayAclInfo) o; + return Objects.equals(this.id, gatewayAclInfo.id) && + Objects.equals(this.index, gatewayAclInfo.index) && + Objects.equals(this.description, gatewayAclInfo.description) && + Objects.equals(this.status, gatewayAclInfo.status) && + Objects.equals(this.policy, gatewayAclInfo.policy) && + Objects.equals(this.protocols, gatewayAclInfo.protocols) && + Objects.equals(this.sourceIds, gatewayAclInfo.sourceIds) && + Objects.equals(this.destinationIds, gatewayAclInfo.destinationIds) && + Objects.equals(this.syslog, gatewayAclInfo.syslog) && + Objects.equals(this.sourceType, gatewayAclInfo.sourceType) && + Objects.equals(this.destinationType, gatewayAclInfo.destinationType) && + Objects.equals(this.direction, gatewayAclInfo.direction) && + Objects.equals(this.stateMode, gatewayAclInfo.stateMode) && + Objects.equals(this.states, gatewayAclInfo.states) && + Objects.equals(this.timeRangeId, gatewayAclInfo.timeRangeId); + } + + @Override + public int hashCode() { + return Objects.hash(id, index, description, status, policy, protocols, sourceIds, destinationIds, syslog, sourceType, destinationType, direction, stateMode, states, timeRangeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayAclInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" protocols: ").append(toIndentedString(protocols)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" destinationIds: ").append(toIndentedString(destinationIds)).append("\n"); + sb.append(" syslog: ").append(toIndentedString(syslog)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" destinationType: ").append(toIndentedString(destinationType)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" stateMode: ").append(toIndentedString(stateMode)).append("\n"); + sb.append(" states: ").append(toIndentedString(states)).append("\n"); + sb.append(" timeRangeId: ").append(toIndentedString(timeRangeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclStatesEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclStatesEntity.java new file mode 100644 index 0000000..5fc5660 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayAclStatesEntity.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Only for Gateway ACL + */ +@ApiModel(description = "Only for Gateway ACL") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayAclStatesEntity { + @JsonProperty("stateNew") + private Boolean stateNew; + + @JsonProperty("established") + private Boolean established; + + @JsonProperty("related") + private Boolean related; + + @JsonProperty("invalid") + private Boolean invalid; + + public GatewayAclStatesEntity stateNew(Boolean stateNew) { + this.stateNew = stateNew; + return this; + } + + /** + * Match state new + * @return stateNew + */ + @ApiModelProperty(value = "Match state new") + + + public Boolean getStateNew() { + return stateNew; + } + + public void setStateNew(Boolean stateNew) { + this.stateNew = stateNew; + } + + public GatewayAclStatesEntity established(Boolean established) { + this.established = established; + return this; + } + + /** + * Match state established + * @return established + */ + @ApiModelProperty(value = "Match state established") + + + public Boolean getEstablished() { + return established; + } + + public void setEstablished(Boolean established) { + this.established = established; + } + + public GatewayAclStatesEntity related(Boolean related) { + this.related = related; + return this; + } + + /** + * Match state related + * @return related + */ + @ApiModelProperty(value = "Match state related") + + + public Boolean getRelated() { + return related; + } + + public void setRelated(Boolean related) { + this.related = related; + } + + public GatewayAclStatesEntity invalid(Boolean invalid) { + this.invalid = invalid; + return this; + } + + /** + * Match state invalid + * @return invalid + */ + @ApiModelProperty(value = "Match state invalid") + + + public Boolean getInvalid() { + return invalid; + } + + public void setInvalid(Boolean invalid) { + this.invalid = invalid; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayAclStatesEntity gatewayAclStatesEntity = (GatewayAclStatesEntity) o; + return Objects.equals(this.stateNew, gatewayAclStatesEntity.stateNew) && + Objects.equals(this.established, gatewayAclStatesEntity.established) && + Objects.equals(this.related, gatewayAclStatesEntity.related) && + Objects.equals(this.invalid, gatewayAclStatesEntity.invalid); + } + + @Override + public int hashCode() { + return Objects.hash(stateNew, established, related, invalid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayAclStatesEntity {\n"); + + sb.append(" stateNew: ").append(toIndentedString(stateNew)).append("\n"); + sb.append(" established: ").append(toIndentedString(established)).append("\n"); + sb.append(" related: ").append(toIndentedString(related)).append("\n"); + sb.append(" invalid: ").append(toIndentedString(invalid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclAddEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclAddEntity.java new file mode 100644 index 0000000..f4a2aa3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclAddEntity.java @@ -0,0 +1,354 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Added Custom ACLs. + */ +@ApiModel(description = "Added Custom ACLs.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayCustomAclAddEntity { + @JsonProperty("index") + private Integer index; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("description") + private String description; + + @JsonProperty("direction") + private Integer direction; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("sourceList") + @Valid + private List sourceList = new ArrayList<>(); + + @JsonProperty("sourcePort") + private String sourcePort; + + @JsonProperty("destinationList") + @Valid + private List destinationList = new ArrayList<>(); + + @JsonProperty("destinationPort") + private String destinationPort; + + @JsonProperty("logStatus") + private Boolean logStatus; + + public GatewayCustomAclAddEntity index(Integer index) { + this.index = index; + return this; + } + + /** + * Custom ACL index + * @return index + */ + @ApiModelProperty(required = true, value = "Custom ACL index") + @NotNull + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public GatewayCustomAclAddEntity status(Boolean status) { + this.status = status; + return this; + } + + /** + * Custom ACL status + * @return status + */ + @ApiModelProperty(required = true, value = "Custom ACL status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public GatewayCustomAclAddEntity description(String description) { + this.description = description; + return this; + } + + /** + * Custom ACL description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(required = true, value = "Custom ACL description should contain 1 to 512 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public GatewayCustomAclAddEntity direction(Integer direction) { + this.direction = direction; + return this; + } + + /** + * Custom ACL direction should be a value as follows: 0: LAN-LAN; 1: LAN-WAN; 2: WAN-LAN; 3: LOCAL IN + * @return direction + */ + @ApiModelProperty(required = true, value = "Custom ACL direction should be a value as follows: 0: LAN-LAN; 1: LAN-WAN; 2: WAN-LAN; 3: LOCAL IN") + @NotNull + + + public Integer getDirection() { + return direction; + } + + public void setDirection(Integer direction) { + this.direction = direction; + } + + public GatewayCustomAclAddEntity policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * Custom ACL policy should be a value as follows: 0: Drop; 1:Allow + * @return policy + */ + @ApiModelProperty(required = true, value = "Custom ACL policy should be a value as follows: 0: Drop; 1:Allow") + @NotNull + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public GatewayCustomAclAddEntity protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * Custom ACL protocol. For the values of protocol, refer to section 5.5 of the Open API Access Guide. + * @return protocol + */ + @ApiModelProperty(required = true, value = "Custom ACL protocol. For the values of protocol, refer to section 5.5 of the Open API Access Guide.") + @NotNull + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public GatewayCustomAclAddEntity sourceList(List sourceList) { + this.sourceList = sourceList; + return this; + } + + public GatewayCustomAclAddEntity addSourceListItem(String sourceListItem) { + this.sourceList.add(sourceListItem); + return this; + } + + /** + * Custom ACL source list. + * @return sourceList + */ + @ApiModelProperty(required = true, value = "Custom ACL source list.") + @NotNull + + + public List getSourceList() { + return sourceList; + } + + public void setSourceList(List sourceList) { + this.sourceList = sourceList; + } + + public GatewayCustomAclAddEntity sourcePort(String sourcePort) { + this.sourcePort = sourcePort; + return this; + } + + /** + * Custom ACL source port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid. + * @return sourcePort + */ + @ApiModelProperty(value = "Custom ACL source port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid.") + + + public String getSourcePort() { + return sourcePort; + } + + public void setSourcePort(String sourcePort) { + this.sourcePort = sourcePort; + } + + public GatewayCustomAclAddEntity destinationList(List destinationList) { + this.destinationList = destinationList; + return this; + } + + public GatewayCustomAclAddEntity addDestinationListItem(String destinationListItem) { + this.destinationList.add(destinationListItem); + return this; + } + + /** + * Custom ACL destination list. + * @return destinationList + */ + @ApiModelProperty(required = true, value = "Custom ACL destination list.") + @NotNull + + + public List getDestinationList() { + return destinationList; + } + + public void setDestinationList(List destinationList) { + this.destinationList = destinationList; + } + + public GatewayCustomAclAddEntity destinationPort(String destinationPort) { + this.destinationPort = destinationPort; + return this; + } + + /** + * Custom ACL destination port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid. + * @return destinationPort + */ + @ApiModelProperty(value = "Custom ACL destination port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid.") + + + public String getDestinationPort() { + return destinationPort; + } + + public void setDestinationPort(String destinationPort) { + this.destinationPort = destinationPort; + } + + public GatewayCustomAclAddEntity logStatus(Boolean logStatus) { + this.logStatus = logStatus; + return this; + } + + /** + * Custom ACL log status + * @return logStatus + */ + @ApiModelProperty(required = true, value = "Custom ACL log status") + @NotNull + + + public Boolean getLogStatus() { + return logStatus; + } + + public void setLogStatus(Boolean logStatus) { + this.logStatus = logStatus; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayCustomAclAddEntity gatewayCustomAclAddEntity = (GatewayCustomAclAddEntity) o; + return Objects.equals(this.index, gatewayCustomAclAddEntity.index) && + Objects.equals(this.status, gatewayCustomAclAddEntity.status) && + Objects.equals(this.description, gatewayCustomAclAddEntity.description) && + Objects.equals(this.direction, gatewayCustomAclAddEntity.direction) && + Objects.equals(this.policy, gatewayCustomAclAddEntity.policy) && + Objects.equals(this.protocol, gatewayCustomAclAddEntity.protocol) && + Objects.equals(this.sourceList, gatewayCustomAclAddEntity.sourceList) && + Objects.equals(this.sourcePort, gatewayCustomAclAddEntity.sourcePort) && + Objects.equals(this.destinationList, gatewayCustomAclAddEntity.destinationList) && + Objects.equals(this.destinationPort, gatewayCustomAclAddEntity.destinationPort) && + Objects.equals(this.logStatus, gatewayCustomAclAddEntity.logStatus); + } + + @Override + public int hashCode() { + return Objects.hash(index, status, description, direction, policy, protocol, sourceList, sourcePort, destinationList, destinationPort, logStatus); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayCustomAclAddEntity {\n"); + + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" sourceList: ").append(toIndentedString(sourceList)).append("\n"); + sb.append(" sourcePort: ").append(toIndentedString(sourcePort)).append("\n"); + sb.append(" destinationList: ").append(toIndentedString(destinationList)).append("\n"); + sb.append(" destinationPort: ").append(toIndentedString(destinationPort)).append("\n"); + sb.append(" logStatus: ").append(toIndentedString(logStatus)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclInfoEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclInfoEntity.java new file mode 100644 index 0000000..c78b5e3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclInfoEntity.java @@ -0,0 +1,403 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GatewayCustomAclInfoEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayCustomAclInfoEntity { + @JsonProperty("id") + private String id; + + @JsonProperty("index") + private Integer index; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("description") + private String description; + + @JsonProperty("direction") + private Integer direction; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("sourceList") + @Valid + private List sourceList = new ArrayList<>(); + + @JsonProperty("sourcePort") + private String sourcePort; + + @JsonProperty("destinationList") + @Valid + private List destinationList = new ArrayList<>(); + + @JsonProperty("destinationPort") + private String destinationPort; + + @JsonProperty("logStatus") + private Boolean logStatus; + + @JsonProperty("hitCounts") + private Integer hitCounts; + + public GatewayCustomAclInfoEntity id(String id) { + this.id = id; + return this; + } + + /** + * Custom ACL ID + * @return id + */ + @ApiModelProperty(required = true, value = "Custom ACL ID") + @NotNull + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GatewayCustomAclInfoEntity index(Integer index) { + this.index = index; + return this; + } + + /** + * Custom ACL index + * @return index + */ + @ApiModelProperty(required = true, value = "Custom ACL index") + @NotNull + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public GatewayCustomAclInfoEntity status(Boolean status) { + this.status = status; + return this; + } + + /** + * Custom ACL status + * @return status + */ + @ApiModelProperty(required = true, value = "Custom ACL status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public GatewayCustomAclInfoEntity description(String description) { + this.description = description; + return this; + } + + /** + * Custom ACL description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(required = true, value = "Custom ACL description should contain 1 to 512 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public GatewayCustomAclInfoEntity direction(Integer direction) { + this.direction = direction; + return this; + } + + /** + * Custom ACL direction should be a value as follows: 0: LAN-LAN; 1: LAN-WAN; 2: WAN-LAN; 3: LOCAL IN + * @return direction + */ + @ApiModelProperty(required = true, value = "Custom ACL direction should be a value as follows: 0: LAN-LAN; 1: LAN-WAN; 2: WAN-LAN; 3: LOCAL IN") + @NotNull + + + public Integer getDirection() { + return direction; + } + + public void setDirection(Integer direction) { + this.direction = direction; + } + + public GatewayCustomAclInfoEntity policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * Custom ACL policy should be a value as follows: 0: Drop; 1:Allow + * @return policy + */ + @ApiModelProperty(required = true, value = "Custom ACL policy should be a value as follows: 0: Drop; 1:Allow") + @NotNull + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public GatewayCustomAclInfoEntity protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * Custom ACL protocol. For the values of protocol, refer to section 5.5 of the Open API Access Guide. + * @return protocol + */ + @ApiModelProperty(required = true, value = "Custom ACL protocol. For the values of protocol, refer to section 5.5 of the Open API Access Guide.") + @NotNull + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public GatewayCustomAclInfoEntity sourceList(List sourceList) { + this.sourceList = sourceList; + return this; + } + + public GatewayCustomAclInfoEntity addSourceListItem(String sourceListItem) { + this.sourceList.add(sourceListItem); + return this; + } + + /** + * Custom ACL source list. + * @return sourceList + */ + @ApiModelProperty(required = true, value = "Custom ACL source list.") + @NotNull + + + public List getSourceList() { + return sourceList; + } + + public void setSourceList(List sourceList) { + this.sourceList = sourceList; + } + + public GatewayCustomAclInfoEntity sourcePort(String sourcePort) { + this.sourcePort = sourcePort; + return this; + } + + /** + * Custom ACL source port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid. + * @return sourcePort + */ + @ApiModelProperty(value = "Custom ACL source port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid.") + + + public String getSourcePort() { + return sourcePort; + } + + public void setSourcePort(String sourcePort) { + this.sourcePort = sourcePort; + } + + public GatewayCustomAclInfoEntity destinationList(List destinationList) { + this.destinationList = destinationList; + return this; + } + + public GatewayCustomAclInfoEntity addDestinationListItem(String destinationListItem) { + this.destinationList.add(destinationListItem); + return this; + } + + /** + * Custom ACL destination list. + * @return destinationList + */ + @ApiModelProperty(required = true, value = "Custom ACL destination list.") + @NotNull + + + public List getDestinationList() { + return destinationList; + } + + public void setDestinationList(List destinationList) { + this.destinationList = destinationList; + } + + public GatewayCustomAclInfoEntity destinationPort(String destinationPort) { + this.destinationPort = destinationPort; + return this; + } + + /** + * Custom ACL destination port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid. + * @return destinationPort + */ + @ApiModelProperty(value = "Custom ACL destination port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid.") + + + public String getDestinationPort() { + return destinationPort; + } + + public void setDestinationPort(String destinationPort) { + this.destinationPort = destinationPort; + } + + public GatewayCustomAclInfoEntity logStatus(Boolean logStatus) { + this.logStatus = logStatus; + return this; + } + + /** + * Custom ACL log status + * @return logStatus + */ + @ApiModelProperty(required = true, value = "Custom ACL log status") + @NotNull + + + public Boolean getLogStatus() { + return logStatus; + } + + public void setLogStatus(Boolean logStatus) { + this.logStatus = logStatus; + } + + public GatewayCustomAclInfoEntity hitCounts(Integer hitCounts) { + this.hitCounts = hitCounts; + return this; + } + + /** + * Show custom ACL hit counts. + * @return hitCounts + */ + @ApiModelProperty(value = "Show custom ACL hit counts.") + + + public Integer getHitCounts() { + return hitCounts; + } + + public void setHitCounts(Integer hitCounts) { + this.hitCounts = hitCounts; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayCustomAclInfoEntity gatewayCustomAclInfoEntity = (GatewayCustomAclInfoEntity) o; + return Objects.equals(this.id, gatewayCustomAclInfoEntity.id) && + Objects.equals(this.index, gatewayCustomAclInfoEntity.index) && + Objects.equals(this.status, gatewayCustomAclInfoEntity.status) && + Objects.equals(this.description, gatewayCustomAclInfoEntity.description) && + Objects.equals(this.direction, gatewayCustomAclInfoEntity.direction) && + Objects.equals(this.policy, gatewayCustomAclInfoEntity.policy) && + Objects.equals(this.protocol, gatewayCustomAclInfoEntity.protocol) && + Objects.equals(this.sourceList, gatewayCustomAclInfoEntity.sourceList) && + Objects.equals(this.sourcePort, gatewayCustomAclInfoEntity.sourcePort) && + Objects.equals(this.destinationList, gatewayCustomAclInfoEntity.destinationList) && + Objects.equals(this.destinationPort, gatewayCustomAclInfoEntity.destinationPort) && + Objects.equals(this.logStatus, gatewayCustomAclInfoEntity.logStatus) && + Objects.equals(this.hitCounts, gatewayCustomAclInfoEntity.hitCounts); + } + + @Override + public int hashCode() { + return Objects.hash(id, index, status, description, direction, policy, protocol, sourceList, sourcePort, destinationList, destinationPort, logStatus, hitCounts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayCustomAclInfoEntity {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" sourceList: ").append(toIndentedString(sourceList)).append("\n"); + sb.append(" sourcePort: ").append(toIndentedString(sourcePort)).append("\n"); + sb.append(" destinationList: ").append(toIndentedString(destinationList)).append("\n"); + sb.append(" destinationPort: ").append(toIndentedString(destinationPort)).append("\n"); + sb.append(" logStatus: ").append(toIndentedString(logStatus)).append("\n"); + sb.append(" hitCounts: ").append(toIndentedString(hitCounts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclModifyEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclModifyEntity.java new file mode 100644 index 0000000..369d190 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclModifyEntity.java @@ -0,0 +1,380 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Modified Custom ACLs. + */ +@ApiModel(description = "Modified Custom ACLs.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayCustomAclModifyEntity { + @JsonProperty("id") + private String id; + + @JsonProperty("index") + private Integer index; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("description") + private String description; + + @JsonProperty("direction") + private Integer direction; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("sourceList") + @Valid + private List sourceList = new ArrayList<>(); + + @JsonProperty("sourcePort") + private String sourcePort; + + @JsonProperty("destinationList") + @Valid + private List destinationList = new ArrayList<>(); + + @JsonProperty("destinationPort") + private String destinationPort; + + @JsonProperty("logStatus") + private Boolean logStatus; + + public GatewayCustomAclModifyEntity id(String id) { + this.id = id; + return this; + } + + /** + * Custom ACL ID + * @return id + */ + @ApiModelProperty(required = true, value = "Custom ACL ID") + @NotNull + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GatewayCustomAclModifyEntity index(Integer index) { + this.index = index; + return this; + } + + /** + * Custom ACL index + * @return index + */ + @ApiModelProperty(required = true, value = "Custom ACL index") + @NotNull + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public GatewayCustomAclModifyEntity status(Boolean status) { + this.status = status; + return this; + } + + /** + * Custom ACL status + * @return status + */ + @ApiModelProperty(required = true, value = "Custom ACL status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public GatewayCustomAclModifyEntity description(String description) { + this.description = description; + return this; + } + + /** + * Custom ACL description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(required = true, value = "Custom ACL description should contain 1 to 512 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public GatewayCustomAclModifyEntity direction(Integer direction) { + this.direction = direction; + return this; + } + + /** + * Custom ACL direction should be a value as follows: 0: LAN-LAN; 1: LAN-WAN; 2: WAN-LAN; 3: LOCAL IN + * @return direction + */ + @ApiModelProperty(required = true, value = "Custom ACL direction should be a value as follows: 0: LAN-LAN; 1: LAN-WAN; 2: WAN-LAN; 3: LOCAL IN") + @NotNull + + + public Integer getDirection() { + return direction; + } + + public void setDirection(Integer direction) { + this.direction = direction; + } + + public GatewayCustomAclModifyEntity policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * Custom ACL policy should be a value as follows: 0: Drop; 1:Allow + * @return policy + */ + @ApiModelProperty(required = true, value = "Custom ACL policy should be a value as follows: 0: Drop; 1:Allow") + @NotNull + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public GatewayCustomAclModifyEntity protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * Custom ACL protocol. For the values of protocol, refer to section 5.5 of the Open API Access Guide. + * @return protocol + */ + @ApiModelProperty(required = true, value = "Custom ACL protocol. For the values of protocol, refer to section 5.5 of the Open API Access Guide.") + @NotNull + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public GatewayCustomAclModifyEntity sourceList(List sourceList) { + this.sourceList = sourceList; + return this; + } + + public GatewayCustomAclModifyEntity addSourceListItem(String sourceListItem) { + this.sourceList.add(sourceListItem); + return this; + } + + /** + * Custom ACL source list. + * @return sourceList + */ + @ApiModelProperty(required = true, value = "Custom ACL source list.") + @NotNull + + + public List getSourceList() { + return sourceList; + } + + public void setSourceList(List sourceList) { + this.sourceList = sourceList; + } + + public GatewayCustomAclModifyEntity sourcePort(String sourcePort) { + this.sourcePort = sourcePort; + return this; + } + + /** + * Custom ACL source port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid. + * @return sourcePort + */ + @ApiModelProperty(value = "Custom ACL source port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid.") + + + public String getSourcePort() { + return sourcePort; + } + + public void setSourcePort(String sourcePort) { + this.sourcePort = sourcePort; + } + + public GatewayCustomAclModifyEntity destinationList(List destinationList) { + this.destinationList = destinationList; + return this; + } + + public GatewayCustomAclModifyEntity addDestinationListItem(String destinationListItem) { + this.destinationList.add(destinationListItem); + return this; + } + + /** + * Custom ACL destination list. + * @return destinationList + */ + @ApiModelProperty(required = true, value = "Custom ACL destination list.") + @NotNull + + + public List getDestinationList() { + return destinationList; + } + + public void setDestinationList(List destinationList) { + this.destinationList = destinationList; + } + + public GatewayCustomAclModifyEntity destinationPort(String destinationPort) { + this.destinationPort = destinationPort; + return this; + } + + /** + * Custom ACL destination port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid. + * @return destinationPort + */ + @ApiModelProperty(value = "Custom ACL destination port. when \"protocol\" is \"TCP\" or \"UDP\", port is valid.") + + + public String getDestinationPort() { + return destinationPort; + } + + public void setDestinationPort(String destinationPort) { + this.destinationPort = destinationPort; + } + + public GatewayCustomAclModifyEntity logStatus(Boolean logStatus) { + this.logStatus = logStatus; + return this; + } + + /** + * Custom ACL log status + * @return logStatus + */ + @ApiModelProperty(required = true, value = "Custom ACL log status") + @NotNull + + + public Boolean getLogStatus() { + return logStatus; + } + + public void setLogStatus(Boolean logStatus) { + this.logStatus = logStatus; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayCustomAclModifyEntity gatewayCustomAclModifyEntity = (GatewayCustomAclModifyEntity) o; + return Objects.equals(this.id, gatewayCustomAclModifyEntity.id) && + Objects.equals(this.index, gatewayCustomAclModifyEntity.index) && + Objects.equals(this.status, gatewayCustomAclModifyEntity.status) && + Objects.equals(this.description, gatewayCustomAclModifyEntity.description) && + Objects.equals(this.direction, gatewayCustomAclModifyEntity.direction) && + Objects.equals(this.policy, gatewayCustomAclModifyEntity.policy) && + Objects.equals(this.protocol, gatewayCustomAclModifyEntity.protocol) && + Objects.equals(this.sourceList, gatewayCustomAclModifyEntity.sourceList) && + Objects.equals(this.sourcePort, gatewayCustomAclModifyEntity.sourcePort) && + Objects.equals(this.destinationList, gatewayCustomAclModifyEntity.destinationList) && + Objects.equals(this.destinationPort, gatewayCustomAclModifyEntity.destinationPort) && + Objects.equals(this.logStatus, gatewayCustomAclModifyEntity.logStatus); + } + + @Override + public int hashCode() { + return Objects.hash(id, index, status, description, direction, policy, protocol, sourceList, sourcePort, destinationList, destinationPort, logStatus); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayCustomAclModifyEntity {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" sourceList: ").append(toIndentedString(sourceList)).append("\n"); + sb.append(" sourcePort: ").append(toIndentedString(sourcePort)).append("\n"); + sb.append(" destinationList: ").append(toIndentedString(destinationList)).append("\n"); + sb.append(" destinationPort: ").append(toIndentedString(destinationPort)).append("\n"); + sb.append(" logStatus: ").append(toIndentedString(logStatus)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclUpdateEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclUpdateEntity.java new file mode 100644 index 0000000..3f59341 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayCustomAclUpdateEntity.java @@ -0,0 +1,158 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GatewayCustomAclUpdateEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayCustomAclUpdateEntity { + @JsonProperty("adds") + @Valid + private List adds = null; + + @JsonProperty("deletes") + @Valid + private List deletes = null; + + @JsonProperty("modifies") + @Valid + private List modifies = null; + + public GatewayCustomAclUpdateEntity adds(List adds) { + this.adds = adds; + return this; + } + + public GatewayCustomAclUpdateEntity addAddsItem(GatewayCustomAclAddEntity addsItem) { + if (this.adds == null) { + this.adds = new ArrayList<>(); + } + this.adds.add(addsItem); + return this; + } + + /** + * Added Custom ACLs. + * @return adds + */ + @ApiModelProperty(value = "Added Custom ACLs.") + + @Valid + + public List getAdds() { + return adds; + } + + public void setAdds(List adds) { + this.adds = adds; + } + + public GatewayCustomAclUpdateEntity deletes(List deletes) { + this.deletes = deletes; + return this; + } + + public GatewayCustomAclUpdateEntity addDeletesItem(String deletesItem) { + if (this.deletes == null) { + this.deletes = new ArrayList<>(); + } + this.deletes.add(deletesItem); + return this; + } + + /** + * Deleted Custom ACLs. + * @return deletes + */ + @ApiModelProperty(value = "Deleted Custom ACLs.") + + + public List getDeletes() { + return deletes; + } + + public void setDeletes(List deletes) { + this.deletes = deletes; + } + + public GatewayCustomAclUpdateEntity modifies(List modifies) { + this.modifies = modifies; + return this; + } + + public GatewayCustomAclUpdateEntity addModifiesItem(GatewayCustomAclModifyEntity modifiesItem) { + if (this.modifies == null) { + this.modifies = new ArrayList<>(); + } + this.modifies.add(modifiesItem); + return this; + } + + /** + * Modified Custom ACLs. + * @return modifies + */ + @ApiModelProperty(value = "Modified Custom ACLs.") + + @Valid + + public List getModifies() { + return modifies; + } + + public void setModifies(List modifies) { + this.modifies = modifies; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayCustomAclUpdateEntity gatewayCustomAclUpdateEntity = (GatewayCustomAclUpdateEntity) o; + return Objects.equals(this.adds, gatewayCustomAclUpdateEntity.adds) && + Objects.equals(this.deletes, gatewayCustomAclUpdateEntity.deletes) && + Objects.equals(this.modifies, gatewayCustomAclUpdateEntity.modifies); + } + + @Override + public int hashCode() { + return Objects.hash(adds, deletes, modifies); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayCustomAclUpdateEntity {\n"); + + sb.append(" adds: ").append(toIndentedString(adds)).append("\n"); + sb.append(" deletes: ").append(toIndentedString(deletes)).append("\n"); + sb.append(" modifies: ").append(toIndentedString(modifies)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayDirectionEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayDirectionEntity.java new file mode 100644 index 0000000..a235c8e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayDirectionEntity.java @@ -0,0 +1,174 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Only for Gateway. + */ +@ApiModel(description = "Only for Gateway.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayDirectionEntity { + @JsonProperty("lanToWan") + private Boolean lanToWan; + + @JsonProperty("lanToLan") + private Boolean lanToLan; + + @JsonProperty("wanInIds") + @Valid + private List wanInIds = null; + + @JsonProperty("vpnInIds") + @Valid + private List vpnInIds = null; + + public GatewayDirectionEntity lanToWan(Boolean lanToWan) { + this.lanToWan = lanToWan; + return this; + } + + /** + * Whether select LAN->WAN direction + * @return lanToWan + */ + @ApiModelProperty(value = "Whether select LAN->WAN direction") + + + public Boolean getLanToWan() { + return lanToWan; + } + + public void setLanToWan(Boolean lanToWan) { + this.lanToWan = lanToWan; + } + + public GatewayDirectionEntity lanToLan(Boolean lanToLan) { + this.lanToLan = lanToLan; + return this; + } + + /** + * Whether select LAN->LAN direction, which conflicts with other directions + * @return lanToLan + */ + @ApiModelProperty(value = "Whether select LAN->LAN direction, which conflicts with other directions") + + + public Boolean getLanToLan() { + return lanToLan; + } + + public void setLanToLan(Boolean lanToLan) { + this.lanToLan = lanToLan; + } + + public GatewayDirectionEntity wanInIds(List wanInIds) { + this.wanInIds = wanInIds; + return this; + } + + public GatewayDirectionEntity addWanInIdsItem(String wanInIdsItem) { + if (this.wanInIds == null) { + this.wanInIds = new ArrayList<>(); + } + this.wanInIds.add(wanInIdsItem); + return this; + } + + /** + * Selected WAN port IDs + * @return wanInIds + */ + @ApiModelProperty(value = "Selected WAN port IDs") + + + public List getWanInIds() { + return wanInIds; + } + + public void setWanInIds(List wanInIds) { + this.wanInIds = wanInIds; + } + + public GatewayDirectionEntity vpnInIds(List vpnInIds) { + this.vpnInIds = vpnInIds; + return this; + } + + public GatewayDirectionEntity addVpnInIdsItem(String vpnInIdsItem) { + if (this.vpnInIds == null) { + this.vpnInIds = new ArrayList<>(); + } + this.vpnInIds.add(vpnInIdsItem); + return this; + } + + /** + * Selected VPN IDs + * @return vpnInIds + */ + @ApiModelProperty(value = "Selected VPN IDs") + + + public List getVpnInIds() { + return vpnInIds; + } + + public void setVpnInIds(List vpnInIds) { + this.vpnInIds = vpnInIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayDirectionEntity gatewayDirectionEntity = (GatewayDirectionEntity) o; + return Objects.equals(this.lanToWan, gatewayDirectionEntity.lanToWan) && + Objects.equals(this.lanToLan, gatewayDirectionEntity.lanToLan) && + Objects.equals(this.wanInIds, gatewayDirectionEntity.wanInIds) && + Objects.equals(this.vpnInIds, gatewayDirectionEntity.vpnInIds); + } + + @Override + public int hashCode() { + return Objects.hash(lanToWan, lanToLan, wanInIds, vpnInIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayDirectionEntity {\n"); + + sb.append(" lanToWan: ").append(toIndentedString(lanToWan)).append("\n"); + sb.append(" lanToLan: ").append(toIndentedString(lanToLan)).append("\n"); + sb.append(" wanInIds: ").append(toIndentedString(wanInIds)).append("\n"); + sb.append(" vpnInIds: ").append(toIndentedString(vpnInIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceDetailOpenApiVo.java new file mode 100644 index 0000000..ab11097 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceDetailOpenApiVo.java @@ -0,0 +1,351 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * GatewayQosServiceDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayQosServiceDetailOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("defaultProfile") + private Boolean defaultProfile; + + @JsonProperty("name") + private String name; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("sourceStartPort") + private Integer sourceStartPort; + + @JsonProperty("sourceEndPort") + private Integer sourceEndPort; + + @JsonProperty("destStartPort") + private Integer destStartPort; + + @JsonProperty("destEndPort") + private Integer destEndPort; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("code") + private Integer code; + + @JsonProperty("protoNum") + private Integer protoNum; + + @JsonProperty("description") + private String description; + + public GatewayQosServiceDetailOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * The ID of Gateway QoS Service. + * @return id + */ + @ApiModelProperty(value = "The ID of Gateway QoS Service.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GatewayQosServiceDetailOpenApiVo defaultProfile(Boolean defaultProfile) { + this.defaultProfile = defaultProfile; + return this; + } + + /** + * Indicating that the profile is the default which cannot be modified. + * @return defaultProfile + */ + @ApiModelProperty(value = "Indicating that the profile is the default which cannot be modified.") + + + public Boolean getDefaultProfile() { + return defaultProfile; + } + + public void setDefaultProfile(Boolean defaultProfile) { + this.defaultProfile = defaultProfile; + } + + public GatewayQosServiceDetailOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * The name of Gateway QoS Service should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "The name of Gateway QoS Service should contain 1 to 64 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GatewayQosServiceDetailOpenApiVo protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * The protocol of Gateway QoS Service should be a value as follows: 0: TCP, 1: UDP, 2: TCP/UDP, 3: ICMP, 4: Other. + * @return protocol + */ + @ApiModelProperty(value = "The protocol of Gateway QoS Service should be a value as follows: 0: TCP, 1: UDP, 2: TCP/UDP, 3: ICMP, 4: Other.") + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public GatewayQosServiceDetailOpenApiVo sourceStartPort(Integer sourceStartPort) { + this.sourceStartPort = sourceStartPort; + return this; + } + + /** + * The start port of Source Port Range. It must be less than the end port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP). + * @return sourceStartPort + */ + @ApiModelProperty(value = "The start port of Source Port Range. It must be less than the end port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP).") + + + public Integer getSourceStartPort() { + return sourceStartPort; + } + + public void setSourceStartPort(Integer sourceStartPort) { + this.sourceStartPort = sourceStartPort; + } + + public GatewayQosServiceDetailOpenApiVo sourceEndPort(Integer sourceEndPort) { + this.sourceEndPort = sourceEndPort; + return this; + } + + /** + * The end port of Source Port Range. It must be more than the start port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP). + * @return sourceEndPort + */ + @ApiModelProperty(value = "The end port of Source Port Range. It must be more than the start port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP).") + + + public Integer getSourceEndPort() { + return sourceEndPort; + } + + public void setSourceEndPort(Integer sourceEndPort) { + this.sourceEndPort = sourceEndPort; + } + + public GatewayQosServiceDetailOpenApiVo destStartPort(Integer destStartPort) { + this.destStartPort = destStartPort; + return this; + } + + /** + * The start port of Destination Port Range. It must be less than the end port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP). + * @return destStartPort + */ + @ApiModelProperty(value = "The start port of Destination Port Range. It must be less than the end port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP).") + + + public Integer getDestStartPort() { + return destStartPort; + } + + public void setDestStartPort(Integer destStartPort) { + this.destStartPort = destStartPort; + } + + public GatewayQosServiceDetailOpenApiVo destEndPort(Integer destEndPort) { + this.destEndPort = destEndPort; + return this; + } + + /** + * The end port of Destination Port Range. It must be more than the start port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP). + * @return destEndPort + */ + @ApiModelProperty(value = "The end port of Destination Port Range. It must be more than the start port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP).") + + + public Integer getDestEndPort() { + return destEndPort; + } + + public void setDestEndPort(Integer destEndPort) { + this.destEndPort = destEndPort; + } + + public GatewayQosServiceDetailOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * The type cannot be null and should be within the range of 0-255 when protocol is 3(ICMP). + * @return type + */ + @ApiModelProperty(value = "The type cannot be null and should be within the range of 0-255 when protocol is 3(ICMP).") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public GatewayQosServiceDetailOpenApiVo code(Integer code) { + this.code = code; + return this; + } + + /** + * The code cannot be null and should be within the range of 0-255 when protocol is 3(ICMP). + * @return code + */ + @ApiModelProperty(value = "The code cannot be null and should be within the range of 0-255 when protocol is 3(ICMP).") + + + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public GatewayQosServiceDetailOpenApiVo protoNum(Integer protoNum) { + this.protoNum = protoNum; + return this; + } + + /** + * The protoNum cannot be null and should be within the range of 1-255 when protocol is 4(Other). + * @return protoNum + */ + @ApiModelProperty(value = "The protoNum cannot be null and should be within the range of 1-255 when protocol is 4(Other).") + + + public Integer getProtoNum() { + return protoNum; + } + + public void setProtoNum(Integer protoNum) { + this.protoNum = protoNum; + } + + public GatewayQosServiceDetailOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * The description of Gateway QoS Service should contain 0 to 128 characters. + * @return description + */ + @ApiModelProperty(value = "The description of Gateway QoS Service should contain 0 to 128 characters.") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayQosServiceDetailOpenApiVo gatewayQosServiceDetailOpenApiVo = (GatewayQosServiceDetailOpenApiVo) o; + return Objects.equals(this.id, gatewayQosServiceDetailOpenApiVo.id) && + Objects.equals(this.defaultProfile, gatewayQosServiceDetailOpenApiVo.defaultProfile) && + Objects.equals(this.name, gatewayQosServiceDetailOpenApiVo.name) && + Objects.equals(this.protocol, gatewayQosServiceDetailOpenApiVo.protocol) && + Objects.equals(this.sourceStartPort, gatewayQosServiceDetailOpenApiVo.sourceStartPort) && + Objects.equals(this.sourceEndPort, gatewayQosServiceDetailOpenApiVo.sourceEndPort) && + Objects.equals(this.destStartPort, gatewayQosServiceDetailOpenApiVo.destStartPort) && + Objects.equals(this.destEndPort, gatewayQosServiceDetailOpenApiVo.destEndPort) && + Objects.equals(this.type, gatewayQosServiceDetailOpenApiVo.type) && + Objects.equals(this.code, gatewayQosServiceDetailOpenApiVo.code) && + Objects.equals(this.protoNum, gatewayQosServiceDetailOpenApiVo.protoNum) && + Objects.equals(this.description, gatewayQosServiceDetailOpenApiVo.description); + } + + @Override + public int hashCode() { + return Objects.hash(id, defaultProfile, name, protocol, sourceStartPort, sourceEndPort, destStartPort, destEndPort, type, code, protoNum, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayQosServiceDetailOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" defaultProfile: ").append(toIndentedString(defaultProfile)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" sourceStartPort: ").append(toIndentedString(sourceStartPort)).append("\n"); + sb.append(" sourceEndPort: ").append(toIndentedString(sourceEndPort)).append("\n"); + sb.append(" destStartPort: ").append(toIndentedString(destStartPort)).append("\n"); + sb.append(" destEndPort: ").append(toIndentedString(destEndPort)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" protoNum: ").append(toIndentedString(protoNum)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceOpenApiVo.java new file mode 100644 index 0000000..42978f7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceOpenApiVo.java @@ -0,0 +1,305 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * GatewayQosServiceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayQosServiceOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("sourceStartPort") + private Integer sourceStartPort; + + @JsonProperty("sourceEndPort") + private Integer sourceEndPort; + + @JsonProperty("destStartPort") + private Integer destStartPort; + + @JsonProperty("destEndPort") + private Integer destEndPort; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("code") + private Integer code; + + @JsonProperty("protoNum") + private Integer protoNum; + + @JsonProperty("description") + private String description; + + public GatewayQosServiceOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * The name of Gateway QoS Service should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "The name of Gateway QoS Service should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GatewayQosServiceOpenApiVo protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * The protocol of Gateway QoS Service should be a value as follows: 0: TCP, 1: UDP, 2: TCP/UDP, 3: ICMP, 4: Other. + * @return protocol + */ + @ApiModelProperty(required = true, value = "The protocol of Gateway QoS Service should be a value as follows: 0: TCP, 1: UDP, 2: TCP/UDP, 3: ICMP, 4: Other.") + @NotNull + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public GatewayQosServiceOpenApiVo sourceStartPort(Integer sourceStartPort) { + this.sourceStartPort = sourceStartPort; + return this; + } + + /** + * The start port of Source Port Range. It must be less than the end port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP). + * @return sourceStartPort + */ + @ApiModelProperty(value = "The start port of Source Port Range. It must be less than the end port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP).") + + + public Integer getSourceStartPort() { + return sourceStartPort; + } + + public void setSourceStartPort(Integer sourceStartPort) { + this.sourceStartPort = sourceStartPort; + } + + public GatewayQosServiceOpenApiVo sourceEndPort(Integer sourceEndPort) { + this.sourceEndPort = sourceEndPort; + return this; + } + + /** + * The end port of Source Port Range. It must be more than the start port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP). + * @return sourceEndPort + */ + @ApiModelProperty(value = "The end port of Source Port Range. It must be more than the start port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP).") + + + public Integer getSourceEndPort() { + return sourceEndPort; + } + + public void setSourceEndPort(Integer sourceEndPort) { + this.sourceEndPort = sourceEndPort; + } + + public GatewayQosServiceOpenApiVo destStartPort(Integer destStartPort) { + this.destStartPort = destStartPort; + return this; + } + + /** + * The start port of Destination Port Range. It must be less than the end port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP). + * @return destStartPort + */ + @ApiModelProperty(value = "The start port of Destination Port Range. It must be less than the end port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP).") + + + public Integer getDestStartPort() { + return destStartPort; + } + + public void setDestStartPort(Integer destStartPort) { + this.destStartPort = destStartPort; + } + + public GatewayQosServiceOpenApiVo destEndPort(Integer destEndPort) { + this.destEndPort = destEndPort; + return this; + } + + /** + * The end port of Destination Port Range. It must be more than the start port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP). + * @return destEndPort + */ + @ApiModelProperty(value = "The end port of Destination Port Range. It must be more than the start port. It should be within the range of 0-65535 when protocol is 0(TCP), 1(UDP) or 2(TCP/UDP).") + + + public Integer getDestEndPort() { + return destEndPort; + } + + public void setDestEndPort(Integer destEndPort) { + this.destEndPort = destEndPort; + } + + public GatewayQosServiceOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * The type cannot be null and should be within the range of 0-255 when protocol is 3(ICMP). + * @return type + */ + @ApiModelProperty(value = "The type cannot be null and should be within the range of 0-255 when protocol is 3(ICMP).") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public GatewayQosServiceOpenApiVo code(Integer code) { + this.code = code; + return this; + } + + /** + * The code cannot be null and should be within the range of 0-255 when protocol is 3(ICMP). + * @return code + */ + @ApiModelProperty(value = "The code cannot be null and should be within the range of 0-255 when protocol is 3(ICMP).") + + + public Integer getCode() { + return code; + } + + public void setCode(Integer code) { + this.code = code; + } + + public GatewayQosServiceOpenApiVo protoNum(Integer protoNum) { + this.protoNum = protoNum; + return this; + } + + /** + * The protoNum cannot be null and should be within the range of 1-255 when protocol is 4(Other). + * @return protoNum + */ + @ApiModelProperty(value = "The protoNum cannot be null and should be within the range of 1-255 when protocol is 4(Other).") + + + public Integer getProtoNum() { + return protoNum; + } + + public void setProtoNum(Integer protoNum) { + this.protoNum = protoNum; + } + + public GatewayQosServiceOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * The description of Gateway QoS Service should contain 0 to 128 characters. + * @return description + */ + @ApiModelProperty(value = "The description of Gateway QoS Service should contain 0 to 128 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayQosServiceOpenApiVo gatewayQosServiceOpenApiVo = (GatewayQosServiceOpenApiVo) o; + return Objects.equals(this.name, gatewayQosServiceOpenApiVo.name) && + Objects.equals(this.protocol, gatewayQosServiceOpenApiVo.protocol) && + Objects.equals(this.sourceStartPort, gatewayQosServiceOpenApiVo.sourceStartPort) && + Objects.equals(this.sourceEndPort, gatewayQosServiceOpenApiVo.sourceEndPort) && + Objects.equals(this.destStartPort, gatewayQosServiceOpenApiVo.destStartPort) && + Objects.equals(this.destEndPort, gatewayQosServiceOpenApiVo.destEndPort) && + Objects.equals(this.type, gatewayQosServiceOpenApiVo.type) && + Objects.equals(this.code, gatewayQosServiceOpenApiVo.code) && + Objects.equals(this.protoNum, gatewayQosServiceOpenApiVo.protoNum) && + Objects.equals(this.description, gatewayQosServiceOpenApiVo.description); + } + + @Override + public int hashCode() { + return Objects.hash(name, protocol, sourceStartPort, sourceEndPort, destStartPort, destEndPort, type, code, protoNum, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayQosServiceOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" sourceStartPort: ").append(toIndentedString(sourceStartPort)).append("\n"); + sb.append(" sourceEndPort: ").append(toIndentedString(sourceEndPort)).append("\n"); + sb.append(" destStartPort: ").append(toIndentedString(destStartPort)).append("\n"); + sb.append(" destEndPort: ").append(toIndentedString(destEndPort)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" code: ").append(toIndentedString(code)).append("\n"); + sb.append(" protoNum: ").append(toIndentedString(protoNum)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceSummaryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceSummaryOpenApiVo.java new file mode 100644 index 0000000..6ef5970 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GatewayQosServiceSummaryOpenApiVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * GatewayQosServiceSummaryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GatewayQosServiceSummaryOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + public GatewayQosServiceSummaryOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * The ID of Gateway QoS Service. + * @return id + */ + @ApiModelProperty(value = "The ID of Gateway QoS Service.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public GatewayQosServiceSummaryOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * The name of Gateway QoS Service. + * @return name + */ + @ApiModelProperty(value = "The name of Gateway QoS Service.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GatewayQosServiceSummaryOpenApiVo gatewayQosServiceSummaryOpenApiVo = (GatewayQosServiceSummaryOpenApiVo) o; + return Objects.equals(this.id, gatewayQosServiceSummaryOpenApiVo.id) && + Objects.equals(this.name, gatewayQosServiceSummaryOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GatewayQosServiceSummaryOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoApplicationEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoApplicationEntity.java new file mode 100644 index 0000000..f945235 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoApplicationEntity.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoApplicationEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoApplicationEntity { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoApplicationEntity totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoApplicationEntity currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoApplicationEntity currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoApplicationEntity data(List data) { + this.data = data; + return this; + } + + public GridVoApplicationEntity addDataItem(ApplicationEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoApplicationEntity gridVoApplicationEntity = (GridVoApplicationEntity) o; + return Objects.equals(this.totalRows, gridVoApplicationEntity.totalRows) && + Objects.equals(this.currentPage, gridVoApplicationEntity.currentPage) && + Objects.equals(this.currentSize, gridVoApplicationEntity.currentSize) && + Objects.equals(this.data, gridVoApplicationEntity.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoApplicationEntity {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoBandwidthControlRule.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoBandwidthControlRule.java new file mode 100644 index 0000000..e0f6a0b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoBandwidthControlRule.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoBandwidthControlRule + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoBandwidthControlRule { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoBandwidthControlRule totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoBandwidthControlRule currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoBandwidthControlRule currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoBandwidthControlRule data(List data) { + this.data = data; + return this; + } + + public GridVoBandwidthControlRule addDataItem(BandwidthControlRule dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoBandwidthControlRule gridVoBandwidthControlRule = (GridVoBandwidthControlRule) o; + return Objects.equals(this.totalRows, gridVoBandwidthControlRule.totalRows) && + Objects.equals(this.currentPage, gridVoBandwidthControlRule.currentPage) && + Objects.equals(this.currentSize, gridVoBandwidthControlRule.currentSize) && + Objects.equals(this.data, gridVoBandwidthControlRule.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoBandwidthControlRule {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoClassRuleDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoClassRuleDetailOpenApiVo.java new file mode 100644 index 0000000..0f47d9e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoClassRuleDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoClassRuleDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoClassRuleDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoClassRuleDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoClassRuleDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoClassRuleDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoClassRuleDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoClassRuleDetailOpenApiVo addDataItem(ClassRuleDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoClassRuleDetailOpenApiVo gridVoClassRuleDetailOpenApiVo = (GridVoClassRuleDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoClassRuleDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoClassRuleDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoClassRuleDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoClassRuleDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoClassRuleDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDdnsOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDdnsOpenApiVo.java new file mode 100644 index 0000000..6aaa3ab --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDdnsOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoDdnsOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoDdnsOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoDdnsOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoDdnsOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoDdnsOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoDdnsOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoDdnsOpenApiVo addDataItem(DdnsOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoDdnsOpenApiVo gridVoDdnsOpenApiVo = (GridVoDdnsOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoDdnsOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoDdnsOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoDdnsOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoDdnsOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoDdnsOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDeviceTelephoneNumber.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDeviceTelephoneNumber.java new file mode 100644 index 0000000..d069572 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDeviceTelephoneNumber.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoDeviceTelephoneNumber + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoDeviceTelephoneNumber { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoDeviceTelephoneNumber totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoDeviceTelephoneNumber currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoDeviceTelephoneNumber currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoDeviceTelephoneNumber data(List data) { + this.data = data; + return this; + } + + public GridVoDeviceTelephoneNumber addDataItem(DeviceTelephoneNumber dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoDeviceTelephoneNumber gridVoDeviceTelephoneNumber = (GridVoDeviceTelephoneNumber) o; + return Objects.equals(this.totalRows, gridVoDeviceTelephoneNumber.totalRows) && + Objects.equals(this.currentPage, gridVoDeviceTelephoneNumber.currentPage) && + Objects.equals(this.currentSize, gridVoDeviceTelephoneNumber.currentSize) && + Objects.equals(this.data, gridVoDeviceTelephoneNumber.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoDeviceTelephoneNumber {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDhcpReservationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDhcpReservationOpenApiVo.java new file mode 100644 index 0000000..eafd12f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoDhcpReservationOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoDhcpReservationOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoDhcpReservationOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoDhcpReservationOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoDhcpReservationOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoDhcpReservationOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoDhcpReservationOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoDhcpReservationOpenApiVo addDataItem(DhcpReservationOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoDhcpReservationOpenApiVo gridVoDhcpReservationOpenApiVo = (GridVoDhcpReservationOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoDhcpReservationOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoDhcpReservationOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoDhcpReservationOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoDhcpReservationOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoDhcpReservationOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoEapAclInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoEapAclInfo.java new file mode 100644 index 0000000..ef3b575 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoEapAclInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoEapAclInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoEapAclInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoEapAclInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoEapAclInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoEapAclInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoEapAclInfo data(List data) { + this.data = data; + return this; + } + + public GridVoEapAclInfo addDataItem(EapAclInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoEapAclInfo gridVoEapAclInfo = (GridVoEapAclInfo) o; + return Objects.equals(this.totalRows, gridVoEapAclInfo.totalRows) && + Objects.equals(this.currentPage, gridVoEapAclInfo.currentPage) && + Objects.equals(this.currentSize, gridVoEapAclInfo.currentSize) && + Objects.equals(this.data, gridVoEapAclInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoEapAclInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoFilterEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoFilterEntity.java new file mode 100644 index 0000000..6ced8b8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoFilterEntity.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoFilterEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoFilterEntity { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoFilterEntity totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoFilterEntity currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoFilterEntity currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoFilterEntity data(List data) { + this.data = data; + return this; + } + + public GridVoFilterEntity addDataItem(FilterEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoFilterEntity gridVoFilterEntity = (GridVoFilterEntity) o; + return Objects.equals(this.totalRows, gridVoFilterEntity.totalRows) && + Objects.equals(this.currentPage, gridVoFilterEntity.currentPage) && + Objects.equals(this.currentSize, gridVoFilterEntity.currentSize) && + Objects.equals(this.data, gridVoFilterEntity.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoFilterEntity {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayAclInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayAclInfo.java new file mode 100644 index 0000000..608d424 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayAclInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoGatewayAclInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoGatewayAclInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoGatewayAclInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoGatewayAclInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoGatewayAclInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoGatewayAclInfo data(List data) { + this.data = data; + return this; + } + + public GridVoGatewayAclInfo addDataItem(GatewayAclInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoGatewayAclInfo gridVoGatewayAclInfo = (GridVoGatewayAclInfo) o; + return Objects.equals(this.totalRows, gridVoGatewayAclInfo.totalRows) && + Objects.equals(this.currentPage, gridVoGatewayAclInfo.currentPage) && + Objects.equals(this.currentSize, gridVoGatewayAclInfo.currentSize) && + Objects.equals(this.data, gridVoGatewayAclInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoGatewayAclInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayCustomAclInfoEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayCustomAclInfoEntity.java new file mode 100644 index 0000000..ba85d13 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayCustomAclInfoEntity.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoGatewayCustomAclInfoEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoGatewayCustomAclInfoEntity { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoGatewayCustomAclInfoEntity totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoGatewayCustomAclInfoEntity currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoGatewayCustomAclInfoEntity currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoGatewayCustomAclInfoEntity data(List data) { + this.data = data; + return this; + } + + public GridVoGatewayCustomAclInfoEntity addDataItem(GatewayCustomAclInfoEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoGatewayCustomAclInfoEntity gridVoGatewayCustomAclInfoEntity = (GridVoGatewayCustomAclInfoEntity) o; + return Objects.equals(this.totalRows, gridVoGatewayCustomAclInfoEntity.totalRows) && + Objects.equals(this.currentPage, gridVoGatewayCustomAclInfoEntity.currentPage) && + Objects.equals(this.currentSize, gridVoGatewayCustomAclInfoEntity.currentSize) && + Objects.equals(this.data, gridVoGatewayCustomAclInfoEntity.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoGatewayCustomAclInfoEntity {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayQosServiceDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayQosServiceDetailOpenApiVo.java new file mode 100644 index 0000000..735f0ac --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoGatewayQosServiceDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoGatewayQosServiceDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoGatewayQosServiceDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoGatewayQosServiceDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoGatewayQosServiceDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoGatewayQosServiceDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoGatewayQosServiceDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoGatewayQosServiceDetailOpenApiVo addDataItem(GatewayQosServiceDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoGatewayQosServiceDetailOpenApiVo gridVoGatewayQosServiceDetailOpenApiVo = (GridVoGatewayQosServiceDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoGatewayQosServiceDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoGatewayQosServiceDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoGatewayQosServiceDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoGatewayQosServiceDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoGatewayQosServiceDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoIpsBlockListEntry.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoIpsBlockListEntry.java new file mode 100644 index 0000000..1bfe674 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoIpsBlockListEntry.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoIpsBlockListEntry + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoIpsBlockListEntry { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoIpsBlockListEntry totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoIpsBlockListEntry currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoIpsBlockListEntry currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoIpsBlockListEntry data(List data) { + this.data = data; + return this; + } + + public GridVoIpsBlockListEntry addDataItem(IpsBlockListEntry dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoIpsBlockListEntry gridVoIpsBlockListEntry = (GridVoIpsBlockListEntry) o; + return Objects.equals(this.totalRows, gridVoIpsBlockListEntry.totalRows) && + Objects.equals(this.currentPage, gridVoIpsBlockListEntry.currentPage) && + Objects.equals(this.currentSize, gridVoIpsBlockListEntry.currentSize) && + Objects.equals(this.data, gridVoIpsBlockListEntry.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoIpsBlockListEntry {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoIpsSignatureInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoIpsSignatureInfo.java new file mode 100644 index 0000000..467ec21 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoIpsSignatureInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoIpsSignatureInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoIpsSignatureInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoIpsSignatureInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoIpsSignatureInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoIpsSignatureInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoIpsSignatureInfo data(List data) { + this.data = data; + return this; + } + + public GridVoIpsSignatureInfo addDataItem(IpsSignatureInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoIpsSignatureInfo gridVoIpsSignatureInfo = (GridVoIpsSignatureInfo) o; + return Objects.equals(this.totalRows, gridVoIpsSignatureInfo.totalRows) && + Objects.equals(this.currentPage, gridVoIpsSignatureInfo.currentPage) && + Objects.equals(this.currentSize, gridVoIpsSignatureInfo.currentSize) && + Objects.equals(this.data, gridVoIpsSignatureInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoIpsSignatureInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoLanNetworkVlansOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoLanNetworkVlansOpenApiVo.java new file mode 100644 index 0000000..c517e76 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoLanNetworkVlansOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoLanNetworkVlansOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoLanNetworkVlansOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoLanNetworkVlansOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoLanNetworkVlansOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoLanNetworkVlansOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoLanNetworkVlansOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoLanNetworkVlansOpenApiVo addDataItem(LanNetworkVlansOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoLanNetworkVlansOpenApiVo gridVoLanNetworkVlansOpenApiVo = (GridVoLanNetworkVlansOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoLanNetworkVlansOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoLanNetworkVlansOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoLanNetworkVlansOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoLanNetworkVlansOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoLanNetworkVlansOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoLanProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoLanProfileOpenApiVo.java new file mode 100644 index 0000000..0231ec1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoLanProfileOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoLanProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoLanProfileOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoLanProfileOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoLanProfileOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoLanProfileOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoLanProfileOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoLanProfileOpenApiVo addDataItem(LanProfileOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoLanProfileOpenApiVo gridVoLanProfileOpenApiVo = (GridVoLanProfileOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoLanProfileOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoLanProfileOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoLanProfileOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoLanProfileOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoLanProfileOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoMacFiltering.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoMacFiltering.java new file mode 100644 index 0000000..979145d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoMacFiltering.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoMacFiltering + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoMacFiltering { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoMacFiltering totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoMacFiltering currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoMacFiltering currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoMacFiltering data(List data) { + this.data = data; + return this; + } + + public GridVoMacFiltering addDataItem(MacFiltering dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoMacFiltering gridVoMacFiltering = (GridVoMacFiltering) o; + return Objects.equals(this.totalRows, gridVoMacFiltering.totalRows) && + Objects.equals(this.currentPage, gridVoMacFiltering.currentPage) && + Objects.equals(this.currentSize, gridVoMacFiltering.currentSize) && + Objects.equals(this.data, gridVoMacFiltering.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoMacFiltering {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoMdnsRuleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoMdnsRuleOpenApiVo.java new file mode 100644 index 0000000..1b4c2bd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoMdnsRuleOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoMdnsRuleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoMdnsRuleOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoMdnsRuleOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoMdnsRuleOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoMdnsRuleOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoMdnsRuleOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoMdnsRuleOpenApiVo addDataItem(MdnsRuleOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoMdnsRuleOpenApiVo gridVoMdnsRuleOpenApiVo = (GridVoMdnsRuleOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoMdnsRuleOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoMdnsRuleOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoMdnsRuleOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoMdnsRuleOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoMdnsRuleOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOswProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOswProfileOpenApiVo.java new file mode 100644 index 0000000..38ada24 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOswProfileOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoOswProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoOswProfileOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoOswProfileOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoOswProfileOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoOswProfileOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoOswProfileOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoOswProfileOpenApiVo addDataItem(OswProfileOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoOswProfileOpenApiVo gridVoOswProfileOpenApiVo = (GridVoOswProfileOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoOswProfileOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoOswProfileOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoOswProfileOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoOswProfileOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoOswProfileOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOtoNatInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOtoNatInfoOpenApiVo.java new file mode 100644 index 0000000..b366395 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOtoNatInfoOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoOtoNatInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoOtoNatInfoOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoOtoNatInfoOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoOtoNatInfoOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoOtoNatInfoOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoOtoNatInfoOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoOtoNatInfoOpenApiVo addDataItem(OtoNatInfoOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoOtoNatInfoOpenApiVo gridVoOtoNatInfoOpenApiVo = (GridVoOtoNatInfoOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoOtoNatInfoOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoOtoNatInfoOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoOtoNatInfoOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoOtoNatInfoOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoOtoNatInfoOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanApQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanApQueryOpenApiVo.java new file mode 100644 index 0000000..7bd2a07 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanApQueryOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoOuiBasedVlanApQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoOuiBasedVlanApQueryOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoOuiBasedVlanApQueryOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoOuiBasedVlanApQueryOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoOuiBasedVlanApQueryOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoOuiBasedVlanApQueryOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoOuiBasedVlanApQueryOpenApiVo addDataItem(OuiBasedVlanApQueryOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoOuiBasedVlanApQueryOpenApiVo gridVoOuiBasedVlanApQueryOpenApiVo = (GridVoOuiBasedVlanApQueryOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoOuiBasedVlanApQueryOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoOuiBasedVlanApQueryOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoOuiBasedVlanApQueryOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoOuiBasedVlanApQueryOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoOuiBasedVlanApQueryOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanSwitchInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanSwitchInfoOpenApiVo.java new file mode 100644 index 0000000..01d2986 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanSwitchInfoOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoOuiBasedVlanSwitchInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoOuiBasedVlanSwitchInfoOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoOuiBasedVlanSwitchInfoOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoOuiBasedVlanSwitchInfoOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoOuiBasedVlanSwitchInfoOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoOuiBasedVlanSwitchInfoOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoOuiBasedVlanSwitchInfoOpenApiVo addDataItem(OuiBasedVlanSwitchInfoOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoOuiBasedVlanSwitchInfoOpenApiVo gridVoOuiBasedVlanSwitchInfoOpenApiVo = (GridVoOuiBasedVlanSwitchInfoOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoOuiBasedVlanSwitchInfoOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoOuiBasedVlanSwitchInfoOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoOuiBasedVlanSwitchInfoOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoOuiBasedVlanSwitchInfoOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoOuiBasedVlanSwitchInfoOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanSwitchQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanSwitchQueryOpenApiVo.java new file mode 100644 index 0000000..2578709 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoOuiBasedVlanSwitchQueryOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoOuiBasedVlanSwitchQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoOuiBasedVlanSwitchQueryOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoOuiBasedVlanSwitchQueryOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoOuiBasedVlanSwitchQueryOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoOuiBasedVlanSwitchQueryOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoOuiBasedVlanSwitchQueryOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoOuiBasedVlanSwitchQueryOpenApiVo addDataItem(OuiBasedVlanSwitchQueryOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoOuiBasedVlanSwitchQueryOpenApiVo gridVoOuiBasedVlanSwitchQueryOpenApiVo = (GridVoOuiBasedVlanSwitchQueryOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoOuiBasedVlanSwitchQueryOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoOuiBasedVlanSwitchQueryOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoOuiBasedVlanSwitchQueryOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoOuiBasedVlanSwitchQueryOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoOuiBasedVlanSwitchQueryOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPoeScheduleQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPoeScheduleQueryOpenApiVo.java new file mode 100644 index 0000000..7fcb7bf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPoeScheduleQueryOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoPoeScheduleQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoPoeScheduleQueryOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoPoeScheduleQueryOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoPoeScheduleQueryOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoPoeScheduleQueryOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoPoeScheduleQueryOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoPoeScheduleQueryOpenApiVo addDataItem(PoeScheduleQueryOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoPoeScheduleQueryOpenApiVo gridVoPoeScheduleQueryOpenApiVo = (GridVoPoeScheduleQueryOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoPoeScheduleQueryOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoPoeScheduleQueryOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoPoeScheduleQueryOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoPoeScheduleQueryOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoPoeScheduleQueryOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPolicyRoutingInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPolicyRoutingInfo.java new file mode 100644 index 0000000..638894f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPolicyRoutingInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoPolicyRoutingInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoPolicyRoutingInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoPolicyRoutingInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoPolicyRoutingInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoPolicyRoutingInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoPolicyRoutingInfo data(List data) { + this.data = data; + return this; + } + + public GridVoPolicyRoutingInfo addDataItem(PolicyRoutingInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoPolicyRoutingInfo gridVoPolicyRoutingInfo = (GridVoPolicyRoutingInfo) o; + return Objects.equals(this.totalRows, gridVoPolicyRoutingInfo.totalRows) && + Objects.equals(this.currentPage, gridVoPolicyRoutingInfo.currentPage) && + Objects.equals(this.currentSize, gridVoPolicyRoutingInfo.currentSize) && + Objects.equals(this.data, gridVoPolicyRoutingInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoPolicyRoutingInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPortForwardingInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPortForwardingInfo.java new file mode 100644 index 0000000..109838d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPortForwardingInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoPortForwardingInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoPortForwardingInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoPortForwardingInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoPortForwardingInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoPortForwardingInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoPortForwardingInfo data(List data) { + this.data = data; + return this; + } + + public GridVoPortForwardingInfo addDataItem(PortForwardingInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoPortForwardingInfo gridVoPortForwardingInfo = (GridVoPortForwardingInfo) o; + return Objects.equals(this.totalRows, gridVoPortForwardingInfo.totalRows) && + Objects.equals(this.currentPage, gridVoPortForwardingInfo.currentPage) && + Objects.equals(this.currentSize, gridVoPortForwardingInfo.currentSize) && + Objects.equals(this.data, gridVoPortForwardingInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoPortForwardingInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPortScheduleQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPortScheduleQueryOpenApiVo.java new file mode 100644 index 0000000..b23c428 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoPortScheduleQueryOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoPortScheduleQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoPortScheduleQueryOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoPortScheduleQueryOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoPortScheduleQueryOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoPortScheduleQueryOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoPortScheduleQueryOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoPortScheduleQueryOpenApiVo addDataItem(PortScheduleQueryOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoPortScheduleQueryOpenApiVo gridVoPortScheduleQueryOpenApiVo = (GridVoPortScheduleQueryOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoPortScheduleQueryOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoPortScheduleQueryOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoPortScheduleQueryOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoPortScheduleQueryOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoPortScheduleQueryOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoProviderProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoProviderProfileEntity.java new file mode 100644 index 0000000..85ba18b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoProviderProfileEntity.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoProviderProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoProviderProfileEntity { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoProviderProfileEntity totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoProviderProfileEntity currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoProviderProfileEntity currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoProviderProfileEntity data(List data) { + this.data = data; + return this; + } + + public GridVoProviderProfileEntity addDataItem(ProviderProfileEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoProviderProfileEntity gridVoProviderProfileEntity = (GridVoProviderProfileEntity) o; + return Objects.equals(this.totalRows, gridVoProviderProfileEntity.totalRows) && + Objects.equals(this.currentPage, gridVoProviderProfileEntity.currentPage) && + Objects.equals(this.currentSize, gridVoProviderProfileEntity.currentSize) && + Objects.equals(this.data, gridVoProviderProfileEntity.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoProviderProfileEntity {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoQosBwcDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoQosBwcDetailOpenApiVo.java new file mode 100644 index 0000000..f638f06 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoQosBwcDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoQosBwcDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoQosBwcDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoQosBwcDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoQosBwcDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoQosBwcDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoQosBwcDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoQosBwcDetailOpenApiVo addDataItem(QosBwcDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoQosBwcDetailOpenApiVo gridVoQosBwcDetailOpenApiVo = (GridVoQosBwcDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoQosBwcDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoQosBwcDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoQosBwcDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoQosBwcDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoQosBwcDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoQuerySessionLimitRuleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoQuerySessionLimitRuleOpenApiVo.java new file mode 100644 index 0000000..8ba6f01 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoQuerySessionLimitRuleOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoQuerySessionLimitRuleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoQuerySessionLimitRuleOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoQuerySessionLimitRuleOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoQuerySessionLimitRuleOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoQuerySessionLimitRuleOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoQuerySessionLimitRuleOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoQuerySessionLimitRuleOpenApiVo addDataItem(QuerySessionLimitRuleOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoQuerySessionLimitRuleOpenApiVo gridVoQuerySessionLimitRuleOpenApiVo = (GridVoQuerySessionLimitRuleOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoQuerySessionLimitRuleOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoQuerySessionLimitRuleOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoQuerySessionLimitRuleOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoQuerySessionLimitRuleOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoQuerySessionLimitRuleOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRadiusUserOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRadiusUserOpenApiVo.java new file mode 100644 index 0000000..aaf4de9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRadiusUserOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoRadiusUserOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoRadiusUserOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoRadiusUserOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoRadiusUserOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoRadiusUserOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoRadiusUserOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoRadiusUserOpenApiVo addDataItem(RadiusUserOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoRadiusUserOpenApiVo gridVoRadiusUserOpenApiVo = (GridVoRadiusUserOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoRadiusUserOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoRadiusUserOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoRadiusUserOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoRadiusUserOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoRadiusUserOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRestrictionEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRestrictionEntity.java new file mode 100644 index 0000000..435ea30 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRestrictionEntity.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoRestrictionEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoRestrictionEntity { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoRestrictionEntity totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoRestrictionEntity currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoRestrictionEntity currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoRestrictionEntity data(List data) { + this.data = data; + return this; + } + + public GridVoRestrictionEntity addDataItem(RestrictionEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoRestrictionEntity gridVoRestrictionEntity = (GridVoRestrictionEntity) o; + return Objects.equals(this.totalRows, gridVoRestrictionEntity.totalRows) && + Objects.equals(this.currentPage, gridVoRestrictionEntity.currentPage) && + Objects.equals(this.currentSize, gridVoRestrictionEntity.currentSize) && + Objects.equals(this.data, gridVoRestrictionEntity.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoRestrictionEntity {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRuleEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRuleEntity.java new file mode 100644 index 0000000..0bf3d1e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoRuleEntity.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoRuleEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoRuleEntity { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoRuleEntity totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoRuleEntity currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoRuleEntity currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoRuleEntity data(List data) { + this.data = data; + return this; + } + + public GridVoRuleEntity addDataItem(RuleEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoRuleEntity gridVoRuleEntity = (GridVoRuleEntity) o; + return Objects.equals(this.totalRows, gridVoRuleEntity.totalRows) && + Objects.equals(this.currentPage, gridVoRuleEntity.currentPage) && + Objects.equals(this.currentSize, gridVoRuleEntity.currentSize) && + Objects.equals(this.data, gridVoRuleEntity.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoRuleEntity {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSsidOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSsidOpenApiVo.java new file mode 100644 index 0000000..1898471 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSsidOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoSsidOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoSsidOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoSsidOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoSsidOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoSsidOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoSsidOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoSsidOpenApiVo addDataItem(SsidOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoSsidOpenApiVo gridVoSsidOpenApiVo = (GridVoSsidOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoSsidOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoSsidOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoSsidOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoSsidOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoSsidOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnResourceEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnResourceEntity.java new file mode 100644 index 0000000..b6025eb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnResourceEntity.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoSslVpnResourceEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoSslVpnResourceEntity { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoSslVpnResourceEntity totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoSslVpnResourceEntity currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoSslVpnResourceEntity currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoSslVpnResourceEntity data(List data) { + this.data = data; + return this; + } + + public GridVoSslVpnResourceEntity addDataItem(SslVpnResourceEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoSslVpnResourceEntity gridVoSslVpnResourceEntity = (GridVoSslVpnResourceEntity) o; + return Objects.equals(this.totalRows, gridVoSslVpnResourceEntity.totalRows) && + Objects.equals(this.currentPage, gridVoSslVpnResourceEntity.currentPage) && + Objects.equals(this.currentSize, gridVoSslVpnResourceEntity.currentSize) && + Objects.equals(this.data, gridVoSslVpnResourceEntity.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoSslVpnResourceEntity {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnResourceGroup.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnResourceGroup.java new file mode 100644 index 0000000..5ffecfd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnResourceGroup.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoSslVpnResourceGroup + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoSslVpnResourceGroup { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoSslVpnResourceGroup totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoSslVpnResourceGroup currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoSslVpnResourceGroup currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoSslVpnResourceGroup data(List data) { + this.data = data; + return this; + } + + public GridVoSslVpnResourceGroup addDataItem(SslVpnResourceGroup dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoSslVpnResourceGroup gridVoSslVpnResourceGroup = (GridVoSslVpnResourceGroup) o; + return Objects.equals(this.totalRows, gridVoSslVpnResourceGroup.totalRows) && + Objects.equals(this.currentPage, gridVoSslVpnResourceGroup.currentPage) && + Objects.equals(this.currentSize, gridVoSslVpnResourceGroup.currentSize) && + Objects.equals(this.data, gridVoSslVpnResourceGroup.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoSslVpnResourceGroup {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnUserGroupEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnUserGroupEntity.java new file mode 100644 index 0000000..93df961 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSslVpnUserGroupEntity.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoSslVpnUserGroupEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoSslVpnUserGroupEntity { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoSslVpnUserGroupEntity totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoSslVpnUserGroupEntity currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoSslVpnUserGroupEntity currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoSslVpnUserGroupEntity data(List data) { + this.data = data; + return this; + } + + public GridVoSslVpnUserGroupEntity addDataItem(SslVpnUserGroupEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoSslVpnUserGroupEntity gridVoSslVpnUserGroupEntity = (GridVoSslVpnUserGroupEntity) o; + return Objects.equals(this.totalRows, gridVoSslVpnUserGroupEntity.totalRows) && + Objects.equals(this.currentPage, gridVoSslVpnUserGroupEntity.currentPage) && + Objects.equals(this.currentSize, gridVoSslVpnUserGroupEntity.currentSize) && + Objects.equals(this.data, gridVoSslVpnUserGroupEntity.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoSslVpnUserGroupEntity {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoStaticRoutingInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoStaticRoutingInfo.java new file mode 100644 index 0000000..05a5085 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoStaticRoutingInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoStaticRoutingInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoStaticRoutingInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoStaticRoutingInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoStaticRoutingInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoStaticRoutingInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoStaticRoutingInfo data(List data) { + this.data = data; + return this; + } + + public GridVoStaticRoutingInfo addDataItem(StaticRoutingInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoStaticRoutingInfo gridVoStaticRoutingInfo = (GridVoStaticRoutingInfo) o; + return Objects.equals(this.totalRows, gridVoStaticRoutingInfo.totalRows) && + Objects.equals(this.currentPage, gridVoStaticRoutingInfo.currentPage) && + Objects.equals(this.currentSize, gridVoStaticRoutingInfo.currentSize) && + Objects.equals(this.data, gridVoStaticRoutingInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoStaticRoutingInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSwitchAclInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSwitchAclInfo.java new file mode 100644 index 0000000..a7ca27e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoSwitchAclInfo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoSwitchAclInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoSwitchAclInfo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoSwitchAclInfo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoSwitchAclInfo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoSwitchAclInfo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoSwitchAclInfo data(List data) { + this.data = data; + return this; + } + + public GridVoSwitchAclInfo addDataItem(SwitchAclInfo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoSwitchAclInfo gridVoSwitchAclInfo = (GridVoSwitchAclInfo) o; + return Objects.equals(this.totalRows, gridVoSwitchAclInfo.totalRows) && + Objects.equals(this.currentPage, gridVoSwitchAclInfo.currentPage) && + Objects.equals(this.currentSize, gridVoSwitchAclInfo.currentSize) && + Objects.equals(this.data, gridVoSwitchAclInfo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoSwitchAclInfo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoUseProfileOswOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoUseProfileOswOpenApiVo.java new file mode 100644 index 0000000..0f8b3e7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoUseProfileOswOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoUseProfileOswOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoUseProfileOswOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoUseProfileOswOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoUseProfileOswOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoUseProfileOswOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoUseProfileOswOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoUseProfileOswOpenApiVo addDataItem(UseProfileOswOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoUseProfileOswOpenApiVo gridVoUseProfileOswOpenApiVo = (GridVoUseProfileOswOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoUseProfileOswOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoUseProfileOswOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoUseProfileOswOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoUseProfileOswOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoUseProfileOswOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoiceMail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoiceMail.java new file mode 100644 index 0000000..fc67d9e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoiceMail.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoVoiceMail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoVoiceMail { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoVoiceMail totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoVoiceMail currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoVoiceMail currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoVoiceMail data(List data) { + this.data = data; + return this; + } + + public GridVoVoiceMail addDataItem(VoiceMail dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoVoiceMail gridVoVoiceMail = (GridVoVoiceMail) o; + return Objects.equals(this.totalRows, gridVoVoiceMail.totalRows) && + Objects.equals(this.currentPage, gridVoVoiceMail.currentPage) && + Objects.equals(this.currentSize, gridVoVoiceMail.currentSize) && + Objects.equals(this.data, gridVoVoiceMail.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoVoiceMail {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoipDevice.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoipDevice.java new file mode 100644 index 0000000..a05a8e4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoipDevice.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoVoipDevice + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoVoipDevice { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoVoipDevice totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoVoipDevice currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoVoipDevice currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoVoipDevice data(List data) { + this.data = data; + return this; + } + + public GridVoVoipDevice addDataItem(VoipDevice dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoVoipDevice gridVoVoipDevice = (GridVoVoipDevice) o; + return Objects.equals(this.totalRows, gridVoVoipDevice.totalRows) && + Objects.equals(this.currentPage, gridVoVoipDevice.currentPage) && + Objects.equals(this.currentSize, gridVoVoipDevice.currentSize) && + Objects.equals(this.data, gridVoVoipDevice.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoVoipDevice {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoipTelephoneBookSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoipTelephoneBookSetting.java new file mode 100644 index 0000000..f5a6b60 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVoipTelephoneBookSetting.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoVoipTelephoneBookSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoVoipTelephoneBookSetting { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoVoipTelephoneBookSetting totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoVoipTelephoneBookSetting currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoVoipTelephoneBookSetting currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoVoipTelephoneBookSetting data(List data) { + this.data = data; + return this; + } + + public GridVoVoipTelephoneBookSetting addDataItem(VoipTelephoneBookSetting dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoVoipTelephoneBookSetting gridVoVoipTelephoneBookSetting = (GridVoVoipTelephoneBookSetting) o; + return Objects.equals(this.totalRows, gridVoVoipTelephoneBookSetting.totalRows) && + Objects.equals(this.currentPage, gridVoVoipTelephoneBookSetting.currentPage) && + Objects.equals(this.currentSize, gridVoVoipTelephoneBookSetting.currentSize) && + Objects.equals(this.data, gridVoVoipTelephoneBookSetting.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoVoipTelephoneBookSetting {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVpnUserResponse.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVpnUserResponse.java new file mode 100644 index 0000000..f28857b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoVpnUserResponse.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoVpnUserResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoVpnUserResponse { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoVpnUserResponse totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoVpnUserResponse currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoVpnUserResponse currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoVpnUserResponse data(List data) { + this.data = data; + return this; + } + + public GridVoVpnUserResponse addDataItem(VpnUserResponse dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoVpnUserResponse gridVoVpnUserResponse = (GridVoVpnUserResponse) o; + return Objects.equals(this.totalRows, gridVoVpnUserResponse.totalRows) && + Objects.equals(this.currentPage, gridVoVpnUserResponse.currentPage) && + Objects.equals(this.currentSize, gridVoVpnUserResponse.currentSize) && + Objects.equals(this.data, gridVoVpnUserResponse.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoVpnUserResponse {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoWireguardDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoWireguardDetailOpenApiVo.java new file mode 100644 index 0000000..aea6acd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoWireguardDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoWireguardDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoWireguardDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoWireguardDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoWireguardDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoWireguardDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoWireguardDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoWireguardDetailOpenApiVo addDataItem(WireguardDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoWireguardDetailOpenApiVo gridVoWireguardDetailOpenApiVo = (GridVoWireguardDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoWireguardDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoWireguardDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoWireguardDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoWireguardDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoWireguardDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoWireguardPeerDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoWireguardPeerDetailOpenApiVo.java new file mode 100644 index 0000000..be6a41b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoWireguardPeerDetailOpenApiVo.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoWireguardPeerDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoWireguardPeerDetailOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoWireguardPeerDetailOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoWireguardPeerDetailOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoWireguardPeerDetailOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoWireguardPeerDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public GridVoWireguardPeerDetailOpenApiVo addDataItem(WireguardPeerDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoWireguardPeerDetailOpenApiVo gridVoWireguardPeerDetailOpenApiVo = (GridVoWireguardPeerDetailOpenApiVo) o; + return Objects.equals(this.totalRows, gridVoWireguardPeerDetailOpenApiVo.totalRows) && + Objects.equals(this.currentPage, gridVoWireguardPeerDetailOpenApiVo.currentPage) && + Objects.equals(this.currentSize, gridVoWireguardPeerDetailOpenApiVo.currentSize) && + Objects.equals(this.data, gridVoWireguardPeerDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoWireguardPeerDetailOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoiPsecFailover.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoiPsecFailover.java new file mode 100644 index 0000000..517af6d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoiPsecFailover.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoiPsecFailover + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoiPsecFailover { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoiPsecFailover totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoiPsecFailover currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoiPsecFailover currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoiPsecFailover data(List data) { + this.data = data; + return this; + } + + public GridVoiPsecFailover addDataItem(IPsecFailover dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoiPsecFailover gridVoiPsecFailover = (GridVoiPsecFailover) o; + return Objects.equals(this.totalRows, gridVoiPsecFailover.totalRows) && + Objects.equals(this.currentPage, gridVoiPsecFailover.currentPage) && + Objects.equals(this.currentSize, gridVoiPsecFailover.currentSize) && + Objects.equals(this.data, gridVoiPsecFailover.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoiPsecFailover {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoipMacBinding.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoipMacBinding.java new file mode 100644 index 0000000..b3fcdf5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVoipMacBinding.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVoipMacBinding + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVoipMacBinding { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVoipMacBinding totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVoipMacBinding currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVoipMacBinding currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVoipMacBinding data(List data) { + this.data = data; + return this; + } + + public GridVoipMacBinding addDataItem(IpMacBinding dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVoipMacBinding gridVoipMacBinding = (GridVoipMacBinding) o; + return Objects.equals(this.totalRows, gridVoipMacBinding.totalRows) && + Objects.equals(this.currentPage, gridVoipMacBinding.currentPage) && + Objects.equals(this.currentSize, gridVoipMacBinding.currentSize) && + Objects.equals(this.data, gridVoipMacBinding.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVoipMacBinding {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVosslVpnLockEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVosslVpnLockEntity.java new file mode 100644 index 0000000..6792e2d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GridVosslVpnLockEntity.java @@ -0,0 +1,164 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GridVosslVpnLockEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GridVosslVpnLockEntity { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + public GridVosslVpnLockEntity totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public GridVosslVpnLockEntity currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public GridVosslVpnLockEntity currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public GridVosslVpnLockEntity data(List data) { + this.data = data; + return this; + } + + public GridVosslVpnLockEntity addDataItem(SslVpnLockEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GridVosslVpnLockEntity gridVosslVpnLockEntity = (GridVosslVpnLockEntity) o; + return Objects.equals(this.totalRows, gridVosslVpnLockEntity.totalRows) && + Objects.equals(this.currentPage, gridVosslVpnLockEntity.currentPage) && + Objects.equals(this.currentSize, gridVosslVpnLockEntity.currentSize) && + Objects.equals(this.data, gridVosslVpnLockEntity.data); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GridVosslVpnLockEntity {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GroupOpenApiVo.java new file mode 100644 index 0000000..9aed580 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/GroupOpenApiVo.java @@ -0,0 +1,506 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * GroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class GroupOpenApiVo { + @JsonProperty("groupId") + private String groupId; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("count") + private Integer count; + + @JsonProperty("buildIn") + private Boolean buildIn; + + @JsonProperty("ipList") + @Valid + private List ipList = null; + + @JsonProperty("ipv6List") + @Valid + private List ipv6List = null; + + @JsonProperty("portType") + private Integer portType; + + @JsonProperty("portList") + @Valid + private List portList = null; + + @JsonProperty("portMaskList") + @Valid + private List portMaskList = null; + + @JsonProperty("macAddressList") + @Valid + private List macAddressList = null; + + @JsonProperty("countryList") + @Valid + private List countryList = null; + + @JsonProperty("description") + private String description; + + @JsonProperty("domainName") + @Valid + private List domainName = null; + + @JsonProperty("domainNamePort") + @Valid + private List domainNamePort = null; + + public GroupOpenApiVo groupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * Group profile ID + * @return groupId + */ + @ApiModelProperty(value = "Group profile ID") + + + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public GroupOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Group profile name + * @return name + */ + @ApiModelProperty(value = "Group profile name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public GroupOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of group profile. 0: IP Group; 1: IP Port Group; 2: MAC Group; 3: IPv6 Group; 4: IPv6 Port Group; 5: Country Group; 7: Domain Group + * @return type + */ + @ApiModelProperty(value = "Type of group profile. 0: IP Group; 1: IP Port Group; 2: MAC Group; 3: IPv6 Group; 4: IPv6 Port Group; 5: Country Group; 7: Domain Group") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public GroupOpenApiVo count(Integer count) { + this.count = count; + return this; + } + + /** + * Count of list entries + * @return count + */ + @ApiModelProperty(value = "Count of list entries") + + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public GroupOpenApiVo buildIn(Boolean buildIn) { + this.buildIn = buildIn; + return this; + } + + /** + * Is this profile a built-in profile + * @return buildIn + */ + @ApiModelProperty(value = "Is this profile a built-in profile") + + + public Boolean getBuildIn() { + return buildIn; + } + + public void setBuildIn(Boolean buildIn) { + this.buildIn = buildIn; + } + + public GroupOpenApiVo ipList(List ipList) { + this.ipList = ipList; + return this; + } + + public GroupOpenApiVo addIpListItem(IpSubnetsOpenApiVo ipListItem) { + if (this.ipList == null) { + this.ipList = new ArrayList<>(); + } + this.ipList.add(ipListItem); + return this; + } + + /** + * IP subnet info list. [type] value of 0 or 1 is required + * @return ipList + */ + @ApiModelProperty(value = "IP subnet info list. [type] value of 0 or 1 is required") + + @Valid + + public List getIpList() { + return ipList; + } + + public void setIpList(List ipList) { + this.ipList = ipList; + } + + public GroupOpenApiVo ipv6List(List ipv6List) { + this.ipv6List = ipv6List; + return this; + } + + public GroupOpenApiVo addIpv6ListItem(IPv6SubnetsOpenApiVo ipv6ListItem) { + if (this.ipv6List == null) { + this.ipv6List = new ArrayList<>(); + } + this.ipv6List.add(ipv6ListItem); + return this; + } + + /** + * IPv6 subnet info list. [type] value of 3 or 4 is required + * @return ipv6List + */ + @ApiModelProperty(value = "IPv6 subnet info list. [type] value of 3 or 4 is required") + + @Valid + + public List getIpv6List() { + return ipv6List; + } + + public void setIpv6List(List ipv6List) { + this.ipv6List = ipv6List; + } + + public GroupOpenApiVo portType(Integer portType) { + this.portType = portType; + return this; + } + + /** + * Port type. 0: port range 1: port mask. Valid when [type] is 1 or 4 + * @return portType + */ + @ApiModelProperty(value = "Port type. 0: port range 1: port mask. Valid when [type] is 1 or 4") + + + public Integer getPortType() { + return portType; + } + + public void setPortType(Integer portType) { + this.portType = portType; + } + + public GroupOpenApiVo portList(List portList) { + this.portList = portList; + return this; + } + + public GroupOpenApiVo addPortListItem(String portListItem) { + if (this.portList == null) { + this.portList = new ArrayList<>(); + } + this.portList.add(portListItem); + return this; + } + + /** + * Port list. Valid when [portType] is 0 + * @return portList + */ + @ApiModelProperty(value = "Port list. Valid when [portType] is 0") + + + public List getPortList() { + return portList; + } + + public void setPortList(List portList) { + this.portList = portList; + } + + public GroupOpenApiVo portMaskList(List portMaskList) { + this.portMaskList = portMaskList; + return this; + } + + public GroupOpenApiVo addPortMaskListItem(PortMaskOpenApiVo portMaskListItem) { + if (this.portMaskList == null) { + this.portMaskList = new ArrayList<>(); + } + this.portMaskList.add(portMaskListItem); + return this; + } + + /** + * Port mask list. [portType] value of 1 are is required + * @return portMaskList + */ + @ApiModelProperty(value = "Port mask list. [portType] value of 1 are is required") + + @Valid + + public List getPortMaskList() { + return portMaskList; + } + + public void setPortMaskList(List portMaskList) { + this.portMaskList = portMaskList; + } + + public GroupOpenApiVo macAddressList(List macAddressList) { + this.macAddressList = macAddressList; + return this; + } + + public GroupOpenApiVo addMacAddressListItem(MacAddressOpenApiVo macAddressListItem) { + if (this.macAddressList == null) { + this.macAddressList = new ArrayList<>(); + } + this.macAddressList.add(macAddressListItem); + return this; + } + + /** + * MAC address list. Valid when [type] is 2 + * @return macAddressList + */ + @ApiModelProperty(value = "MAC address list. Valid when [type] is 2") + + @Valid + + public List getMacAddressList() { + return macAddressList; + } + + public void setMacAddressList(List macAddressList) { + this.macAddressList = macAddressList; + } + + public GroupOpenApiVo countryList(List countryList) { + this.countryList = countryList; + return this; + } + + public GroupOpenApiVo addCountryListItem(String countryListItem) { + if (this.countryList == null) { + this.countryList = new ArrayList<>(); + } + this.countryList.add(countryListItem); + return this; + } + + /** + * Country list. Valid when [type] is 5 + * @return countryList + */ + @ApiModelProperty(value = "Country list. Valid when [type] is 5") + + + public List getCountryList() { + return countryList; + } + + public void setCountryList(List countryList) { + this.countryList = countryList; + } + + public GroupOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description. Valid when [type] is 5 + * @return description + */ + @ApiModelProperty(value = "Description. Valid when [type] is 5") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public GroupOpenApiVo domainName(List domainName) { + this.domainName = domainName; + return this; + } + + public GroupOpenApiVo addDomainNameItem(String domainNameItem) { + if (this.domainName == null) { + this.domainName = new ArrayList<>(); + } + this.domainName.add(domainNameItem); + return this; + } + + /** + * Domain name. Valid when [type] is 7 + * @return domainName + */ + @ApiModelProperty(value = "Domain name. Valid when [type] is 7") + + + public List getDomainName() { + return domainName; + } + + public void setDomainName(List domainName) { + this.domainName = domainName; + } + + public GroupOpenApiVo domainNamePort(List domainNamePort) { + this.domainNamePort = domainNamePort; + return this; + } + + public GroupOpenApiVo addDomainNamePortItem(DomainOpenApiVo domainNamePortItem) { + if (this.domainNamePort == null) { + this.domainNamePort = new ArrayList<>(); + } + this.domainNamePort.add(domainNamePortItem); + return this; + } + + /** + * Domain info. Handle situations where there are ports, [type] values of 7 is required + * @return domainNamePort + */ + @ApiModelProperty(value = "Domain info. Handle situations where there are ports, [type] values of 7 is required") + + @Valid + + public List getDomainNamePort() { + return domainNamePort; + } + + public void setDomainNamePort(List domainNamePort) { + this.domainNamePort = domainNamePort; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + GroupOpenApiVo groupOpenApiVo = (GroupOpenApiVo) o; + return Objects.equals(this.groupId, groupOpenApiVo.groupId) && + Objects.equals(this.name, groupOpenApiVo.name) && + Objects.equals(this.type, groupOpenApiVo.type) && + Objects.equals(this.count, groupOpenApiVo.count) && + Objects.equals(this.buildIn, groupOpenApiVo.buildIn) && + Objects.equals(this.ipList, groupOpenApiVo.ipList) && + Objects.equals(this.ipv6List, groupOpenApiVo.ipv6List) && + Objects.equals(this.portType, groupOpenApiVo.portType) && + Objects.equals(this.portList, groupOpenApiVo.portList) && + Objects.equals(this.portMaskList, groupOpenApiVo.portMaskList) && + Objects.equals(this.macAddressList, groupOpenApiVo.macAddressList) && + Objects.equals(this.countryList, groupOpenApiVo.countryList) && + Objects.equals(this.description, groupOpenApiVo.description) && + Objects.equals(this.domainName, groupOpenApiVo.domainName) && + Objects.equals(this.domainNamePort, groupOpenApiVo.domainNamePort); + } + + @Override + public int hashCode() { + return Objects.hash(groupId, name, type, count, buildIn, ipList, ipv6List, portType, portList, portMaskList, macAddressList, countryList, description, domainName, domainNamePort); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class GroupOpenApiVo {\n"); + + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" buildIn: ").append(toIndentedString(buildIn)).append("\n"); + sb.append(" ipList: ").append(toIndentedString(ipList)).append("\n"); + sb.append(" ipv6List: ").append(toIndentedString(ipv6List)).append("\n"); + sb.append(" portType: ").append(toIndentedString(portType)).append("\n"); + sb.append(" portList: ").append(toIndentedString(portList)).append("\n"); + sb.append(" portMaskList: ").append(toIndentedString(portMaskList)).append("\n"); + sb.append(" macAddressList: ").append(toIndentedString(macAddressList)).append("\n"); + sb.append(" countryList: ").append(toIndentedString(countryList)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" domainName: ").append(toIndentedString(domainName)).append("\n"); + sb.append(" domainNamePort: ").append(toIndentedString(domainNamePort)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotRadiusSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotRadiusSetting.java new file mode 100644 index 0000000..0224ac0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotRadiusSetting.java @@ -0,0 +1,211 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Hotspot Radius Portal Setting. + */ +@ApiModel(description = "Hotspot Radius Portal Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class HotspotRadiusSetting { + @JsonProperty("radiusProfileId") + private String radiusProfileId; + + @JsonProperty("authMode") + private Integer authMode; + + @JsonProperty("nasId") + private String nasId; + + @JsonProperty("authTimeout") + private AuthTimeoutSetting authTimeout; + + @JsonProperty("disconnectReq") + private Boolean disconnectReq; + + @JsonProperty("receiverPort") + private Integer receiverPort; + + public HotspotRadiusSetting radiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + return this; + } + + /** + * RADIUS profile ID. + * @return radiusProfileId + */ + @ApiModelProperty(required = true, value = "RADIUS profile ID.") + @NotNull + + + public String getRadiusProfileId() { + return radiusProfileId; + } + + public void setRadiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + } + + public HotspotRadiusSetting authMode(Integer authMode) { + this.authMode = authMode; + return this; + } + + /** + * RADIUS auth mode, should be a value as follows: 1: PAP; 2: CHAP + * @return authMode + */ + @ApiModelProperty(required = true, value = "RADIUS auth mode, should be a value as follows: 1: PAP; 2: CHAP") + @NotNull + + + public Integer getAuthMode() { + return authMode; + } + + public void setAuthMode(Integer authMode) { + this.authMode = authMode; + } + + public HotspotRadiusSetting nasId(String nasId) { + this.nasId = nasId; + return this; + } + + /** + * RADIUS Attribute: NasID, should contain 1 to 64 characters. + * @return nasId + */ + @ApiModelProperty(required = true, value = "RADIUS Attribute: NasID, should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getNasId() { + return nasId; + } + + public void setNasId(String nasId) { + this.nasId = nasId; + } + + public HotspotRadiusSetting authTimeout(AuthTimeoutSetting authTimeout) { + this.authTimeout = authTimeout; + return this; + } + + /** + * Get authTimeout + * @return authTimeout + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public AuthTimeoutSetting getAuthTimeout() { + return authTimeout; + } + + public void setAuthTimeout(AuthTimeoutSetting authTimeout) { + this.authTimeout = authTimeout; + } + + public HotspotRadiusSetting disconnectReq(Boolean disconnectReq) { + this.disconnectReq = disconnectReq; + return this; + } + + /** + * Whether to support disconnect messages. + * @return disconnectReq + */ + @ApiModelProperty(value = "Whether to support disconnect messages.") + + + public Boolean getDisconnectReq() { + return disconnectReq; + } + + public void setDisconnectReq(Boolean disconnectReq) { + this.disconnectReq = disconnectReq; + } + + public HotspotRadiusSetting receiverPort(Integer receiverPort) { + this.receiverPort = receiverPort; + return this; + } + + /** + * Port for listening to disconnect messages, should be within the range of 1–65535. + * @return receiverPort + */ + @ApiModelProperty(value = "Port for listening to disconnect messages, should be within the range of 1–65535.") + + + public Integer getReceiverPort() { + return receiverPort; + } + + public void setReceiverPort(Integer receiverPort) { + this.receiverPort = receiverPort; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HotspotRadiusSetting hotspotRadiusSetting = (HotspotRadiusSetting) o; + return Objects.equals(this.radiusProfileId, hotspotRadiusSetting.radiusProfileId) && + Objects.equals(this.authMode, hotspotRadiusSetting.authMode) && + Objects.equals(this.nasId, hotspotRadiusSetting.nasId) && + Objects.equals(this.authTimeout, hotspotRadiusSetting.authTimeout) && + Objects.equals(this.disconnectReq, hotspotRadiusSetting.disconnectReq) && + Objects.equals(this.receiverPort, hotspotRadiusSetting.receiverPort); + } + + @Override + public int hashCode() { + return Objects.hash(radiusProfileId, authMode, nasId, authTimeout, disconnectReq, receiverPort); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HotspotRadiusSetting {\n"); + + sb.append(" radiusProfileId: ").append(toIndentedString(radiusProfileId)).append("\n"); + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" nasId: ").append(toIndentedString(nasId)).append("\n"); + sb.append(" authTimeout: ").append(toIndentedString(authTimeout)).append("\n"); + sb.append(" disconnectReq: ").append(toIndentedString(disconnectReq)).append("\n"); + sb.append(" receiverPort: ").append(toIndentedString(receiverPort)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotRadiusSettingResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotRadiusSettingResOpenApiVo.java new file mode 100644 index 0000000..af38926 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotRadiusSettingResOpenApiVo.java @@ -0,0 +1,230 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Hotspot: RADIUS Portal setting, required when [authType] is 11 and hotspot [enabledTypes] contains 8. + */ +@ApiModel(description = "Hotspot: RADIUS Portal setting, required when [authType] is 11 and hotspot [enabledTypes] contains 8.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class HotspotRadiusSettingResOpenApiVo { + @JsonProperty("radiusProfileId") + private String radiusProfileId; + + @JsonProperty("authMode") + private Integer authMode; + + @JsonProperty("nasId") + private String nasId; + + @JsonProperty("authTimeout") + private AuthTimeOpenApiVo authTimeout; + + @JsonProperty("disconnectReq") + private Boolean disconnectReq; + + @JsonProperty("receiverPort") + private Integer receiverPort; + + @JsonProperty("receiverPortStatus") + private Integer receiverPortStatus; + + public HotspotRadiusSettingResOpenApiVo radiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + return this; + } + + /** + * This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface + * @return radiusProfileId + */ + @ApiModelProperty(value = "This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface") + + + public String getRadiusProfileId() { + return radiusProfileId; + } + + public void setRadiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + } + + public HotspotRadiusSettingResOpenApiVo authMode(Integer authMode) { + this.authMode = authMode; + return this; + } + + /** + * RADIUS auth mode, should be a value as follows: 1: PAP; 2: CHAP + * @return authMode + */ + @ApiModelProperty(value = "RADIUS auth mode, should be a value as follows: 1: PAP; 2: CHAP") + + + public Integer getAuthMode() { + return authMode; + } + + public void setAuthMode(Integer authMode) { + this.authMode = authMode; + } + + public HotspotRadiusSettingResOpenApiVo nasId(String nasId) { + this.nasId = nasId; + return this; + } + + /** + * RADIUS Attribute: NasID, should contain 1 to 64 characters. + * @return nasId + */ + @ApiModelProperty(value = "RADIUS Attribute: NasID, should contain 1 to 64 characters.") + + + public String getNasId() { + return nasId; + } + + public void setNasId(String nasId) { + this.nasId = nasId; + } + + public HotspotRadiusSettingResOpenApiVo authTimeout(AuthTimeOpenApiVo authTimeout) { + this.authTimeout = authTimeout; + return this; + } + + /** + * Get authTimeout + * @return authTimeout + */ + @ApiModelProperty(value = "") + + @Valid + + public AuthTimeOpenApiVo getAuthTimeout() { + return authTimeout; + } + + public void setAuthTimeout(AuthTimeOpenApiVo authTimeout) { + this.authTimeout = authTimeout; + } + + public HotspotRadiusSettingResOpenApiVo disconnectReq(Boolean disconnectReq) { + this.disconnectReq = disconnectReq; + return this; + } + + /** + * Whether to support disconnect messages. Only for Omada Local Controller + * @return disconnectReq + */ + @ApiModelProperty(value = "Whether to support disconnect messages. Only for Omada Local Controller") + + + public Boolean getDisconnectReq() { + return disconnectReq; + } + + public void setDisconnectReq(Boolean disconnectReq) { + this.disconnectReq = disconnectReq; + } + + public HotspotRadiusSettingResOpenApiVo receiverPort(Integer receiverPort) { + this.receiverPort = receiverPort; + return this; + } + + /** + * Port for listening to disconnect messages, should be within the range of 1–65535.Only for Omada Local Controller + * @return receiverPort + */ + @ApiModelProperty(value = "Port for listening to disconnect messages, should be within the range of 1–65535.Only for Omada Local Controller") + + + public Integer getReceiverPort() { + return receiverPort; + } + + public void setReceiverPort(Integer receiverPort) { + this.receiverPort = receiverPort; + } + + public HotspotRadiusSettingResOpenApiVo receiverPortStatus(Integer receiverPortStatus) { + this.receiverPortStatus = receiverPortStatus; + return this; + } + + /** + * Port binding status, should be a value as follow: 1: Disconnect Requests port status running, 2: Disconnect Requests port status disable. Only for Omada Local Controller + * @return receiverPortStatus + */ + @ApiModelProperty(value = "Port binding status, should be a value as follow: 1: Disconnect Requests port status running, 2: Disconnect Requests port status disable. Only for Omada Local Controller") + + + public Integer getReceiverPortStatus() { + return receiverPortStatus; + } + + public void setReceiverPortStatus(Integer receiverPortStatus) { + this.receiverPortStatus = receiverPortStatus; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HotspotRadiusSettingResOpenApiVo hotspotRadiusSettingResOpenApiVo = (HotspotRadiusSettingResOpenApiVo) o; + return Objects.equals(this.radiusProfileId, hotspotRadiusSettingResOpenApiVo.radiusProfileId) && + Objects.equals(this.authMode, hotspotRadiusSettingResOpenApiVo.authMode) && + Objects.equals(this.nasId, hotspotRadiusSettingResOpenApiVo.nasId) && + Objects.equals(this.authTimeout, hotspotRadiusSettingResOpenApiVo.authTimeout) && + Objects.equals(this.disconnectReq, hotspotRadiusSettingResOpenApiVo.disconnectReq) && + Objects.equals(this.receiverPort, hotspotRadiusSettingResOpenApiVo.receiverPort) && + Objects.equals(this.receiverPortStatus, hotspotRadiusSettingResOpenApiVo.receiverPortStatus); + } + + @Override + public int hashCode() { + return Objects.hash(radiusProfileId, authMode, nasId, authTimeout, disconnectReq, receiverPort, receiverPortStatus); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HotspotRadiusSettingResOpenApiVo {\n"); + + sb.append(" radiusProfileId: ").append(toIndentedString(radiusProfileId)).append("\n"); + sb.append(" authMode: ").append(toIndentedString(authMode)).append("\n"); + sb.append(" nasId: ").append(toIndentedString(nasId)).append("\n"); + sb.append(" authTimeout: ").append(toIndentedString(authTimeout)).append("\n"); + sb.append(" disconnectReq: ").append(toIndentedString(disconnectReq)).append("\n"); + sb.append(" receiverPort: ").append(toIndentedString(receiverPort)).append("\n"); + sb.append(" receiverPortStatus: ").append(toIndentedString(receiverPortStatus)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotSetting.java new file mode 100644 index 0000000..ad44432 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/HotspotSetting.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Hotspot types setting. + */ +@ApiModel(description = "Hotspot types setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class HotspotSetting { + @JsonProperty("enabledTypes") + @Valid + private List enabledTypes = new ArrayList<>(); + + public HotspotSetting enabledTypes(List enabledTypes) { + this.enabledTypes = enabledTypes; + return this; + } + + public HotspotSetting addEnabledTypesItem(Integer enabledTypesItem) { + this.enabledTypes.add(enabledTypesItem); + return this; + } + + /** + * Hotspot enabled auth types, should be a value as follows: 3: Voucher, 5: Local User, 8: Hotspot RADIUS, 6: Sms, 12: Form Auth. + * @return enabledTypes + */ + @ApiModelProperty(required = true, value = "Hotspot enabled auth types, should be a value as follows: 3: Voucher, 5: Local User, 8: Hotspot RADIUS, 6: Sms, 12: Form Auth.") + @NotNull + + + public List getEnabledTypes() { + return enabledTypes; + } + + public void setEnabledTypes(List enabledTypes) { + this.enabledTypes = enabledTypes; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + HotspotSetting hotspotSetting = (HotspotSetting) o; + return Objects.equals(this.enabledTypes, hotspotSetting.enabledTypes); + } + + @Override + public int hashCode() { + return Objects.hash(enabledTypes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class HotspotSetting {\n"); + + sb.append(" enabledTypes: ").append(toIndentedString(enabledTypes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IPsecFailover.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IPsecFailover.java new file mode 100644 index 0000000..5d2a23d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IPsecFailover.java @@ -0,0 +1,215 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * IPsecFailover + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IPsecFailover { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("primary") + private String primary; + + @JsonProperty("candidates") + @Valid + private List candidates = new ArrayList<>(); + + @JsonProperty("failback") + private Boolean failback; + + @JsonProperty("failbackTime") + private Integer failbackTime; + + public IPsecFailover id(String id) { + this.id = id; + return this; + } + + /** + * ID of the IPSec failover. + * @return id + */ + @ApiModelProperty(value = "ID of the IPSec failover.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public IPsecFailover name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,62}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public IPsecFailover primary(String primary) { + this.primary = primary; + return this; + } + + /** + * Primary of the IPSec failover. IPsec VPN can be created using 'Create site-to-site VPN' interface, and ID can be obtained from 'Get site-to-site VPN list' interface. + * @return primary + */ + @ApiModelProperty(required = true, value = "Primary of the IPSec failover. IPsec VPN can be created using 'Create site-to-site VPN' interface, and ID can be obtained from 'Get site-to-site VPN list' interface.") + @NotNull + + + public String getPrimary() { + return primary; + } + + public void setPrimary(String primary) { + this.primary = primary; + } + + public IPsecFailover candidates(List candidates) { + this.candidates = candidates; + return this; + } + + public IPsecFailover addCandidatesItem(String candidatesItem) { + this.candidates.add(candidatesItem); + return this; + } + + /** + * Candidates of the IPSec failover. IPsec VPN can be created using 'Create site-to-site VPN' interface, and ID can be obtained from 'Get site-to-site VPN list' interface. + * @return candidates + */ + @ApiModelProperty(required = true, value = "Candidates of the IPSec failover. IPsec VPN can be created using 'Create site-to-site VPN' interface, and ID can be obtained from 'Get site-to-site VPN list' interface.") + @NotNull + + + public List getCandidates() { + return candidates; + } + + public void setCandidates(List candidates) { + this.candidates = candidates; + } + + public IPsecFailover failback(Boolean failback) { + this.failback = failback; + return this; + } + + /** + * Failback of the IPSec failover. + * @return failback + */ + @ApiModelProperty(value = "Failback of the IPSec failover.") + + + public Boolean getFailback() { + return failback; + } + + public void setFailback(Boolean failback) { + this.failback = failback; + } + + public IPsecFailover failbackTime(Integer failbackTime) { + this.failbackTime = failbackTime; + return this; + } + + /** + * Failback time should be within the range of 10–3600s. + * @return failbackTime + */ + @ApiModelProperty(value = "Failback time should be within the range of 10–3600s.") + + + public Integer getFailbackTime() { + return failbackTime; + } + + public void setFailbackTime(Integer failbackTime) { + this.failbackTime = failbackTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IPsecFailover ipsecFailover = (IPsecFailover) o; + return Objects.equals(this.id, ipsecFailover.id) && + Objects.equals(this.name, ipsecFailover.name) && + Objects.equals(this.primary, ipsecFailover.primary) && + Objects.equals(this.candidates, ipsecFailover.candidates) && + Objects.equals(this.failback, ipsecFailover.failback) && + Objects.equals(this.failbackTime, ipsecFailover.failbackTime); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, primary, candidates, failback, failbackTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IPsecFailover {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" primary: ").append(toIndentedString(primary)).append("\n"); + sb.append(" candidates: ").append(toIndentedString(candidates)).append("\n"); + sb.append(" failback: ").append(toIndentedString(failback)).append("\n"); + sb.append(" failbackTime: ").append(toIndentedString(failbackTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IPv6SubnetsOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IPv6SubnetsOpenApiVo.java new file mode 100644 index 0000000..97bee1b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IPv6SubnetsOpenApiVo.java @@ -0,0 +1,132 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * IPv6 subnet info list. [type] value of 3 or 4 is required + */ +@ApiModel(description = "IPv6 subnet info list. [type] value of 3 or 4 is required") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IPv6SubnetsOpenApiVo { + @JsonProperty("ip") + private String ip; + + @JsonProperty("prefix") + private Integer prefix; + + @JsonProperty("description") + private String description; + + public IPv6SubnetsOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IPv6 address, should be a valid IPv6 format + * @return ip + */ + @ApiModelProperty(required = true, value = "IPv6 address, should be a valid IPv6 format") + @NotNull + +@Pattern(regexp="(^\\S*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\S*$)") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public IPv6SubnetsOpenApiVo prefix(Integer prefix) { + this.prefix = prefix; + return this; + } + + /** + * IPv6 prefix, prefix should be within the range of 1-128 + * @return prefix + */ + @ApiModelProperty(required = true, value = "IPv6 prefix, prefix should be within the range of 1-128") + @NotNull + + + public Integer getPrefix() { + return prefix; + } + + public void setPrefix(Integer prefix) { + this.prefix = prefix; + } + + public IPv6SubnetsOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * IPv6 description, description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(value = "IPv6 description, description should contain 1 to 512 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IPv6SubnetsOpenApiVo ipv6SubnetsOpenApiVo = (IPv6SubnetsOpenApiVo) o; + return Objects.equals(this.ip, ipv6SubnetsOpenApiVo.ip) && + Objects.equals(this.prefix, ipv6SubnetsOpenApiVo.prefix) && + Objects.equals(this.description, ipv6SubnetsOpenApiVo.description); + } + + @Override + public int hashCode() { + return Objects.hash(ip, prefix, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IPv6SubnetsOpenApiVo {\n"); + + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IgmpOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IgmpOpenApiVo.java new file mode 100644 index 0000000..540b3e7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IgmpOpenApiVo.java @@ -0,0 +1,154 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * IgmpOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IgmpOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("version") + private Integer version; + + @JsonProperty("wanPortId") + private String wanPortId; + + @JsonProperty("virtualWanId") + private String virtualWanId; + + public IgmpOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public IgmpOpenApiVo version(Integer version) { + this.version = version; + return this; + } + + /** + * Version should be a value as follows: 2:v2; 3:v3. + * @return version + */ + @ApiModelProperty(required = true, value = "Version should be a value as follows: 2:v2; 3:v3.") + @NotNull + + + public Integer getVersion() { + return version; + } + + public void setVersion(Integer version) { + this.version = version; + } + + public IgmpOpenApiVo wanPortId(String wanPortId) { + this.wanPortId = wanPortId; + return this; + } + + /** + * WAN port ID, can be obtained from 'Get internet basic info' interface. At least one of the wanPortId or virtualWanId should not be null. + * @return wanPortId + */ + @ApiModelProperty(value = "WAN port ID, can be obtained from 'Get internet basic info' interface. At least one of the wanPortId or virtualWanId should not be null.") + + + public String getWanPortId() { + return wanPortId; + } + + public void setWanPortId(String wanPortId) { + this.wanPortId = wanPortId; + } + + public IgmpOpenApiVo virtualWanId(String virtualWanId) { + this.virtualWanId = virtualWanId; + return this; + } + + /** + * Virtual WAN ID, can be obtained from 'Query virtual WAN list' interface. At least one of the wanPortId or virtualWanId should not be null. + * @return virtualWanId + */ + @ApiModelProperty(value = "Virtual WAN ID, can be obtained from 'Query virtual WAN list' interface. At least one of the wanPortId or virtualWanId should not be null.") + + + public String getVirtualWanId() { + return virtualWanId; + } + + public void setVirtualWanId(String virtualWanId) { + this.virtualWanId = virtualWanId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IgmpOpenApiVo igmpOpenApiVo = (IgmpOpenApiVo) o; + return Objects.equals(this.enable, igmpOpenApiVo.enable) && + Objects.equals(this.version, igmpOpenApiVo.version) && + Objects.equals(this.wanPortId, igmpOpenApiVo.wanPortId) && + Objects.equals(this.virtualWanId, igmpOpenApiVo.virtualWanId); + } + + @Override + public int hashCode() { + return Objects.hash(enable, version, wanPortId, virtualWanId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IgmpOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" version: ").append(toIndentedString(version)).append("\n"); + sb.append(" wanPortId: ").append(toIndentedString(wanPortId)).append("\n"); + sb.append(" virtualWanId: ").append(toIndentedString(virtualWanId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ImportedPortalPageOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ImportedPortalPageOpenApiVo.java new file mode 100644 index 0000000..fbf8df8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ImportedPortalPageOpenApiVo.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Imported portal page, required when parameter [pageType] is 2 + */ +@ApiModel(description = "Imported portal page, required when parameter [pageType] is 2") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ImportedPortalPageOpenApiVo { + @JsonProperty("id") + private String id; + + public ImportedPortalPageOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Imported portal page ID. Imported portal page can be uploaded using 'Import portal page' interface + * @return id + */ + @ApiModelProperty(required = true, value = "Imported portal page ID. Imported portal page can be uploaded using 'Import portal page' interface ") + @NotNull + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ImportedPortalPageOpenApiVo importedPortalPageOpenApiVo = (ImportedPortalPageOpenApiVo) o; + return Objects.equals(this.id, importedPortalPageOpenApiVo.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImportedPortalPageOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ImportedPortalPageResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ImportedPortalPageResOpenApiVo.java new file mode 100644 index 0000000..7ba512d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ImportedPortalPageResOpenApiVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ImportedPortalPageResOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ImportedPortalPageResOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("fileName") + private String fileName; + + public ImportedPortalPageResOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Imported portal page file ID + * @return id + */ + @ApiModelProperty(value = "Imported portal page file ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ImportedPortalPageResOpenApiVo fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * Imported portal page file name + * @return fileName + */ + @ApiModelProperty(value = "Imported portal page file name") + + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ImportedPortalPageResOpenApiVo importedPortalPageResOpenApiVo = (ImportedPortalPageResOpenApiVo) o; + return Objects.equals(this.id, importedPortalPageResOpenApiVo.id) && + Objects.equals(this.fileName, importedPortalPageResOpenApiVo.fileName); + } + + @Override + public int hashCode() { + return Objects.hash(id, fileName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ImportedPortalPageResOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IncomingCallsBlockingVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IncomingCallsBlockingVo.java new file mode 100644 index 0000000..5cf5668 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IncomingCallsBlockingVo.java @@ -0,0 +1,124 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Incoming calls blocking rules. Rules are valid if and only if parameter [incomingCallsBlockingEnable] equals true. + */ +@ApiModel(description = "Incoming calls blocking rules. Rules are valid if and only if parameter [incomingCallsBlockingEnable] equals true.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IncomingCallsBlockingVo { + @JsonProperty("types") + @Valid + private List types = null; + + @JsonProperty("numberList") + @Valid + private List numberList = null; + + public IncomingCallsBlockingVo types(List types) { + this.types = types; + return this; + } + + public IncomingCallsBlockingVo addTypesItem(Integer typesItem) { + if (this.types == null) { + this.types = new ArrayList<>(); + } + this.types.add(typesItem); + return this; + } + + /** + * Incoming calls blocking types. 0 means specific number, 1 means anonymous number. + * @return types + */ + @ApiModelProperty(value = "Incoming calls blocking types. 0 means specific number, 1 means anonymous number.") + + + public List getTypes() { + return types; + } + + public void setTypes(List types) { + this.types = types; + } + + public IncomingCallsBlockingVo numberList(List numberList) { + this.numberList = numberList; + return this; + } + + public IncomingCallsBlockingVo addNumberListItem(String numberListItem) { + if (this.numberList == null) { + this.numberList = new ArrayList<>(); + } + this.numberList.add(numberListItem); + return this; + } + + /** + * Field [numberList] is required when the value of field [types] contains 0. + * @return numberList + */ + @ApiModelProperty(value = "Field [numberList] is required when the value of field [types] contains 0.") + + + public List getNumberList() { + return numberList; + } + + public void setNumberList(List numberList) { + this.numberList = numberList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IncomingCallsBlockingVo incomingCallsBlockingVo = (IncomingCallsBlockingVo) o; + return Objects.equals(this.types, incomingCallsBlockingVo.types) && + Objects.equals(this.numberList, incomingCallsBlockingVo.numberList); + } + + @Override + public int hashCode() { + return Objects.hash(types, numberList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IncomingCallsBlockingVo {\n"); + + sb.append(" types: ").append(toIndentedString(types)).append("\n"); + sb.append(" numberList: ").append(toIndentedString(numberList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InlineObject.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InlineObject.java new file mode 100644 index 0000000..69f0b5c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InlineObject.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; +import org.springframework.core.io.Resource; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * InlineObject + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class InlineObject { + @JsonProperty("file") + private Resource file; + + public InlineObject file(Resource file) { + this.file = file; + return this; + } + + /** + * Portal picture file. + * @return file + */ + @ApiModelProperty(value = "Portal picture file.") + + @Valid + + public Resource getFile() { + return file; + } + + public void setFile(Resource file) { + this.file = file; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineObject inlineObject = (InlineObject) o; + return Objects.equals(this.file, inlineObject.file); + } + + @Override + public int hashCode() { + return Objects.hash(file); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineObject {\n"); + + sb.append(" file: ").append(toIndentedString(file)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InlineObject1.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InlineObject1.java new file mode 100644 index 0000000..8e55b50 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InlineObject1.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; +import org.springframework.core.io.Resource; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * InlineObject1 + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class InlineObject1 { + @JsonProperty("file") + private Resource file; + + public InlineObject1 file(Resource file) { + this.file = file; + return this; + } + + /** + * Portal page file. + * @return file + */ + @ApiModelProperty(value = "Portal page file.") + + @Valid + + public Resource getFile() { + return file; + } + + public void setFile(Resource file) { + this.file = file; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InlineObject1 inlineObject1 = (InlineObject1) o; + return Objects.equals(this.file, inlineObject1.file); + } + + @Override + public int hashCode() { + return Objects.hash(file); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InlineObject1 {\n"); + + sb.append(" file: ").append(toIndentedString(file)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBaseConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBaseConfigOpenApiVo.java new file mode 100644 index 0000000..195bbd6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBaseConfigOpenApiVo.java @@ -0,0 +1,138 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * InternetBaseConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class InternetBaseConfigOpenApiVo { + @JsonProperty("preConfiguration") + private Boolean preConfiguration; + + @JsonProperty("wanPortList") + @Valid + private List wanPortList = new ArrayList<>(); + + @JsonProperty("interval") + private Integer interval; + + public InternetBaseConfigOpenApiVo preConfiguration(Boolean preConfiguration) { + this.preConfiguration = preConfiguration; + return this; + } + + /** + * All port and port-related(like ACL) configuration will take effect only when the parameter [preConfiguration] is true. The value will always be true when a gateway is in this site. + * @return preConfiguration + */ + @ApiModelProperty(required = true, value = "All port and port-related(like ACL) configuration will take effect only when the parameter [preConfiguration] is true. The value will always be true when a gateway is in this site.") + @NotNull + + + public Boolean getPreConfiguration() { + return preConfiguration; + } + + public void setPreConfiguration(Boolean preConfiguration) { + this.preConfiguration = preConfiguration; + } + + public InternetBaseConfigOpenApiVo wanPortList(List wanPortList) { + this.wanPortList = wanPortList; + return this; + } + + public InternetBaseConfigOpenApiVo addWanPortListItem(String wanPortListItem) { + this.wanPortList.add(wanPortListItem); + return this; + } + + /** + * List of enabled WAN port IDs, the valid port IDs can be obtained from \"Get internet basic info\". + * @return wanPortList + */ + @ApiModelProperty(required = true, value = "List of enabled WAN port IDs, the valid port IDs can be obtained from \"Get internet basic info\".") + @NotNull + + + public List getWanPortList() { + return wanPortList; + } + + public void setWanPortList(List wanPortList) { + this.wanPortList = wanPortList; + } + + public InternetBaseConfigOpenApiVo interval(Integer interval) { + this.interval = interval; + return this; + } + + /** + * Online detection interval(second). 0 means disable. It should be within the range of 0–3600. + * @return interval + */ + @ApiModelProperty(value = "Online detection interval(second). 0 means disable. It should be within the range of 0–3600.") + + + public Integer getInterval() { + return interval; + } + + public void setInterval(Integer interval) { + this.interval = interval; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InternetBaseConfigOpenApiVo internetBaseConfigOpenApiVo = (InternetBaseConfigOpenApiVo) o; + return Objects.equals(this.preConfiguration, internetBaseConfigOpenApiVo.preConfiguration) && + Objects.equals(this.wanPortList, internetBaseConfigOpenApiVo.wanPortList) && + Objects.equals(this.interval, internetBaseConfigOpenApiVo.interval); + } + + @Override + public int hashCode() { + return Objects.hash(preConfiguration, wanPortList, interval); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InternetBaseConfigOpenApiVo {\n"); + + sb.append(" preConfiguration: ").append(toIndentedString(preConfiguration)).append("\n"); + sb.append(" wanPortList: ").append(toIndentedString(wanPortList)).append("\n"); + sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBaseInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBaseInfoOpenApiVo.java new file mode 100644 index 0000000..d8b1b5f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBaseInfoOpenApiVo.java @@ -0,0 +1,166 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * InternetBaseInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class InternetBaseInfoOpenApiVo { + @JsonProperty("preConfiguration") + private Boolean preConfiguration; + + @JsonProperty("gatewayModel") + private Integer gatewayModel; + + @JsonProperty("portList") + @Valid + private List portList = new ArrayList<>(); + + @JsonProperty("interval") + private Integer interval; + + public InternetBaseInfoOpenApiVo preConfiguration(Boolean preConfiguration) { + this.preConfiguration = preConfiguration; + return this; + } + + /** + * You can pre-configure the model-relative settings when it is true. + * @return preConfiguration + */ + @ApiModelProperty(required = true, value = "You can pre-configure the model-relative settings when it is true.") + @NotNull + + + public Boolean getPreConfiguration() { + return preConfiguration; + } + + public void setPreConfiguration(Boolean preConfiguration) { + this.preConfiguration = preConfiguration; + } + + public InternetBaseInfoOpenApiVo gatewayModel(Integer gatewayModel) { + this.gatewayModel = gatewayModel; + return this; + } + + /** + * Gateway model. The model number refers to function can be obtained from 'Get supported gateway model list for pre-configuration' interface. + * @return gatewayModel + */ + @ApiModelProperty(required = true, value = "Gateway model. The model number refers to function can be obtained from 'Get supported gateway model list for pre-configuration' interface.") + @NotNull + + + public Integer getGatewayModel() { + return gatewayModel; + } + + public void setGatewayModel(Integer gatewayModel) { + this.gatewayModel = gatewayModel; + } + + public InternetBaseInfoOpenApiVo portList(List portList) { + this.portList = portList; + return this; + } + + public InternetBaseInfoOpenApiVo addPortListItem(InternetBasicInfo portListItem) { + this.portList.add(portListItem); + return this; + } + + /** + * Port info list + * @return portList + */ + @ApiModelProperty(required = true, value = "Port info list") + @NotNull + + @Valid + + public List getPortList() { + return portList; + } + + public void setPortList(List portList) { + this.portList = portList; + } + + public InternetBaseInfoOpenApiVo interval(Integer interval) { + this.interval = interval; + return this; + } + + /** + * Online detection interval(second), 0 means disable. + * @return interval + */ + @ApiModelProperty(required = true, value = "Online detection interval(second), 0 means disable.") + @NotNull + + + public Integer getInterval() { + return interval; + } + + public void setInterval(Integer interval) { + this.interval = interval; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InternetBaseInfoOpenApiVo internetBaseInfoOpenApiVo = (InternetBaseInfoOpenApiVo) o; + return Objects.equals(this.preConfiguration, internetBaseInfoOpenApiVo.preConfiguration) && + Objects.equals(this.gatewayModel, internetBaseInfoOpenApiVo.gatewayModel) && + Objects.equals(this.portList, internetBaseInfoOpenApiVo.portList) && + Objects.equals(this.interval, internetBaseInfoOpenApiVo.interval); + } + + @Override + public int hashCode() { + return Objects.hash(preConfiguration, gatewayModel, portList, interval); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InternetBaseInfoOpenApiVo {\n"); + + sb.append(" preConfiguration: ").append(toIndentedString(preConfiguration)).append("\n"); + sb.append(" gatewayModel: ").append(toIndentedString(gatewayModel)).append("\n"); + sb.append(" portList: ").append(toIndentedString(portList)).append("\n"); + sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBasicInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBasicInfo.java new file mode 100644 index 0000000..d94c63f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/InternetBasicInfo.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Port info list + */ +@ApiModel(description = "Port info list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class InternetBasicInfo { + @JsonProperty("portId") + private String portId; + + @JsonProperty("portName") + private String portName; + + @JsonProperty("portMode") + private Integer portMode; + + @JsonProperty("portType") + private Integer portType; + + public InternetBasicInfo portId(String portId) { + this.portId = portId; + return this; + } + + /** + * Port ID + * @return portId + */ + @ApiModelProperty(value = "Port ID") + + + public String getPortId() { + return portId; + } + + public void setPortId(String portId) { + this.portId = portId; + } + + public InternetBasicInfo portName(String portName) { + this.portName = portName; + return this; + } + + /** + * Port name + * @return portName + */ + @ApiModelProperty(value = "Port name") + + + public String getPortName() { + return portName; + } + + public void setPortName(String portName) { + this.portName = portName; + } + + public InternetBasicInfo portMode(Integer portMode) { + this.portMode = portMode; + return this; + } + + /** + * Port mode should be a value as follows: 0: WAN; 1: LAN. + * @return portMode + */ + @ApiModelProperty(value = "Port mode should be a value as follows: 0: WAN; 1: LAN.") + + + public Integer getPortMode() { + return portMode; + } + + public void setPortMode(Integer portMode) { + this.portMode = portMode; + } + + public InternetBasicInfo portType(Integer portType) { + this.portType = portType; + return this; + } + + /** + * Port type should be a value as follows: 0: WAN; 1: WAN/LAN. + * @return portType + */ + @ApiModelProperty(value = "Port type should be a value as follows: 0: WAN; 1: WAN/LAN.") + + + public Integer getPortType() { + return portType; + } + + public void setPortType(Integer portType) { + this.portType = portType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + InternetBasicInfo internetBasicInfo = (InternetBasicInfo) o; + return Objects.equals(this.portId, internetBasicInfo.portId) && + Objects.equals(this.portName, internetBasicInfo.portName) && + Objects.equals(this.portMode, internetBasicInfo.portMode) && + Objects.equals(this.portType, internetBasicInfo.portType); + } + + @Override + public int hashCode() { + return Objects.hash(portId, portName, portMode, portType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class InternetBasicInfo {\n"); + + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append(" portName: ").append(toIndentedString(portName)).append("\n"); + sb.append(" portMode: ").append(toIndentedString(portMode)).append("\n"); + sb.append(" portType: ").append(toIndentedString(portType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpMacBinding.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpMacBinding.java new file mode 100644 index 0000000..5fe6677 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpMacBinding.java @@ -0,0 +1,233 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * IpMacBinding + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IpMacBinding { + @JsonProperty("id") + private String id; + + @JsonProperty("description") + private String description; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("interfaceType") + private Integer interfaceType; + + @JsonProperty("interfaceId") + private String interfaceId; + + public IpMacBinding id(String id) { + this.id = id; + return this; + } + + /** + * ID of the IP MAC binding entity. + * @return id + */ + @ApiModelProperty(value = "ID of the IP MAC binding entity.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public IpMacBinding description(String description) { + this.description = description; + return this; + } + + /** + * Description should contain 1 to 64 characters. + * @return description + */ + @ApiModelProperty(value = "Description should contain 1 to 64 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public IpMacBinding mac(String mac) { + this.mac = mac; + return this; + } + + /** + * MAC of the IP MAC binding entity. + * @return mac + */ + @ApiModelProperty(required = true, value = "MAC of the IP MAC binding entity.") + @NotNull + +@Pattern(regexp="[A-Fa-f0-9]{1}[02468aceACE]{1}([-:][A-Fa-f0-9]{2}){5}") + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public IpMacBinding ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP of the IP MAC binding entity. + * @return ip + */ + @ApiModelProperty(required = true, value = "IP of the IP MAC binding entity.") + @NotNull + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public IpMacBinding status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the IP MAC binding entity. + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the IP MAC binding entity.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public IpMacBinding interfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + return this; + } + + /** + * Interface type should be a value as follows: 0: WAN; 1: LAN interface. + * @return interfaceType + */ + @ApiModelProperty(required = true, value = "Interface type should be a value as follows: 0: WAN; 1: LAN interface.") + @NotNull + + + public Integer getInterfaceType() { + return interfaceType; + } + + public void setInterfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + } + + public IpMacBinding interfaceId(String interfaceId) { + this.interfaceId = interfaceId; + return this; + } + + /** + * Interface ID. WAN port ID can be obtained from 'Get internet basic info' interface. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return interfaceId + */ + @ApiModelProperty(required = true, value = "Interface ID. WAN port ID can be obtained from 'Get internet basic info' interface. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public String getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpMacBinding ipMacBinding = (IpMacBinding) o; + return Objects.equals(this.id, ipMacBinding.id) && + Objects.equals(this.description, ipMacBinding.description) && + Objects.equals(this.mac, ipMacBinding.mac) && + Objects.equals(this.ip, ipMacBinding.ip) && + Objects.equals(this.status, ipMacBinding.status) && + Objects.equals(this.interfaceType, ipMacBinding.interfaceType) && + Objects.equals(this.interfaceId, ipMacBinding.interfaceId); + } + + @Override + public int hashCode() { + return Objects.hash(id, description, mac, ip, status, interfaceType, interfaceId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpMacBinding {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" interfaceType: ").append(toIndentedString(interfaceType)).append("\n"); + sb.append(" interfaceId: ").append(toIndentedString(interfaceId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpMacBindingGeneralSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpMacBindingGeneralSetting.java new file mode 100644 index 0000000..6846920 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpMacBindingGeneralSetting.java @@ -0,0 +1,224 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * IpMacBindingGeneralSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IpMacBindingGeneralSetting { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("lanIds") + @Valid + private List lanIds = null; + + @JsonProperty("wanIds") + @Valid + private List wanIds = null; + + @JsonProperty("imbPass") + private Boolean imbPass; + + @JsonProperty("garp") + private Boolean garp; + + @JsonProperty("interval") + private Integer interval; + + public IpMacBindingGeneralSetting enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Enable of the IP MAC binding general setting, If applied, fill in at least one of LAN and WAN. + * @return enable + */ + @ApiModelProperty(required = true, value = "Enable of the IP MAC binding general setting, If applied, fill in at least one of LAN and WAN.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public IpMacBindingGeneralSetting lanIds(List lanIds) { + this.lanIds = lanIds; + return this; + } + + public IpMacBindingGeneralSetting addLanIdsItem(String lanIdsItem) { + if (this.lanIds == null) { + this.lanIds = new ArrayList<>(); + } + this.lanIds.add(lanIdsItem); + return this; + } + + /** + * LANs of the IP MAC binding general setting. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return lanIds + */ + @ApiModelProperty(value = "LANs of the IP MAC binding general setting. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + + + public List getLanIds() { + return lanIds; + } + + public void setLanIds(List lanIds) { + this.lanIds = lanIds; + } + + public IpMacBindingGeneralSetting wanIds(List wanIds) { + this.wanIds = wanIds; + return this; + } + + public IpMacBindingGeneralSetting addWanIdsItem(String wanIdsItem) { + if (this.wanIds == null) { + this.wanIds = new ArrayList<>(); + } + this.wanIds.add(wanIdsItem); + return this; + } + + /** + * WANs of the IP MAC binding general setting. WAN port ID can be obtained from 'Get internet basic info' interface. + * @return wanIds + */ + @ApiModelProperty(value = "WANs of the IP MAC binding general setting. WAN port ID can be obtained from 'Get internet basic info' interface.") + + + public List getWanIds() { + return wanIds; + } + + public void setWanIds(List wanIds) { + this.wanIds = wanIds; + } + + public IpMacBindingGeneralSetting imbPass(Boolean imbPass) { + this.imbPass = imbPass; + return this; + } + + /** + * ImbPass of the IP MAC binding general setting. + * @return imbPass + */ + @ApiModelProperty(value = "ImbPass of the IP MAC binding general setting.") + + + public Boolean getImbPass() { + return imbPass; + } + + public void setImbPass(Boolean imbPass) { + this.imbPass = imbPass; + } + + public IpMacBindingGeneralSetting garp(Boolean garp) { + this.garp = garp; + return this; + } + + /** + * GARP of the IP MAC binding general setting. + * @return garp + */ + @ApiModelProperty(value = "GARP of the IP MAC binding general setting.") + + + public Boolean getGarp() { + return garp; + } + + public void setGarp(Boolean garp) { + this.garp = garp; + } + + public IpMacBindingGeneralSetting interval(Integer interval) { + this.interval = interval; + return this; + } + + /** + * Interval should be within the range of 1–10000. + * @return interval + */ + @ApiModelProperty(value = "Interval should be within the range of 1–10000.") + + + public Integer getInterval() { + return interval; + } + + public void setInterval(Integer interval) { + this.interval = interval; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpMacBindingGeneralSetting ipMacBindingGeneralSetting = (IpMacBindingGeneralSetting) o; + return Objects.equals(this.enable, ipMacBindingGeneralSetting.enable) && + Objects.equals(this.lanIds, ipMacBindingGeneralSetting.lanIds) && + Objects.equals(this.wanIds, ipMacBindingGeneralSetting.wanIds) && + Objects.equals(this.imbPass, ipMacBindingGeneralSetting.imbPass) && + Objects.equals(this.garp, ipMacBindingGeneralSetting.garp) && + Objects.equals(this.interval, ipMacBindingGeneralSetting.interval); + } + + @Override + public int hashCode() { + return Objects.hash(enable, lanIds, wanIds, imbPass, garp, interval); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpMacBindingGeneralSetting {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" lanIds: ").append(toIndentedString(lanIds)).append("\n"); + sb.append(" wanIds: ").append(toIndentedString(wanIds)).append("\n"); + sb.append(" imbPass: ").append(toIndentedString(imbPass)).append("\n"); + sb.append(" garp: ").append(toIndentedString(garp)).append("\n"); + sb.append(" interval: ").append(toIndentedString(interval)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpSubnetsOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpSubnetsOpenApiVo.java new file mode 100644 index 0000000..acd77c8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpSubnetsOpenApiVo.java @@ -0,0 +1,132 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * IP subnet info list. [type] value of 0 or 1 is required + */ +@ApiModel(description = "IP subnet info list. [type] value of 0 or 1 is required") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IpSubnetsOpenApiVo { + @JsonProperty("ip") + private String ip; + + @JsonProperty("mask") + private Integer mask; + + @JsonProperty("description") + private String description; + + public IpSubnetsOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP address, should be a valid IP format + * @return ip + */ + @ApiModelProperty(required = true, value = "IP address, should be a valid IP format") + @NotNull + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public IpSubnetsOpenApiVo mask(Integer mask) { + this.mask = mask; + return this; + } + + /** + * IP mask, mask should be within the range of 1-32 + * @return mask + */ + @ApiModelProperty(required = true, value = "IP mask, mask should be within the range of 1-32") + @NotNull + + + public Integer getMask() { + return mask; + } + + public void setMask(Integer mask) { + this.mask = mask; + } + + public IpSubnetsOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * IP description, description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(value = "IP description, description should contain 1 to 512 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpSubnetsOpenApiVo ipSubnetsOpenApiVo = (IpSubnetsOpenApiVo) o; + return Objects.equals(this.ip, ipSubnetsOpenApiVo.ip) && + Objects.equals(this.mask, ipSubnetsOpenApiVo.mask) && + Objects.equals(this.description, ipSubnetsOpenApiVo.description); + } + + @Override + public int hashCode() { + return Objects.hash(ip, mask, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpSubnetsOpenApiVo {\n"); + + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" mask: ").append(toIndentedString(mask)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpSubnetsVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpSubnetsVo.java new file mode 100644 index 0000000..a712ac5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpSubnetsVo.java @@ -0,0 +1,129 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * User remote subnets of the VPN user. + */ +@ApiModel(description = "User remote subnets of the VPN user.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IpSubnetsVo { + @JsonProperty("ip") + private String ip; + + @JsonProperty("mask") + private Integer mask; + + @JsonProperty("description") + private String description; + + public IpSubnetsVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP address, should be a valid IP format + * @return ip + */ + @ApiModelProperty(value = "IP address, should be a valid IP format") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public IpSubnetsVo mask(Integer mask) { + this.mask = mask; + return this; + } + + /** + * IP mask, mask should be within the range of 1-32 + * @return mask + */ + @ApiModelProperty(value = "IP mask, mask should be within the range of 1-32") + + + public Integer getMask() { + return mask; + } + + public void setMask(Integer mask) { + this.mask = mask; + } + + public IpSubnetsVo description(String description) { + this.description = description; + return this; + } + + /** + * Description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(value = "Description should contain 1 to 512 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpSubnetsVo ipSubnetsVo = (IpSubnetsVo) o; + return Objects.equals(this.ip, ipSubnetsVo.ip) && + Objects.equals(this.mask, ipSubnetsVo.mask) && + Objects.equals(this.description, ipSubnetsVo.description); + } + + @Override + public int hashCode() { + return Objects.hash(ip, mask, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpSubnetsVo {\n"); + + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" mask: ").append(toIndentedString(mask)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsBlockListEntry.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsBlockListEntry.java new file mode 100644 index 0000000..538be18 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsBlockListEntry.java @@ -0,0 +1,176 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * IpsBlockListEntry + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IpsBlockListEntry { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("sourceIp") + private String sourceIp; + + @JsonProperty("destination") + private String destination; + + @JsonProperty("sourceLocation") + private String sourceLocation; + + public IpsBlockListEntry id(String id) { + this.id = id; + return this; + } + + /** + * Block list entry ID. + * @return id + */ + @ApiModelProperty(value = "Block list entry ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public IpsBlockListEntry name(String name) { + this.name = name; + return this; + } + + /** + * The name of the defined blocked or isolated policy. + * @return name + */ + @ApiModelProperty(value = "The name of the defined blocked or isolated policy.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public IpsBlockListEntry sourceIp(String sourceIp) { + this.sourceIp = sourceIp; + return this; + } + + /** + * Source IP in defined blocked or isolated policy. + * @return sourceIp + */ + @ApiModelProperty(value = "Source IP in defined blocked or isolated policy.") + + + public String getSourceIp() { + return sourceIp; + } + + public void setSourceIp(String sourceIp) { + this.sourceIp = sourceIp; + } + + public IpsBlockListEntry destination(String destination) { + this.destination = destination; + return this; + } + + /** + * The destination IP in defined blocked or isolated policy. + * @return destination + */ + @ApiModelProperty(value = "The destination IP in defined blocked or isolated policy.") + + + public String getDestination() { + return destination; + } + + public void setDestination(String destination) { + this.destination = destination; + } + + public IpsBlockListEntry sourceLocation(String sourceLocation) { + this.sourceLocation = sourceLocation; + return this; + } + + /** + * The region code of the source IP. + * @return sourceLocation + */ + @ApiModelProperty(value = "The region code of the source IP.") + + + public String getSourceLocation() { + return sourceLocation; + } + + public void setSourceLocation(String sourceLocation) { + this.sourceLocation = sourceLocation; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpsBlockListEntry ipsBlockListEntry = (IpsBlockListEntry) o; + return Objects.equals(this.id, ipsBlockListEntry.id) && + Objects.equals(this.name, ipsBlockListEntry.name) && + Objects.equals(this.sourceIp, ipsBlockListEntry.sourceIp) && + Objects.equals(this.destination, ipsBlockListEntry.destination) && + Objects.equals(this.sourceLocation, ipsBlockListEntry.sourceLocation); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, sourceIp, destination, sourceLocation); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpsBlockListEntry {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" sourceIp: ").append(toIndentedString(sourceIp)).append("\n"); + sb.append(" destination: ").append(toIndentedString(destination)).append("\n"); + sb.append(" sourceLocation: ").append(toIndentedString(sourceLocation)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsInfo.java new file mode 100644 index 0000000..b693356 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsInfo.java @@ -0,0 +1,217 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * IPS config entity + */ +@ApiModel(description = "IPS config entity") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IpsInfo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ipsMode") + private Integer ipsMode; + + @JsonProperty("geoEnable") + private Boolean geoEnable; + + @JsonProperty("dpLevel") + private Integer dpLevel; + + @JsonProperty("customCategories") + @Valid + private List customCategories = null; + + @JsonProperty("timeRangeId") + private String timeRangeId; + + public IpsInfo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Whether to enable IDS/IPS config. If parameter[enable] is true, parameter[ipsMode] and parameter[dplevel] are needed + * @return enable + */ + @ApiModelProperty(required = true, value = "Whether to enable IDS/IPS config. If parameter[enable] is true, parameter[ipsMode] and parameter[dplevel] are needed") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public IpsInfo ipsMode(Integer ipsMode) { + this.ipsMode = ipsMode; + return this; + } + + /** + * IpsMode should be a value as follows: 0: detect only; 1: detect and block + * @return ipsMode + */ + @ApiModelProperty(value = "IpsMode should be a value as follows: 0: detect only; 1: detect and block") + + + public Integer getIpsMode() { + return ipsMode; + } + + public void setIpsMode(Integer ipsMode) { + this.ipsMode = ipsMode; + } + + public IpsInfo geoEnable(Boolean geoEnable) { + this.geoEnable = geoEnable; + return this; + } + + /** + * Whether to enable identifying the source country and destination country of attack ip addresses. + * @return geoEnable + */ + @ApiModelProperty(value = "Whether to enable identifying the source country and destination country of attack ip addresses.") + + + public Boolean getGeoEnable() { + return geoEnable; + } + + public void setGeoEnable(Boolean geoEnable) { + this.geoEnable = geoEnable; + } + + public IpsInfo dpLevel(Integer dpLevel) { + this.dpLevel = dpLevel; + return this; + } + + /** + * DpLevel should be a value as follows: 0: Low; 1: Medium; 2: High; 3: Custom + * @return dpLevel + */ + @ApiModelProperty(value = "DpLevel should be a value as follows: 0: Low; 1: Medium; 2: High; 3: Custom") + + + public Integer getDpLevel() { + return dpLevel; + } + + public void setDpLevel(Integer dpLevel) { + this.dpLevel = dpLevel; + } + + public IpsInfo customCategories(List customCategories) { + this.customCategories = customCategories; + return this; + } + + public IpsInfo addCustomCategoriesItem(Integer customCategoriesItem) { + if (this.customCategories == null) { + this.customCategories = new ArrayList<>(); + } + this.customCategories.add(customCategoriesItem); + return this; + } + + /** + * Custom IDS/IPS categories list, if parameter[Dplevel] is 3, customCategories is needed.CustomCategories should be a list as follow: 1: Botcc, 2: Worm, 3: Malware, 4: Mobile_Malware, 6: P2P, 7: Tor, 8: Exploit, 9: Shellcode, 14: Activex, 15: DNS, 18: User Agents, 24: DShield + * @return customCategories + */ + @ApiModelProperty(value = "Custom IDS/IPS categories list, if parameter[Dplevel] is 3, customCategories is needed.CustomCategories should be a list as follow: 1: Botcc, 2: Worm, 3: Malware, 4: Mobile_Malware, 6: P2P, 7: Tor, 8: Exploit, 9: Shellcode, 14: Activex, 15: DNS, 18: User Agents, 24: DShield") + + + public List getCustomCategories() { + return customCategories; + } + + public void setCustomCategories(List customCategories) { + this.customCategories = customCategories; + } + + public IpsInfo timeRangeId(String timeRangeId) { + this.timeRangeId = timeRangeId; + return this; + } + + /** + * This field represents Time Range ID. Time Range can be created using 'Create time range profile' interface, and Time Range ID can be obtained from 'Get time range profile list' interface. If parameter[timeRangeId] is null, IDS/IPS will be effective in all time ranges. + * @return timeRangeId + */ + @ApiModelProperty(value = "This field represents Time Range ID. Time Range can be created using 'Create time range profile' interface, and Time Range ID can be obtained from 'Get time range profile list' interface. If parameter[timeRangeId] is null, IDS/IPS will be effective in all time ranges.") + + + public String getTimeRangeId() { + return timeRangeId; + } + + public void setTimeRangeId(String timeRangeId) { + this.timeRangeId = timeRangeId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpsInfo ipsInfo = (IpsInfo) o; + return Objects.equals(this.enable, ipsInfo.enable) && + Objects.equals(this.ipsMode, ipsInfo.ipsMode) && + Objects.equals(this.geoEnable, ipsInfo.geoEnable) && + Objects.equals(this.dpLevel, ipsInfo.dpLevel) && + Objects.equals(this.customCategories, ipsInfo.customCategories) && + Objects.equals(this.timeRangeId, ipsInfo.timeRangeId); + } + + @Override + public int hashCode() { + return Objects.hash(enable, ipsMode, geoEnable, dpLevel, customCategories, timeRangeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpsInfo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ipsMode: ").append(toIndentedString(ipsMode)).append("\n"); + sb.append(" geoEnable: ").append(toIndentedString(geoEnable)).append("\n"); + sb.append(" dpLevel: ").append(toIndentedString(dpLevel)).append("\n"); + sb.append(" customCategories: ").append(toIndentedString(customCategories)).append("\n"); + sb.append(" timeRangeId: ").append(toIndentedString(timeRangeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsSignatureConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsSignatureConfig.java new file mode 100644 index 0000000..909de4d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsSignatureConfig.java @@ -0,0 +1,181 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * IPS signature configuration + */ +@ApiModel(description = "IPS signature configuration") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IpsSignatureConfig { + @JsonProperty("type") + private Integer type; + + @JsonProperty("direction") + private Integer direction; + + @JsonProperty("trafficType") + private Integer trafficType; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("subnet") + private String subnet; + + public IpsSignatureConfig type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follow: 0: all traffic; 1: packet tracking + * @return type + */ + @ApiModelProperty(required = true, value = "Type should be a value as follow: 0: all traffic; 1: packet tracking") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public IpsSignatureConfig direction(Integer direction) { + this.direction = direction; + return this; + } + + /** + * Direction should be a value as follow: 0: both direction; 1: source direction; 2: destination direction + * @return direction + */ + @ApiModelProperty(value = "Direction should be a value as follow: 0: both direction; 1: source direction; 2: destination direction") + + + public Integer getDirection() { + return direction; + } + + public void setDirection(Integer direction) { + this.direction = direction; + } + + public IpsSignatureConfig trafficType(Integer trafficType) { + this.trafficType = trafficType; + return this; + } + + /** + * TrafficType should be a value as follow: 0: ip address; 1: subnet + * @return trafficType + */ + @ApiModelProperty(value = "TrafficType should be a value as follow: 0: ip address; 1: subnet") + + + public Integer getTrafficType() { + return trafficType; + } + + public void setTrafficType(Integer trafficType) { + this.trafficType = trafficType; + } + + public IpsSignatureConfig ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IPS signature traffic Source. If parameter [trafficType] is 0, parameter [ip] is needed + * @return ip + */ + @ApiModelProperty(value = "IPS signature traffic Source. If parameter [trafficType] is 0, parameter [ip] is needed") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public IpsSignatureConfig subnet(String subnet) { + this.subnet = subnet; + return this; + } + + /** + * IPS signature traffic Source. If parameter [trafficType] is 1, parameter [subnet] is needed + * @return subnet + */ + @ApiModelProperty(value = "IPS signature traffic Source. If parameter [trafficType] is 1, parameter [subnet] is needed") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])/([1-9]|((1|2)\\d)|(30|31|32))\\b") + public String getSubnet() { + return subnet; + } + + public void setSubnet(String subnet) { + this.subnet = subnet; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpsSignatureConfig ipsSignatureConfig = (IpsSignatureConfig) o; + return Objects.equals(this.type, ipsSignatureConfig.type) && + Objects.equals(this.direction, ipsSignatureConfig.direction) && + Objects.equals(this.trafficType, ipsSignatureConfig.trafficType) && + Objects.equals(this.ip, ipsSignatureConfig.ip) && + Objects.equals(this.subnet, ipsSignatureConfig.subnet); + } + + @Override + public int hashCode() { + return Objects.hash(type, direction, trafficType, ip, subnet); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpsSignatureConfig {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" trafficType: ").append(toIndentedString(trafficType)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" subnet: ").append(toIndentedString(subnet)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsSignatureInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsSignatureInfo.java new file mode 100644 index 0000000..1fd63aa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IpsSignatureInfo.java @@ -0,0 +1,311 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * IPS signature Info entity + */ +@ApiModel(description = "IPS signature Info entity") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IpsSignatureInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("classification") + private String classification; + + @JsonProperty("category") + private Integer category; + + @JsonProperty("signature") + private String signature; + + @JsonProperty("sid") + private Long sid; + + @JsonProperty("service") + private String service; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("direction") + private Integer direction; + + @JsonProperty("trafficType") + private Integer trafficType; + + @JsonProperty("trafficSource") + private String trafficSource; + + public IpsSignatureInfo id(String id) { + this.id = id; + return this; + } + + /** + * The unique identity of the signature suppresses. + * @return id + */ + @ApiModelProperty(required = true, value = "The unique identity of the signature suppresses.") + @NotNull + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public IpsSignatureInfo classification(String classification) { + this.classification = classification; + return this; + } + + /** + * Attack service concrete classification. + * @return classification + */ + @ApiModelProperty(required = true, value = "Attack service concrete classification.") + @NotNull + + + public String getClassification() { + return classification; + } + + public void setClassification(String classification) { + this.classification = classification; + } + + public IpsSignatureInfo category(Integer category) { + this.category = category; + return this; + } + + /** + * Attack service wide category. + * @return category + */ + @ApiModelProperty(required = true, value = "Attack service wide category.") + @NotNull + + + public Integer getCategory() { + return category; + } + + public void setCategory(Integer category) { + this.category = category; + } + + public IpsSignatureInfo signature(String signature) { + this.signature = signature; + return this; + } + + /** + * Attack service signature. + * @return signature + */ + @ApiModelProperty(required = true, value = "Attack service signature.") + @NotNull + + + public String getSignature() { + return signature; + } + + public void setSignature(String signature) { + this.signature = signature; + } + + public IpsSignatureInfo sid(Long sid) { + this.sid = sid; + return this; + } + + /** + * IPS signature rule SID which is from device. + * @return sid + */ + @ApiModelProperty(required = true, value = "IPS signature rule SID which is from device.") + @NotNull + + + public Long getSid() { + return sid; + } + + public void setSid(Long sid) { + this.sid = sid; + } + + public IpsSignatureInfo service(String service) { + this.service = service; + return this; + } + + /** + * Attack service service, the same as parameter[signature] + * @return service + */ + @ApiModelProperty(required = true, value = "Attack service service, the same as parameter[signature]") + @NotNull + + + public String getService() { + return service; + } + + public void setService(String service) { + this.service = service; + } + + public IpsSignatureInfo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follow: 0: all traffic; 1: packet tracking + * @return type + */ + @ApiModelProperty(required = true, value = "Type should be a value as follow: 0: all traffic; 1: packet tracking") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public IpsSignatureInfo direction(Integer direction) { + this.direction = direction; + return this; + } + + /** + * Direction should be a value as follow: 0: both direction; 1: source direction; 2: destination direction + * @return direction + */ + @ApiModelProperty(value = "Direction should be a value as follow: 0: both direction; 1: source direction; 2: destination direction") + + + public Integer getDirection() { + return direction; + } + + public void setDirection(Integer direction) { + this.direction = direction; + } + + public IpsSignatureInfo trafficType(Integer trafficType) { + this.trafficType = trafficType; + return this; + } + + /** + * TrafficType should be a value as follow: 0: ip address; 1: subnet + * @return trafficType + */ + @ApiModelProperty(value = "TrafficType should be a value as follow: 0: ip address; 1: subnet") + + + public Integer getTrafficType() { + return trafficType; + } + + public void setTrafficType(Integer trafficType) { + this.trafficType = trafficType; + } + + public IpsSignatureInfo trafficSource(String trafficSource) { + this.trafficSource = trafficSource; + return this; + } + + /** + * IPS signature traffic Source. If parameter [trafficType] is 0, parameter [trafficSource] should be IPV4 address. If parameter [trafficType] is 1, parameter [trafficSource] should be subnet address. + * @return trafficSource + */ + @ApiModelProperty(value = "IPS signature traffic Source. If parameter [trafficType] is 0, parameter [trafficSource] should be IPV4 address. If parameter [trafficType] is 1, parameter [trafficSource] should be subnet address.") + + + public String getTrafficSource() { + return trafficSource; + } + + public void setTrafficSource(String trafficSource) { + this.trafficSource = trafficSource; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IpsSignatureInfo ipsSignatureInfo = (IpsSignatureInfo) o; + return Objects.equals(this.id, ipsSignatureInfo.id) && + Objects.equals(this.classification, ipsSignatureInfo.classification) && + Objects.equals(this.category, ipsSignatureInfo.category) && + Objects.equals(this.signature, ipsSignatureInfo.signature) && + Objects.equals(this.sid, ipsSignatureInfo.sid) && + Objects.equals(this.service, ipsSignatureInfo.service) && + Objects.equals(this.type, ipsSignatureInfo.type) && + Objects.equals(this.direction, ipsSignatureInfo.direction) && + Objects.equals(this.trafficType, ipsSignatureInfo.trafficType) && + Objects.equals(this.trafficSource, ipsSignatureInfo.trafficSource); + } + + @Override + public int hashCode() { + return Objects.hash(id, classification, category, signature, sid, service, type, direction, trafficType, trafficSource); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IpsSignatureInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" classification: ").append(toIndentedString(classification)).append("\n"); + sb.append(" category: ").append(toIndentedString(category)).append("\n"); + sb.append(" signature: ").append(toIndentedString(signature)).append("\n"); + sb.append(" sid: ").append(toIndentedString(sid)).append("\n"); + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" trafficType: ").append(toIndentedString(trafficType)).append("\n"); + sb.append(" trafficSource: ").append(toIndentedString(trafficSource)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvConfigOpenApiVo.java new file mode 100644 index 0000000..a8803fb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvConfigOpenApiVo.java @@ -0,0 +1,218 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * IptvConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IptvConfigOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("wanPortId") + private String wanPortId; + + @JsonProperty("mode") + private Integer mode; + + @JsonProperty("customConfig") + private IptvCustomOpenApiVo customConfig; + + @JsonProperty("portConfig") + @Valid + private List portConfig = new ArrayList<>(); + + @JsonProperty("dslConfig") + private IptvDslOpenApiVo dslConfig; + + public IptvConfigOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public IptvConfigOpenApiVo wanPortId(String wanPortId) { + this.wanPortId = wanPortId; + return this; + } + + /** + * WAN port ID can be obtained from 'Get internet basic info' interface. + * @return wanPortId + */ + @ApiModelProperty(required = true, value = "WAN port ID can be obtained from 'Get internet basic info' interface.") + @NotNull + + + public String getWanPortId() { + return wanPortId; + } + + public void setWanPortId(String wanPortId) { + this.wanPortId = wanPortId; + } + + public IptvConfigOpenApiVo mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Mode should be a value as follows: 0:Bridge; 1:Custom + * @return mode + */ + @ApiModelProperty(required = true, value = "Mode should be a value as follows: 0:Bridge; 1:Custom") + @NotNull + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + public IptvConfigOpenApiVo customConfig(IptvCustomOpenApiVo customConfig) { + this.customConfig = customConfig; + return this; + } + + /** + * Get customConfig + * @return customConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public IptvCustomOpenApiVo getCustomConfig() { + return customConfig; + } + + public void setCustomConfig(IptvCustomOpenApiVo customConfig) { + this.customConfig = customConfig; + } + + public IptvConfigOpenApiVo portConfig(List portConfig) { + this.portConfig = portConfig; + return this; + } + + public IptvConfigOpenApiVo addPortConfigItem(IptvPortConfigOpenApiVo portConfigItem) { + this.portConfig.add(portConfigItem); + return this; + } + + /** + * All available ports need to be configured. The list of port ID is the same as that returned by \"Get IPTV setting\" + * @return portConfig + */ + @ApiModelProperty(required = true, value = "All available ports need to be configured. The list of port ID is the same as that returned by \"Get IPTV setting\"") + @NotNull + + @Valid + + public List getPortConfig() { + return portConfig; + } + + public void setPortConfig(List portConfig) { + this.portConfig = portConfig; + } + + public IptvConfigOpenApiVo dslConfig(IptvDslOpenApiVo dslConfig) { + this.dslConfig = dslConfig; + return this; + } + + /** + * Get dslConfig + * @return dslConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public IptvDslOpenApiVo getDslConfig() { + return dslConfig; + } + + public void setDslConfig(IptvDslOpenApiVo dslConfig) { + this.dslConfig = dslConfig; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IptvConfigOpenApiVo iptvConfigOpenApiVo = (IptvConfigOpenApiVo) o; + return Objects.equals(this.enable, iptvConfigOpenApiVo.enable) && + Objects.equals(this.wanPortId, iptvConfigOpenApiVo.wanPortId) && + Objects.equals(this.mode, iptvConfigOpenApiVo.mode) && + Objects.equals(this.customConfig, iptvConfigOpenApiVo.customConfig) && + Objects.equals(this.portConfig, iptvConfigOpenApiVo.portConfig) && + Objects.equals(this.dslConfig, iptvConfigOpenApiVo.dslConfig); + } + + @Override + public int hashCode() { + return Objects.hash(enable, wanPortId, mode, customConfig, portConfig, dslConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IptvConfigOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" wanPortId: ").append(toIndentedString(wanPortId)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" customConfig: ").append(toIndentedString(customConfig)).append("\n"); + sb.append(" portConfig: ").append(toIndentedString(portConfig)).append("\n"); + sb.append(" dslConfig: ").append(toIndentedString(dslConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvCustomOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvCustomOpenApiVo.java new file mode 100644 index 0000000..4eff24c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvCustomOpenApiVo.java @@ -0,0 +1,158 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Required when parameter[mode] is 1 + */ +@ApiModel(description = "Required when parameter[mode] is 1") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IptvCustomOpenApiVo { + @JsonProperty("ipPhoneVlanId") + private Integer ipPhoneVlanId; + + @JsonProperty("ipPhoneVlanPriority") + private Integer ipPhoneVlanPriority; + + @JsonProperty("iptvVlanId") + private Integer iptvVlanId; + + @JsonProperty("iptvVlanPriority") + private Integer iptvVlanPriority; + + public IptvCustomOpenApiVo ipPhoneVlanId(Integer ipPhoneVlanId) { + this.ipPhoneVlanId = ipPhoneVlanId; + return this; + } + + /** + * IP Phone VLAN ID should be within the range of 1–4094. + * @return ipPhoneVlanId + */ + @ApiModelProperty(required = true, value = "IP Phone VLAN ID should be within the range of 1–4094.") + @NotNull + + + public Integer getIpPhoneVlanId() { + return ipPhoneVlanId; + } + + public void setIpPhoneVlanId(Integer ipPhoneVlanId) { + this.ipPhoneVlanId = ipPhoneVlanId; + } + + public IptvCustomOpenApiVo ipPhoneVlanPriority(Integer ipPhoneVlanPriority) { + this.ipPhoneVlanPriority = ipPhoneVlanPriority; + return this; + } + + /** + * IP Phone VLAN priority should be within the range of 0–7. + * @return ipPhoneVlanPriority + */ + @ApiModelProperty(required = true, value = "IP Phone VLAN priority should be within the range of 0–7.") + @NotNull + + + public Integer getIpPhoneVlanPriority() { + return ipPhoneVlanPriority; + } + + public void setIpPhoneVlanPriority(Integer ipPhoneVlanPriority) { + this.ipPhoneVlanPriority = ipPhoneVlanPriority; + } + + public IptvCustomOpenApiVo iptvVlanId(Integer iptvVlanId) { + this.iptvVlanId = iptvVlanId; + return this; + } + + /** + * IPTV VLAN ID should be within the range of 1–4094. + * @return iptvVlanId + */ + @ApiModelProperty(required = true, value = "IPTV VLAN ID should be within the range of 1–4094.") + @NotNull + + + public Integer getIptvVlanId() { + return iptvVlanId; + } + + public void setIptvVlanId(Integer iptvVlanId) { + this.iptvVlanId = iptvVlanId; + } + + public IptvCustomOpenApiVo iptvVlanPriority(Integer iptvVlanPriority) { + this.iptvVlanPriority = iptvVlanPriority; + return this; + } + + /** + * IPTV VLAN priority should be within the range of 0–7. + * @return iptvVlanPriority + */ + @ApiModelProperty(required = true, value = "IPTV VLAN priority should be within the range of 0–7.") + @NotNull + + + public Integer getIptvVlanPriority() { + return iptvVlanPriority; + } + + public void setIptvVlanPriority(Integer iptvVlanPriority) { + this.iptvVlanPriority = iptvVlanPriority; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IptvCustomOpenApiVo iptvCustomOpenApiVo = (IptvCustomOpenApiVo) o; + return Objects.equals(this.ipPhoneVlanId, iptvCustomOpenApiVo.ipPhoneVlanId) && + Objects.equals(this.ipPhoneVlanPriority, iptvCustomOpenApiVo.ipPhoneVlanPriority) && + Objects.equals(this.iptvVlanId, iptvCustomOpenApiVo.iptvVlanId) && + Objects.equals(this.iptvVlanPriority, iptvCustomOpenApiVo.iptvVlanPriority); + } + + @Override + public int hashCode() { + return Objects.hash(ipPhoneVlanId, ipPhoneVlanPriority, iptvVlanId, iptvVlanPriority); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IptvCustomOpenApiVo {\n"); + + sb.append(" ipPhoneVlanId: ").append(toIndentedString(ipPhoneVlanId)).append("\n"); + sb.append(" ipPhoneVlanPriority: ").append(toIndentedString(ipPhoneVlanPriority)).append("\n"); + sb.append(" iptvVlanId: ").append(toIndentedString(iptvVlanId)).append("\n"); + sb.append(" iptvVlanPriority: ").append(toIndentedString(iptvVlanPriority)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvDslOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvDslOpenApiVo.java new file mode 100644 index 0000000..e9c7d7e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvDslOpenApiVo.java @@ -0,0 +1,180 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Configurations that appear only when DSL WAN port is selected. + */ +@ApiModel(description = "Configurations that appear only when DSL WAN port is selected.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IptvDslOpenApiVo { + @JsonProperty("modulationType") + private Integer modulationType; + + @JsonProperty("ipPhoneVpi") + private Integer ipPhoneVpi; + + @JsonProperty("ipPhoneVci") + private Integer ipPhoneVci; + + @JsonProperty("iptvVpi") + private Integer iptvVpi; + + @JsonProperty("iptvVci") + private Integer iptvVci; + + public IptvDslOpenApiVo modulationType(Integer modulationType) { + this.modulationType = modulationType; + return this; + } + + /** + * Modulation Type should be a value as follows: 0: ADSL, 1: VDSL. + * @return modulationType + */ + @ApiModelProperty(required = true, value = "Modulation Type should be a value as follows: 0: ADSL, 1: VDSL.") + @NotNull + + + public Integer getModulationType() { + return modulationType; + } + + public void setModulationType(Integer modulationType) { + this.modulationType = modulationType; + } + + public IptvDslOpenApiVo ipPhoneVpi(Integer ipPhoneVpi) { + this.ipPhoneVpi = ipPhoneVpi; + return this; + } + + /** + * IP Phone VPI should be a number between 0 and 255. + * @return ipPhoneVpi + */ + @ApiModelProperty(value = "IP Phone VPI should be a number between 0 and 255.") + + + public Integer getIpPhoneVpi() { + return ipPhoneVpi; + } + + public void setIpPhoneVpi(Integer ipPhoneVpi) { + this.ipPhoneVpi = ipPhoneVpi; + } + + public IptvDslOpenApiVo ipPhoneVci(Integer ipPhoneVci) { + this.ipPhoneVci = ipPhoneVci; + return this; + } + + /** + * IP Phone VCI should be a number between 0 and 35535. + * @return ipPhoneVci + */ + @ApiModelProperty(value = "IP Phone VCI should be a number between 0 and 35535.") + + + public Integer getIpPhoneVci() { + return ipPhoneVci; + } + + public void setIpPhoneVci(Integer ipPhoneVci) { + this.ipPhoneVci = ipPhoneVci; + } + + public IptvDslOpenApiVo iptvVpi(Integer iptvVpi) { + this.iptvVpi = iptvVpi; + return this; + } + + /** + * IPTV VPI should be a number between 0 and 255. + * @return iptvVpi + */ + @ApiModelProperty(value = "IPTV VPI should be a number between 0 and 255.") + + + public Integer getIptvVpi() { + return iptvVpi; + } + + public void setIptvVpi(Integer iptvVpi) { + this.iptvVpi = iptvVpi; + } + + public IptvDslOpenApiVo iptvVci(Integer iptvVci) { + this.iptvVci = iptvVci; + return this; + } + + /** + * IPTV VCI should be a number between 0 and 35535. + * @return iptvVci + */ + @ApiModelProperty(value = "IPTV VCI should be a number between 0 and 35535.") + + + public Integer getIptvVci() { + return iptvVci; + } + + public void setIptvVci(Integer iptvVci) { + this.iptvVci = iptvVci; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IptvDslOpenApiVo iptvDslOpenApiVo = (IptvDslOpenApiVo) o; + return Objects.equals(this.modulationType, iptvDslOpenApiVo.modulationType) && + Objects.equals(this.ipPhoneVpi, iptvDslOpenApiVo.ipPhoneVpi) && + Objects.equals(this.ipPhoneVci, iptvDslOpenApiVo.ipPhoneVci) && + Objects.equals(this.iptvVpi, iptvDslOpenApiVo.iptvVpi) && + Objects.equals(this.iptvVci, iptvDslOpenApiVo.iptvVci); + } + + @Override + public int hashCode() { + return Objects.hash(modulationType, ipPhoneVpi, ipPhoneVci, iptvVpi, iptvVci); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IptvDslOpenApiVo {\n"); + + sb.append(" modulationType: ").append(toIndentedString(modulationType)).append("\n"); + sb.append(" ipPhoneVpi: ").append(toIndentedString(ipPhoneVpi)).append("\n"); + sb.append(" ipPhoneVci: ").append(toIndentedString(ipPhoneVci)).append("\n"); + sb.append(" iptvVpi: ").append(toIndentedString(iptvVpi)).append("\n"); + sb.append(" iptvVci: ").append(toIndentedString(iptvVci)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvOpenApiVo.java new file mode 100644 index 0000000..336b73e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvOpenApiVo.java @@ -0,0 +1,218 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * IptvOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IptvOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("wanPortId") + private String wanPortId; + + @JsonProperty("mode") + private Integer mode; + + @JsonProperty("customConfig") + private IptvCustomOpenApiVo customConfig; + + @JsonProperty("portConfig") + @Valid + private List portConfig = new ArrayList<>(); + + @JsonProperty("dslConfig") + private IptvDslOpenApiVo dslConfig; + + public IptvOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public IptvOpenApiVo wanPortId(String wanPortId) { + this.wanPortId = wanPortId; + return this; + } + + /** + * WAN port ID can be obtained from 'Get internet basic info' interface. + * @return wanPortId + */ + @ApiModelProperty(required = true, value = "WAN port ID can be obtained from 'Get internet basic info' interface.") + @NotNull + + + public String getWanPortId() { + return wanPortId; + } + + public void setWanPortId(String wanPortId) { + this.wanPortId = wanPortId; + } + + public IptvOpenApiVo mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Mode should be a value as follows: 0:Bridge, 1:Custom + * @return mode + */ + @ApiModelProperty(required = true, value = "Mode should be a value as follows: 0:Bridge, 1:Custom") + @NotNull + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + public IptvOpenApiVo customConfig(IptvCustomOpenApiVo customConfig) { + this.customConfig = customConfig; + return this; + } + + /** + * Get customConfig + * @return customConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public IptvCustomOpenApiVo getCustomConfig() { + return customConfig; + } + + public void setCustomConfig(IptvCustomOpenApiVo customConfig) { + this.customConfig = customConfig; + } + + public IptvOpenApiVo portConfig(List portConfig) { + this.portConfig = portConfig; + return this; + } + + public IptvOpenApiVo addPortConfigItem(IptvPortOpenApiVo portConfigItem) { + this.portConfig.add(portConfigItem); + return this; + } + + /** + * Get portConfig + * @return portConfig + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public List getPortConfig() { + return portConfig; + } + + public void setPortConfig(List portConfig) { + this.portConfig = portConfig; + } + + public IptvOpenApiVo dslConfig(IptvDslOpenApiVo dslConfig) { + this.dslConfig = dslConfig; + return this; + } + + /** + * Get dslConfig + * @return dslConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public IptvDslOpenApiVo getDslConfig() { + return dslConfig; + } + + public void setDslConfig(IptvDslOpenApiVo dslConfig) { + this.dslConfig = dslConfig; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IptvOpenApiVo iptvOpenApiVo = (IptvOpenApiVo) o; + return Objects.equals(this.enable, iptvOpenApiVo.enable) && + Objects.equals(this.wanPortId, iptvOpenApiVo.wanPortId) && + Objects.equals(this.mode, iptvOpenApiVo.mode) && + Objects.equals(this.customConfig, iptvOpenApiVo.customConfig) && + Objects.equals(this.portConfig, iptvOpenApiVo.portConfig) && + Objects.equals(this.dslConfig, iptvOpenApiVo.dslConfig); + } + + @Override + public int hashCode() { + return Objects.hash(enable, wanPortId, mode, customConfig, portConfig, dslConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IptvOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" wanPortId: ").append(toIndentedString(wanPortId)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" customConfig: ").append(toIndentedString(customConfig)).append("\n"); + sb.append(" portConfig: ").append(toIndentedString(portConfig)).append("\n"); + sb.append(" dslConfig: ").append(toIndentedString(dslConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvPortConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvPortConfigOpenApiVo.java new file mode 100644 index 0000000..7279300 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvPortConfigOpenApiVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * All available ports need to be configured. The list of port ID is the same as that returned by \"Get IPTV setting\" + */ +@ApiModel(description = "All available ports need to be configured. The list of port ID is the same as that returned by \"Get IPTV setting\"") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IptvPortConfigOpenApiVo { + @JsonProperty("portId") + private String portId; + + @JsonProperty("type") + private Integer type; + + public IptvPortConfigOpenApiVo portId(String portId) { + this.portId = portId; + return this; + } + + /** + * Port ID can be obtained from 'Get internet basic info' interface. + * @return portId + */ + @ApiModelProperty(required = true, value = "Port ID can be obtained from 'Get internet basic info' interface.") + @NotNull + + + public String getPortId() { + return portId; + } + + public void setPortId(String portId) { + this.portId = portId; + } + + public IptvPortConfigOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: 1: Internet; 2:IPTV; 3:IP-Phone, 3 is valid only IPTV mode is custom. + * @return type + */ + @ApiModelProperty(required = true, value = "Type should be a value as follows: 1: Internet; 2:IPTV; 3:IP-Phone, 3 is valid only IPTV mode is custom.") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IptvPortConfigOpenApiVo iptvPortConfigOpenApiVo = (IptvPortConfigOpenApiVo) o; + return Objects.equals(this.portId, iptvPortConfigOpenApiVo.portId) && + Objects.equals(this.type, iptvPortConfigOpenApiVo.type); + } + + @Override + public int hashCode() { + return Objects.hash(portId, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IptvPortConfigOpenApiVo {\n"); + + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvPortOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvPortOpenApiVo.java new file mode 100644 index 0000000..9f3b5a5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IptvPortOpenApiVo.java @@ -0,0 +1,129 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * IptvPortOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IptvPortOpenApiVo { + @JsonProperty("portId") + private String portId; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private Integer type; + + public IptvPortOpenApiVo portId(String portId) { + this.portId = portId; + return this; + } + + /** + * Get portId + * @return portId + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public String getPortId() { + return portId; + } + + public void setPortId(String portId) { + this.portId = portId; + } + + public IptvPortOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Get name + * @return name + */ + @ApiModelProperty(value = "") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public IptvPortOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: 1: Internet; 2:IPTV; 3:IP-Phone + * @return type + */ + @ApiModelProperty(required = true, value = "Type should be a value as follows: 1: Internet; 2:IPTV; 3:IP-Phone") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IptvPortOpenApiVo iptvPortOpenApiVo = (IptvPortOpenApiVo) o; + return Objects.equals(this.portId, iptvPortOpenApiVo.portId) && + Objects.equals(this.name, iptvPortOpenApiVo.name) && + Objects.equals(this.type, iptvPortOpenApiVo.type); + } + + @Override + public int hashCode() { + return Objects.hash(portId, name, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IptvPortOpenApiVo {\n"); + + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4Connection2OpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4Connection2OpenApiVo.java new file mode 100644 index 0000000..36c2a36 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4Connection2OpenApiVo.java @@ -0,0 +1,229 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Ipv4Connection2OpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv4Connection2OpenApiVo { + @JsonProperty("secondaryProtoType") + private Integer secondaryProtoType; + + @JsonProperty("server") + private String server; + + @JsonProperty("ipAddress") + private String ipAddress; + + @JsonProperty("subnetMask") + private String subnetMask; + + @JsonProperty("defaultGateway") + private String defaultGateway; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + public Ipv4Connection2OpenApiVo secondaryProtoType(Integer secondaryProtoType) { + this.secondaryProtoType = secondaryProtoType; + return this; + } + + /** + * It should be a value as follows: 0:Static IP; 1:Dynamic IP; 2: None(Only for PPPoE). + * @return secondaryProtoType + */ + @ApiModelProperty(required = true, value = "It should be a value as follows: 0:Static IP; 1:Dynamic IP; 2: None(Only for PPPoE).") + @NotNull + + + public Integer getSecondaryProtoType() { + return secondaryProtoType; + } + + public void setSecondaryProtoType(Integer secondaryProtoType) { + this.secondaryProtoType = secondaryProtoType; + } + + public Ipv4Connection2OpenApiVo server(String server) { + this.server = server; + return this; + } + + /** + * (Optional) VPN Server/Domain Name. It is required for L2TP/PPTP. + * @return server + */ + @ApiModelProperty(value = "(Optional) VPN Server/Domain Name. It is required for L2TP/PPTP.") + + + public String getServer() { + return server; + } + + public void setServer(String server) { + this.server = server; + } + + public Ipv4Connection2OpenApiVo ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * (Optional) It is required when [secondaryProtoType] is 0. + * @return ipAddress + */ + @ApiModelProperty(value = "(Optional) It is required when [secondaryProtoType] is 0.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpAddress() { + return ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public Ipv4Connection2OpenApiVo subnetMask(String subnetMask) { + this.subnetMask = subnetMask; + return this; + } + + /** + * (Optional) It is required when [secondaryProtoType] is 0. + * @return subnetMask + */ + @ApiModelProperty(value = "(Optional) It is required when [secondaryProtoType] is 0.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSubnetMask() { + return subnetMask; + } + + public void setSubnetMask(String subnetMask) { + this.subnetMask = subnetMask; + } + + public Ipv4Connection2OpenApiVo defaultGateway(String defaultGateway) { + this.defaultGateway = defaultGateway; + return this; + } + + /** + * (Optional) It is required when [secondaryProtoType] is 0. + * @return defaultGateway + */ + @ApiModelProperty(value = "(Optional) It is required when [secondaryProtoType] is 0.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDefaultGateway() { + return defaultGateway; + } + + public void setDefaultGateway(String defaultGateway) { + this.defaultGateway = defaultGateway; + } + + public Ipv4Connection2OpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * (Optional) It is required when [secondaryProtoType] is 0. + * @return primaryDns + */ + @ApiModelProperty(value = "(Optional) It is required when [secondaryProtoType] is 0.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public Ipv4Connection2OpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * (Optional) It is required when [secondaryProtoType] is 0. + * @return secondaryDns + */ + @ApiModelProperty(value = "(Optional) It is required when [secondaryProtoType] is 0.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv4Connection2OpenApiVo ipv4Connection2OpenApiVo = (Ipv4Connection2OpenApiVo) o; + return Objects.equals(this.secondaryProtoType, ipv4Connection2OpenApiVo.secondaryProtoType) && + Objects.equals(this.server, ipv4Connection2OpenApiVo.server) && + Objects.equals(this.ipAddress, ipv4Connection2OpenApiVo.ipAddress) && + Objects.equals(this.subnetMask, ipv4Connection2OpenApiVo.subnetMask) && + Objects.equals(this.defaultGateway, ipv4Connection2OpenApiVo.defaultGateway) && + Objects.equals(this.primaryDns, ipv4Connection2OpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, ipv4Connection2OpenApiVo.secondaryDns); + } + + @Override + public int hashCode() { + return Objects.hash(secondaryProtoType, server, ipAddress, subnetMask, defaultGateway, primaryDns, secondaryDns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv4Connection2OpenApiVo {\n"); + + sb.append(" secondaryProtoType: ").append(toIndentedString(secondaryProtoType)).append("\n"); + sb.append(" server: ").append(toIndentedString(server)).append("\n"); + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append(" subnetMask: ").append(toIndentedString(subnetMask)).append("\n"); + sb.append(" defaultGateway: ").append(toIndentedString(defaultGateway)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4DhcpOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4DhcpOpenApiVo.java new file mode 100644 index 0000000..ac34b57 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4DhcpOpenApiVo.java @@ -0,0 +1,219 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * It is required when [protoType] is 1. + */ +@ApiModel(description = "It is required when [protoType] is 1.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv4DhcpOpenApiVo { + @JsonProperty("unicastDhcp") + private Boolean unicastDhcp; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + @JsonProperty("hostname") + private String hostname; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("wanMultipleIps") + @Valid + private List wanMultipleIps = null; + + public Ipv4DhcpOpenApiVo unicastDhcp(Boolean unicastDhcp) { + this.unicastDhcp = unicastDhcp; + return this; + } + + /** + * Unicast DHCP + * @return unicastDhcp + */ + @ApiModelProperty(value = "Unicast DHCP") + + + public Boolean getUnicastDhcp() { + return unicastDhcp; + } + + public void setUnicastDhcp(Boolean unicastDhcp) { + this.unicastDhcp = unicastDhcp; + } + + public Ipv4DhcpOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * Primary DNS + * @return primaryDns + */ + @ApiModelProperty(value = "Primary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public Ipv4DhcpOpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * Secondary DNS + * @return secondaryDns + */ + @ApiModelProperty(value = "Secondary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + public Ipv4DhcpOpenApiVo hostname(String hostname) { + this.hostname = hostname; + return this; + } + + /** + * Host name + * @return hostname + */ + @ApiModelProperty(value = "Host name") + +@Pattern(regexp="^[a-zA-Z0-9_]{0,63}$") + public String getHostname() { + return hostname; + } + + public void setHostname(String hostname) { + this.hostname = hostname; + } + + public Ipv4DhcpOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * 576-1500, default:1500. + * @return mtu + */ + @ApiModelProperty(required = true, value = "576-1500, default:1500.") + @NotNull + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public Ipv4DhcpOpenApiVo wanMultipleIps(List wanMultipleIps) { + this.wanMultipleIps = wanMultipleIps; + return this; + } + + public Ipv4DhcpOpenApiVo addWanMultipleIpsItem(WanMultipleIpOpenApiVo wanMultipleIpsItem) { + if (this.wanMultipleIps == null) { + this.wanMultipleIps = new ArrayList<>(); + } + this.wanMultipleIps.add(wanMultipleIpsItem); + return this; + } + + /** + * Get wanMultipleIps + * @return wanMultipleIps + */ + @ApiModelProperty(value = "") + + @Valid + + public List getWanMultipleIps() { + return wanMultipleIps; + } + + public void setWanMultipleIps(List wanMultipleIps) { + this.wanMultipleIps = wanMultipleIps; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv4DhcpOpenApiVo ipv4DhcpOpenApiVo = (Ipv4DhcpOpenApiVo) o; + return Objects.equals(this.unicastDhcp, ipv4DhcpOpenApiVo.unicastDhcp) && + Objects.equals(this.primaryDns, ipv4DhcpOpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, ipv4DhcpOpenApiVo.secondaryDns) && + Objects.equals(this.hostname, ipv4DhcpOpenApiVo.hostname) && + Objects.equals(this.mtu, ipv4DhcpOpenApiVo.mtu) && + Objects.equals(this.wanMultipleIps, ipv4DhcpOpenApiVo.wanMultipleIps); + } + + @Override + public int hashCode() { + return Objects.hash(unicastDhcp, primaryDns, secondaryDns, hostname, mtu, wanMultipleIps); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv4DhcpOpenApiVo {\n"); + + sb.append(" unicastDhcp: ").append(toIndentedString(unicastDhcp)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" wanMultipleIps: ").append(toIndentedString(wanMultipleIps)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4IpoaOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4IpoaOpenApiVo.java new file mode 100644 index 0000000..4974b24 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4IpoaOpenApiVo.java @@ -0,0 +1,246 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * It is required when [protoType] is 8. + */ +@ApiModel(description = "It is required when [protoType] is 8.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv4IpoaOpenApiVo { + @JsonProperty("ipAddress") + private String ipAddress; + + @JsonProperty("subnetMask") + private String subnetMask; + + @JsonProperty("defaultGateway") + private String defaultGateway; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + @JsonProperty("wanMultipleIps") + @Valid + private List wanMultipleIps = null; + + public Ipv4IpoaOpenApiVo ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * IP address + * @return ipAddress + */ + @ApiModelProperty(required = true, value = "IP address") + @NotNull + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpAddress() { + return ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public Ipv4IpoaOpenApiVo subnetMask(String subnetMask) { + this.subnetMask = subnetMask; + return this; + } + + /** + * Get subnetMask + * @return subnetMask + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSubnetMask() { + return subnetMask; + } + + public void setSubnetMask(String subnetMask) { + this.subnetMask = subnetMask; + } + + public Ipv4IpoaOpenApiVo defaultGateway(String defaultGateway) { + this.defaultGateway = defaultGateway; + return this; + } + + /** + * Get defaultGateway + * @return defaultGateway + */ + @ApiModelProperty(value = "") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDefaultGateway() { + return defaultGateway; + } + + public void setDefaultGateway(String defaultGateway) { + this.defaultGateway = defaultGateway; + } + + public Ipv4IpoaOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * 576-1500, default:1500 + * @return mtu + */ + @ApiModelProperty(required = true, value = "576-1500, default:1500") + @NotNull + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public Ipv4IpoaOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * Primary DNS + * @return primaryDns + */ + @ApiModelProperty(value = "Primary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public Ipv4IpoaOpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * Secondary DNS + * @return secondaryDns + */ + @ApiModelProperty(value = "Secondary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + public Ipv4IpoaOpenApiVo wanMultipleIps(List wanMultipleIps) { + this.wanMultipleIps = wanMultipleIps; + return this; + } + + public Ipv4IpoaOpenApiVo addWanMultipleIpsItem(WanMultipleIpOpenApiVo wanMultipleIpsItem) { + if (this.wanMultipleIps == null) { + this.wanMultipleIps = new ArrayList<>(); + } + this.wanMultipleIps.add(wanMultipleIpsItem); + return this; + } + + /** + * Get wanMultipleIps + * @return wanMultipleIps + */ + @ApiModelProperty(value = "") + + @Valid + + public List getWanMultipleIps() { + return wanMultipleIps; + } + + public void setWanMultipleIps(List wanMultipleIps) { + this.wanMultipleIps = wanMultipleIps; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv4IpoaOpenApiVo ipv4IpoaOpenApiVo = (Ipv4IpoaOpenApiVo) o; + return Objects.equals(this.ipAddress, ipv4IpoaOpenApiVo.ipAddress) && + Objects.equals(this.subnetMask, ipv4IpoaOpenApiVo.subnetMask) && + Objects.equals(this.defaultGateway, ipv4IpoaOpenApiVo.defaultGateway) && + Objects.equals(this.mtu, ipv4IpoaOpenApiVo.mtu) && + Objects.equals(this.primaryDns, ipv4IpoaOpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, ipv4IpoaOpenApiVo.secondaryDns) && + Objects.equals(this.wanMultipleIps, ipv4IpoaOpenApiVo.wanMultipleIps); + } + + @Override + public int hashCode() { + return Objects.hash(ipAddress, subnetMask, defaultGateway, mtu, primaryDns, secondaryDns, wanMultipleIps); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv4IpoaOpenApiVo {\n"); + + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append(" subnetMask: ").append(toIndentedString(subnetMask)).append("\n"); + sb.append(" defaultGateway: ").append(toIndentedString(defaultGateway)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append(" wanMultipleIps: ").append(toIndentedString(wanMultipleIps)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4L2tpOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4L2tpOpenApiVo.java new file mode 100644 index 0000000..611ccdd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4L2tpOpenApiVo.java @@ -0,0 +1,388 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * It is required when [protoType] is 3. + */ +@ApiModel(description = "It is required when [protoType] is 3.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv4L2tpOpenApiVo { + @JsonProperty("userName") + private String userName; + + @JsonProperty("password") + private String password; + + @JsonProperty("ipFromIsp") + private Boolean ipFromIsp; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + @JsonProperty("connectionMode") + private Integer connectionMode; + + @JsonProperty("redialInterval") + private Integer redialInterval; + + @JsonProperty("startTime") + private String startTime; + + @JsonProperty("endTime") + private String endTime; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("mssClampingType") + private Integer mssClampingType; + + @JsonProperty("mssClampingValue") + private Integer mssClampingValue; + + @JsonProperty("ipv4Connection2") + private Ipv4Connection2OpenApiVo ipv4Connection2; + + public Ipv4L2tpOpenApiVo userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public Ipv4L2tpOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Get password + * @return password + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public Ipv4L2tpOpenApiVo ipFromIsp(Boolean ipFromIsp) { + this.ipFromIsp = ipFromIsp; + return this; + } + + /** + * Get IP address from ISP. + * @return ipFromIsp + */ + @ApiModelProperty(required = true, value = "Get IP address from ISP.") + @NotNull + + + public Boolean getIpFromIsp() { + return ipFromIsp; + } + + public void setIpFromIsp(Boolean ipFromIsp) { + this.ipFromIsp = ipFromIsp; + } + + public Ipv4L2tpOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * Primary DNS + * @return primaryDns + */ + @ApiModelProperty(value = "Primary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public Ipv4L2tpOpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * Secondary DNS + * @return secondaryDns + */ + @ApiModelProperty(value = "Secondary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + public Ipv4L2tpOpenApiVo connectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + return this; + } + + /** + * It should be a value as follows: 0: Connect Automatically; 1: Connect Manually; 2: Time-based. + * @return connectionMode + */ + @ApiModelProperty(required = true, value = "It should be a value as follows: 0: Connect Automatically; 1: Connect Manually; 2: Time-based.") + @NotNull + + + public Integer getConnectionMode() { + return connectionMode; + } + + public void setConnectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + } + + public Ipv4L2tpOpenApiVo redialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + return this; + } + + /** + * It is required when [linkType] is 0. Unit: Second + * @return redialInterval + */ + @ApiModelProperty(value = "It is required when [linkType] is 0. Unit: Second") + + + public Integer getRedialInterval() { + return redialInterval; + } + + public void setRedialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + } + + public Ipv4L2tpOpenApiVo startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return startTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public Ipv4L2tpOpenApiVo endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return endTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public Ipv4L2tpOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * 576-1500, default:1460 + * @return mtu + */ + @ApiModelProperty(required = true, value = "576-1500, default:1460") + @NotNull + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public Ipv4L2tpOpenApiVo mssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + return this; + } + + /** + * 0: Disable; 1: Auto; 2: Custom. + * @return mssClampingType + */ + @ApiModelProperty(value = "0: Disable; 1: Auto; 2: Custom.") + + + public Integer getMssClampingType() { + return mssClampingType; + } + + public void setMssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + } + + public Ipv4L2tpOpenApiVo mssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + return this; + } + + /** + * It is required when [mssClampingType] is 2, which ranges 532 ~ 1452. + * @return mssClampingValue + */ + @ApiModelProperty(value = "It is required when [mssClampingType] is 2, which ranges 532 ~ 1452.") + + + public Integer getMssClampingValue() { + return mssClampingValue; + } + + public void setMssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + } + + public Ipv4L2tpOpenApiVo ipv4Connection2(Ipv4Connection2OpenApiVo ipv4Connection2) { + this.ipv4Connection2 = ipv4Connection2; + return this; + } + + /** + * Get ipv4Connection2 + * @return ipv4Connection2 + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public Ipv4Connection2OpenApiVo getIpv4Connection2() { + return ipv4Connection2; + } + + public void setIpv4Connection2(Ipv4Connection2OpenApiVo ipv4Connection2) { + this.ipv4Connection2 = ipv4Connection2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv4L2tpOpenApiVo ipv4L2tpOpenApiVo = (Ipv4L2tpOpenApiVo) o; + return Objects.equals(this.userName, ipv4L2tpOpenApiVo.userName) && + Objects.equals(this.password, ipv4L2tpOpenApiVo.password) && + Objects.equals(this.ipFromIsp, ipv4L2tpOpenApiVo.ipFromIsp) && + Objects.equals(this.primaryDns, ipv4L2tpOpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, ipv4L2tpOpenApiVo.secondaryDns) && + Objects.equals(this.connectionMode, ipv4L2tpOpenApiVo.connectionMode) && + Objects.equals(this.redialInterval, ipv4L2tpOpenApiVo.redialInterval) && + Objects.equals(this.startTime, ipv4L2tpOpenApiVo.startTime) && + Objects.equals(this.endTime, ipv4L2tpOpenApiVo.endTime) && + Objects.equals(this.mtu, ipv4L2tpOpenApiVo.mtu) && + Objects.equals(this.mssClampingType, ipv4L2tpOpenApiVo.mssClampingType) && + Objects.equals(this.mssClampingValue, ipv4L2tpOpenApiVo.mssClampingValue) && + Objects.equals(this.ipv4Connection2, ipv4L2tpOpenApiVo.ipv4Connection2); + } + + @Override + public int hashCode() { + return Objects.hash(userName, password, ipFromIsp, primaryDns, secondaryDns, connectionMode, redialInterval, startTime, endTime, mtu, mssClampingType, mssClampingValue, ipv4Connection2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv4L2tpOpenApiVo {\n"); + + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" ipFromIsp: ").append(toIndentedString(ipFromIsp)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append(" connectionMode: ").append(toIndentedString(connectionMode)).append("\n"); + sb.append(" redialInterval: ").append(toIndentedString(redialInterval)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" mssClampingType: ").append(toIndentedString(mssClampingType)).append("\n"); + sb.append(" mssClampingValue: ").append(toIndentedString(mssClampingValue)).append("\n"); + sb.append(" ipv4Connection2: ").append(toIndentedString(ipv4Connection2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PppoaOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PppoaOpenApiVo.java new file mode 100644 index 0000000..19b319f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PppoaOpenApiVo.java @@ -0,0 +1,412 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * It is required when [protoType] is 7. + */ +@ApiModel(description = "It is required when [protoType] is 7.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv4PppoaOpenApiVo { + @JsonProperty("userName") + private String userName; + + @JsonProperty("password") + private String password; + + @JsonProperty("ipFromIsp") + private Boolean ipFromIsp; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + @JsonProperty("connectionMode") + private Integer connectionMode; + + @JsonProperty("redialInterval") + private Integer redialInterval; + + @JsonProperty("startTime") + private String startTime; + + @JsonProperty("endTime") + private String endTime; + + @JsonProperty("serviceName") + private String serviceName; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("mru") + private Integer mru; + + @JsonProperty("mssClampingType") + private Integer mssClampingType; + + @JsonProperty("mssClampingValue") + private Integer mssClampingValue; + + public Ipv4PppoaOpenApiVo userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public Ipv4PppoaOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Get password + * @return password + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public Ipv4PppoaOpenApiVo ipFromIsp(Boolean ipFromIsp) { + this.ipFromIsp = ipFromIsp; + return this; + } + + /** + * Get IP address from ISP + * @return ipFromIsp + */ + @ApiModelProperty(required = true, value = "Get IP address from ISP") + @NotNull + + + public Boolean getIpFromIsp() { + return ipFromIsp; + } + + public void setIpFromIsp(Boolean ipFromIsp) { + this.ipFromIsp = ipFromIsp; + } + + public Ipv4PppoaOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * Primary DNS + * @return primaryDns + */ + @ApiModelProperty(value = "Primary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public Ipv4PppoaOpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * Secondary DNS + * @return secondaryDns + */ + @ApiModelProperty(value = "Secondary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + public Ipv4PppoaOpenApiVo connectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + return this; + } + + /** + * 0: Connect Automatically; 1: Connect Manually; 2: Time-based. + * @return connectionMode + */ + @ApiModelProperty(required = true, value = "0: Connect Automatically; 1: Connect Manually; 2: Time-based.") + @NotNull + + + public Integer getConnectionMode() { + return connectionMode; + } + + public void setConnectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + } + + public Ipv4PppoaOpenApiVo redialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + return this; + } + + /** + * It is required when [linkType] is 0. Unit: Second. + * @return redialInterval + */ + @ApiModelProperty(value = "It is required when [linkType] is 0. Unit: Second.") + + + public Integer getRedialInterval() { + return redialInterval; + } + + public void setRedialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + } + + public Ipv4PppoaOpenApiVo startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return startTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public Ipv4PppoaOpenApiVo endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return endTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public Ipv4PppoaOpenApiVo serviceName(String serviceName) { + this.serviceName = serviceName; + return this; + } + + /** + * Service Name. Keep it blank unless your ISP requires you to configure it. + * @return serviceName + */ + @ApiModelProperty(value = "Service Name. Keep it blank unless your ISP requires you to configure it.") + +@Pattern(regexp="^[\\041-\\0176]{1,128}$") + public String getServiceName() { + return serviceName; + } + + public void setServiceName(String serviceName) { + this.serviceName = serviceName; + } + + public Ipv4PppoaOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * 576-1500, default:1492 + * @return mtu + */ + @ApiModelProperty(required = true, value = "576-1500, default:1492") + @NotNull + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public Ipv4PppoaOpenApiVo mru(Integer mru) { + this.mru = mru; + return this; + } + + /** + * 576-1500, default:1492 + * @return mru + */ + @ApiModelProperty(required = true, value = "576-1500, default:1492") + @NotNull + + + public Integer getMru() { + return mru; + } + + public void setMru(Integer mru) { + this.mru = mru; + } + + public Ipv4PppoaOpenApiVo mssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + return this; + } + + /** + * It should be a value as follows: 0: Disable, 1: Auto, 2: Custom + * @return mssClampingType + */ + @ApiModelProperty(required = true, value = "It should be a value as follows: 0: Disable, 1: Auto, 2: Custom") + @NotNull + + + public Integer getMssClampingType() { + return mssClampingType; + } + + public void setMssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + } + + public Ipv4PppoaOpenApiVo mssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + return this; + } + + /** + * (Optional) It is required when [mssClampingType] is 2, which ranges from 532 ~ 1452. + * @return mssClampingValue + */ + @ApiModelProperty(value = "(Optional) It is required when [mssClampingType] is 2, which ranges from 532 ~ 1452.") + + + public Integer getMssClampingValue() { + return mssClampingValue; + } + + public void setMssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv4PppoaOpenApiVo ipv4PppoaOpenApiVo = (Ipv4PppoaOpenApiVo) o; + return Objects.equals(this.userName, ipv4PppoaOpenApiVo.userName) && + Objects.equals(this.password, ipv4PppoaOpenApiVo.password) && + Objects.equals(this.ipFromIsp, ipv4PppoaOpenApiVo.ipFromIsp) && + Objects.equals(this.primaryDns, ipv4PppoaOpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, ipv4PppoaOpenApiVo.secondaryDns) && + Objects.equals(this.connectionMode, ipv4PppoaOpenApiVo.connectionMode) && + Objects.equals(this.redialInterval, ipv4PppoaOpenApiVo.redialInterval) && + Objects.equals(this.startTime, ipv4PppoaOpenApiVo.startTime) && + Objects.equals(this.endTime, ipv4PppoaOpenApiVo.endTime) && + Objects.equals(this.serviceName, ipv4PppoaOpenApiVo.serviceName) && + Objects.equals(this.mtu, ipv4PppoaOpenApiVo.mtu) && + Objects.equals(this.mru, ipv4PppoaOpenApiVo.mru) && + Objects.equals(this.mssClampingType, ipv4PppoaOpenApiVo.mssClampingType) && + Objects.equals(this.mssClampingValue, ipv4PppoaOpenApiVo.mssClampingValue); + } + + @Override + public int hashCode() { + return Objects.hash(userName, password, ipFromIsp, primaryDns, secondaryDns, connectionMode, redialInterval, startTime, endTime, serviceName, mtu, mru, mssClampingType, mssClampingValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv4PppoaOpenApiVo {\n"); + + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" ipFromIsp: ").append(toIndentedString(ipFromIsp)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append(" connectionMode: ").append(toIndentedString(connectionMode)).append("\n"); + sb.append(" redialInterval: ").append(toIndentedString(redialInterval)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" mru: ").append(toIndentedString(mru)).append("\n"); + sb.append(" mssClampingType: ").append(toIndentedString(mssClampingType)).append("\n"); + sb.append(" mssClampingValue: ").append(toIndentedString(mssClampingValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PppoeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PppoeOpenApiVo.java new file mode 100644 index 0000000..7aee32b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PppoeOpenApiVo.java @@ -0,0 +1,440 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * It is required when [protoType] is 2. + */ +@ApiModel(description = "It is required when [protoType] is 2.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv4PppoeOpenApiVo { + @JsonProperty("userName") + private String userName; + + @JsonProperty("password") + private String password; + + @JsonProperty("ipFromIsp") + private Boolean ipFromIsp; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + @JsonProperty("connectionMode") + private Integer connectionMode; + + @JsonProperty("redialInterval") + private Integer redialInterval; + + @JsonProperty("startTime") + private String startTime; + + @JsonProperty("endTime") + private String endTime; + + @JsonProperty("serviceName") + private String serviceName; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("mru") + private Integer mru; + + @JsonProperty("mssClampingType") + private Integer mssClampingType; + + @JsonProperty("mssClampingValue") + private Integer mssClampingValue; + + @JsonProperty("ipv4Connection2") + private Ipv4Connection2OpenApiVo ipv4Connection2; + + public Ipv4PppoeOpenApiVo userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public Ipv4PppoeOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Get password + * @return password + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public Ipv4PppoeOpenApiVo ipFromIsp(Boolean ipFromIsp) { + this.ipFromIsp = ipFromIsp; + return this; + } + + /** + * Get IP address from ISP + * @return ipFromIsp + */ + @ApiModelProperty(required = true, value = "Get IP address from ISP") + @NotNull + + + public Boolean getIpFromIsp() { + return ipFromIsp; + } + + public void setIpFromIsp(Boolean ipFromIsp) { + this.ipFromIsp = ipFromIsp; + } + + public Ipv4PppoeOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * Primary DNS + * @return primaryDns + */ + @ApiModelProperty(value = "Primary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public Ipv4PppoeOpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * Secondary DNS + * @return secondaryDns + */ + @ApiModelProperty(value = "Secondary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + public Ipv4PppoeOpenApiVo connectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + return this; + } + + /** + * 0: Connect Automatically; 1: Connect Manually; 2: Time-based. + * @return connectionMode + */ + @ApiModelProperty(required = true, value = "0: Connect Automatically; 1: Connect Manually; 2: Time-based.") + @NotNull + + + public Integer getConnectionMode() { + return connectionMode; + } + + public void setConnectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + } + + public Ipv4PppoeOpenApiVo redialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + return this; + } + + /** + * It is required when [linkType] is 0. Unit: Second. + * @return redialInterval + */ + @ApiModelProperty(value = "It is required when [linkType] is 0. Unit: Second.") + + + public Integer getRedialInterval() { + return redialInterval; + } + + public void setRedialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + } + + public Ipv4PppoeOpenApiVo startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return startTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public Ipv4PppoeOpenApiVo endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return endTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public Ipv4PppoeOpenApiVo serviceName(String serviceName) { + this.serviceName = serviceName; + return this; + } + + /** + * Service Name. Keep it blank unless your ISP requires you to configure it. + * @return serviceName + */ + @ApiModelProperty(value = "Service Name. Keep it blank unless your ISP requires you to configure it.") + +@Pattern(regexp="^[\\041-\\0176]{1,128}$") + public String getServiceName() { + return serviceName; + } + + public void setServiceName(String serviceName) { + this.serviceName = serviceName; + } + + public Ipv4PppoeOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * 576-1500, default:1492 + * @return mtu + */ + @ApiModelProperty(required = true, value = "576-1500, default:1492") + @NotNull + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public Ipv4PppoeOpenApiVo mru(Integer mru) { + this.mru = mru; + return this; + } + + /** + * 576-1500, default:1492 + * @return mru + */ + @ApiModelProperty(required = true, value = "576-1500, default:1492") + @NotNull + + + public Integer getMru() { + return mru; + } + + public void setMru(Integer mru) { + this.mru = mru; + } + + public Ipv4PppoeOpenApiVo mssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + return this; + } + + /** + * It should be a value as follows: 0: Disable, 1: Auto, 2: Custom + * @return mssClampingType + */ + @ApiModelProperty(required = true, value = "It should be a value as follows: 0: Disable, 1: Auto, 2: Custom") + @NotNull + + + public Integer getMssClampingType() { + return mssClampingType; + } + + public void setMssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + } + + public Ipv4PppoeOpenApiVo mssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + return this; + } + + /** + * (Optional) It is required when [mssClampingType] is 2, which ranges from 532 ~ 1452. + * @return mssClampingValue + */ + @ApiModelProperty(value = "(Optional) It is required when [mssClampingType] is 2, which ranges from 532 ~ 1452.") + + + public Integer getMssClampingValue() { + return mssClampingValue; + } + + public void setMssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + } + + public Ipv4PppoeOpenApiVo ipv4Connection2(Ipv4Connection2OpenApiVo ipv4Connection2) { + this.ipv4Connection2 = ipv4Connection2; + return this; + } + + /** + * Get ipv4Connection2 + * @return ipv4Connection2 + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public Ipv4Connection2OpenApiVo getIpv4Connection2() { + return ipv4Connection2; + } + + public void setIpv4Connection2(Ipv4Connection2OpenApiVo ipv4Connection2) { + this.ipv4Connection2 = ipv4Connection2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv4PppoeOpenApiVo ipv4PppoeOpenApiVo = (Ipv4PppoeOpenApiVo) o; + return Objects.equals(this.userName, ipv4PppoeOpenApiVo.userName) && + Objects.equals(this.password, ipv4PppoeOpenApiVo.password) && + Objects.equals(this.ipFromIsp, ipv4PppoeOpenApiVo.ipFromIsp) && + Objects.equals(this.primaryDns, ipv4PppoeOpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, ipv4PppoeOpenApiVo.secondaryDns) && + Objects.equals(this.connectionMode, ipv4PppoeOpenApiVo.connectionMode) && + Objects.equals(this.redialInterval, ipv4PppoeOpenApiVo.redialInterval) && + Objects.equals(this.startTime, ipv4PppoeOpenApiVo.startTime) && + Objects.equals(this.endTime, ipv4PppoeOpenApiVo.endTime) && + Objects.equals(this.serviceName, ipv4PppoeOpenApiVo.serviceName) && + Objects.equals(this.mtu, ipv4PppoeOpenApiVo.mtu) && + Objects.equals(this.mru, ipv4PppoeOpenApiVo.mru) && + Objects.equals(this.mssClampingType, ipv4PppoeOpenApiVo.mssClampingType) && + Objects.equals(this.mssClampingValue, ipv4PppoeOpenApiVo.mssClampingValue) && + Objects.equals(this.ipv4Connection2, ipv4PppoeOpenApiVo.ipv4Connection2); + } + + @Override + public int hashCode() { + return Objects.hash(userName, password, ipFromIsp, primaryDns, secondaryDns, connectionMode, redialInterval, startTime, endTime, serviceName, mtu, mru, mssClampingType, mssClampingValue, ipv4Connection2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv4PppoeOpenApiVo {\n"); + + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" ipFromIsp: ").append(toIndentedString(ipFromIsp)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append(" connectionMode: ").append(toIndentedString(connectionMode)).append("\n"); + sb.append(" redialInterval: ").append(toIndentedString(redialInterval)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" serviceName: ").append(toIndentedString(serviceName)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" mru: ").append(toIndentedString(mru)).append("\n"); + sb.append(" mssClampingType: ").append(toIndentedString(mssClampingType)).append("\n"); + sb.append(" mssClampingValue: ").append(toIndentedString(mssClampingValue)).append("\n"); + sb.append(" ipv4Connection2: ").append(toIndentedString(ipv4Connection2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PptpOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PptpOpenApiVo.java new file mode 100644 index 0000000..4b3ccf5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4PptpOpenApiVo.java @@ -0,0 +1,388 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * It is required when [protoType] is 4. + */ +@ApiModel(description = "It is required when [protoType] is 4.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv4PptpOpenApiVo { + @JsonProperty("userName") + private String userName; + + @JsonProperty("password") + private String password; + + @JsonProperty("ipFromIsp") + private Boolean ipFromIsp; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + @JsonProperty("connectionMode") + private Integer connectionMode; + + @JsonProperty("redialInterval") + private Integer redialInterval; + + @JsonProperty("startTime") + private String startTime; + + @JsonProperty("endTime") + private String endTime; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("mssClampingType") + private Integer mssClampingType; + + @JsonProperty("mssClampingValue") + private Integer mssClampingValue; + + @JsonProperty("ipv4Connection2") + private Ipv4Connection2OpenApiVo ipv4Connection2; + + public Ipv4PptpOpenApiVo userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public Ipv4PptpOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Get password + * @return password + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public Ipv4PptpOpenApiVo ipFromIsp(Boolean ipFromIsp) { + this.ipFromIsp = ipFromIsp; + return this; + } + + /** + * Get IP address from ISP. + * @return ipFromIsp + */ + @ApiModelProperty(required = true, value = "Get IP address from ISP.") + @NotNull + + + public Boolean getIpFromIsp() { + return ipFromIsp; + } + + public void setIpFromIsp(Boolean ipFromIsp) { + this.ipFromIsp = ipFromIsp; + } + + public Ipv4PptpOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * Primary DNS + * @return primaryDns + */ + @ApiModelProperty(value = "Primary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public Ipv4PptpOpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * Secondary DNS + * @return secondaryDns + */ + @ApiModelProperty(value = "Secondary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + public Ipv4PptpOpenApiVo connectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + return this; + } + + /** + * It should be a value as follows: 0: Connect Automatically; 1: Connect Manually; 2: Time-based. + * @return connectionMode + */ + @ApiModelProperty(required = true, value = "It should be a value as follows: 0: Connect Automatically; 1: Connect Manually; 2: Time-based.") + @NotNull + + + public Integer getConnectionMode() { + return connectionMode; + } + + public void setConnectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + } + + public Ipv4PptpOpenApiVo redialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + return this; + } + + /** + * It is required when [linkType] is 0. Unit: Second + * @return redialInterval + */ + @ApiModelProperty(value = "It is required when [linkType] is 0. Unit: Second") + + + public Integer getRedialInterval() { + return redialInterval; + } + + public void setRedialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + } + + public Ipv4PptpOpenApiVo startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return startTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public Ipv4PptpOpenApiVo endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return endTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public Ipv4PptpOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * 576-1500, default:1420 + * @return mtu + */ + @ApiModelProperty(required = true, value = "576-1500, default:1420") + @NotNull + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public Ipv4PptpOpenApiVo mssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + return this; + } + + /** + * 0: Disable, 1: Auto, 2: Custom + * @return mssClampingType + */ + @ApiModelProperty(value = "0: Disable, 1: Auto, 2: Custom") + + + public Integer getMssClampingType() { + return mssClampingType; + } + + public void setMssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + } + + public Ipv4PptpOpenApiVo mssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + return this; + } + + /** + * (Optional) It is required when [mssClampingType] is 2, which ranges from 532 ~ 1452. + * @return mssClampingValue + */ + @ApiModelProperty(value = "(Optional) It is required when [mssClampingType] is 2, which ranges from 532 ~ 1452.") + + + public Integer getMssClampingValue() { + return mssClampingValue; + } + + public void setMssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + } + + public Ipv4PptpOpenApiVo ipv4Connection2(Ipv4Connection2OpenApiVo ipv4Connection2) { + this.ipv4Connection2 = ipv4Connection2; + return this; + } + + /** + * Get ipv4Connection2 + * @return ipv4Connection2 + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public Ipv4Connection2OpenApiVo getIpv4Connection2() { + return ipv4Connection2; + } + + public void setIpv4Connection2(Ipv4Connection2OpenApiVo ipv4Connection2) { + this.ipv4Connection2 = ipv4Connection2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv4PptpOpenApiVo ipv4PptpOpenApiVo = (Ipv4PptpOpenApiVo) o; + return Objects.equals(this.userName, ipv4PptpOpenApiVo.userName) && + Objects.equals(this.password, ipv4PptpOpenApiVo.password) && + Objects.equals(this.ipFromIsp, ipv4PptpOpenApiVo.ipFromIsp) && + Objects.equals(this.primaryDns, ipv4PptpOpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, ipv4PptpOpenApiVo.secondaryDns) && + Objects.equals(this.connectionMode, ipv4PptpOpenApiVo.connectionMode) && + Objects.equals(this.redialInterval, ipv4PptpOpenApiVo.redialInterval) && + Objects.equals(this.startTime, ipv4PptpOpenApiVo.startTime) && + Objects.equals(this.endTime, ipv4PptpOpenApiVo.endTime) && + Objects.equals(this.mtu, ipv4PptpOpenApiVo.mtu) && + Objects.equals(this.mssClampingType, ipv4PptpOpenApiVo.mssClampingType) && + Objects.equals(this.mssClampingValue, ipv4PptpOpenApiVo.mssClampingValue) && + Objects.equals(this.ipv4Connection2, ipv4PptpOpenApiVo.ipv4Connection2); + } + + @Override + public int hashCode() { + return Objects.hash(userName, password, ipFromIsp, primaryDns, secondaryDns, connectionMode, redialInterval, startTime, endTime, mtu, mssClampingType, mssClampingValue, ipv4Connection2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv4PptpOpenApiVo {\n"); + + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" ipFromIsp: ").append(toIndentedString(ipFromIsp)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append(" connectionMode: ").append(toIndentedString(connectionMode)).append("\n"); + sb.append(" redialInterval: ").append(toIndentedString(redialInterval)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" mssClampingType: ").append(toIndentedString(mssClampingType)).append("\n"); + sb.append(" mssClampingValue: ").append(toIndentedString(mssClampingValue)).append("\n"); + sb.append(" ipv4Connection2: ").append(toIndentedString(ipv4Connection2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4StaticOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4StaticOpenApiVo.java new file mode 100644 index 0000000..4ea03ee --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv4StaticOpenApiVo.java @@ -0,0 +1,246 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * It is required when [protoType] is 0. + */ +@ApiModel(description = "It is required when [protoType] is 0.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv4StaticOpenApiVo { + @JsonProperty("ipAddress") + private String ipAddress; + + @JsonProperty("subnetMask") + private String subnetMask; + + @JsonProperty("defaultGateway") + private String defaultGateway; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + @JsonProperty("wanMultipleIps") + @Valid + private List wanMultipleIps = null; + + public Ipv4StaticOpenApiVo ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * IP address + * @return ipAddress + */ + @ApiModelProperty(required = true, value = "IP address") + @NotNull + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpAddress() { + return ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public Ipv4StaticOpenApiVo subnetMask(String subnetMask) { + this.subnetMask = subnetMask; + return this; + } + + /** + * Get subnetMask + * @return subnetMask + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSubnetMask() { + return subnetMask; + } + + public void setSubnetMask(String subnetMask) { + this.subnetMask = subnetMask; + } + + public Ipv4StaticOpenApiVo defaultGateway(String defaultGateway) { + this.defaultGateway = defaultGateway; + return this; + } + + /** + * Get defaultGateway + * @return defaultGateway + */ + @ApiModelProperty(value = "") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDefaultGateway() { + return defaultGateway; + } + + public void setDefaultGateway(String defaultGateway) { + this.defaultGateway = defaultGateway; + } + + public Ipv4StaticOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * 576-1500, default:1500 + * @return mtu + */ + @ApiModelProperty(required = true, value = "576-1500, default:1500") + @NotNull + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public Ipv4StaticOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * Primary DNS + * @return primaryDns + */ + @ApiModelProperty(value = "Primary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public Ipv4StaticOpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * Secondary DNS + * @return secondaryDns + */ + @ApiModelProperty(value = "Secondary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + public Ipv4StaticOpenApiVo wanMultipleIps(List wanMultipleIps) { + this.wanMultipleIps = wanMultipleIps; + return this; + } + + public Ipv4StaticOpenApiVo addWanMultipleIpsItem(WanMultipleIpOpenApiVo wanMultipleIpsItem) { + if (this.wanMultipleIps == null) { + this.wanMultipleIps = new ArrayList<>(); + } + this.wanMultipleIps.add(wanMultipleIpsItem); + return this; + } + + /** + * Get wanMultipleIps + * @return wanMultipleIps + */ + @ApiModelProperty(value = "") + + @Valid + + public List getWanMultipleIps() { + return wanMultipleIps; + } + + public void setWanMultipleIps(List wanMultipleIps) { + this.wanMultipleIps = wanMultipleIps; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv4StaticOpenApiVo ipv4StaticOpenApiVo = (Ipv4StaticOpenApiVo) o; + return Objects.equals(this.ipAddress, ipv4StaticOpenApiVo.ipAddress) && + Objects.equals(this.subnetMask, ipv4StaticOpenApiVo.subnetMask) && + Objects.equals(this.defaultGateway, ipv4StaticOpenApiVo.defaultGateway) && + Objects.equals(this.mtu, ipv4StaticOpenApiVo.mtu) && + Objects.equals(this.primaryDns, ipv4StaticOpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, ipv4StaticOpenApiVo.secondaryDns) && + Objects.equals(this.wanMultipleIps, ipv4StaticOpenApiVo.wanMultipleIps); + } + + @Override + public int hashCode() { + return Objects.hash(ipAddress, subnetMask, defaultGateway, mtu, primaryDns, secondaryDns, wanMultipleIps); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv4StaticOpenApiVo {\n"); + + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append(" subnetMask: ").append(toIndentedString(subnetMask)).append("\n"); + sb.append(" defaultGateway: ").append(toIndentedString(defaultGateway)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append(" wanMultipleIps: ").append(toIndentedString(wanMultipleIps)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6DynamicOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6DynamicOpenApiVo.java new file mode 100644 index 0000000..179f875 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6DynamicOpenApiVo.java @@ -0,0 +1,207 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * It is required when protoType is dynamic + */ +@ApiModel(description = "It is required when protoType is dynamic") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv6DynamicOpenApiVo { + @JsonProperty("getIpv6Type") + private Integer getIpv6Type; + + @JsonProperty("prefixEnable") + private Boolean prefixEnable; + + @JsonProperty("prefixSize") + private Integer prefixSize; + + @JsonProperty("dnsType") + private Integer dnsType; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + public Ipv6DynamicOpenApiVo getIpv6Type(Integer getIpv6Type) { + this.getIpv6Type = getIpv6Type; + return this; + } + + /** + * It should be a value as follows: 0: SLAAC; 1: DHCPv6; 2: specified; 3: auto; 4:non-address. + * @return getIpv6Type + */ + @ApiModelProperty(required = true, value = "It should be a value as follows: 0: SLAAC; 1: DHCPv6; 2: specified; 3: auto; 4:non-address.") + @NotNull + + + public Integer getGetIpv6Type() { + return getIpv6Type; + } + + public void setGetIpv6Type(Integer getIpv6Type) { + this.getIpv6Type = getIpv6Type; + } + + public Ipv6DynamicOpenApiVo prefixEnable(Boolean prefixEnable) { + this.prefixEnable = prefixEnable; + return this; + } + + /** + * Get prefixEnable + * @return prefixEnable + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getPrefixEnable() { + return prefixEnable; + } + + public void setPrefixEnable(Boolean prefixEnable) { + this.prefixEnable = prefixEnable; + } + + public Ipv6DynamicOpenApiVo prefixSize(Integer prefixSize) { + this.prefixSize = prefixSize; + return this; + } + + /** + * It is required when [prefixEnable] is true, which ranges from 48 ~ 64. + * @return prefixSize + */ + @ApiModelProperty(value = "It is required when [prefixEnable] is true, which ranges from 48 ~ 64.") + + + public Integer getPrefixSize() { + return prefixSize; + } + + public void setPrefixSize(Integer prefixSize) { + this.prefixSize = prefixSize; + } + + public Ipv6DynamicOpenApiVo dnsType(Integer dnsType) { + this.dnsType = dnsType; + return this; + } + + /** + * DNS Address Type, 0: dynamic, 1: static. + * @return dnsType + */ + @ApiModelProperty(required = true, value = "DNS Address Type, 0: dynamic, 1: static.") + @NotNull + + + public Integer getDnsType() { + return dnsType; + } + + public void setDnsType(Integer dnsType) { + this.dnsType = dnsType; + } + + public Ipv6DynamicOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * It is required when [dnsType] is 1. + * @return primaryDns + */ + @ApiModelProperty(value = "It is required when [dnsType] is 1.") + + + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public Ipv6DynamicOpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * It takes effect when [dnsType] is 1 + * @return secondaryDns + */ + @ApiModelProperty(value = "It takes effect when [dnsType] is 1") + + + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv6DynamicOpenApiVo ipv6DynamicOpenApiVo = (Ipv6DynamicOpenApiVo) o; + return Objects.equals(this.getIpv6Type, ipv6DynamicOpenApiVo.getIpv6Type) && + Objects.equals(this.prefixEnable, ipv6DynamicOpenApiVo.prefixEnable) && + Objects.equals(this.prefixSize, ipv6DynamicOpenApiVo.prefixSize) && + Objects.equals(this.dnsType, ipv6DynamicOpenApiVo.dnsType) && + Objects.equals(this.primaryDns, ipv6DynamicOpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, ipv6DynamicOpenApiVo.secondaryDns); + } + + @Override + public int hashCode() { + return Objects.hash(getIpv6Type, prefixEnable, prefixSize, dnsType, primaryDns, secondaryDns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv6DynamicOpenApiVo {\n"); + + sb.append(" getIpv6Type: ").append(toIndentedString(getIpv6Type)).append("\n"); + sb.append(" prefixEnable: ").append(toIndentedString(prefixEnable)).append("\n"); + sb.append(" prefixSize: ").append(toIndentedString(prefixSize)).append("\n"); + sb.append(" dnsType: ").append(toIndentedString(dnsType)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6PppoeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6PppoeOpenApiVo.java new file mode 100644 index 0000000..bbe218f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6PppoeOpenApiVo.java @@ -0,0 +1,310 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * It is required when protoType is PPPoE + */ +@ApiModel(description = "It is required when protoType is PPPoE") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv6PppoeOpenApiVo { + @JsonProperty("pppShare") + private Boolean pppShare; + + @JsonProperty("userName") + private String userName; + + @JsonProperty("password") + private String password; + + @JsonProperty("getIpv6Type") + private Integer getIpv6Type; + + @JsonProperty("prefixEnable") + private Boolean prefixEnable; + + @JsonProperty("prefixSize") + private Integer prefixSize; + + @JsonProperty("specificIp") + private String specificIp; + + @JsonProperty("dnsType") + private Integer dnsType; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + public Ipv6PppoeOpenApiVo pppShare(Boolean pppShare) { + this.pppShare = pppShare; + return this; + } + + /** + * Share the same PPPoE session with IPv4 + * @return pppShare + */ + @ApiModelProperty(required = true, value = "Share the same PPPoE session with IPv4") + @NotNull + + + public Boolean getPppShare() { + return pppShare; + } + + public void setPppShare(Boolean pppShare) { + this.pppShare = pppShare; + } + + public Ipv6PppoeOpenApiVo userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Get userName + * @return userName + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public Ipv6PppoeOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Get password + * @return password + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public Ipv6PppoeOpenApiVo getIpv6Type(Integer getIpv6Type) { + this.getIpv6Type = getIpv6Type; + return this; + } + + /** + * It should be a value as follows: 0: SLAAC, 1: DHCPv6, 2: specified, 3: auto, 4:non_address, which ranges from 48 ~ 64. + * @return getIpv6Type + */ + @ApiModelProperty(required = true, value = "It should be a value as follows: 0: SLAAC, 1: DHCPv6, 2: specified, 3: auto, 4:non_address, which ranges from 48 ~ 64.") + @NotNull + + + public Integer getGetIpv6Type() { + return getIpv6Type; + } + + public void setGetIpv6Type(Integer getIpv6Type) { + this.getIpv6Type = getIpv6Type; + } + + public Ipv6PppoeOpenApiVo prefixEnable(Boolean prefixEnable) { + this.prefixEnable = prefixEnable; + return this; + } + + /** + * Get prefixEnable + * @return prefixEnable + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getPrefixEnable() { + return prefixEnable; + } + + public void setPrefixEnable(Boolean prefixEnable) { + this.prefixEnable = prefixEnable; + } + + public Ipv6PppoeOpenApiVo prefixSize(Integer prefixSize) { + this.prefixSize = prefixSize; + return this; + } + + /** + * It is required when [prefixEnable] is true. + * @return prefixSize + */ + @ApiModelProperty(value = "It is required when [prefixEnable] is true.") + + + public Integer getPrefixSize() { + return prefixSize; + } + + public void setPrefixSize(Integer prefixSize) { + this.prefixSize = prefixSize; + } + + public Ipv6PppoeOpenApiVo specificIp(String specificIp) { + this.specificIp = specificIp; + return this; + } + + /** + * It is required when [getIpv6Type] is 2. + * @return specificIp + */ + @ApiModelProperty(value = "It is required when [getIpv6Type] is 2.") + + + public String getSpecificIp() { + return specificIp; + } + + public void setSpecificIp(String specificIp) { + this.specificIp = specificIp; + } + + public Ipv6PppoeOpenApiVo dnsType(Integer dnsType) { + this.dnsType = dnsType; + return this; + } + + /** + * DNS Address Type should be a value as follows: 0: dynamic, 1: static. + * @return dnsType + */ + @ApiModelProperty(required = true, value = "DNS Address Type should be a value as follows: 0: dynamic, 1: static.") + @NotNull + + + public Integer getDnsType() { + return dnsType; + } + + public void setDnsType(Integer dnsType) { + this.dnsType = dnsType; + } + + public Ipv6PppoeOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * It is required when [dnsType] is 1. + * @return primaryDns + */ + @ApiModelProperty(value = "It is required when [dnsType] is 1.") + + + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public Ipv6PppoeOpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * It takes effect when [dnsType] is 1. + * @return secondaryDns + */ + @ApiModelProperty(value = "It takes effect when [dnsType] is 1.") + + + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv6PppoeOpenApiVo ipv6PppoeOpenApiVo = (Ipv6PppoeOpenApiVo) o; + return Objects.equals(this.pppShare, ipv6PppoeOpenApiVo.pppShare) && + Objects.equals(this.userName, ipv6PppoeOpenApiVo.userName) && + Objects.equals(this.password, ipv6PppoeOpenApiVo.password) && + Objects.equals(this.getIpv6Type, ipv6PppoeOpenApiVo.getIpv6Type) && + Objects.equals(this.prefixEnable, ipv6PppoeOpenApiVo.prefixEnable) && + Objects.equals(this.prefixSize, ipv6PppoeOpenApiVo.prefixSize) && + Objects.equals(this.specificIp, ipv6PppoeOpenApiVo.specificIp) && + Objects.equals(this.dnsType, ipv6PppoeOpenApiVo.dnsType) && + Objects.equals(this.primaryDns, ipv6PppoeOpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, ipv6PppoeOpenApiVo.secondaryDns); + } + + @Override + public int hashCode() { + return Objects.hash(pppShare, userName, password, getIpv6Type, prefixEnable, prefixSize, specificIp, dnsType, primaryDns, secondaryDns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv6PppoeOpenApiVo {\n"); + + sb.append(" pppShare: ").append(toIndentedString(pppShare)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" getIpv6Type: ").append(toIndentedString(getIpv6Type)).append("\n"); + sb.append(" prefixEnable: ").append(toIndentedString(prefixEnable)).append("\n"); + sb.append(" prefixSize: ").append(toIndentedString(prefixSize)).append("\n"); + sb.append(" specificIp: ").append(toIndentedString(specificIp)).append("\n"); + sb.append(" dnsType: ").append(toIndentedString(dnsType)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6StaticOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6StaticOpenApiVo.java new file mode 100644 index 0000000..998077d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6StaticOpenApiVo.java @@ -0,0 +1,184 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * It is required when protoType is static + */ +@ApiModel(description = "It is required when protoType is static") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv6StaticOpenApiVo { + @JsonProperty("address") + private String address; + + @JsonProperty("prefixLen") + private Integer prefixLen; + + @JsonProperty("defaultGateway") + private String defaultGateway; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + public Ipv6StaticOpenApiVo address(String address) { + this.address = address; + return this; + } + + /** + * Get address + * @return address + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public String getAddress() { + return address; + } + + public void setAddress(String address) { + this.address = address; + } + + public Ipv6StaticOpenApiVo prefixLen(Integer prefixLen) { + this.prefixLen = prefixLen; + return this; + } + + /** + * It should be within the range of 1–128 + * @return prefixLen + */ + @ApiModelProperty(required = true, value = "It should be within the range of 1–128") + @NotNull + + + public Integer getPrefixLen() { + return prefixLen; + } + + public void setPrefixLen(Integer prefixLen) { + this.prefixLen = prefixLen; + } + + public Ipv6StaticOpenApiVo defaultGateway(String defaultGateway) { + this.defaultGateway = defaultGateway; + return this; + } + + /** + * Get defaultGateway + * @return defaultGateway + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public String getDefaultGateway() { + return defaultGateway; + } + + public void setDefaultGateway(String defaultGateway) { + this.defaultGateway = defaultGateway; + } + + public Ipv6StaticOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * Get primaryDns + * @return primaryDns + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="(^\\S*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\S*$)") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public Ipv6StaticOpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * Get secondaryDns + * @return secondaryDns + */ + @ApiModelProperty(value = "") + +@Pattern(regexp="(^\\S*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\S*$)") + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv6StaticOpenApiVo ipv6StaticOpenApiVo = (Ipv6StaticOpenApiVo) o; + return Objects.equals(this.address, ipv6StaticOpenApiVo.address) && + Objects.equals(this.prefixLen, ipv6StaticOpenApiVo.prefixLen) && + Objects.equals(this.defaultGateway, ipv6StaticOpenApiVo.defaultGateway) && + Objects.equals(this.primaryDns, ipv6StaticOpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, ipv6StaticOpenApiVo.secondaryDns); + } + + @Override + public int hashCode() { + return Objects.hash(address, prefixLen, defaultGateway, primaryDns, secondaryDns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv6StaticOpenApiVo {\n"); + + sb.append(" address: ").append(toIndentedString(address)).append("\n"); + sb.append(" prefixLen: ").append(toIndentedString(prefixLen)).append("\n"); + sb.append(" defaultGateway: ").append(toIndentedString(defaultGateway)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6TunnelOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6TunnelOpenApiVo.java new file mode 100644 index 0000000..09f05d6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Ipv6TunnelOpenApiVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * It is required when protoType is 6to4Tunnel + */ +@ApiModel(description = "It is required when protoType is 6to4Tunnel") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Ipv6TunnelOpenApiVo { + @JsonProperty("dnsType") + private Integer dnsType; + + @JsonProperty("primaryDns") + private String primaryDns; + + public Ipv6TunnelOpenApiVo dnsType(Integer dnsType) { + this.dnsType = dnsType; + return this; + } + + /** + * DNS Address Type should be a value as follows: 0: Get from ISP Dynamically; 1: Static. + * @return dnsType + */ + @ApiModelProperty(required = true, value = "DNS Address Type should be a value as follows: 0: Get from ISP Dynamically; 1: Static.") + @NotNull + + + public Integer getDnsType() { + return dnsType; + } + + public void setDnsType(Integer dnsType) { + this.dnsType = dnsType; + } + + public Ipv6TunnelOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * It takes effect when [dnsType] is 1. + * @return primaryDns + */ + @ApiModelProperty(value = "It takes effect when [dnsType] is 1.") + +@Pattern(regexp="(^\\S*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){2}(((:[0-9A-Fa-f]{1,4}){1,5})|((:[0-9A-Fa-f]{1,4}){0,3}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){1}(((:[0-9A-Fa-f]{1,4}){1,6})|((:[0-9A-Fa-f]{1,4}){0,4}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)(\\.(25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]?\\d)){3}))|:)))(%.+)?\\S*$)") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Ipv6TunnelOpenApiVo ipv6TunnelOpenApiVo = (Ipv6TunnelOpenApiVo) o; + return Objects.equals(this.dnsType, ipv6TunnelOpenApiVo.dnsType) && + Objects.equals(this.primaryDns, ipv6TunnelOpenApiVo.primaryDns); + } + + @Override + public int hashCode() { + return Objects.hash(dnsType, primaryDns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Ipv6TunnelOpenApiVo {\n"); + + sb.append(" dnsType: ").append(toIndentedString(dnsType)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IspOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IspOpenApiVo.java new file mode 100644 index 0000000..42d57ee --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/IspOpenApiVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ISP info in the location, including index and name + */ +@ApiModel(description = "ISP info in the location, including index and name") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class IspOpenApiVo { + @JsonProperty("index") + private Integer index; + + @JsonProperty("name") + private String name; + + public IspOpenApiVo index(Integer index) { + this.index = index; + return this; + } + + /** + * ISP index + * @return index + */ + @ApiModelProperty(required = true, value = "ISP index") + @NotNull + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public IspOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * ISP name + * @return name + */ + @ApiModelProperty(required = true, value = "ISP name") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + IspOpenApiVo ispOpenApiVo = (IspOpenApiVo) o; + return Objects.equals(this.index, ispOpenApiVo.index) && + Objects.equals(this.name, ispOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(index, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class IspOpenApiVo {\n"); + + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LagInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LagInfoOpenApiVo.java new file mode 100644 index 0000000..df8cdb3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LagInfoOpenApiVo.java @@ -0,0 +1,140 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Switch lag info. + */ +@ApiModel(description = "Switch lag info.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LagInfoOpenApiVo { + @JsonProperty("lag") + private Integer lag; + + @JsonProperty("ports") + @Valid + private List ports = null; + + @JsonProperty("name") + private String name; + + public LagInfoOpenApiVo lag(Integer lag) { + this.lag = lag; + return this; + } + + /** + * Lag number. + * @return lag + */ + @ApiModelProperty(value = "Lag number.") + + + public Integer getLag() { + return lag; + } + + public void setLag(Integer lag) { + this.lag = lag; + } + + public LagInfoOpenApiVo ports(List ports) { + this.ports = ports; + return this; + } + + public LagInfoOpenApiVo addPortsItem(Integer portsItem) { + if (this.ports == null) { + this.ports = new ArrayList<>(); + } + this.ports.add(portsItem); + return this; + } + + /** + * Ports in lag + * @return ports + */ + @ApiModelProperty(value = "Ports in lag") + + + public List getPorts() { + return ports; + } + + public void setPorts(List ports) { + this.ports = ports; + } + + public LagInfoOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Lag name. + * @return name + */ + @ApiModelProperty(value = "Lag name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LagInfoOpenApiVo lagInfoOpenApiVo = (LagInfoOpenApiVo) o; + return Objects.equals(this.lag, lagInfoOpenApiVo.lag) && + Objects.equals(this.ports, lagInfoOpenApiVo.ports) && + Objects.equals(this.name, lagInfoOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(lag, ports, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LagInfoOpenApiVo {\n"); + + sb.append(" lag: ").append(toIndentedString(lag)).append("\n"); + sb.append(" ports: ").append(toIndentedString(ports)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkIpv6Config.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkIpv6Config.java new file mode 100644 index 0000000..372a5f8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkIpv6Config.java @@ -0,0 +1,237 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * LAN network IPv6 config + */ +@ApiModel(description = "LAN network IPv6 config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanNetworkIpv6Config { + @JsonProperty("proto") + private Integer proto; + + @JsonProperty("enable") + private Integer enable; + + @JsonProperty("dhcpv6") + private Dhcpv6Setting dhcpv6; + + @JsonProperty("slaac") + private LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode slaac; + + @JsonProperty("rdnss") + private LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode rdnss; + + @JsonProperty("passthrough") + private LanNetworkProtoPassThroughMode passthrough; + + @JsonProperty("ra") + private RaSetting ra; + + public LanNetworkIpv6Config proto(Integer proto) { + this.proto = proto; + return this; + } + + /** + * The IPv6 Connection Type of LAN port. Proto should be a value as follows: 0: \"none\" (Default); 1: \"DHCPv6\"; 2: \"SLAAC+Stateless DHCP\"; 3: \"SLAAC+RDNSS\"; 4: \"passthrough\" + * @return proto + */ + @ApiModelProperty(required = true, value = "The IPv6 Connection Type of LAN port. Proto should be a value as follows: 0: \"none\" (Default); 1: \"DHCPv6\"; 2: \"SLAAC+Stateless DHCP\"; 3: \"SLAAC+RDNSS\"; 4: \"passthrough\"") + @NotNull + + + public Integer getProto() { + return proto; + } + + public void setProto(Integer proto) { + this.proto = proto; + } + + public LanNetworkIpv6Config enable(Integer enable) { + this.enable = enable; + return this; + } + + /** + * IPv6 enable should be a value as follows: 0: Disable (Default); 1: Enable + * @return enable + */ + @ApiModelProperty(required = true, value = "IPv6 enable should be a value as follows: 0: Disable (Default); 1: Enable") + @NotNull + + + public Integer getEnable() { + return enable; + } + + public void setEnable(Integer enable) { + this.enable = enable; + } + + public LanNetworkIpv6Config dhcpv6(Dhcpv6Setting dhcpv6) { + this.dhcpv6 = dhcpv6; + return this; + } + + /** + * Get dhcpv6 + * @return dhcpv6 + */ + @ApiModelProperty(value = "") + + @Valid + + public Dhcpv6Setting getDhcpv6() { + return dhcpv6; + } + + public void setDhcpv6(Dhcpv6Setting dhcpv6) { + this.dhcpv6 = dhcpv6; + } + + public LanNetworkIpv6Config slaac(LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode slaac) { + this.slaac = slaac; + return this; + } + + /** + * Get slaac + * @return slaac + */ + @ApiModelProperty(value = "") + + @Valid + + public LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode getSlaac() { + return slaac; + } + + public void setSlaac(LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode slaac) { + this.slaac = slaac; + } + + public LanNetworkIpv6Config rdnss(LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode rdnss) { + this.rdnss = rdnss; + return this; + } + + /** + * Get rdnss + * @return rdnss + */ + @ApiModelProperty(value = "") + + @Valid + + public LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode getRdnss() { + return rdnss; + } + + public void setRdnss(LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode rdnss) { + this.rdnss = rdnss; + } + + public LanNetworkIpv6Config passthrough(LanNetworkProtoPassThroughMode passthrough) { + this.passthrough = passthrough; + return this; + } + + /** + * Get passthrough + * @return passthrough + */ + @ApiModelProperty(value = "") + + @Valid + + public LanNetworkProtoPassThroughMode getPassthrough() { + return passthrough; + } + + public void setPassthrough(LanNetworkProtoPassThroughMode passthrough) { + this.passthrough = passthrough; + } + + public LanNetworkIpv6Config ra(RaSetting ra) { + this.ra = ra; + return this; + } + + /** + * Get ra + * @return ra + */ + @ApiModelProperty(value = "") + + @Valid + + public RaSetting getRa() { + return ra; + } + + public void setRa(RaSetting ra) { + this.ra = ra; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanNetworkIpv6Config lanNetworkIpv6Config = (LanNetworkIpv6Config) o; + return Objects.equals(this.proto, lanNetworkIpv6Config.proto) && + Objects.equals(this.enable, lanNetworkIpv6Config.enable) && + Objects.equals(this.dhcpv6, lanNetworkIpv6Config.dhcpv6) && + Objects.equals(this.slaac, lanNetworkIpv6Config.slaac) && + Objects.equals(this.rdnss, lanNetworkIpv6Config.rdnss) && + Objects.equals(this.passthrough, lanNetworkIpv6Config.passthrough) && + Objects.equals(this.ra, lanNetworkIpv6Config.ra); + } + + @Override + public int hashCode() { + return Objects.hash(proto, enable, dhcpv6, slaac, rdnss, passthrough, ra); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanNetworkIpv6Config {\n"); + + sb.append(" proto: ").append(toIndentedString(proto)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" dhcpv6: ").append(toIndentedString(dhcpv6)).append("\n"); + sb.append(" slaac: ").append(toIndentedString(slaac)).append("\n"); + sb.append(" rdnss: ").append(toIndentedString(rdnss)).append("\n"); + sb.append(" passthrough: ").append(toIndentedString(passthrough)).append("\n"); + sb.append(" ra: ").append(toIndentedString(ra)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.java new file mode 100644 index 0000000..4381c45 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.java @@ -0,0 +1,239 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + @JsonProperty("supportMultiVlan") + private Boolean supportMultiVlan; + + @JsonProperty("supportRA") + private Boolean supportRA; + + @JsonProperty("supportCustomDhcpOption") + private Boolean supportCustomDhcpOption; + + public LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo data(List data) { + this.data = data; + return this; + } + + public LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo addDataItem(LanNetworkQueryOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo supportMultiVlan(Boolean supportMultiVlan) { + this.supportMultiVlan = supportMultiVlan; + return this; + } + + /** + * Whether multi vlan configuration is supported of the lan netowrk. + * @return supportMultiVlan + */ + @ApiModelProperty(value = "Whether multi vlan configuration is supported of the lan netowrk.") + + + public Boolean getSupportMultiVlan() { + return supportMultiVlan; + } + + public void setSupportMultiVlan(Boolean supportMultiVlan) { + this.supportMultiVlan = supportMultiVlan; + } + + public LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo supportRA(Boolean supportRA) { + this.supportRA = supportRA; + return this; + } + + /** + * Whether Router Advertisement configuration is supported of the lan netowrk. + * @return supportRA + */ + @ApiModelProperty(value = "Whether Router Advertisement configuration is supported of the lan netowrk.") + + + public Boolean getSupportRA() { + return supportRA; + } + + public void setSupportRA(Boolean supportRA) { + this.supportRA = supportRA; + } + + public LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo supportCustomDhcpOption(Boolean supportCustomDhcpOption) { + this.supportCustomDhcpOption = supportCustomDhcpOption; + return this; + } + + /** + * Whether custom DHCP option configuration is supported of the lan netowrk. + * @return supportCustomDhcpOption + */ + @ApiModelProperty(value = "Whether custom DHCP option configuration is supported of the lan netowrk.") + + + public Boolean getSupportCustomDhcpOption() { + return supportCustomDhcpOption; + } + + public void setSupportCustomDhcpOption(Boolean supportCustomDhcpOption) { + this.supportCustomDhcpOption = supportCustomDhcpOption; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo lanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo = (LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo) o; + return Objects.equals(this.totalRows, lanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.totalRows) && + Objects.equals(this.currentPage, lanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.currentPage) && + Objects.equals(this.currentSize, lanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.currentSize) && + Objects.equals(this.data, lanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.data) && + Objects.equals(this.supportMultiVlan, lanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.supportMultiVlan) && + Objects.equals(this.supportRA, lanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.supportRA) && + Objects.equals(this.supportCustomDhcpOption, lanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.supportCustomDhcpOption); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data, supportMultiVlan, supportRA, supportCustomDhcpOption); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" supportMultiVlan: ").append(toIndentedString(supportMultiVlan)).append("\n"); + sb.append(" supportRA: ").append(toIndentedString(supportRA)).append("\n"); + sb.append(" supportCustomDhcpOption: ").append(toIndentedString(supportCustomDhcpOption)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.java new file mode 100644 index 0000000..f8b000d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.java @@ -0,0 +1,264 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + @JsonProperty("supportMultiVlan") + private Boolean supportMultiVlan; + + @JsonProperty("supportRA") + private Boolean supportRA; + + @JsonProperty("supportCustomDhcpOption") + private Boolean supportCustomDhcpOption; + + @JsonProperty("dhcpRangePoolSize") + private Integer dhcpRangePoolSize; + + public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo data(List data) { + this.data = data; + return this; + } + + public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo addDataItem(LanNetworkQueryOpenApiV2Vo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo supportMultiVlan(Boolean supportMultiVlan) { + this.supportMultiVlan = supportMultiVlan; + return this; + } + + /** + * Whether multi vlan configuration is supported of the lan netowrk. + * @return supportMultiVlan + */ + @ApiModelProperty(value = "Whether multi vlan configuration is supported of the lan netowrk.") + + + public Boolean getSupportMultiVlan() { + return supportMultiVlan; + } + + public void setSupportMultiVlan(Boolean supportMultiVlan) { + this.supportMultiVlan = supportMultiVlan; + } + + public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo supportRA(Boolean supportRA) { + this.supportRA = supportRA; + return this; + } + + /** + * Whether Router Advertisement configuration is supported of the lan netowrk. + * @return supportRA + */ + @ApiModelProperty(value = "Whether Router Advertisement configuration is supported of the lan netowrk.") + + + public Boolean getSupportRA() { + return supportRA; + } + + public void setSupportRA(Boolean supportRA) { + this.supportRA = supportRA; + } + + public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo supportCustomDhcpOption(Boolean supportCustomDhcpOption) { + this.supportCustomDhcpOption = supportCustomDhcpOption; + return this; + } + + /** + * Whether custom DHCP option configuration is supported of the lan netowrk. + * @return supportCustomDhcpOption + */ + @ApiModelProperty(value = "Whether custom DHCP option configuration is supported of the lan netowrk.") + + + public Boolean getSupportCustomDhcpOption() { + return supportCustomDhcpOption; + } + + public void setSupportCustomDhcpOption(Boolean supportCustomDhcpOption) { + this.supportCustomDhcpOption = supportCustomDhcpOption; + } + + public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo dhcpRangePoolSize(Integer dhcpRangePoolSize) { + this.dhcpRangePoolSize = dhcpRangePoolSize; + return this; + } + + /** + * The size of DHCP range pool supported by the lan network DHCP. + * @return dhcpRangePoolSize + */ + @ApiModelProperty(value = "The size of DHCP range pool supported by the lan network DHCP.") + + + public Integer getDhcpRangePoolSize() { + return dhcpRangePoolSize; + } + + public void setDhcpRangePoolSize(Integer dhcpRangePoolSize) { + this.dhcpRangePoolSize = dhcpRangePoolSize; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo = (LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo) o; + return Objects.equals(this.totalRows, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.totalRows) && + Objects.equals(this.currentPage, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.currentPage) && + Objects.equals(this.currentSize, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.currentSize) && + Objects.equals(this.data, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.data) && + Objects.equals(this.supportMultiVlan, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.supportMultiVlan) && + Objects.equals(this.supportRA, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.supportRA) && + Objects.equals(this.supportCustomDhcpOption, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.supportCustomDhcpOption) && + Objects.equals(this.dhcpRangePoolSize, lanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.dhcpRangePoolSize); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data, supportMultiVlan, supportRA, supportCustomDhcpOption, dhcpRangePoolSize); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" supportMultiVlan: ").append(toIndentedString(supportMultiVlan)).append("\n"); + sb.append(" supportRA: ").append(toIndentedString(supportRA)).append("\n"); + sb.append(" supportCustomDhcpOption: ").append(toIndentedString(supportCustomDhcpOption)).append("\n"); + sb.append(" dhcpRangePoolSize: ").append(toIndentedString(dhcpRangePoolSize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiV2Vo.java new file mode 100644 index 0000000..7f5d114 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiV2Vo.java @@ -0,0 +1,499 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LANNetworkOpenApiVO + */ +@ApiModel(description = "LANNetworkOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanNetworkOpenApiV2Vo { + @JsonProperty("name") + private String name; + + @JsonProperty("purpose") + private Integer purpose; + + @JsonProperty("interfaceIds") + @Valid + private List interfaceIds = null; + + @JsonProperty("vlanType") + private Integer vlanType; + + @JsonProperty("vlans") + private String vlans; + + @JsonProperty("vlan") + private Integer vlan; + + @JsonProperty("application") + private Integer application; + + @JsonProperty("gatewaySubnet") + private String gatewaySubnet; + + @JsonProperty("dhcpSettingsVO") + private DhcpSettingConfig dhcpSettingsVO; + + @JsonProperty("domain") + private String domain; + + @JsonProperty("igmpSnoopEnable") + private Boolean igmpSnoopEnable; + + @JsonProperty("mldSnoopEnable") + private Boolean mldSnoopEnable; + + @JsonProperty("dhcpL2RelayEnable") + private Boolean dhcpL2RelayEnable; + + @JsonProperty("dhcpGuard") + private DhcpServersSetting dhcpGuard; + + @JsonProperty("dhcpv6Guard") + private Dhcpv6ServersSetting dhcpv6Guard; + + @JsonProperty("lanNeworkIpv6Config") + private LanNetworkIpv6Config lanNeworkIpv6Config; + + @JsonProperty("allLan") + private Boolean allLan; + + public LanNetworkOpenApiV2Vo name(String name) { + this.name = name; + return this; + } + + /** + * LAN network name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "LAN network name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public LanNetworkOpenApiV2Vo purpose(Integer purpose) { + this.purpose = purpose; + return this; + } + + /** + * LAN network purpose should be a value as follows: 0: VLAN; 1: interface + * @return purpose + */ + @ApiModelProperty(required = true, value = "LAN network purpose should be a value as follows: 0: VLAN; 1: interface") + @NotNull + + + public Integer getPurpose() { + return purpose; + } + + public void setPurpose(Integer purpose) { + this.purpose = purpose; + } + + public LanNetworkOpenApiV2Vo interfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + return this; + } + + public LanNetworkOpenApiV2Vo addInterfaceIdsItem(String interfaceIdsItem) { + if (this.interfaceIds == null) { + this.interfaceIds = new ArrayList<>(); + } + this.interfaceIds.add(interfaceIdsItem); + return this; + } + + /** + * Gateway LAN port IDs, which are acquired from \"Check WAN/LAN status\" + * @return interfaceIds + */ + @ApiModelProperty(value = "Gateway LAN port IDs, which are acquired from \"Check WAN/LAN status\"") + + + public List getInterfaceIds() { + return interfaceIds; + } + + public void setInterfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + } + + public LanNetworkOpenApiV2Vo vlanType(Integer vlanType) { + this.vlanType = vlanType; + return this; + } + + /** + * When purpose is interface, VLANType should be a value as follows: 0: Single; 1: Multiple + * @return vlanType + */ + @ApiModelProperty(value = "When purpose is interface, VLANType should be a value as follows: 0: Single; 1: Multiple") + + + public Integer getVlanType() { + return vlanType; + } + + public void setVlanType(Integer vlanType) { + this.vlanType = vlanType; + } + + public LanNetworkOpenApiV2Vo vlans(String vlans) { + this.vlans = vlans; + return this; + } + + /** + * When purpose is \"interface\" and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100. + * @return vlans + */ + @ApiModelProperty(value = "When purpose is \"interface\" and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100.") + +@Pattern(regexp="^[\\d|\\d-\\d]+(,[\\d|\\d-\\d]+)*$") + public String getVlans() { + return vlans; + } + + public void setVlans(String vlans) { + this.vlans = vlans; + } + + public LanNetworkOpenApiV2Vo vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * When purpose is \"VLAN\" or purpose is \"interface\" and VLANType is 0, vlan should be within the range of 1-4090. + * @return vlan + */ + @ApiModelProperty(value = "When purpose is \"VLAN\" or purpose is \"interface\" and VLANType is 0, vlan should be within the range of 1-4090.") + + + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + public LanNetworkOpenApiV2Vo application(Integer application) { + this.application = application; + return this; + } + + /** + * Effective device type should be a value as follows: 0: Gateway and Switch; 1: Switch + * @return application + */ + @ApiModelProperty(value = "Effective device type should be a value as follows: 0: Gateway and Switch; 1: Switch") + + + public Integer getApplication() { + return application; + } + + public void setApplication(Integer application) { + this.application = application; + } + + public LanNetworkOpenApiV2Vo gatewaySubnet(String gatewaySubnet) { + this.gatewaySubnet = gatewaySubnet; + return this; + } + + /** + * When purpose is interface, gateway subnet is needed. Format: IP/Mask + * @return gatewaySubnet + */ + @ApiModelProperty(value = "When purpose is interface, gateway subnet is needed. Format: IP/Mask") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])/(\\d|((1|2)\\d)|(30))\\b") + public String getGatewaySubnet() { + return gatewaySubnet; + } + + public void setGatewaySubnet(String gatewaySubnet) { + this.gatewaySubnet = gatewaySubnet; + } + + public LanNetworkOpenApiV2Vo dhcpSettingsVO(DhcpSettingConfig dhcpSettingsVO) { + this.dhcpSettingsVO = dhcpSettingsVO; + return this; + } + + /** + * Get dhcpSettingsVO + * @return dhcpSettingsVO + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpSettingConfig getDhcpSettingsVO() { + return dhcpSettingsVO; + } + + public void setDhcpSettingsVO(DhcpSettingConfig dhcpSettingsVO) { + this.dhcpSettingsVO = dhcpSettingsVO; + } + + public LanNetworkOpenApiV2Vo domain(String domain) { + this.domain = domain; + return this; + } + + /** + * The domain of this network + * @return domain + */ + @ApiModelProperty(value = "The domain of this network") + +@Pattern(regexp="((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])){3}|([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})") + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public LanNetworkOpenApiV2Vo igmpSnoopEnable(Boolean igmpSnoopEnable) { + this.igmpSnoopEnable = igmpSnoopEnable; + return this; + } + + /** + * Enable IGMP snooping + * @return igmpSnoopEnable + */ + @ApiModelProperty(required = true, value = "Enable IGMP snooping") + @NotNull + + + public Boolean getIgmpSnoopEnable() { + return igmpSnoopEnable; + } + + public void setIgmpSnoopEnable(Boolean igmpSnoopEnable) { + this.igmpSnoopEnable = igmpSnoopEnable; + } + + public LanNetworkOpenApiV2Vo mldSnoopEnable(Boolean mldSnoopEnable) { + this.mldSnoopEnable = mldSnoopEnable; + return this; + } + + /** + * Enable MLD snooping + * @return mldSnoopEnable + */ + @ApiModelProperty(value = "Enable MLD snooping") + + + public Boolean getMldSnoopEnable() { + return mldSnoopEnable; + } + + public void setMldSnoopEnable(Boolean mldSnoopEnable) { + this.mldSnoopEnable = mldSnoopEnable; + } + + public LanNetworkOpenApiV2Vo dhcpL2RelayEnable(Boolean dhcpL2RelayEnable) { + this.dhcpL2RelayEnable = dhcpL2RelayEnable; + return this; + } + + /** + * The switch of DHCP L2 relay + * @return dhcpL2RelayEnable + */ + @ApiModelProperty(value = "The switch of DHCP L2 relay") + + + public Boolean getDhcpL2RelayEnable() { + return dhcpL2RelayEnable; + } + + public void setDhcpL2RelayEnable(Boolean dhcpL2RelayEnable) { + this.dhcpL2RelayEnable = dhcpL2RelayEnable; + } + + public LanNetworkOpenApiV2Vo dhcpGuard(DhcpServersSetting dhcpGuard) { + this.dhcpGuard = dhcpGuard; + return this; + } + + /** + * Get dhcpGuard + * @return dhcpGuard + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpServersSetting getDhcpGuard() { + return dhcpGuard; + } + + public void setDhcpGuard(DhcpServersSetting dhcpGuard) { + this.dhcpGuard = dhcpGuard; + } + + public LanNetworkOpenApiV2Vo dhcpv6Guard(Dhcpv6ServersSetting dhcpv6Guard) { + this.dhcpv6Guard = dhcpv6Guard; + return this; + } + + /** + * Get dhcpv6Guard + * @return dhcpv6Guard + */ + @ApiModelProperty(value = "") + + @Valid + + public Dhcpv6ServersSetting getDhcpv6Guard() { + return dhcpv6Guard; + } + + public void setDhcpv6Guard(Dhcpv6ServersSetting dhcpv6Guard) { + this.dhcpv6Guard = dhcpv6Guard; + } + + public LanNetworkOpenApiV2Vo lanNeworkIpv6Config(LanNetworkIpv6Config lanNeworkIpv6Config) { + this.lanNeworkIpv6Config = lanNeworkIpv6Config; + return this; + } + + /** + * Get lanNeworkIpv6Config + * @return lanNeworkIpv6Config + */ + @ApiModelProperty(value = "") + + @Valid + + public LanNetworkIpv6Config getLanNeworkIpv6Config() { + return lanNeworkIpv6Config; + } + + public void setLanNeworkIpv6Config(LanNetworkIpv6Config lanNeworkIpv6Config) { + this.lanNeworkIpv6Config = lanNeworkIpv6Config; + } + + public LanNetworkOpenApiV2Vo allLan(Boolean allLan) { + this.allLan = allLan; + return this; + } + + /** + * When Internet pre-config is closed or Internet pre-config is Universal, allLAN is \"true\"; after adopting gateway, allLAN is \"false\". + * @return allLan + */ + @ApiModelProperty(value = "When Internet pre-config is closed or Internet pre-config is Universal, allLAN is \"true\"; after adopting gateway, allLAN is \"false\".") + + + public Boolean getAllLan() { + return allLan; + } + + public void setAllLan(Boolean allLan) { + this.allLan = allLan; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanNetworkOpenApiV2Vo lanNetworkOpenApiV2Vo = (LanNetworkOpenApiV2Vo) o; + return Objects.equals(this.name, lanNetworkOpenApiV2Vo.name) && + Objects.equals(this.purpose, lanNetworkOpenApiV2Vo.purpose) && + Objects.equals(this.interfaceIds, lanNetworkOpenApiV2Vo.interfaceIds) && + Objects.equals(this.vlanType, lanNetworkOpenApiV2Vo.vlanType) && + Objects.equals(this.vlans, lanNetworkOpenApiV2Vo.vlans) && + Objects.equals(this.vlan, lanNetworkOpenApiV2Vo.vlan) && + Objects.equals(this.application, lanNetworkOpenApiV2Vo.application) && + Objects.equals(this.gatewaySubnet, lanNetworkOpenApiV2Vo.gatewaySubnet) && + Objects.equals(this.dhcpSettingsVO, lanNetworkOpenApiV2Vo.dhcpSettingsVO) && + Objects.equals(this.domain, lanNetworkOpenApiV2Vo.domain) && + Objects.equals(this.igmpSnoopEnable, lanNetworkOpenApiV2Vo.igmpSnoopEnable) && + Objects.equals(this.mldSnoopEnable, lanNetworkOpenApiV2Vo.mldSnoopEnable) && + Objects.equals(this.dhcpL2RelayEnable, lanNetworkOpenApiV2Vo.dhcpL2RelayEnable) && + Objects.equals(this.dhcpGuard, lanNetworkOpenApiV2Vo.dhcpGuard) && + Objects.equals(this.dhcpv6Guard, lanNetworkOpenApiV2Vo.dhcpv6Guard) && + Objects.equals(this.lanNeworkIpv6Config, lanNetworkOpenApiV2Vo.lanNeworkIpv6Config) && + Objects.equals(this.allLan, lanNetworkOpenApiV2Vo.allLan); + } + + @Override + public int hashCode() { + return Objects.hash(name, purpose, interfaceIds, vlanType, vlans, vlan, application, gatewaySubnet, dhcpSettingsVO, domain, igmpSnoopEnable, mldSnoopEnable, dhcpL2RelayEnable, dhcpGuard, dhcpv6Guard, lanNeworkIpv6Config, allLan); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanNetworkOpenApiV2Vo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" purpose: ").append(toIndentedString(purpose)).append("\n"); + sb.append(" interfaceIds: ").append(toIndentedString(interfaceIds)).append("\n"); + sb.append(" vlanType: ").append(toIndentedString(vlanType)).append("\n"); + sb.append(" vlans: ").append(toIndentedString(vlans)).append("\n"); + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append(" application: ").append(toIndentedString(application)).append("\n"); + sb.append(" gatewaySubnet: ").append(toIndentedString(gatewaySubnet)).append("\n"); + sb.append(" dhcpSettingsVO: ").append(toIndentedString(dhcpSettingsVO)).append("\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" igmpSnoopEnable: ").append(toIndentedString(igmpSnoopEnable)).append("\n"); + sb.append(" mldSnoopEnable: ").append(toIndentedString(mldSnoopEnable)).append("\n"); + sb.append(" dhcpL2RelayEnable: ").append(toIndentedString(dhcpL2RelayEnable)).append("\n"); + sb.append(" dhcpGuard: ").append(toIndentedString(dhcpGuard)).append("\n"); + sb.append(" dhcpv6Guard: ").append(toIndentedString(dhcpv6Guard)).append("\n"); + sb.append(" lanNeworkIpv6Config: ").append(toIndentedString(lanNeworkIpv6Config)).append("\n"); + sb.append(" allLan: ").append(toIndentedString(allLan)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiVo.java new file mode 100644 index 0000000..e105129 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkOpenApiVo.java @@ -0,0 +1,499 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LANNetworkOpenApiVO + */ +@ApiModel(description = "LANNetworkOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanNetworkOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("purpose") + private Integer purpose; + + @JsonProperty("interfaceIds") + @Valid + private List interfaceIds = null; + + @JsonProperty("vlanType") + private Integer vlanType; + + @JsonProperty("vlans") + private String vlans; + + @JsonProperty("vlan") + private Integer vlan; + + @JsonProperty("application") + private Integer application; + + @JsonProperty("gatewaySubnet") + private String gatewaySubnet; + + @JsonProperty("dhcpSettingsVO") + private DhcpSettings dhcpSettingsVO; + + @JsonProperty("domain") + private String domain; + + @JsonProperty("igmpSnoopEnable") + private Boolean igmpSnoopEnable; + + @JsonProperty("mldSnoopEnable") + private Boolean mldSnoopEnable; + + @JsonProperty("dhcpL2RelayEnable") + private Boolean dhcpL2RelayEnable; + + @JsonProperty("dhcpGuard") + private DhcpServersSetting dhcpGuard; + + @JsonProperty("dhcpv6Guard") + private Dhcpv6ServersSetting dhcpv6Guard; + + @JsonProperty("lanNeworkIpv6Config") + private LanNetworkIpv6Config lanNeworkIpv6Config; + + @JsonProperty("allLan") + private Boolean allLan; + + public LanNetworkOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * LAN network name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "LAN network name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public LanNetworkOpenApiVo purpose(Integer purpose) { + this.purpose = purpose; + return this; + } + + /** + * LAN network purpose, 0: VLAN, 1: interface + * @return purpose + */ + @ApiModelProperty(required = true, value = "LAN network purpose, 0: VLAN, 1: interface") + @NotNull + + + public Integer getPurpose() { + return purpose; + } + + public void setPurpose(Integer purpose) { + this.purpose = purpose; + } + + public LanNetworkOpenApiVo interfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + return this; + } + + public LanNetworkOpenApiVo addInterfaceIdsItem(String interfaceIdsItem) { + if (this.interfaceIds == null) { + this.interfaceIds = new ArrayList<>(); + } + this.interfaceIds.add(interfaceIdsItem); + return this; + } + + /** + * Gateway LAN port IDs, which are acquired from \"Check WAN/LAN status\" + * @return interfaceIds + */ + @ApiModelProperty(value = "Gateway LAN port IDs, which are acquired from \"Check WAN/LAN status\"") + + + public List getInterfaceIds() { + return interfaceIds; + } + + public void setInterfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + } + + public LanNetworkOpenApiVo vlanType(Integer vlanType) { + this.vlanType = vlanType; + return this; + } + + /** + * When purpose is interface, VLANType is valid. 0: Single; 1: Multiple + * @return vlanType + */ + @ApiModelProperty(value = "When purpose is interface, VLANType is valid. 0: Single; 1: Multiple") + + + public Integer getVlanType() { + return vlanType; + } + + public void setVlanType(Integer vlanType) { + this.vlanType = vlanType; + } + + public LanNetworkOpenApiVo vlans(String vlans) { + this.vlans = vlans; + return this; + } + + /** + * When purpose is \"interface\" and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100. + * @return vlans + */ + @ApiModelProperty(value = "When purpose is \"interface\" and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100.") + +@Pattern(regexp="^[\\d|\\d-\\d]+(,[\\d|\\d-\\d]+)*$") + public String getVlans() { + return vlans; + } + + public void setVlans(String vlans) { + this.vlans = vlans; + } + + public LanNetworkOpenApiVo vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * When purpose is \"VLAN\" or purpose is \"interface\" and VLANType is 0, create VLAN, which ranges from 1 to 4090. + * @return vlan + */ + @ApiModelProperty(value = "When purpose is \"VLAN\" or purpose is \"interface\" and VLANType is 0, create VLAN, which ranges from 1 to 4090.") + + + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + public LanNetworkOpenApiVo application(Integer application) { + this.application = application; + return this; + } + + /** + * Effective device type, 0: Gateway, Switch; 1: Switch + * @return application + */ + @ApiModelProperty(value = "Effective device type, 0: Gateway, Switch; 1: Switch") + + + public Integer getApplication() { + return application; + } + + public void setApplication(Integer application) { + this.application = application; + } + + public LanNetworkOpenApiVo gatewaySubnet(String gatewaySubnet) { + this.gatewaySubnet = gatewaySubnet; + return this; + } + + /** + * When purpose is interface, gateway subnet is needed. Format: IP/Mask + * @return gatewaySubnet + */ + @ApiModelProperty(value = "When purpose is interface, gateway subnet is needed. Format: IP/Mask") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])/(\\d|((1|2)\\d)|(30))\\b") + public String getGatewaySubnet() { + return gatewaySubnet; + } + + public void setGatewaySubnet(String gatewaySubnet) { + this.gatewaySubnet = gatewaySubnet; + } + + public LanNetworkOpenApiVo dhcpSettingsVO(DhcpSettings dhcpSettingsVO) { + this.dhcpSettingsVO = dhcpSettingsVO; + return this; + } + + /** + * Get dhcpSettingsVO + * @return dhcpSettingsVO + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpSettings getDhcpSettingsVO() { + return dhcpSettingsVO; + } + + public void setDhcpSettingsVO(DhcpSettings dhcpSettingsVO) { + this.dhcpSettingsVO = dhcpSettingsVO; + } + + public LanNetworkOpenApiVo domain(String domain) { + this.domain = domain; + return this; + } + + /** + * The domain of this network + * @return domain + */ + @ApiModelProperty(value = "The domain of this network") + +@Pattern(regexp="((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])){3}|([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})") + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public LanNetworkOpenApiVo igmpSnoopEnable(Boolean igmpSnoopEnable) { + this.igmpSnoopEnable = igmpSnoopEnable; + return this; + } + + /** + * Enable IGMP snooping + * @return igmpSnoopEnable + */ + @ApiModelProperty(required = true, value = "Enable IGMP snooping") + @NotNull + + + public Boolean getIgmpSnoopEnable() { + return igmpSnoopEnable; + } + + public void setIgmpSnoopEnable(Boolean igmpSnoopEnable) { + this.igmpSnoopEnable = igmpSnoopEnable; + } + + public LanNetworkOpenApiVo mldSnoopEnable(Boolean mldSnoopEnable) { + this.mldSnoopEnable = mldSnoopEnable; + return this; + } + + /** + * Enable MLD snooping + * @return mldSnoopEnable + */ + @ApiModelProperty(value = "Enable MLD snooping") + + + public Boolean getMldSnoopEnable() { + return mldSnoopEnable; + } + + public void setMldSnoopEnable(Boolean mldSnoopEnable) { + this.mldSnoopEnable = mldSnoopEnable; + } + + public LanNetworkOpenApiVo dhcpL2RelayEnable(Boolean dhcpL2RelayEnable) { + this.dhcpL2RelayEnable = dhcpL2RelayEnable; + return this; + } + + /** + * The switch of DHCP L2 relay + * @return dhcpL2RelayEnable + */ + @ApiModelProperty(value = "The switch of DHCP L2 relay") + + + public Boolean getDhcpL2RelayEnable() { + return dhcpL2RelayEnable; + } + + public void setDhcpL2RelayEnable(Boolean dhcpL2RelayEnable) { + this.dhcpL2RelayEnable = dhcpL2RelayEnable; + } + + public LanNetworkOpenApiVo dhcpGuard(DhcpServersSetting dhcpGuard) { + this.dhcpGuard = dhcpGuard; + return this; + } + + /** + * Get dhcpGuard + * @return dhcpGuard + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpServersSetting getDhcpGuard() { + return dhcpGuard; + } + + public void setDhcpGuard(DhcpServersSetting dhcpGuard) { + this.dhcpGuard = dhcpGuard; + } + + public LanNetworkOpenApiVo dhcpv6Guard(Dhcpv6ServersSetting dhcpv6Guard) { + this.dhcpv6Guard = dhcpv6Guard; + return this; + } + + /** + * Get dhcpv6Guard + * @return dhcpv6Guard + */ + @ApiModelProperty(value = "") + + @Valid + + public Dhcpv6ServersSetting getDhcpv6Guard() { + return dhcpv6Guard; + } + + public void setDhcpv6Guard(Dhcpv6ServersSetting dhcpv6Guard) { + this.dhcpv6Guard = dhcpv6Guard; + } + + public LanNetworkOpenApiVo lanNeworkIpv6Config(LanNetworkIpv6Config lanNeworkIpv6Config) { + this.lanNeworkIpv6Config = lanNeworkIpv6Config; + return this; + } + + /** + * Get lanNeworkIpv6Config + * @return lanNeworkIpv6Config + */ + @ApiModelProperty(value = "") + + @Valid + + public LanNetworkIpv6Config getLanNeworkIpv6Config() { + return lanNeworkIpv6Config; + } + + public void setLanNeworkIpv6Config(LanNetworkIpv6Config lanNeworkIpv6Config) { + this.lanNeworkIpv6Config = lanNeworkIpv6Config; + } + + public LanNetworkOpenApiVo allLan(Boolean allLan) { + this.allLan = allLan; + return this; + } + + /** + * When Internet pre-config is closed or Internet pre-config is Universal, allLAN is \"true\"; after adopting gateway, allLAN is \"false\". + * @return allLan + */ + @ApiModelProperty(value = "When Internet pre-config is closed or Internet pre-config is Universal, allLAN is \"true\"; after adopting gateway, allLAN is \"false\".") + + + public Boolean getAllLan() { + return allLan; + } + + public void setAllLan(Boolean allLan) { + this.allLan = allLan; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanNetworkOpenApiVo lanNetworkOpenApiVo = (LanNetworkOpenApiVo) o; + return Objects.equals(this.name, lanNetworkOpenApiVo.name) && + Objects.equals(this.purpose, lanNetworkOpenApiVo.purpose) && + Objects.equals(this.interfaceIds, lanNetworkOpenApiVo.interfaceIds) && + Objects.equals(this.vlanType, lanNetworkOpenApiVo.vlanType) && + Objects.equals(this.vlans, lanNetworkOpenApiVo.vlans) && + Objects.equals(this.vlan, lanNetworkOpenApiVo.vlan) && + Objects.equals(this.application, lanNetworkOpenApiVo.application) && + Objects.equals(this.gatewaySubnet, lanNetworkOpenApiVo.gatewaySubnet) && + Objects.equals(this.dhcpSettingsVO, lanNetworkOpenApiVo.dhcpSettingsVO) && + Objects.equals(this.domain, lanNetworkOpenApiVo.domain) && + Objects.equals(this.igmpSnoopEnable, lanNetworkOpenApiVo.igmpSnoopEnable) && + Objects.equals(this.mldSnoopEnable, lanNetworkOpenApiVo.mldSnoopEnable) && + Objects.equals(this.dhcpL2RelayEnable, lanNetworkOpenApiVo.dhcpL2RelayEnable) && + Objects.equals(this.dhcpGuard, lanNetworkOpenApiVo.dhcpGuard) && + Objects.equals(this.dhcpv6Guard, lanNetworkOpenApiVo.dhcpv6Guard) && + Objects.equals(this.lanNeworkIpv6Config, lanNetworkOpenApiVo.lanNeworkIpv6Config) && + Objects.equals(this.allLan, lanNetworkOpenApiVo.allLan); + } + + @Override + public int hashCode() { + return Objects.hash(name, purpose, interfaceIds, vlanType, vlans, vlan, application, gatewaySubnet, dhcpSettingsVO, domain, igmpSnoopEnable, mldSnoopEnable, dhcpL2RelayEnable, dhcpGuard, dhcpv6Guard, lanNeworkIpv6Config, allLan); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanNetworkOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" purpose: ").append(toIndentedString(purpose)).append("\n"); + sb.append(" interfaceIds: ").append(toIndentedString(interfaceIds)).append("\n"); + sb.append(" vlanType: ").append(toIndentedString(vlanType)).append("\n"); + sb.append(" vlans: ").append(toIndentedString(vlans)).append("\n"); + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append(" application: ").append(toIndentedString(application)).append("\n"); + sb.append(" gatewaySubnet: ").append(toIndentedString(gatewaySubnet)).append("\n"); + sb.append(" dhcpSettingsVO: ").append(toIndentedString(dhcpSettingsVO)).append("\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" igmpSnoopEnable: ").append(toIndentedString(igmpSnoopEnable)).append("\n"); + sb.append(" mldSnoopEnable: ").append(toIndentedString(mldSnoopEnable)).append("\n"); + sb.append(" dhcpL2RelayEnable: ").append(toIndentedString(dhcpL2RelayEnable)).append("\n"); + sb.append(" dhcpGuard: ").append(toIndentedString(dhcpGuard)).append("\n"); + sb.append(" dhcpv6Guard: ").append(toIndentedString(dhcpv6Guard)).append("\n"); + sb.append(" lanNeworkIpv6Config: ").append(toIndentedString(lanNeworkIpv6Config)).append("\n"); + sb.append(" allLan: ").append(toIndentedString(allLan)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkProtoPassThroughMode.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkProtoPassThroughMode.java new file mode 100644 index 0000000..20c3a31 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkProtoPassThroughMode.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Lan network proto: Pass-Through mode + */ +@ApiModel(description = "Lan network proto: Pass-Through mode") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanNetworkProtoPassThroughMode { + @JsonProperty("portId") + private String portId; + + public LanNetworkProtoPassThroughMode portId(String portId) { + this.portId = portId; + return this; + } + + /** + * The port ID of WAN port + * @return portId + */ + @ApiModelProperty(value = "The port ID of WAN port") + + + public String getPortId() { + return portId; + } + + public void setPortId(String portId) { + this.portId = portId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanNetworkProtoPassThroughMode lanNetworkProtoPassThroughMode = (LanNetworkProtoPassThroughMode) o; + return Objects.equals(this.portId, lanNetworkProtoPassThroughMode.portId); + } + + @Override + public int hashCode() { + return Objects.hash(portId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanNetworkProtoPassThroughMode {\n"); + + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode.java new file mode 100644 index 0000000..307d57b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode.java @@ -0,0 +1,228 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Lan network proto: SLAAC+Stateless DHCP mode or SLAAC+RDNSS mode + */ +@ApiModel(description = "Lan network proto: SLAAC+Stateless DHCP mode or SLAAC+RDNSS mode") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode { + @JsonProperty("preType") + private Integer preType; + + @JsonProperty("prefix") + private String prefix; + + @JsonProperty("portUuid") + private String portUuid; + + @JsonProperty("preId") + private Integer preId; + + @JsonProperty("dnsv6") + private Integer dnsv6; + + @JsonProperty("priDns") + private String priDns; + + @JsonProperty("sndDns") + private String sndDns; + + public LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode preType(Integer preType) { + this.preType = preType; + return this; + } + + /** + * Prefix type should be a value as follows: 0: \"manual\"; 1: \"get from PD\" + * @return preType + */ + @ApiModelProperty(value = "Prefix type should be a value as follows: 0: \"manual\"; 1: \"get from PD\"") + + + public Integer getPreType() { + return preType; + } + + public void setPreType(Integer preType) { + this.preType = preType; + } + + public LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode prefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * Address prefix + * @return prefix + */ + @ApiModelProperty(value = "Address prefix") + + + public String getPrefix() { + return prefix; + } + + public void setPrefix(String prefix) { + this.prefix = prefix; + } + + public LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode portUuid(String portUuid) { + this.portUuid = portUuid; + return this; + } + + /** + * The port UUID of WAN + * @return portUuid + */ + @ApiModelProperty(value = "The port UUID of WAN") + + + public String getPortUuid() { + return portUuid; + } + + public void setPortUuid(String portUuid) { + this.portUuid = portUuid; + } + + public LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode preId(Integer preId) { + this.preId = preId; + return this; + } + + /** + * Prefix ID should be within the range of 0-127 + * @return preId + */ + @ApiModelProperty(value = "Prefix ID should be within the range of 0-127") + + + public Integer getPreId() { + return preId; + } + + public void setPreId(Integer preId) { + this.preId = preId; + } + + public LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode dnsv6(Integer dnsv6) { + this.dnsv6 = dnsv6; + return this; + } + + /** + * DHCP Name Server, should be a value as follows: 0: \"auto\"; 1: \"manual\" + * @return dnsv6 + */ + @ApiModelProperty(value = "DHCP Name Server, should be a value as follows: 0: \"auto\"; 1: \"manual\"") + + + public Integer getDnsv6() { + return dnsv6; + } + + public void setDnsv6(Integer dnsv6) { + this.dnsv6 = dnsv6; + } + + public LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode priDns(String priDns) { + this.priDns = priDns; + return this; + } + + /** + * Primary DHCP Name Server, only effective for DNSv6 \"manual\" + * @return priDns + */ + @ApiModelProperty(value = "Primary DHCP Name Server, only effective for DNSv6 \"manual\"") + + + public String getPriDns() { + return priDns; + } + + public void setPriDns(String priDns) { + this.priDns = priDns; + } + + public LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode sndDns(String sndDns) { + this.sndDns = sndDns; + return this; + } + + /** + * Secondary DHCP Name Server, only effective for dnsv6 \"manual\" + * @return sndDns + */ + @ApiModelProperty(value = "Secondary DHCP Name Server, only effective for dnsv6 \"manual\"") + + + public String getSndDns() { + return sndDns; + } + + public void setSndDns(String sndDns) { + this.sndDns = sndDns; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode lanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode = (LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode) o; + return Objects.equals(this.preType, lanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode.preType) && + Objects.equals(this.prefix, lanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode.prefix) && + Objects.equals(this.portUuid, lanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode.portUuid) && + Objects.equals(this.preId, lanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode.preId) && + Objects.equals(this.dnsv6, lanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode.dnsv6) && + Objects.equals(this.priDns, lanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode.priDns) && + Objects.equals(this.sndDns, lanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode.sndDns); + } + + @Override + public int hashCode() { + return Objects.hash(preType, prefix, portUuid, preId, dnsv6, priDns, sndDns); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanNetworkProtoSlaacStatelessDhcpModeOrSlaacRdnssMode {\n"); + + sb.append(" preType: ").append(toIndentedString(preType)).append("\n"); + sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" portUuid: ").append(toIndentedString(portUuid)).append("\n"); + sb.append(" preId: ").append(toIndentedString(preId)).append("\n"); + sb.append(" dnsv6: ").append(toIndentedString(dnsv6)).append("\n"); + sb.append(" priDns: ").append(toIndentedString(priDns)).append("\n"); + sb.append(" sndDns: ").append(toIndentedString(sndDns)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkQueryOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkQueryOpenApiV2Vo.java new file mode 100644 index 0000000..46626eb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkQueryOpenApiV2Vo.java @@ -0,0 +1,674 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LANNetworkQueryOpenApiVO + */ +@ApiModel(description = "LANNetworkQueryOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanNetworkQueryOpenApiV2Vo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("purpose") + private Integer purpose; + + @JsonProperty("interfaceIds") + @Valid + private List interfaceIds = null; + + @JsonProperty("vlanType") + private Integer vlanType; + + @JsonProperty("vlans") + private String vlans; + + @JsonProperty("vlan") + private Integer vlan; + + @JsonProperty("application") + private Integer application; + + @JsonProperty("gatewaySubnet") + private String gatewaySubnet; + + @JsonProperty("dhcpSettingsVO") + private DhcpSettingInfo dhcpSettingsVO; + + @JsonProperty("domain") + private String domain; + + @JsonProperty("igmpSnoopEnable") + private Boolean igmpSnoopEnable; + + @JsonProperty("mldSnoopEnable") + private Boolean mldSnoopEnable; + + @JsonProperty("dhcpL2RelayEnable") + private Boolean dhcpL2RelayEnable; + + @JsonProperty("dhcpGuard") + private DhcpServersSetting dhcpGuard; + + @JsonProperty("dhcpv6Guard") + private Dhcpv6ServersSetting dhcpv6Guard; + + @JsonProperty("portal") + private Boolean portal; + + @JsonProperty("portalId") + private String portalId; + + @JsonProperty("portalName") + private String portalName; + + @JsonProperty("accessControlRule") + private Boolean accessControlRule; + + @JsonProperty("rateLimit") + private Boolean rateLimit; + + @JsonProperty("lanNeworkIpv6Config") + private LanNetworkIpv6Config lanNeworkIpv6Config; + + @JsonProperty("allLan") + private Boolean allLan; + + @JsonProperty("primary") + private Boolean primary; + + public LanNetworkQueryOpenApiV2Vo id(String id) { + this.id = id; + return this; + } + + /** + * LAN network ID + * @return id + */ + @ApiModelProperty(value = "LAN network ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public LanNetworkQueryOpenApiV2Vo name(String name) { + this.name = name; + return this; + } + + /** + * LAN network name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "LAN network name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public LanNetworkQueryOpenApiV2Vo purpose(Integer purpose) { + this.purpose = purpose; + return this; + } + + /** + * LAN network purpose should be a value as follows: 0: VLAN; 1: interface + * @return purpose + */ + @ApiModelProperty(required = true, value = "LAN network purpose should be a value as follows: 0: VLAN; 1: interface") + @NotNull + + + public Integer getPurpose() { + return purpose; + } + + public void setPurpose(Integer purpose) { + this.purpose = purpose; + } + + public LanNetworkQueryOpenApiV2Vo interfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + return this; + } + + public LanNetworkQueryOpenApiV2Vo addInterfaceIdsItem(String interfaceIdsItem) { + if (this.interfaceIds == null) { + this.interfaceIds = new ArrayList<>(); + } + this.interfaceIds.add(interfaceIdsItem); + return this; + } + + /** + * Gateway LAN port IDs (acquired from \"Check WAN/LAN status\") + * @return interfaceIds + */ + @ApiModelProperty(value = "Gateway LAN port IDs (acquired from \"Check WAN/LAN status\")") + + + public List getInterfaceIds() { + return interfaceIds; + } + + public void setInterfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + } + + public LanNetworkQueryOpenApiV2Vo vlanType(Integer vlanType) { + this.vlanType = vlanType; + return this; + } + + /** + * When purpose is interface, VLANType should be a value as follows: 0: Single; 1: Multiple + * @return vlanType + */ + @ApiModelProperty(value = "When purpose is interface, VLANType should be a value as follows: 0: Single; 1: Multiple") + + + public Integer getVlanType() { + return vlanType; + } + + public void setVlanType(Integer vlanType) { + this.vlanType = vlanType; + } + + public LanNetworkQueryOpenApiV2Vo vlans(String vlans) { + this.vlans = vlans; + return this; + } + + /** + * When purpose is interface and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100. + * @return vlans + */ + @ApiModelProperty(value = "When purpose is interface and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100.") + +@Pattern(regexp="^[\\d|\\d-\\d]+(,[\\d|\\d-\\d]+)*$") + public String getVlans() { + return vlans; + } + + public void setVlans(String vlans) { + this.vlans = vlans; + } + + public LanNetworkQueryOpenApiV2Vo vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * When purpose is \"VLAN\" or purpose is \"interface\" and VLANType is 0, vlan should be within the range of 1-4090. + * @return vlan + */ + @ApiModelProperty(value = "When purpose is \"VLAN\" or purpose is \"interface\" and VLANType is 0, vlan should be within the range of 1-4090.") + + + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + public LanNetworkQueryOpenApiV2Vo application(Integer application) { + this.application = application; + return this; + } + + /** + * Effective device type should be a value as follows: 0: Gateway and Switch; 1: Switch + * @return application + */ + @ApiModelProperty(value = "Effective device type should be a value as follows: 0: Gateway and Switch; 1: Switch") + + + public Integer getApplication() { + return application; + } + + public void setApplication(Integer application) { + this.application = application; + } + + public LanNetworkQueryOpenApiV2Vo gatewaySubnet(String gatewaySubnet) { + this.gatewaySubnet = gatewaySubnet; + return this; + } + + /** + * When purpose is interface, gateway subnet is needed. Format: IP/Mask + * @return gatewaySubnet + */ + @ApiModelProperty(value = "When purpose is interface, gateway subnet is needed. Format: IP/Mask") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])/(\\d|((1|2)\\d)|(30))\\b") + public String getGatewaySubnet() { + return gatewaySubnet; + } + + public void setGatewaySubnet(String gatewaySubnet) { + this.gatewaySubnet = gatewaySubnet; + } + + public LanNetworkQueryOpenApiV2Vo dhcpSettingsVO(DhcpSettingInfo dhcpSettingsVO) { + this.dhcpSettingsVO = dhcpSettingsVO; + return this; + } + + /** + * Get dhcpSettingsVO + * @return dhcpSettingsVO + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpSettingInfo getDhcpSettingsVO() { + return dhcpSettingsVO; + } + + public void setDhcpSettingsVO(DhcpSettingInfo dhcpSettingsVO) { + this.dhcpSettingsVO = dhcpSettingsVO; + } + + public LanNetworkQueryOpenApiV2Vo domain(String domain) { + this.domain = domain; + return this; + } + + /** + * The domain of this network + * @return domain + */ + @ApiModelProperty(value = "The domain of this network") + +@Pattern(regexp="((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])){3}|([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})") + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public LanNetworkQueryOpenApiV2Vo igmpSnoopEnable(Boolean igmpSnoopEnable) { + this.igmpSnoopEnable = igmpSnoopEnable; + return this; + } + + /** + * Enable IGMP snooping + * @return igmpSnoopEnable + */ + @ApiModelProperty(required = true, value = "Enable IGMP snooping") + @NotNull + + + public Boolean getIgmpSnoopEnable() { + return igmpSnoopEnable; + } + + public void setIgmpSnoopEnable(Boolean igmpSnoopEnable) { + this.igmpSnoopEnable = igmpSnoopEnable; + } + + public LanNetworkQueryOpenApiV2Vo mldSnoopEnable(Boolean mldSnoopEnable) { + this.mldSnoopEnable = mldSnoopEnable; + return this; + } + + /** + * Enable MLD snooping + * @return mldSnoopEnable + */ + @ApiModelProperty(value = "Enable MLD snooping") + + + public Boolean getMldSnoopEnable() { + return mldSnoopEnable; + } + + public void setMldSnoopEnable(Boolean mldSnoopEnable) { + this.mldSnoopEnable = mldSnoopEnable; + } + + public LanNetworkQueryOpenApiV2Vo dhcpL2RelayEnable(Boolean dhcpL2RelayEnable) { + this.dhcpL2RelayEnable = dhcpL2RelayEnable; + return this; + } + + /** + * The switch of DHCP L2 relay + * @return dhcpL2RelayEnable + */ + @ApiModelProperty(value = "The switch of DHCP L2 relay") + + + public Boolean getDhcpL2RelayEnable() { + return dhcpL2RelayEnable; + } + + public void setDhcpL2RelayEnable(Boolean dhcpL2RelayEnable) { + this.dhcpL2RelayEnable = dhcpL2RelayEnable; + } + + public LanNetworkQueryOpenApiV2Vo dhcpGuard(DhcpServersSetting dhcpGuard) { + this.dhcpGuard = dhcpGuard; + return this; + } + + /** + * Get dhcpGuard + * @return dhcpGuard + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpServersSetting getDhcpGuard() { + return dhcpGuard; + } + + public void setDhcpGuard(DhcpServersSetting dhcpGuard) { + this.dhcpGuard = dhcpGuard; + } + + public LanNetworkQueryOpenApiV2Vo dhcpv6Guard(Dhcpv6ServersSetting dhcpv6Guard) { + this.dhcpv6Guard = dhcpv6Guard; + return this; + } + + /** + * Get dhcpv6Guard + * @return dhcpv6Guard + */ + @ApiModelProperty(value = "") + + @Valid + + public Dhcpv6ServersSetting getDhcpv6Guard() { + return dhcpv6Guard; + } + + public void setDhcpv6Guard(Dhcpv6ServersSetting dhcpv6Guard) { + this.dhcpv6Guard = dhcpv6Guard; + } + + public LanNetworkQueryOpenApiV2Vo portal(Boolean portal) { + this.portal = portal; + return this; + } + + /** + * Show portal is enabled or not + * @return portal + */ + @ApiModelProperty(value = "Show portal is enabled or not") + + + public Boolean getPortal() { + return portal; + } + + public void setPortal(Boolean portal) { + this.portal = portal; + } + + public LanNetworkQueryOpenApiV2Vo portalId(String portalId) { + this.portalId = portalId; + return this; + } + + /** + * Show portal ID + * @return portalId + */ + @ApiModelProperty(value = "Show portal ID") + + + public String getPortalId() { + return portalId; + } + + public void setPortalId(String portalId) { + this.portalId = portalId; + } + + public LanNetworkQueryOpenApiV2Vo portalName(String portalName) { + this.portalName = portalName; + return this; + } + + /** + * Show related portal name + * @return portalName + */ + @ApiModelProperty(value = "Show related portal name") + + + public String getPortalName() { + return portalName; + } + + public void setPortalName(String portalName) { + this.portalName = portalName; + } + + public LanNetworkQueryOpenApiV2Vo accessControlRule(Boolean accessControlRule) { + this.accessControlRule = accessControlRule; + return this; + } + + /** + * Show AccessControlRule is enabled or not + * @return accessControlRule + */ + @ApiModelProperty(value = "Show AccessControlRule is enabled or not") + + + public Boolean getAccessControlRule() { + return accessControlRule; + } + + public void setAccessControlRule(Boolean accessControlRule) { + this.accessControlRule = accessControlRule; + } + + public LanNetworkQueryOpenApiV2Vo rateLimit(Boolean rateLimit) { + this.rateLimit = rateLimit; + return this; + } + + /** + * Show RateLimit is enabled or not + * @return rateLimit + */ + @ApiModelProperty(value = "Show RateLimit is enabled or not") + + + public Boolean getRateLimit() { + return rateLimit; + } + + public void setRateLimit(Boolean rateLimit) { + this.rateLimit = rateLimit; + } + + public LanNetworkQueryOpenApiV2Vo lanNeworkIpv6Config(LanNetworkIpv6Config lanNeworkIpv6Config) { + this.lanNeworkIpv6Config = lanNeworkIpv6Config; + return this; + } + + /** + * Get lanNeworkIpv6Config + * @return lanNeworkIpv6Config + */ + @ApiModelProperty(value = "") + + @Valid + + public LanNetworkIpv6Config getLanNeworkIpv6Config() { + return lanNeworkIpv6Config; + } + + public void setLanNeworkIpv6Config(LanNetworkIpv6Config lanNeworkIpv6Config) { + this.lanNeworkIpv6Config = lanNeworkIpv6Config; + } + + public LanNetworkQueryOpenApiV2Vo allLan(Boolean allLan) { + this.allLan = allLan; + return this; + } + + /** + * When Internet pre-config is closed or Internet pre-config is Universal, allLAN is \"true\"; after adopting gateway, allLAN is \"false\". + * @return allLan + */ + @ApiModelProperty(value = "When Internet pre-config is closed or Internet pre-config is Universal, allLAN is \"true\"; after adopting gateway, allLAN is \"false\".") + + + public Boolean getAllLan() { + return allLan; + } + + public void setAllLan(Boolean allLan) { + this.allLan = allLan; + } + + public LanNetworkQueryOpenApiV2Vo primary(Boolean primary) { + this.primary = primary; + return this; + } + + /** + * Primary + * @return primary + */ + @ApiModelProperty(value = "Primary") + + + public Boolean getPrimary() { + return primary; + } + + public void setPrimary(Boolean primary) { + this.primary = primary; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanNetworkQueryOpenApiV2Vo lanNetworkQueryOpenApiV2Vo = (LanNetworkQueryOpenApiV2Vo) o; + return Objects.equals(this.id, lanNetworkQueryOpenApiV2Vo.id) && + Objects.equals(this.name, lanNetworkQueryOpenApiV2Vo.name) && + Objects.equals(this.purpose, lanNetworkQueryOpenApiV2Vo.purpose) && + Objects.equals(this.interfaceIds, lanNetworkQueryOpenApiV2Vo.interfaceIds) && + Objects.equals(this.vlanType, lanNetworkQueryOpenApiV2Vo.vlanType) && + Objects.equals(this.vlans, lanNetworkQueryOpenApiV2Vo.vlans) && + Objects.equals(this.vlan, lanNetworkQueryOpenApiV2Vo.vlan) && + Objects.equals(this.application, lanNetworkQueryOpenApiV2Vo.application) && + Objects.equals(this.gatewaySubnet, lanNetworkQueryOpenApiV2Vo.gatewaySubnet) && + Objects.equals(this.dhcpSettingsVO, lanNetworkQueryOpenApiV2Vo.dhcpSettingsVO) && + Objects.equals(this.domain, lanNetworkQueryOpenApiV2Vo.domain) && + Objects.equals(this.igmpSnoopEnable, lanNetworkQueryOpenApiV2Vo.igmpSnoopEnable) && + Objects.equals(this.mldSnoopEnable, lanNetworkQueryOpenApiV2Vo.mldSnoopEnable) && + Objects.equals(this.dhcpL2RelayEnable, lanNetworkQueryOpenApiV2Vo.dhcpL2RelayEnable) && + Objects.equals(this.dhcpGuard, lanNetworkQueryOpenApiV2Vo.dhcpGuard) && + Objects.equals(this.dhcpv6Guard, lanNetworkQueryOpenApiV2Vo.dhcpv6Guard) && + Objects.equals(this.portal, lanNetworkQueryOpenApiV2Vo.portal) && + Objects.equals(this.portalId, lanNetworkQueryOpenApiV2Vo.portalId) && + Objects.equals(this.portalName, lanNetworkQueryOpenApiV2Vo.portalName) && + Objects.equals(this.accessControlRule, lanNetworkQueryOpenApiV2Vo.accessControlRule) && + Objects.equals(this.rateLimit, lanNetworkQueryOpenApiV2Vo.rateLimit) && + Objects.equals(this.lanNeworkIpv6Config, lanNetworkQueryOpenApiV2Vo.lanNeworkIpv6Config) && + Objects.equals(this.allLan, lanNetworkQueryOpenApiV2Vo.allLan) && + Objects.equals(this.primary, lanNetworkQueryOpenApiV2Vo.primary); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, purpose, interfaceIds, vlanType, vlans, vlan, application, gatewaySubnet, dhcpSettingsVO, domain, igmpSnoopEnable, mldSnoopEnable, dhcpL2RelayEnable, dhcpGuard, dhcpv6Guard, portal, portalId, portalName, accessControlRule, rateLimit, lanNeworkIpv6Config, allLan, primary); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanNetworkQueryOpenApiV2Vo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" purpose: ").append(toIndentedString(purpose)).append("\n"); + sb.append(" interfaceIds: ").append(toIndentedString(interfaceIds)).append("\n"); + sb.append(" vlanType: ").append(toIndentedString(vlanType)).append("\n"); + sb.append(" vlans: ").append(toIndentedString(vlans)).append("\n"); + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append(" application: ").append(toIndentedString(application)).append("\n"); + sb.append(" gatewaySubnet: ").append(toIndentedString(gatewaySubnet)).append("\n"); + sb.append(" dhcpSettingsVO: ").append(toIndentedString(dhcpSettingsVO)).append("\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" igmpSnoopEnable: ").append(toIndentedString(igmpSnoopEnable)).append("\n"); + sb.append(" mldSnoopEnable: ").append(toIndentedString(mldSnoopEnable)).append("\n"); + sb.append(" dhcpL2RelayEnable: ").append(toIndentedString(dhcpL2RelayEnable)).append("\n"); + sb.append(" dhcpGuard: ").append(toIndentedString(dhcpGuard)).append("\n"); + sb.append(" dhcpv6Guard: ").append(toIndentedString(dhcpv6Guard)).append("\n"); + sb.append(" portal: ").append(toIndentedString(portal)).append("\n"); + sb.append(" portalId: ").append(toIndentedString(portalId)).append("\n"); + sb.append(" portalName: ").append(toIndentedString(portalName)).append("\n"); + sb.append(" accessControlRule: ").append(toIndentedString(accessControlRule)).append("\n"); + sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n"); + sb.append(" lanNeworkIpv6Config: ").append(toIndentedString(lanNeworkIpv6Config)).append("\n"); + sb.append(" allLan: ").append(toIndentedString(allLan)).append("\n"); + sb.append(" primary: ").append(toIndentedString(primary)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkQueryOpenApiVo.java new file mode 100644 index 0000000..5df16f9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkQueryOpenApiVo.java @@ -0,0 +1,674 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LANNetworkQueryOpenApiVO + */ +@ApiModel(description = "LANNetworkQueryOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanNetworkQueryOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("purpose") + private Integer purpose; + + @JsonProperty("interfaceIds") + @Valid + private List interfaceIds = null; + + @JsonProperty("vlanType") + private Integer vlanType; + + @JsonProperty("vlans") + private String vlans; + + @JsonProperty("vlan") + private Integer vlan; + + @JsonProperty("application") + private Integer application; + + @JsonProperty("gatewaySubnet") + private String gatewaySubnet; + + @JsonProperty("dhcpSettingsVO") + private DhcpSettings dhcpSettingsVO; + + @JsonProperty("domain") + private String domain; + + @JsonProperty("igmpSnoopEnable") + private Boolean igmpSnoopEnable; + + @JsonProperty("mldSnoopEnable") + private Boolean mldSnoopEnable; + + @JsonProperty("dhcpL2RelayEnable") + private Boolean dhcpL2RelayEnable; + + @JsonProperty("dhcpGuard") + private DhcpServersSetting dhcpGuard; + + @JsonProperty("dhcpv6Guard") + private Dhcpv6ServersSetting dhcpv6Guard; + + @JsonProperty("portal") + private Boolean portal; + + @JsonProperty("portalId") + private String portalId; + + @JsonProperty("portalName") + private String portalName; + + @JsonProperty("accessControlRule") + private Boolean accessControlRule; + + @JsonProperty("rateLimit") + private Boolean rateLimit; + + @JsonProperty("lanNeworkIpv6Config") + private LanNetworkIpv6Config lanNeworkIpv6Config; + + @JsonProperty("allLan") + private Boolean allLan; + + @JsonProperty("primary") + private Boolean primary; + + public LanNetworkQueryOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * LAN network ID + * @return id + */ + @ApiModelProperty(value = "LAN network ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public LanNetworkQueryOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * LAN network name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "LAN network name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public LanNetworkQueryOpenApiVo purpose(Integer purpose) { + this.purpose = purpose; + return this; + } + + /** + * LAN network purpose, 0: VLAN, 1: interface + * @return purpose + */ + @ApiModelProperty(required = true, value = "LAN network purpose, 0: VLAN, 1: interface") + @NotNull + + + public Integer getPurpose() { + return purpose; + } + + public void setPurpose(Integer purpose) { + this.purpose = purpose; + } + + public LanNetworkQueryOpenApiVo interfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + return this; + } + + public LanNetworkQueryOpenApiVo addInterfaceIdsItem(String interfaceIdsItem) { + if (this.interfaceIds == null) { + this.interfaceIds = new ArrayList<>(); + } + this.interfaceIds.add(interfaceIdsItem); + return this; + } + + /** + * Gateway LAN port IDs (acquired from \"Check WAN/LAN status\") + * @return interfaceIds + */ + @ApiModelProperty(value = "Gateway LAN port IDs (acquired from \"Check WAN/LAN status\")") + + + public List getInterfaceIds() { + return interfaceIds; + } + + public void setInterfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + } + + public LanNetworkQueryOpenApiVo vlanType(Integer vlanType) { + this.vlanType = vlanType; + return this; + } + + /** + * When purpose is interface, VLANType is valid. 0: Single; 1: Multiple + * @return vlanType + */ + @ApiModelProperty(value = "When purpose is interface, VLANType is valid. 0: Single; 1: Multiple") + + + public Integer getVlanType() { + return vlanType; + } + + public void setVlanType(Integer vlanType) { + this.vlanType = vlanType; + } + + public LanNetworkQueryOpenApiVo vlans(String vlans) { + this.vlans = vlans; + return this; + } + + /** + * When purpose is interface and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100. + * @return vlans + */ + @ApiModelProperty(value = "When purpose is interface and VLANType is 1, batch create VLANs. VLAN format: 200, 1-100.") + +@Pattern(regexp="^[\\d|\\d-\\d]+(,[\\d|\\d-\\d]+)*$") + public String getVlans() { + return vlans; + } + + public void setVlans(String vlans) { + this.vlans = vlans; + } + + public LanNetworkQueryOpenApiVo vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * When purpose is \"VLAN\" or purpose is \"interface\" and VLANType is 0, create VLAN. VLAN range 1 to 4090. + * @return vlan + */ + @ApiModelProperty(value = "When purpose is \"VLAN\" or purpose is \"interface\" and VLANType is 0, create VLAN. VLAN range 1 to 4090.") + + + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + public LanNetworkQueryOpenApiVo application(Integer application) { + this.application = application; + return this; + } + + /** + * Effective device type. 0: Gateway, Switch; 1: Switch + * @return application + */ + @ApiModelProperty(value = "Effective device type. 0: Gateway, Switch; 1: Switch") + + + public Integer getApplication() { + return application; + } + + public void setApplication(Integer application) { + this.application = application; + } + + public LanNetworkQueryOpenApiVo gatewaySubnet(String gatewaySubnet) { + this.gatewaySubnet = gatewaySubnet; + return this; + } + + /** + * When purpose is interface, gateway subnet is needed. Format: IP/Mask + * @return gatewaySubnet + */ + @ApiModelProperty(value = "When purpose is interface, gateway subnet is needed. Format: IP/Mask") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])/(\\d|((1|2)\\d)|(30))\\b") + public String getGatewaySubnet() { + return gatewaySubnet; + } + + public void setGatewaySubnet(String gatewaySubnet) { + this.gatewaySubnet = gatewaySubnet; + } + + public LanNetworkQueryOpenApiVo dhcpSettingsVO(DhcpSettings dhcpSettingsVO) { + this.dhcpSettingsVO = dhcpSettingsVO; + return this; + } + + /** + * Get dhcpSettingsVO + * @return dhcpSettingsVO + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpSettings getDhcpSettingsVO() { + return dhcpSettingsVO; + } + + public void setDhcpSettingsVO(DhcpSettings dhcpSettingsVO) { + this.dhcpSettingsVO = dhcpSettingsVO; + } + + public LanNetworkQueryOpenApiVo domain(String domain) { + this.domain = domain; + return this; + } + + /** + * The domain of this network + * @return domain + */ + @ApiModelProperty(value = "The domain of this network") + +@Pattern(regexp="((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])){3}|([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})") + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public LanNetworkQueryOpenApiVo igmpSnoopEnable(Boolean igmpSnoopEnable) { + this.igmpSnoopEnable = igmpSnoopEnable; + return this; + } + + /** + * Enable IGMP snooping + * @return igmpSnoopEnable + */ + @ApiModelProperty(required = true, value = "Enable IGMP snooping") + @NotNull + + + public Boolean getIgmpSnoopEnable() { + return igmpSnoopEnable; + } + + public void setIgmpSnoopEnable(Boolean igmpSnoopEnable) { + this.igmpSnoopEnable = igmpSnoopEnable; + } + + public LanNetworkQueryOpenApiVo mldSnoopEnable(Boolean mldSnoopEnable) { + this.mldSnoopEnable = mldSnoopEnable; + return this; + } + + /** + * Enable MLD snooping + * @return mldSnoopEnable + */ + @ApiModelProperty(value = "Enable MLD snooping") + + + public Boolean getMldSnoopEnable() { + return mldSnoopEnable; + } + + public void setMldSnoopEnable(Boolean mldSnoopEnable) { + this.mldSnoopEnable = mldSnoopEnable; + } + + public LanNetworkQueryOpenApiVo dhcpL2RelayEnable(Boolean dhcpL2RelayEnable) { + this.dhcpL2RelayEnable = dhcpL2RelayEnable; + return this; + } + + /** + * The switch of DHCP L2 relay + * @return dhcpL2RelayEnable + */ + @ApiModelProperty(value = "The switch of DHCP L2 relay") + + + public Boolean getDhcpL2RelayEnable() { + return dhcpL2RelayEnable; + } + + public void setDhcpL2RelayEnable(Boolean dhcpL2RelayEnable) { + this.dhcpL2RelayEnable = dhcpL2RelayEnable; + } + + public LanNetworkQueryOpenApiVo dhcpGuard(DhcpServersSetting dhcpGuard) { + this.dhcpGuard = dhcpGuard; + return this; + } + + /** + * Get dhcpGuard + * @return dhcpGuard + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpServersSetting getDhcpGuard() { + return dhcpGuard; + } + + public void setDhcpGuard(DhcpServersSetting dhcpGuard) { + this.dhcpGuard = dhcpGuard; + } + + public LanNetworkQueryOpenApiVo dhcpv6Guard(Dhcpv6ServersSetting dhcpv6Guard) { + this.dhcpv6Guard = dhcpv6Guard; + return this; + } + + /** + * Get dhcpv6Guard + * @return dhcpv6Guard + */ + @ApiModelProperty(value = "") + + @Valid + + public Dhcpv6ServersSetting getDhcpv6Guard() { + return dhcpv6Guard; + } + + public void setDhcpv6Guard(Dhcpv6ServersSetting dhcpv6Guard) { + this.dhcpv6Guard = dhcpv6Guard; + } + + public LanNetworkQueryOpenApiVo portal(Boolean portal) { + this.portal = portal; + return this; + } + + /** + * Show portal is enabled or not + * @return portal + */ + @ApiModelProperty(value = "Show portal is enabled or not") + + + public Boolean getPortal() { + return portal; + } + + public void setPortal(Boolean portal) { + this.portal = portal; + } + + public LanNetworkQueryOpenApiVo portalId(String portalId) { + this.portalId = portalId; + return this; + } + + /** + * Show portal ID + * @return portalId + */ + @ApiModelProperty(value = "Show portal ID") + + + public String getPortalId() { + return portalId; + } + + public void setPortalId(String portalId) { + this.portalId = portalId; + } + + public LanNetworkQueryOpenApiVo portalName(String portalName) { + this.portalName = portalName; + return this; + } + + /** + * Show related portal name + * @return portalName + */ + @ApiModelProperty(value = "Show related portal name") + + + public String getPortalName() { + return portalName; + } + + public void setPortalName(String portalName) { + this.portalName = portalName; + } + + public LanNetworkQueryOpenApiVo accessControlRule(Boolean accessControlRule) { + this.accessControlRule = accessControlRule; + return this; + } + + /** + * Show AccessControlRule is enabled or not + * @return accessControlRule + */ + @ApiModelProperty(value = "Show AccessControlRule is enabled or not") + + + public Boolean getAccessControlRule() { + return accessControlRule; + } + + public void setAccessControlRule(Boolean accessControlRule) { + this.accessControlRule = accessControlRule; + } + + public LanNetworkQueryOpenApiVo rateLimit(Boolean rateLimit) { + this.rateLimit = rateLimit; + return this; + } + + /** + * Show RateLimit is enabled or not + * @return rateLimit + */ + @ApiModelProperty(value = "Show RateLimit is enabled or not") + + + public Boolean getRateLimit() { + return rateLimit; + } + + public void setRateLimit(Boolean rateLimit) { + this.rateLimit = rateLimit; + } + + public LanNetworkQueryOpenApiVo lanNeworkIpv6Config(LanNetworkIpv6Config lanNeworkIpv6Config) { + this.lanNeworkIpv6Config = lanNeworkIpv6Config; + return this; + } + + /** + * Get lanNeworkIpv6Config + * @return lanNeworkIpv6Config + */ + @ApiModelProperty(value = "") + + @Valid + + public LanNetworkIpv6Config getLanNeworkIpv6Config() { + return lanNeworkIpv6Config; + } + + public void setLanNeworkIpv6Config(LanNetworkIpv6Config lanNeworkIpv6Config) { + this.lanNeworkIpv6Config = lanNeworkIpv6Config; + } + + public LanNetworkQueryOpenApiVo allLan(Boolean allLan) { + this.allLan = allLan; + return this; + } + + /** + * When Internet pre-config is closed or Internet pre-config is Universal, allLAN is \"true\"; after adopting gateway, allLAN is \"false\". + * @return allLan + */ + @ApiModelProperty(value = "When Internet pre-config is closed or Internet pre-config is Universal, allLAN is \"true\"; after adopting gateway, allLAN is \"false\".") + + + public Boolean getAllLan() { + return allLan; + } + + public void setAllLan(Boolean allLan) { + this.allLan = allLan; + } + + public LanNetworkQueryOpenApiVo primary(Boolean primary) { + this.primary = primary; + return this; + } + + /** + * Primary + * @return primary + */ + @ApiModelProperty(value = "Primary") + + + public Boolean getPrimary() { + return primary; + } + + public void setPrimary(Boolean primary) { + this.primary = primary; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanNetworkQueryOpenApiVo lanNetworkQueryOpenApiVo = (LanNetworkQueryOpenApiVo) o; + return Objects.equals(this.id, lanNetworkQueryOpenApiVo.id) && + Objects.equals(this.name, lanNetworkQueryOpenApiVo.name) && + Objects.equals(this.purpose, lanNetworkQueryOpenApiVo.purpose) && + Objects.equals(this.interfaceIds, lanNetworkQueryOpenApiVo.interfaceIds) && + Objects.equals(this.vlanType, lanNetworkQueryOpenApiVo.vlanType) && + Objects.equals(this.vlans, lanNetworkQueryOpenApiVo.vlans) && + Objects.equals(this.vlan, lanNetworkQueryOpenApiVo.vlan) && + Objects.equals(this.application, lanNetworkQueryOpenApiVo.application) && + Objects.equals(this.gatewaySubnet, lanNetworkQueryOpenApiVo.gatewaySubnet) && + Objects.equals(this.dhcpSettingsVO, lanNetworkQueryOpenApiVo.dhcpSettingsVO) && + Objects.equals(this.domain, lanNetworkQueryOpenApiVo.domain) && + Objects.equals(this.igmpSnoopEnable, lanNetworkQueryOpenApiVo.igmpSnoopEnable) && + Objects.equals(this.mldSnoopEnable, lanNetworkQueryOpenApiVo.mldSnoopEnable) && + Objects.equals(this.dhcpL2RelayEnable, lanNetworkQueryOpenApiVo.dhcpL2RelayEnable) && + Objects.equals(this.dhcpGuard, lanNetworkQueryOpenApiVo.dhcpGuard) && + Objects.equals(this.dhcpv6Guard, lanNetworkQueryOpenApiVo.dhcpv6Guard) && + Objects.equals(this.portal, lanNetworkQueryOpenApiVo.portal) && + Objects.equals(this.portalId, lanNetworkQueryOpenApiVo.portalId) && + Objects.equals(this.portalName, lanNetworkQueryOpenApiVo.portalName) && + Objects.equals(this.accessControlRule, lanNetworkQueryOpenApiVo.accessControlRule) && + Objects.equals(this.rateLimit, lanNetworkQueryOpenApiVo.rateLimit) && + Objects.equals(this.lanNeworkIpv6Config, lanNetworkQueryOpenApiVo.lanNeworkIpv6Config) && + Objects.equals(this.allLan, lanNetworkQueryOpenApiVo.allLan) && + Objects.equals(this.primary, lanNetworkQueryOpenApiVo.primary); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, purpose, interfaceIds, vlanType, vlans, vlan, application, gatewaySubnet, dhcpSettingsVO, domain, igmpSnoopEnable, mldSnoopEnable, dhcpL2RelayEnable, dhcpGuard, dhcpv6Guard, portal, portalId, portalName, accessControlRule, rateLimit, lanNeworkIpv6Config, allLan, primary); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanNetworkQueryOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" purpose: ").append(toIndentedString(purpose)).append("\n"); + sb.append(" interfaceIds: ").append(toIndentedString(interfaceIds)).append("\n"); + sb.append(" vlanType: ").append(toIndentedString(vlanType)).append("\n"); + sb.append(" vlans: ").append(toIndentedString(vlans)).append("\n"); + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append(" application: ").append(toIndentedString(application)).append("\n"); + sb.append(" gatewaySubnet: ").append(toIndentedString(gatewaySubnet)).append("\n"); + sb.append(" dhcpSettingsVO: ").append(toIndentedString(dhcpSettingsVO)).append("\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" igmpSnoopEnable: ").append(toIndentedString(igmpSnoopEnable)).append("\n"); + sb.append(" mldSnoopEnable: ").append(toIndentedString(mldSnoopEnable)).append("\n"); + sb.append(" dhcpL2RelayEnable: ").append(toIndentedString(dhcpL2RelayEnable)).append("\n"); + sb.append(" dhcpGuard: ").append(toIndentedString(dhcpGuard)).append("\n"); + sb.append(" dhcpv6Guard: ").append(toIndentedString(dhcpv6Guard)).append("\n"); + sb.append(" portal: ").append(toIndentedString(portal)).append("\n"); + sb.append(" portalId: ").append(toIndentedString(portalId)).append("\n"); + sb.append(" portalName: ").append(toIndentedString(portalName)).append("\n"); + sb.append(" accessControlRule: ").append(toIndentedString(accessControlRule)).append("\n"); + sb.append(" rateLimit: ").append(toIndentedString(rateLimit)).append("\n"); + sb.append(" lanNeworkIpv6Config: ").append(toIndentedString(lanNeworkIpv6Config)).append("\n"); + sb.append(" allLan: ").append(toIndentedString(allLan)).append("\n"); + sb.append(" primary: ").append(toIndentedString(primary)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkVlansOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkVlansOpenApiVo.java new file mode 100644 index 0000000..b0b2ac5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanNetworkVlansOpenApiVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * LanNetworkVlansOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanNetworkVlansOpenApiVo { + @JsonProperty("vlan") + private Integer vlan; + + @JsonProperty("lanNetworkId") + private String lanNetworkId; + + public LanNetworkVlansOpenApiVo vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * Created vlan in site. Valid range is from 2 to 4090 in \"Oui based vlan\". + * @return vlan + */ + @ApiModelProperty(value = "Created vlan in site. Valid range is from 2 to 4090 in \"Oui based vlan\".") + + + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + public LanNetworkVlansOpenApiVo lanNetworkId(String lanNetworkId) { + this.lanNetworkId = lanNetworkId; + return this; + } + + /** + * Lan network ID. + * @return lanNetworkId + */ + @ApiModelProperty(value = "Lan network ID.") + + + public String getLanNetworkId() { + return lanNetworkId; + } + + public void setLanNetworkId(String lanNetworkId) { + this.lanNetworkId = lanNetworkId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanNetworkVlansOpenApiVo lanNetworkVlansOpenApiVo = (LanNetworkVlansOpenApiVo) o; + return Objects.equals(this.vlan, lanNetworkVlansOpenApiVo.vlan) && + Objects.equals(this.lanNetworkId, lanNetworkVlansOpenApiVo.lanNetworkId); + } + + @Override + public int hashCode() { + return Objects.hash(vlan, lanNetworkId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanNetworkVlansOpenApiVo {\n"); + + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append(" lanNetworkId: ").append(toIndentedString(lanNetworkId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanProfileConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanProfileConfigOpenApiVo.java new file mode 100644 index 0000000..1b3d5a9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanProfileConfigOpenApiVo.java @@ -0,0 +1,537 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LanProfileConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanProfileConfigOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("poe") + private Integer poe; + + @JsonProperty("nativeNetworkId") + private String nativeNetworkId; + + @JsonProperty("tagNetworkIds") + @Valid + private List tagNetworkIds = null; + + @JsonProperty("untagNetworkIds") + @Valid + private List untagNetworkIds = null; + + @JsonProperty("voiceNetworkId") + private String voiceNetworkId; + + @JsonProperty("dot1x") + private Integer dot1x; + + @JsonProperty("portIsolationEnable") + private Boolean portIsolationEnable; + + @JsonProperty("lldpMedEnable") + private Boolean lldpMedEnable; + + @JsonProperty("bandWidthCtrlType") + private Integer bandWidthCtrlType; + + @JsonProperty("stormCtrl") + private StormCtrlEntity stormCtrl; + + @JsonProperty("bandCtrl") + private BandCtrlEntity bandCtrl; + + @JsonProperty("spanningTreeEnable") + private Boolean spanningTreeEnable; + + @JsonProperty("loopbackDetectEnable") + private Boolean loopbackDetectEnable; + + @JsonProperty("eeeEnable") + private Boolean eeeEnable; + + @JsonProperty("flowControlEnable") + private Boolean flowControlEnable; + + @JsonProperty("loopbackDetectVlanBasedEnable") + private Boolean loopbackDetectVlanBasedEnable; + + @JsonProperty("dhcpL2RelaySettings") + private DhcpL2RelayEntity dhcpL2RelaySettings; + + public LanProfileConfigOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public LanProfileConfigOpenApiVo poe(Integer poe) { + this.poe = poe; + return this; + } + + /** + * PoE should be a value as follows: 0: on, 1: off, 2: \"do not modify\" + * @return poe + */ + @ApiModelProperty(required = true, value = "PoE should be a value as follows: 0: on, 1: off, 2: \"do not modify\"") + @NotNull + + + public Integer getPoe() { + return poe; + } + + public void setPoe(Integer poe) { + this.poe = poe; + } + + public LanProfileConfigOpenApiVo nativeNetworkId(String nativeNetworkId) { + this.nativeNetworkId = nativeNetworkId; + return this; + } + + /** + * Native network ID, Native Network cannot be selected from Tagged Networks or Untagged Networks. + * @return nativeNetworkId + */ + @ApiModelProperty(required = true, value = "Native network ID, Native Network cannot be selected from Tagged Networks or Untagged Networks.") + @NotNull + +@Size(min=1,max=2147483647) + public String getNativeNetworkId() { + return nativeNetworkId; + } + + public void setNativeNetworkId(String nativeNetworkId) { + this.nativeNetworkId = nativeNetworkId; + } + + public LanProfileConfigOpenApiVo tagNetworkIds(List tagNetworkIds) { + this.tagNetworkIds = tagNetworkIds; + return this; + } + + public LanProfileConfigOpenApiVo addTagNetworkIdsItem(String tagNetworkIdsItem) { + if (this.tagNetworkIds == null) { + this.tagNetworkIds = new ArrayList<>(); + } + this.tagNetworkIds.add(tagNetworkIdsItem); + return this; + } + + /** + * Tag network IDs + * @return tagNetworkIds + */ + @ApiModelProperty(value = "Tag network IDs") + + + public List getTagNetworkIds() { + return tagNetworkIds; + } + + public void setTagNetworkIds(List tagNetworkIds) { + this.tagNetworkIds = tagNetworkIds; + } + + public LanProfileConfigOpenApiVo untagNetworkIds(List untagNetworkIds) { + this.untagNetworkIds = untagNetworkIds; + return this; + } + + public LanProfileConfigOpenApiVo addUntagNetworkIdsItem(String untagNetworkIdsItem) { + if (this.untagNetworkIds == null) { + this.untagNetworkIds = new ArrayList<>(); + } + this.untagNetworkIds.add(untagNetworkIdsItem); + return this; + } + + /** + * Untag network IDs + * @return untagNetworkIds + */ + @ApiModelProperty(value = "Untag network IDs") + + + public List getUntagNetworkIds() { + return untagNetworkIds; + } + + public void setUntagNetworkIds(List untagNetworkIds) { + this.untagNetworkIds = untagNetworkIds; + } + + public LanProfileConfigOpenApiVo voiceNetworkId(String voiceNetworkId) { + this.voiceNetworkId = voiceNetworkId; + return this; + } + + /** + * Voice Network ID + * @return voiceNetworkId + */ + @ApiModelProperty(value = "Voice Network ID") + + + public String getVoiceNetworkId() { + return voiceNetworkId; + } + + public void setVoiceNetworkId(String voiceNetworkId) { + this.voiceNetworkId = voiceNetworkId; + } + + public LanProfileConfigOpenApiVo dot1x(Integer dot1x) { + this.dot1x = dot1x; + return this; + } + + /** + * Dot1x should be a value as follows: 0: force unauthorized, 1: force authorized, 2:auto + * @return dot1x + */ + @ApiModelProperty(required = true, value = "Dot1x should be a value as follows: 0: force unauthorized, 1: force authorized, 2:auto") + @NotNull + + + public Integer getDot1x() { + return dot1x; + } + + public void setDot1x(Integer dot1x) { + this.dot1x = dot1x; + } + + public LanProfileConfigOpenApiVo portIsolationEnable(Boolean portIsolationEnable) { + this.portIsolationEnable = portIsolationEnable; + return this; + } + + /** + * Port-isolation enable status + * @return portIsolationEnable + */ + @ApiModelProperty(required = true, value = "Port-isolation enable status") + @NotNull + + + public Boolean getPortIsolationEnable() { + return portIsolationEnable; + } + + public void setPortIsolationEnable(Boolean portIsolationEnable) { + this.portIsolationEnable = portIsolationEnable; + } + + public LanProfileConfigOpenApiVo lldpMedEnable(Boolean lldpMedEnable) { + this.lldpMedEnable = lldpMedEnable; + return this; + } + + /** + * LLDP-MED enable status + * @return lldpMedEnable + */ + @ApiModelProperty(required = true, value = "LLDP-MED enable status") + @NotNull + + + public Boolean getLldpMedEnable() { + return lldpMedEnable; + } + + public void setLldpMedEnable(Boolean lldpMedEnable) { + this.lldpMedEnable = lldpMedEnable; + } + + public LanProfileConfigOpenApiVo bandWidthCtrlType(Integer bandWidthCtrlType) { + this.bandWidthCtrlType = bandWidthCtrlType; + return this; + } + + /** + * BandWidthCtrlType should be a value as follows: 0: off, 1: rate limit, 2: storming control + * @return bandWidthCtrlType + */ + @ApiModelProperty(required = true, value = "BandWidthCtrlType should be a value as follows: 0: off, 1: rate limit, 2: storming control") + @NotNull + + + public Integer getBandWidthCtrlType() { + return bandWidthCtrlType; + } + + public void setBandWidthCtrlType(Integer bandWidthCtrlType) { + this.bandWidthCtrlType = bandWidthCtrlType; + } + + public LanProfileConfigOpenApiVo stormCtrl(StormCtrlEntity stormCtrl) { + this.stormCtrl = stormCtrl; + return this; + } + + /** + * Get stormCtrl + * @return stormCtrl + */ + @ApiModelProperty(value = "") + + @Valid + + public StormCtrlEntity getStormCtrl() { + return stormCtrl; + } + + public void setStormCtrl(StormCtrlEntity stormCtrl) { + this.stormCtrl = stormCtrl; + } + + public LanProfileConfigOpenApiVo bandCtrl(BandCtrlEntity bandCtrl) { + this.bandCtrl = bandCtrl; + return this; + } + + /** + * Get bandCtrl + * @return bandCtrl + */ + @ApiModelProperty(value = "") + + @Valid + + public BandCtrlEntity getBandCtrl() { + return bandCtrl; + } + + public void setBandCtrl(BandCtrlEntity bandCtrl) { + this.bandCtrl = bandCtrl; + } + + public LanProfileConfigOpenApiVo spanningTreeEnable(Boolean spanningTreeEnable) { + this.spanningTreeEnable = spanningTreeEnable; + return this; + } + + /** + * SpanningTree enable status + * @return spanningTreeEnable + */ + @ApiModelProperty(required = true, value = "SpanningTree enable status") + @NotNull + + + public Boolean getSpanningTreeEnable() { + return spanningTreeEnable; + } + + public void setSpanningTreeEnable(Boolean spanningTreeEnable) { + this.spanningTreeEnable = spanningTreeEnable; + } + + public LanProfileConfigOpenApiVo loopbackDetectEnable(Boolean loopbackDetectEnable) { + this.loopbackDetectEnable = loopbackDetectEnable; + return this; + } + + /** + * LoopbackDetect enable status + * @return loopbackDetectEnable + */ + @ApiModelProperty(required = true, value = "LoopbackDetect enable status") + @NotNull + + + public Boolean getLoopbackDetectEnable() { + return loopbackDetectEnable; + } + + public void setLoopbackDetectEnable(Boolean loopbackDetectEnable) { + this.loopbackDetectEnable = loopbackDetectEnable; + } + + public LanProfileConfigOpenApiVo eeeEnable(Boolean eeeEnable) { + this.eeeEnable = eeeEnable; + return this; + } + + /** + * EEE enable status + * @return eeeEnable + */ + @ApiModelProperty(value = "EEE enable status") + + + public Boolean getEeeEnable() { + return eeeEnable; + } + + public void setEeeEnable(Boolean eeeEnable) { + this.eeeEnable = eeeEnable; + } + + public LanProfileConfigOpenApiVo flowControlEnable(Boolean flowControlEnable) { + this.flowControlEnable = flowControlEnable; + return this; + } + + /** + * FlowControl enable status + * @return flowControlEnable + */ + @ApiModelProperty(value = "FlowControl enable status") + + + public Boolean getFlowControlEnable() { + return flowControlEnable; + } + + public void setFlowControlEnable(Boolean flowControlEnable) { + this.flowControlEnable = flowControlEnable; + } + + public LanProfileConfigOpenApiVo loopbackDetectVlanBasedEnable(Boolean loopbackDetectVlanBasedEnable) { + this.loopbackDetectVlanBasedEnable = loopbackDetectVlanBasedEnable; + return this; + } + + /** + * LoopbackDetectVLANBased enable status + * @return loopbackDetectVlanBasedEnable + */ + @ApiModelProperty(value = "LoopbackDetectVLANBased enable status") + + + public Boolean getLoopbackDetectVlanBasedEnable() { + return loopbackDetectVlanBasedEnable; + } + + public void setLoopbackDetectVlanBasedEnable(Boolean loopbackDetectVlanBasedEnable) { + this.loopbackDetectVlanBasedEnable = loopbackDetectVlanBasedEnable; + } + + public LanProfileConfigOpenApiVo dhcpL2RelaySettings(DhcpL2RelayEntity dhcpL2RelaySettings) { + this.dhcpL2RelaySettings = dhcpL2RelaySettings; + return this; + } + + /** + * Get dhcpL2RelaySettings + * @return dhcpL2RelaySettings + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpL2RelayEntity getDhcpL2RelaySettings() { + return dhcpL2RelaySettings; + } + + public void setDhcpL2RelaySettings(DhcpL2RelayEntity dhcpL2RelaySettings) { + this.dhcpL2RelaySettings = dhcpL2RelaySettings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanProfileConfigOpenApiVo lanProfileConfigOpenApiVo = (LanProfileConfigOpenApiVo) o; + return Objects.equals(this.name, lanProfileConfigOpenApiVo.name) && + Objects.equals(this.poe, lanProfileConfigOpenApiVo.poe) && + Objects.equals(this.nativeNetworkId, lanProfileConfigOpenApiVo.nativeNetworkId) && + Objects.equals(this.tagNetworkIds, lanProfileConfigOpenApiVo.tagNetworkIds) && + Objects.equals(this.untagNetworkIds, lanProfileConfigOpenApiVo.untagNetworkIds) && + Objects.equals(this.voiceNetworkId, lanProfileConfigOpenApiVo.voiceNetworkId) && + Objects.equals(this.dot1x, lanProfileConfigOpenApiVo.dot1x) && + Objects.equals(this.portIsolationEnable, lanProfileConfigOpenApiVo.portIsolationEnable) && + Objects.equals(this.lldpMedEnable, lanProfileConfigOpenApiVo.lldpMedEnable) && + Objects.equals(this.bandWidthCtrlType, lanProfileConfigOpenApiVo.bandWidthCtrlType) && + Objects.equals(this.stormCtrl, lanProfileConfigOpenApiVo.stormCtrl) && + Objects.equals(this.bandCtrl, lanProfileConfigOpenApiVo.bandCtrl) && + Objects.equals(this.spanningTreeEnable, lanProfileConfigOpenApiVo.spanningTreeEnable) && + Objects.equals(this.loopbackDetectEnable, lanProfileConfigOpenApiVo.loopbackDetectEnable) && + Objects.equals(this.eeeEnable, lanProfileConfigOpenApiVo.eeeEnable) && + Objects.equals(this.flowControlEnable, lanProfileConfigOpenApiVo.flowControlEnable) && + Objects.equals(this.loopbackDetectVlanBasedEnable, lanProfileConfigOpenApiVo.loopbackDetectVlanBasedEnable) && + Objects.equals(this.dhcpL2RelaySettings, lanProfileConfigOpenApiVo.dhcpL2RelaySettings); + } + + @Override + public int hashCode() { + return Objects.hash(name, poe, nativeNetworkId, tagNetworkIds, untagNetworkIds, voiceNetworkId, dot1x, portIsolationEnable, lldpMedEnable, bandWidthCtrlType, stormCtrl, bandCtrl, spanningTreeEnable, loopbackDetectEnable, eeeEnable, flowControlEnable, loopbackDetectVlanBasedEnable, dhcpL2RelaySettings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanProfileConfigOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" poe: ").append(toIndentedString(poe)).append("\n"); + sb.append(" nativeNetworkId: ").append(toIndentedString(nativeNetworkId)).append("\n"); + sb.append(" tagNetworkIds: ").append(toIndentedString(tagNetworkIds)).append("\n"); + sb.append(" untagNetworkIds: ").append(toIndentedString(untagNetworkIds)).append("\n"); + sb.append(" voiceNetworkId: ").append(toIndentedString(voiceNetworkId)).append("\n"); + sb.append(" dot1x: ").append(toIndentedString(dot1x)).append("\n"); + sb.append(" portIsolationEnable: ").append(toIndentedString(portIsolationEnable)).append("\n"); + sb.append(" lldpMedEnable: ").append(toIndentedString(lldpMedEnable)).append("\n"); + sb.append(" bandWidthCtrlType: ").append(toIndentedString(bandWidthCtrlType)).append("\n"); + sb.append(" stormCtrl: ").append(toIndentedString(stormCtrl)).append("\n"); + sb.append(" bandCtrl: ").append(toIndentedString(bandCtrl)).append("\n"); + sb.append(" spanningTreeEnable: ").append(toIndentedString(spanningTreeEnable)).append("\n"); + sb.append(" loopbackDetectEnable: ").append(toIndentedString(loopbackDetectEnable)).append("\n"); + sb.append(" eeeEnable: ").append(toIndentedString(eeeEnable)).append("\n"); + sb.append(" flowControlEnable: ").append(toIndentedString(flowControlEnable)).append("\n"); + sb.append(" loopbackDetectVlanBasedEnable: ").append(toIndentedString(loopbackDetectVlanBasedEnable)).append("\n"); + sb.append(" dhcpL2RelaySettings: ").append(toIndentedString(dhcpL2RelaySettings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanProfileOpenApiVo.java new file mode 100644 index 0000000..6c0beea --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LanProfileOpenApiVo.java @@ -0,0 +1,660 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LanProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LanProfileOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("flag") + private Integer flag; + + @JsonProperty("name") + private String name; + + @JsonProperty("poe") + private Integer poe; + + @JsonProperty("nativeNetworkId") + private String nativeNetworkId; + + @JsonProperty("tagNetworkIds") + @Valid + private List tagNetworkIds = null; + + @JsonProperty("untagNetworkIds") + @Valid + private List untagNetworkIds = null; + + @JsonProperty("voiceNetworkId") + private String voiceNetworkId; + + @JsonProperty("dot1x") + private Integer dot1x; + + @JsonProperty("portIsolationEnable") + private Boolean portIsolationEnable; + + @JsonProperty("lldpMedEnable") + private Boolean lldpMedEnable; + + @JsonProperty("topoNotifyEnable") + private Boolean topoNotifyEnable; + + @JsonProperty("bandWidthCtrlType") + private Integer bandWidthCtrlType; + + @JsonProperty("stormCtrl") + private StormCtrlEntity stormCtrl; + + @JsonProperty("bandCtrl") + private BandCtrlEntity bandCtrl; + + @JsonProperty("spanningTreeEnable") + private Boolean spanningTreeEnable; + + @JsonProperty("loopbackDetectEnable") + private Boolean loopbackDetectEnable; + + @JsonProperty("eeeEnable") + private Boolean eeeEnable; + + @JsonProperty("flowControlEnable") + private Boolean flowControlEnable; + + @JsonProperty("loopbackDetectVlanBasedEnable") + private Boolean loopbackDetectVlanBasedEnable; + + @JsonProperty("dhcpL2RelaySettings") + private DhcpL2RelayEntity dhcpL2RelaySettings; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("supportESEnable") + private Boolean supportESEnable; + + public LanProfileOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * LAN profile ID + * @return id + */ + @ApiModelProperty(value = "LAN profile ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public LanProfileOpenApiVo flag(Integer flag) { + this.flag = flag; + return this; + } + + /** + * Flag should be a value as follows: 0: default(all,disable,LAN), 1: native(generated by creating LAN network), 2: customize(created by users) + * @return flag + */ + @ApiModelProperty(value = "Flag should be a value as follows: 0: default(all,disable,LAN), 1: native(generated by creating LAN network), 2: customize(created by users)") + + + public Integer getFlag() { + return flag; + } + + public void setFlag(Integer flag) { + this.flag = flag; + } + + public LanProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public LanProfileOpenApiVo poe(Integer poe) { + this.poe = poe; + return this; + } + + /** + * PoE should be a value as follows: 0: on, 1: off, 2: \"do not modify\" + * @return poe + */ + @ApiModelProperty(required = true, value = "PoE should be a value as follows: 0: on, 1: off, 2: \"do not modify\"") + @NotNull + + + public Integer getPoe() { + return poe; + } + + public void setPoe(Integer poe) { + this.poe = poe; + } + + public LanProfileOpenApiVo nativeNetworkId(String nativeNetworkId) { + this.nativeNetworkId = nativeNetworkId; + return this; + } + + /** + * Native network ID, Native Network cannot be selected from Tagged Networks or Untagged Networks. + * @return nativeNetworkId + */ + @ApiModelProperty(value = "Native network ID, Native Network cannot be selected from Tagged Networks or Untagged Networks.") + + + public String getNativeNetworkId() { + return nativeNetworkId; + } + + public void setNativeNetworkId(String nativeNetworkId) { + this.nativeNetworkId = nativeNetworkId; + } + + public LanProfileOpenApiVo tagNetworkIds(List tagNetworkIds) { + this.tagNetworkIds = tagNetworkIds; + return this; + } + + public LanProfileOpenApiVo addTagNetworkIdsItem(String tagNetworkIdsItem) { + if (this.tagNetworkIds == null) { + this.tagNetworkIds = new ArrayList<>(); + } + this.tagNetworkIds.add(tagNetworkIdsItem); + return this; + } + + /** + * Tag network IDs + * @return tagNetworkIds + */ + @ApiModelProperty(value = "Tag network IDs") + + + public List getTagNetworkIds() { + return tagNetworkIds; + } + + public void setTagNetworkIds(List tagNetworkIds) { + this.tagNetworkIds = tagNetworkIds; + } + + public LanProfileOpenApiVo untagNetworkIds(List untagNetworkIds) { + this.untagNetworkIds = untagNetworkIds; + return this; + } + + public LanProfileOpenApiVo addUntagNetworkIdsItem(String untagNetworkIdsItem) { + if (this.untagNetworkIds == null) { + this.untagNetworkIds = new ArrayList<>(); + } + this.untagNetworkIds.add(untagNetworkIdsItem); + return this; + } + + /** + * Untag network IDs + * @return untagNetworkIds + */ + @ApiModelProperty(value = "Untag network IDs") + + + public List getUntagNetworkIds() { + return untagNetworkIds; + } + + public void setUntagNetworkIds(List untagNetworkIds) { + this.untagNetworkIds = untagNetworkIds; + } + + public LanProfileOpenApiVo voiceNetworkId(String voiceNetworkId) { + this.voiceNetworkId = voiceNetworkId; + return this; + } + + /** + * Voice Network ID + * @return voiceNetworkId + */ + @ApiModelProperty(value = "Voice Network ID") + + + public String getVoiceNetworkId() { + return voiceNetworkId; + } + + public void setVoiceNetworkId(String voiceNetworkId) { + this.voiceNetworkId = voiceNetworkId; + } + + public LanProfileOpenApiVo dot1x(Integer dot1x) { + this.dot1x = dot1x; + return this; + } + + /** + * Dot1x should be a value as follows: 0: force unauthorized, 1: force authorized, 2:auto + * @return dot1x + */ + @ApiModelProperty(required = true, value = "Dot1x should be a value as follows: 0: force unauthorized, 1: force authorized, 2:auto") + @NotNull + + + public Integer getDot1x() { + return dot1x; + } + + public void setDot1x(Integer dot1x) { + this.dot1x = dot1x; + } + + public LanProfileOpenApiVo portIsolationEnable(Boolean portIsolationEnable) { + this.portIsolationEnable = portIsolationEnable; + return this; + } + + /** + * Port-isolation enable status + * @return portIsolationEnable + */ + @ApiModelProperty(required = true, value = "Port-isolation enable status") + @NotNull + + + public Boolean getPortIsolationEnable() { + return portIsolationEnable; + } + + public void setPortIsolationEnable(Boolean portIsolationEnable) { + this.portIsolationEnable = portIsolationEnable; + } + + public LanProfileOpenApiVo lldpMedEnable(Boolean lldpMedEnable) { + this.lldpMedEnable = lldpMedEnable; + return this; + } + + /** + * LLDP-MED enable status + * @return lldpMedEnable + */ + @ApiModelProperty(required = true, value = "LLDP-MED enable status") + @NotNull + + + public Boolean getLldpMedEnable() { + return lldpMedEnable; + } + + public void setLldpMedEnable(Boolean lldpMedEnable) { + this.lldpMedEnable = lldpMedEnable; + } + + public LanProfileOpenApiVo topoNotifyEnable(Boolean topoNotifyEnable) { + this.topoNotifyEnable = topoNotifyEnable; + return this; + } + + /** + * TopoNotify enable status + * @return topoNotifyEnable + */ + @ApiModelProperty(value = "TopoNotify enable status") + + + public Boolean getTopoNotifyEnable() { + return topoNotifyEnable; + } + + public void setTopoNotifyEnable(Boolean topoNotifyEnable) { + this.topoNotifyEnable = topoNotifyEnable; + } + + public LanProfileOpenApiVo bandWidthCtrlType(Integer bandWidthCtrlType) { + this.bandWidthCtrlType = bandWidthCtrlType; + return this; + } + + /** + * BandWidthCtrlType should be a value as follows: 0: off, 1: rate limit, 2: storming control + * @return bandWidthCtrlType + */ + @ApiModelProperty(required = true, value = "BandWidthCtrlType should be a value as follows: 0: off, 1: rate limit, 2: storming control") + @NotNull + + + public Integer getBandWidthCtrlType() { + return bandWidthCtrlType; + } + + public void setBandWidthCtrlType(Integer bandWidthCtrlType) { + this.bandWidthCtrlType = bandWidthCtrlType; + } + + public LanProfileOpenApiVo stormCtrl(StormCtrlEntity stormCtrl) { + this.stormCtrl = stormCtrl; + return this; + } + + /** + * Get stormCtrl + * @return stormCtrl + */ + @ApiModelProperty(value = "") + + @Valid + + public StormCtrlEntity getStormCtrl() { + return stormCtrl; + } + + public void setStormCtrl(StormCtrlEntity stormCtrl) { + this.stormCtrl = stormCtrl; + } + + public LanProfileOpenApiVo bandCtrl(BandCtrlEntity bandCtrl) { + this.bandCtrl = bandCtrl; + return this; + } + + /** + * Get bandCtrl + * @return bandCtrl + */ + @ApiModelProperty(value = "") + + @Valid + + public BandCtrlEntity getBandCtrl() { + return bandCtrl; + } + + public void setBandCtrl(BandCtrlEntity bandCtrl) { + this.bandCtrl = bandCtrl; + } + + public LanProfileOpenApiVo spanningTreeEnable(Boolean spanningTreeEnable) { + this.spanningTreeEnable = spanningTreeEnable; + return this; + } + + /** + * SpanningTree enable status + * @return spanningTreeEnable + */ + @ApiModelProperty(required = true, value = "SpanningTree enable status") + @NotNull + + + public Boolean getSpanningTreeEnable() { + return spanningTreeEnable; + } + + public void setSpanningTreeEnable(Boolean spanningTreeEnable) { + this.spanningTreeEnable = spanningTreeEnable; + } + + public LanProfileOpenApiVo loopbackDetectEnable(Boolean loopbackDetectEnable) { + this.loopbackDetectEnable = loopbackDetectEnable; + return this; + } + + /** + * LoopbackDetect enable status + * @return loopbackDetectEnable + */ + @ApiModelProperty(required = true, value = "LoopbackDetect enable status") + @NotNull + + + public Boolean getLoopbackDetectEnable() { + return loopbackDetectEnable; + } + + public void setLoopbackDetectEnable(Boolean loopbackDetectEnable) { + this.loopbackDetectEnable = loopbackDetectEnable; + } + + public LanProfileOpenApiVo eeeEnable(Boolean eeeEnable) { + this.eeeEnable = eeeEnable; + return this; + } + + /** + * EEE enable status + * @return eeeEnable + */ + @ApiModelProperty(value = "EEE enable status") + + + public Boolean getEeeEnable() { + return eeeEnable; + } + + public void setEeeEnable(Boolean eeeEnable) { + this.eeeEnable = eeeEnable; + } + + public LanProfileOpenApiVo flowControlEnable(Boolean flowControlEnable) { + this.flowControlEnable = flowControlEnable; + return this; + } + + /** + * FlowControl enable status + * @return flowControlEnable + */ + @ApiModelProperty(value = "FlowControl enable status") + + + public Boolean getFlowControlEnable() { + return flowControlEnable; + } + + public void setFlowControlEnable(Boolean flowControlEnable) { + this.flowControlEnable = flowControlEnable; + } + + public LanProfileOpenApiVo loopbackDetectVlanBasedEnable(Boolean loopbackDetectVlanBasedEnable) { + this.loopbackDetectVlanBasedEnable = loopbackDetectVlanBasedEnable; + return this; + } + + /** + * LoopbackDetectVLANBased enable status + * @return loopbackDetectVlanBasedEnable + */ + @ApiModelProperty(value = "LoopbackDetectVLANBased enable status") + + + public Boolean getLoopbackDetectVlanBasedEnable() { + return loopbackDetectVlanBasedEnable; + } + + public void setLoopbackDetectVlanBasedEnable(Boolean loopbackDetectVlanBasedEnable) { + this.loopbackDetectVlanBasedEnable = loopbackDetectVlanBasedEnable; + } + + public LanProfileOpenApiVo dhcpL2RelaySettings(DhcpL2RelayEntity dhcpL2RelaySettings) { + this.dhcpL2RelaySettings = dhcpL2RelaySettings; + return this; + } + + /** + * Get dhcpL2RelaySettings + * @return dhcpL2RelaySettings + */ + @ApiModelProperty(value = "") + + @Valid + + public DhcpL2RelayEntity getDhcpL2RelaySettings() { + return dhcpL2RelaySettings; + } + + public void setDhcpL2RelaySettings(DhcpL2RelayEntity dhcpL2RelaySettings) { + this.dhcpL2RelaySettings = dhcpL2RelaySettings; + } + + public LanProfileOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: 0: LAN profile-ALL, 1: LAN profile-Disable, 2: LAN Profile except ALL and Disable + * @return type + */ + @ApiModelProperty(value = "Type should be a value as follows: 0: LAN profile-ALL, 1: LAN profile-Disable, 2: LAN Profile except ALL and Disable") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public LanProfileOpenApiVo supportESEnable(Boolean supportESEnable) { + this.supportESEnable = supportESEnable; + return this; + } + + /** + * Easy managed switch enable status. The default value is false + * @return supportESEnable + */ + @ApiModelProperty(value = "Easy managed switch enable status. The default value is false") + + + public Boolean getSupportESEnable() { + return supportESEnable; + } + + public void setSupportESEnable(Boolean supportESEnable) { + this.supportESEnable = supportESEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LanProfileOpenApiVo lanProfileOpenApiVo = (LanProfileOpenApiVo) o; + return Objects.equals(this.id, lanProfileOpenApiVo.id) && + Objects.equals(this.flag, lanProfileOpenApiVo.flag) && + Objects.equals(this.name, lanProfileOpenApiVo.name) && + Objects.equals(this.poe, lanProfileOpenApiVo.poe) && + Objects.equals(this.nativeNetworkId, lanProfileOpenApiVo.nativeNetworkId) && + Objects.equals(this.tagNetworkIds, lanProfileOpenApiVo.tagNetworkIds) && + Objects.equals(this.untagNetworkIds, lanProfileOpenApiVo.untagNetworkIds) && + Objects.equals(this.voiceNetworkId, lanProfileOpenApiVo.voiceNetworkId) && + Objects.equals(this.dot1x, lanProfileOpenApiVo.dot1x) && + Objects.equals(this.portIsolationEnable, lanProfileOpenApiVo.portIsolationEnable) && + Objects.equals(this.lldpMedEnable, lanProfileOpenApiVo.lldpMedEnable) && + Objects.equals(this.topoNotifyEnable, lanProfileOpenApiVo.topoNotifyEnable) && + Objects.equals(this.bandWidthCtrlType, lanProfileOpenApiVo.bandWidthCtrlType) && + Objects.equals(this.stormCtrl, lanProfileOpenApiVo.stormCtrl) && + Objects.equals(this.bandCtrl, lanProfileOpenApiVo.bandCtrl) && + Objects.equals(this.spanningTreeEnable, lanProfileOpenApiVo.spanningTreeEnable) && + Objects.equals(this.loopbackDetectEnable, lanProfileOpenApiVo.loopbackDetectEnable) && + Objects.equals(this.eeeEnable, lanProfileOpenApiVo.eeeEnable) && + Objects.equals(this.flowControlEnable, lanProfileOpenApiVo.flowControlEnable) && + Objects.equals(this.loopbackDetectVlanBasedEnable, lanProfileOpenApiVo.loopbackDetectVlanBasedEnable) && + Objects.equals(this.dhcpL2RelaySettings, lanProfileOpenApiVo.dhcpL2RelaySettings) && + Objects.equals(this.type, lanProfileOpenApiVo.type) && + Objects.equals(this.supportESEnable, lanProfileOpenApiVo.supportESEnable); + } + + @Override + public int hashCode() { + return Objects.hash(id, flag, name, poe, nativeNetworkId, tagNetworkIds, untagNetworkIds, voiceNetworkId, dot1x, portIsolationEnable, lldpMedEnable, topoNotifyEnable, bandWidthCtrlType, stormCtrl, bandCtrl, spanningTreeEnable, loopbackDetectEnable, eeeEnable, flowControlEnable, loopbackDetectVlanBasedEnable, dhcpL2RelaySettings, type, supportESEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LanProfileOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" flag: ").append(toIndentedString(flag)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" poe: ").append(toIndentedString(poe)).append("\n"); + sb.append(" nativeNetworkId: ").append(toIndentedString(nativeNetworkId)).append("\n"); + sb.append(" tagNetworkIds: ").append(toIndentedString(tagNetworkIds)).append("\n"); + sb.append(" untagNetworkIds: ").append(toIndentedString(untagNetworkIds)).append("\n"); + sb.append(" voiceNetworkId: ").append(toIndentedString(voiceNetworkId)).append("\n"); + sb.append(" dot1x: ").append(toIndentedString(dot1x)).append("\n"); + sb.append(" portIsolationEnable: ").append(toIndentedString(portIsolationEnable)).append("\n"); + sb.append(" lldpMedEnable: ").append(toIndentedString(lldpMedEnable)).append("\n"); + sb.append(" topoNotifyEnable: ").append(toIndentedString(topoNotifyEnable)).append("\n"); + sb.append(" bandWidthCtrlType: ").append(toIndentedString(bandWidthCtrlType)).append("\n"); + sb.append(" stormCtrl: ").append(toIndentedString(stormCtrl)).append("\n"); + sb.append(" bandCtrl: ").append(toIndentedString(bandCtrl)).append("\n"); + sb.append(" spanningTreeEnable: ").append(toIndentedString(spanningTreeEnable)).append("\n"); + sb.append(" loopbackDetectEnable: ").append(toIndentedString(loopbackDetectEnable)).append("\n"); + sb.append(" eeeEnable: ").append(toIndentedString(eeeEnable)).append("\n"); + sb.append(" flowControlEnable: ").append(toIndentedString(flowControlEnable)).append("\n"); + sb.append(" loopbackDetectVlanBasedEnable: ").append(toIndentedString(loopbackDetectVlanBasedEnable)).append("\n"); + sb.append(" dhcpL2RelaySettings: ").append(toIndentedString(dhcpL2RelaySettings)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" supportESEnable: ").append(toIndentedString(supportESEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapProfileOpenApiVo.java new file mode 100644 index 0000000..2437204 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapProfileOpenApiVo.java @@ -0,0 +1,376 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * LdapProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LdapProfileOpenApiVo { + @JsonProperty("ldapProfileId") + private String ldapProfileId; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("bindType") + private Integer bindType; + + @JsonProperty("server") + private String server; + + @JsonProperty("dstPort") + private Integer dstPort; + + @JsonProperty("useSsl") + private Boolean useSsl; + + @JsonProperty("cn") + private String cn; + + @JsonProperty("baseDn") + private String baseDn; + + @JsonProperty("groupDn") + private String groupDn; + + @JsonProperty("filter") + private String filter; + + @JsonProperty("regularDn") + private String regularDn; + + @JsonProperty("regularPassword") + private String regularPassword; + + public LdapProfileOpenApiVo ldapProfileId(String ldapProfileId) { + this.ldapProfileId = ldapProfileId; + return this; + } + + /** + * LDAP profile ID + * @return ldapProfileId + */ + @ApiModelProperty(value = "LDAP profile ID") + + + public String getLdapProfileId() { + return ldapProfileId; + } + + public void setLdapProfileId(String ldapProfileId) { + this.ldapProfileId = ldapProfileId; + } + + public LdapProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * LDAP profile name + * @return name + */ + @ApiModelProperty(value = "LDAP profile name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public LdapProfileOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * LDAP profile enable status + * @return status + */ + @ApiModelProperty(value = "LDAP profile enable status") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public LdapProfileOpenApiVo bindType(Integer bindType) { + this.bindType = bindType; + return this; + } + + /** + * Type of LDAP bind, 0: Simple Mode;1: Anonymous Mode; 2: Regular Mode + * @return bindType + */ + @ApiModelProperty(value = "Type of LDAP bind, 0: Simple Mode;1: Anonymous Mode; 2: Regular Mode") + + + public Integer getBindType() { + return bindType; + } + + public void setBindType(Integer bindType) { + this.bindType = bindType; + } + + public LdapProfileOpenApiVo server(String server) { + this.server = server; + return this; + } + + /** + * LDAP server address + * @return server + */ + @ApiModelProperty(value = "LDAP server address") + + + public String getServer() { + return server; + } + + public void setServer(String server) { + this.server = server; + } + + public LdapProfileOpenApiVo dstPort(Integer dstPort) { + this.dstPort = dstPort; + return this; + } + + /** + * LDAP server listening port. When SSL is not enabled, it is generally 389, and when SSL is enabled, it is generally 636 + * @return dstPort + */ + @ApiModelProperty(value = "LDAP server listening port. When SSL is not enabled, it is generally 389, and when SSL is enabled, it is generally 636") + + + public Integer getDstPort() { + return dstPort; + } + + public void setDstPort(Integer dstPort) { + this.dstPort = dstPort; + } + + public LdapProfileOpenApiVo useSsl(Boolean useSsl) { + this.useSsl = useSsl; + return this; + } + + /** + * LDAP server enable ssl status + * @return useSsl + */ + @ApiModelProperty(value = "LDAP server enable ssl status") + + + public Boolean getUseSsl() { + return useSsl; + } + + public void setUseSsl(Boolean useSsl) { + this.useSsl = useSsl; + } + + public LdapProfileOpenApiVo cn(String cn) { + this.cn = cn; + return this; + } + + /** + * LDAP server common name + * @return cn + */ + @ApiModelProperty(value = "LDAP server common name") + + + public String getCn() { + return cn; + } + + public void setCn(String cn) { + this.cn = cn; + } + + public LdapProfileOpenApiVo baseDn(String baseDn) { + this.baseDn = baseDn; + return this; + } + + /** + * LDAP server base distinguish name + * @return baseDn + */ + @ApiModelProperty(value = "LDAP server base distinguish name") + + + public String getBaseDn() { + return baseDn; + } + + public void setBaseDn(String baseDn) { + this.baseDn = baseDn; + } + + public LdapProfileOpenApiVo groupDn(String groupDn) { + this.groupDn = groupDn; + return this; + } + + /** + * LDAP server group distinguish name, optional when parameter [type] is 1 or 2 + * @return groupDn + */ + @ApiModelProperty(value = "LDAP server group distinguish name, optional when parameter [type] is 1 or 2") + + + public String getGroupDn() { + return groupDn; + } + + public void setGroupDn(String groupDn) { + this.groupDn = groupDn; + } + + public LdapProfileOpenApiVo filter(String filter) { + this.filter = filter; + return this; + } + + /** + * Additional filter, optional when parameter [type] is 1 or 2 + * @return filter + */ + @ApiModelProperty(value = "Additional filter, optional when parameter [type] is 1 or 2") + + + public String getFilter() { + return filter; + } + + public void setFilter(String filter) { + this.filter = filter; + } + + public LdapProfileOpenApiVo regularDn(String regularDn) { + this.regularDn = regularDn; + return this; + } + + /** + * Regular Dn, valid when parameter [type] is 2 + * @return regularDn + */ + @ApiModelProperty(value = "Regular Dn, valid when parameter [type] is 2") + + + public String getRegularDn() { + return regularDn; + } + + public void setRegularDn(String regularDn) { + this.regularDn = regularDn; + } + + public LdapProfileOpenApiVo regularPassword(String regularPassword) { + this.regularPassword = regularPassword; + return this; + } + + /** + * Regular Password, valid when parameter [type] is 2 + * @return regularPassword + */ + @ApiModelProperty(value = "Regular Password, valid when parameter [type] is 2") + + + public String getRegularPassword() { + return regularPassword; + } + + public void setRegularPassword(String regularPassword) { + this.regularPassword = regularPassword; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LdapProfileOpenApiVo ldapProfileOpenApiVo = (LdapProfileOpenApiVo) o; + return Objects.equals(this.ldapProfileId, ldapProfileOpenApiVo.ldapProfileId) && + Objects.equals(this.name, ldapProfileOpenApiVo.name) && + Objects.equals(this.status, ldapProfileOpenApiVo.status) && + Objects.equals(this.bindType, ldapProfileOpenApiVo.bindType) && + Objects.equals(this.server, ldapProfileOpenApiVo.server) && + Objects.equals(this.dstPort, ldapProfileOpenApiVo.dstPort) && + Objects.equals(this.useSsl, ldapProfileOpenApiVo.useSsl) && + Objects.equals(this.cn, ldapProfileOpenApiVo.cn) && + Objects.equals(this.baseDn, ldapProfileOpenApiVo.baseDn) && + Objects.equals(this.groupDn, ldapProfileOpenApiVo.groupDn) && + Objects.equals(this.filter, ldapProfileOpenApiVo.filter) && + Objects.equals(this.regularDn, ldapProfileOpenApiVo.regularDn) && + Objects.equals(this.regularPassword, ldapProfileOpenApiVo.regularPassword); + } + + @Override + public int hashCode() { + return Objects.hash(ldapProfileId, name, status, bindType, server, dstPort, useSsl, cn, baseDn, groupDn, filter, regularDn, regularPassword); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LdapProfileOpenApiVo {\n"); + + sb.append(" ldapProfileId: ").append(toIndentedString(ldapProfileId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" bindType: ").append(toIndentedString(bindType)).append("\n"); + sb.append(" server: ").append(toIndentedString(server)).append("\n"); + sb.append(" dstPort: ").append(toIndentedString(dstPort)).append("\n"); + sb.append(" useSsl: ").append(toIndentedString(useSsl)).append("\n"); + sb.append(" cn: ").append(toIndentedString(cn)).append("\n"); + sb.append(" baseDn: ").append(toIndentedString(baseDn)).append("\n"); + sb.append(" groupDn: ").append(toIndentedString(groupDn)).append("\n"); + sb.append(" filter: ").append(toIndentedString(filter)).append("\n"); + sb.append(" regularDn: ").append(toIndentedString(regularDn)).append("\n"); + sb.append(" regularPassword: ").append(toIndentedString(regularPassword)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapSetting.java new file mode 100644 index 0000000..4ad79c8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapSetting.java @@ -0,0 +1,157 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Ldap Portal Setting. + */ +@ApiModel(description = "Ldap Portal Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LdapSetting { + @JsonProperty("ldapProfileId") + private String ldapProfileId; + + @JsonProperty("portalCustom") + private Integer portalCustom; + + @JsonProperty("externalUrlScheme") + private String externalUrlScheme; + + @JsonProperty("externalUrl") + private String externalUrl; + + public LdapSetting ldapProfileId(String ldapProfileId) { + this.ldapProfileId = ldapProfileId; + return this; + } + + /** + * LDAP profile ID. Ldap profile can be created using 'Create a new LDAP profile' ('Create a new LDAP profile template') interface, and LDAP profile ID can be obtained from 'Get LDAP profile list' ('Get LDAP profile template list') interface + * @return ldapProfileId + */ + @ApiModelProperty(required = true, value = "LDAP profile ID. Ldap profile can be created using 'Create a new LDAP profile' ('Create a new LDAP profile template') interface, and LDAP profile ID can be obtained from 'Get LDAP profile list' ('Get LDAP profile template list') interface") + @NotNull + + + public String getLdapProfileId() { + return ldapProfileId; + } + + public void setLdapProfileId(String ldapProfileId) { + this.ldapProfileId = ldapProfileId; + } + + public LdapSetting portalCustom(Integer portalCustom) { + this.portalCustom = portalCustom; + return this; + } + + /** + * Portal customization, should be a value as follows: 1: use local; 2: use external + * @return portalCustom + */ + @ApiModelProperty(required = true, value = "Portal customization, should be a value as follows: 1: use local; 2: use external") + @NotNull + + + public Integer getPortalCustom() { + return portalCustom; + } + + public void setPortalCustom(Integer portalCustom) { + this.portalCustom = portalCustom; + } + + public LdapSetting externalUrlScheme(String externalUrlScheme) { + this.externalUrlScheme = externalUrlScheme; + return this; + } + + /** + * External URL scheme, should be a value as follows: http ; https. Required when portalCustom is 2. + * @return externalUrlScheme + */ + @ApiModelProperty(value = "External URL scheme, should be a value as follows: http ; https. Required when portalCustom is 2.") + +@Pattern(regexp="http|https") + public String getExternalUrlScheme() { + return externalUrlScheme; + } + + public void setExternalUrlScheme(String externalUrlScheme) { + this.externalUrlScheme = externalUrlScheme; + } + + public LdapSetting externalUrl(String externalUrl) { + this.externalUrl = externalUrl; + return this; + } + + /** + * External URL. Required when portalCustom is 2. + * @return externalUrl + */ + @ApiModelProperty(value = "External URL. Required when portalCustom is 2.") + +@Pattern(regexp="^(([-a-zA-Z0-9@:%._+~#=]{2,256}\\.[a-z]{2,63})|(((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.)){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))((:([1-9]|[1-9]\\d|[1-9]\\d{2}|[1-9]\\d{3}|[1-5]\\d{4}|6[0-4]\\d{3}|65[0-4]\\d{2}|655[0-2]\\d|6553[0-5]))?)(/([-a-zA-Z0-9@:%_+.~#?&//=]*))?$") + public String getExternalUrl() { + return externalUrl; + } + + public void setExternalUrl(String externalUrl) { + this.externalUrl = externalUrl; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LdapSetting ldapSetting = (LdapSetting) o; + return Objects.equals(this.ldapProfileId, ldapSetting.ldapProfileId) && + Objects.equals(this.portalCustom, ldapSetting.portalCustom) && + Objects.equals(this.externalUrlScheme, ldapSetting.externalUrlScheme) && + Objects.equals(this.externalUrl, ldapSetting.externalUrl); + } + + @Override + public int hashCode() { + return Objects.hash(ldapProfileId, portalCustom, externalUrlScheme, externalUrl); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LdapSetting {\n"); + + sb.append(" ldapProfileId: ").append(toIndentedString(ldapProfileId)).append("\n"); + sb.append(" portalCustom: ").append(toIndentedString(portalCustom)).append("\n"); + sb.append(" externalUrlScheme: ").append(toIndentedString(externalUrlScheme)).append("\n"); + sb.append(" externalUrl: ").append(toIndentedString(externalUrl)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapSettingOpenApiVo.java new file mode 100644 index 0000000..b981b3a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LdapSettingOpenApiVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * It is required when parameter [authType] is 2. + */ +@ApiModel(description = "It is required when parameter [authType] is 2.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LdapSettingOpenApiVo { + @JsonProperty("LDAPProfile") + private String ldAPProfile; + + @JsonProperty("defaultGroup") + private String defaultGroup; + + public LdapSettingOpenApiVo ldAPProfile(String ldAPProfile) { + this.ldAPProfile = ldAPProfile; + return this; + } + + /** + * LDAP profile ID. LDAP profile can be created using 'Create a new LDAP profile' interface, and LDAP profile ID can be obtained from 'Get LDAP profile list' interface. + * @return ldAPProfile + */ + @ApiModelProperty(required = true, value = "LDAP profile ID. LDAP profile can be created using 'Create a new LDAP profile' interface, and LDAP profile ID can be obtained from 'Get LDAP profile list' interface.") + @NotNull + + + public String getLdAPProfile() { + return ldAPProfile; + } + + public void setLdAPProfile(String ldAPProfile) { + this.ldAPProfile = ldAPProfile; + } + + public LdapSettingOpenApiVo defaultGroup(String defaultGroup) { + this.defaultGroup = defaultGroup; + return this; + } + + /** + * Default user group ID for the user on the LDAP server. User group can be created using 'Create SSL VPN user group' interface, and user group ID can be obtained from 'Get user group list for SSL VPN server' interface. + * @return defaultGroup + */ + @ApiModelProperty(required = true, value = "Default user group ID for the user on the LDAP server. User group can be created using 'Create SSL VPN user group' interface, and user group ID can be obtained from 'Get user group list for SSL VPN server' interface.") + @NotNull + + + public String getDefaultGroup() { + return defaultGroup; + } + + public void setDefaultGroup(String defaultGroup) { + this.defaultGroup = defaultGroup; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LdapSettingOpenApiVo ldapSettingOpenApiVo = (LdapSettingOpenApiVo) o; + return Objects.equals(this.ldAPProfile, ldapSettingOpenApiVo.ldAPProfile) && + Objects.equals(this.defaultGroup, ldapSettingOpenApiVo.defaultGroup); + } + + @Override + public int hashCode() { + return Objects.hash(ldAPProfile, defaultGroup); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LdapSettingOpenApiVo {\n"); + + sb.append(" ldAPProfile: ").append(toIndentedString(ldAPProfile)).append("\n"); + sb.append(" defaultGroup: ").append(toIndentedString(defaultGroup)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LocationAndIspInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LocationAndIspInfoOpenApiVo.java new file mode 100644 index 0000000..9d8c210 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LocationAndIspInfoOpenApiVo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LocationAndIspInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LocationAndIspInfoOpenApiVo { + @JsonProperty("locationAndIsp") + @Valid + private List locationAndIsp = null; + + public LocationAndIspInfoOpenApiVo locationAndIsp(List locationAndIsp) { + this.locationAndIsp = locationAndIsp; + return this; + } + + public LocationAndIspInfoOpenApiVo addLocationAndIspItem(LocationOpenApiVo locationAndIspItem) { + if (this.locationAndIsp == null) { + this.locationAndIsp = new ArrayList<>(); + } + this.locationAndIsp.add(locationAndIspItem); + return this; + } + + /** + * Location and ISP info, including index and name. + * @return locationAndIsp + */ + @ApiModelProperty(value = "Location and ISP info, including index and name.") + + @Valid + + public List getLocationAndIsp() { + return locationAndIsp; + } + + public void setLocationAndIsp(List locationAndIsp) { + this.locationAndIsp = locationAndIsp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LocationAndIspInfoOpenApiVo locationAndIspInfoOpenApiVo = (LocationAndIspInfoOpenApiVo) o; + return Objects.equals(this.locationAndIsp, locationAndIspInfoOpenApiVo.locationAndIsp); + } + + @Override + public int hashCode() { + return Objects.hash(locationAndIsp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LocationAndIspInfoOpenApiVo {\n"); + + sb.append(" locationAndIsp: ").append(toIndentedString(locationAndIsp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LocationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LocationOpenApiVo.java new file mode 100644 index 0000000..ed68b8e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LocationOpenApiVo.java @@ -0,0 +1,144 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Location and ISP info, including index and name. + */ +@ApiModel(description = "Location and ISP info, including index and name.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LocationOpenApiVo { + @JsonProperty("index") + private Integer index; + + @JsonProperty("name") + private String name; + + @JsonProperty("ispInfo") + @Valid + private List ispInfo = null; + + public LocationOpenApiVo index(Integer index) { + this.index = index; + return this; + } + + /** + * Location index + * @return index + */ + @ApiModelProperty(required = true, value = "Location index") + @NotNull + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public LocationOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Location name + * @return name + */ + @ApiModelProperty(required = true, value = "Location name") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public LocationOpenApiVo ispInfo(List ispInfo) { + this.ispInfo = ispInfo; + return this; + } + + public LocationOpenApiVo addIspInfoItem(IspOpenApiVo ispInfoItem) { + if (this.ispInfo == null) { + this.ispInfo = new ArrayList<>(); + } + this.ispInfo.add(ispInfoItem); + return this; + } + + /** + * ISP info in the location, including index and name + * @return ispInfo + */ + @ApiModelProperty(value = "ISP info in the location, including index and name") + + @Valid + + public List getIspInfo() { + return ispInfo; + } + + public void setIspInfo(List ispInfo) { + this.ispInfo = ispInfo; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LocationOpenApiVo locationOpenApiVo = (LocationOpenApiVo) o; + return Objects.equals(this.index, locationOpenApiVo.index) && + Objects.equals(this.name, locationOpenApiVo.name) && + Objects.equals(this.ispInfo, locationOpenApiVo.ispInfo); + } + + @Override + public int hashCode() { + return Objects.hash(index, name, ispInfo); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LocationOpenApiVo {\n"); + + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ispInfo: ").append(toIndentedString(ispInfo)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LockSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LockSettingOpenApiVo.java new file mode 100644 index 0000000..8186993 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LockSettingOpenApiVo.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * IP lock config. It is required when parameter [status] is true. + */ +@ApiModel(description = "IP lock config. It is required when parameter [status] is true.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LockSettingOpenApiVo { + @JsonProperty("status") + private Boolean status; + + @JsonProperty("times") + private Integer times; + + @JsonProperty("duration") + private Integer duration; + + public LockSettingOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the SSL VPN server name lock or IP lock. + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the SSL VPN server name lock or IP lock.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public LockSettingOpenApiVo times(Integer times) { + this.times = times; + return this; + } + + /** + * The number of login failures that trigger the lock. It is required when parameter [status] is true, and it should be within the range of 1–10 + * @return times + */ + @ApiModelProperty(value = "The number of login failures that trigger the lock. It is required when parameter [status] is true, and it should be within the range of 1–10") + + + public Integer getTimes() { + return times; + } + + public void setTimes(Integer times) { + this.times = times; + } + + public LockSettingOpenApiVo duration(Integer duration) { + this.duration = duration; + return this; + } + + /** + * Lock duration should be within the range of 1–1080(min). + * @return duration + */ + @ApiModelProperty(value = "Lock duration should be within the range of 1–1080(min).") + + + public Integer getDuration() { + return duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LockSettingOpenApiVo lockSettingOpenApiVo = (LockSettingOpenApiVo) o; + return Objects.equals(this.status, lockSettingOpenApiVo.status) && + Objects.equals(this.times, lockSettingOpenApiVo.times) && + Objects.equals(this.duration, lockSettingOpenApiVo.duration); + } + + @Override + public int hashCode() { + return Objects.hash(status, times, duration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LockSettingOpenApiVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" times: ").append(toIndentedString(times)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanPortSettingConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanPortSettingConfigOpenApiVo.java new file mode 100644 index 0000000..167c283 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanPortSettingConfigOpenApiVo.java @@ -0,0 +1,270 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LteWanPortSettingConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LteWanPortSettingConfigOpenApiVo { + @JsonProperty("portId") + private String portId; + + @JsonProperty("portDescription") + private String portDescription; + + @JsonProperty("mobileData") + private Boolean mobileData; + + @JsonProperty("dataRoaming") + private Boolean dataRoaming; + + @JsonProperty("networkMode") + private Integer networkMode; + + @JsonProperty("bandMode") + private Integer bandMode; + + @JsonProperty("bands") + @Valid + private List bands = null; + + @JsonProperty("dialupSetting") + private DialupSettingOpenApiVo dialupSetting; + + public LteWanPortSettingConfigOpenApiVo portId(String portId) { + this.portId = portId; + return this; + } + + /** + * Port ID + * @return portId + */ + @ApiModelProperty(required = true, value = "Port ID") + @NotNull + + + public String getPortId() { + return portId; + } + + public void setPortId(String portId) { + this.portId = portId; + } + + public LteWanPortSettingConfigOpenApiVo portDescription(String portDescription) { + this.portDescription = portDescription; + return this; + } + + /** + * Port description should contain 1 to 32 characters. + * @return portDescription + */ + @ApiModelProperty(value = "Port description should contain 1 to 32 characters.") + + + public String getPortDescription() { + return portDescription; + } + + public void setPortDescription(String portDescription) { + this.portDescription = portDescription; + } + + public LteWanPortSettingConfigOpenApiVo mobileData(Boolean mobileData) { + this.mobileData = mobileData; + return this; + } + + /** + * mobile data + * @return mobileData + */ + @ApiModelProperty(required = true, value = "mobile data") + @NotNull + + + public Boolean getMobileData() { + return mobileData; + } + + public void setMobileData(Boolean mobileData) { + this.mobileData = mobileData; + } + + public LteWanPortSettingConfigOpenApiVo dataRoaming(Boolean dataRoaming) { + this.dataRoaming = dataRoaming; + return this; + } + + /** + * data roaming + * @return dataRoaming + */ + @ApiModelProperty(required = true, value = "data roaming") + @NotNull + + + public Boolean getDataRoaming() { + return dataRoaming; + } + + public void setDataRoaming(Boolean dataRoaming) { + this.dataRoaming = dataRoaming; + } + + public LteWanPortSettingConfigOpenApiVo networkMode(Integer networkMode) { + this.networkMode = networkMode; + return this; + } + + /** + * networkMode: 0:3G Only, 1:4G Only, 2:4G Preferred + * @return networkMode + */ + @ApiModelProperty(required = true, value = "networkMode: 0:3G Only, 1:4G Only, 2:4G Preferred") + @NotNull + + + public Integer getNetworkMode() { + return networkMode; + } + + public void setNetworkMode(Integer networkMode) { + this.networkMode = networkMode; + } + + public LteWanPortSettingConfigOpenApiVo bandMode(Integer bandMode) { + this.bandMode = bandMode; + return this; + } + + /** + * bandMode: 0:auto, 1:manual, only for networkMode 4g Only and 4G Preferred + * @return bandMode + */ + @ApiModelProperty(value = "bandMode: 0:auto, 1:manual, only for networkMode 4g Only and 4G Preferred") + + + public Integer getBandMode() { + return bandMode; + } + + public void setBandMode(Integer bandMode) { + this.bandMode = bandMode; + } + + public LteWanPortSettingConfigOpenApiVo bands(List bands) { + this.bands = bands; + return this; + } + + public LteWanPortSettingConfigOpenApiVo addBandsItem(String bandsItem) { + if (this.bands == null) { + this.bands = new ArrayList<>(); + } + this.bands.add(bandsItem); + return this; + } + + /** + * Only for band mode manual + * @return bands + */ + @ApiModelProperty(value = "Only for band mode manual") + + + public List getBands() { + return bands; + } + + public void setBands(List bands) { + this.bands = bands; + } + + public LteWanPortSettingConfigOpenApiVo dialupSetting(DialupSettingOpenApiVo dialupSetting) { + this.dialupSetting = dialupSetting; + return this; + } + + /** + * Get dialupSetting + * @return dialupSetting + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public DialupSettingOpenApiVo getDialupSetting() { + return dialupSetting; + } + + public void setDialupSetting(DialupSettingOpenApiVo dialupSetting) { + this.dialupSetting = dialupSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LteWanPortSettingConfigOpenApiVo lteWanPortSettingConfigOpenApiVo = (LteWanPortSettingConfigOpenApiVo) o; + return Objects.equals(this.portId, lteWanPortSettingConfigOpenApiVo.portId) && + Objects.equals(this.portDescription, lteWanPortSettingConfigOpenApiVo.portDescription) && + Objects.equals(this.mobileData, lteWanPortSettingConfigOpenApiVo.mobileData) && + Objects.equals(this.dataRoaming, lteWanPortSettingConfigOpenApiVo.dataRoaming) && + Objects.equals(this.networkMode, lteWanPortSettingConfigOpenApiVo.networkMode) && + Objects.equals(this.bandMode, lteWanPortSettingConfigOpenApiVo.bandMode) && + Objects.equals(this.bands, lteWanPortSettingConfigOpenApiVo.bands) && + Objects.equals(this.dialupSetting, lteWanPortSettingConfigOpenApiVo.dialupSetting); + } + + @Override + public int hashCode() { + return Objects.hash(portId, portDescription, mobileData, dataRoaming, networkMode, bandMode, bands, dialupSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LteWanPortSettingConfigOpenApiVo {\n"); + + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append(" portDescription: ").append(toIndentedString(portDescription)).append("\n"); + sb.append(" mobileData: ").append(toIndentedString(mobileData)).append("\n"); + sb.append(" dataRoaming: ").append(toIndentedString(dataRoaming)).append("\n"); + sb.append(" networkMode: ").append(toIndentedString(networkMode)).append("\n"); + sb.append(" bandMode: ").append(toIndentedString(bandMode)).append("\n"); + sb.append(" bands: ").append(toIndentedString(bands)).append("\n"); + sb.append(" dialupSetting: ").append(toIndentedString(dialupSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanPortSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanPortSettingOpenApiVo.java new file mode 100644 index 0000000..0e6a837 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanPortSettingOpenApiVo.java @@ -0,0 +1,356 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LTE WAN ports config + */ +@ApiModel(description = "LTE WAN ports config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LteWanPortSettingOpenApiVo { + @JsonProperty("portId") + private String portId; + + @JsonProperty("portDescription") + private String portDescription; + + @JsonProperty("portName") + private String portName; + + @JsonProperty("cardStatus") + private Integer cardStatus; + + @JsonProperty("mobileData") + private Boolean mobileData; + + @JsonProperty("dataRoaming") + private Boolean dataRoaming; + + @JsonProperty("networkMode") + private Integer networkMode; + + @JsonProperty("bandMode") + private Integer bandMode; + + @JsonProperty("bands") + @Valid + private List bands = null; + + @JsonProperty("dialupSetting") + private DialupSettingOpenApiVo dialupSetting; + + @JsonProperty("supportNetworkMode") + @Valid + private List supportNetworkMode = null; + + public LteWanPortSettingOpenApiVo portId(String portId) { + this.portId = portId; + return this; + } + + /** + * Port ID + * @return portId + */ + @ApiModelProperty(required = true, value = "Port ID") + @NotNull + + + public String getPortId() { + return portId; + } + + public void setPortId(String portId) { + this.portId = portId; + } + + public LteWanPortSettingOpenApiVo portDescription(String portDescription) { + this.portDescription = portDescription; + return this; + } + + /** + * Port description + * @return portDescription + */ + @ApiModelProperty(value = "Port description") + + + public String getPortDescription() { + return portDescription; + } + + public void setPortDescription(String portDescription) { + this.portDescription = portDescription; + } + + public LteWanPortSettingOpenApiVo portName(String portName) { + this.portName = portName; + return this; + } + + /** + * Port name + * @return portName + */ + @ApiModelProperty(value = "Port name") + + + public String getPortName() { + return portName; + } + + public void setPortName(String portName) { + this.portName = portName; + } + + public LteWanPortSettingOpenApiVo cardStatus(Integer cardStatus) { + this.cardStatus = cardStatus; + return this; + } + + /** + * cardStatus: 0:no_sim, 1:unknown, 2:pin_lock, 3:pin_verified, 4:ready, 5:puk_lock, 6:blocked + * @return cardStatus + */ + @ApiModelProperty(value = "cardStatus: 0:no_sim, 1:unknown, 2:pin_lock, 3:pin_verified, 4:ready, 5:puk_lock, 6:blocked") + + + public Integer getCardStatus() { + return cardStatus; + } + + public void setCardStatus(Integer cardStatus) { + this.cardStatus = cardStatus; + } + + public LteWanPortSettingOpenApiVo mobileData(Boolean mobileData) { + this.mobileData = mobileData; + return this; + } + + /** + * mobile data + * @return mobileData + */ + @ApiModelProperty(required = true, value = "mobile data") + @NotNull + + + public Boolean getMobileData() { + return mobileData; + } + + public void setMobileData(Boolean mobileData) { + this.mobileData = mobileData; + } + + public LteWanPortSettingOpenApiVo dataRoaming(Boolean dataRoaming) { + this.dataRoaming = dataRoaming; + return this; + } + + /** + * data roaming + * @return dataRoaming + */ + @ApiModelProperty(required = true, value = "data roaming") + @NotNull + + + public Boolean getDataRoaming() { + return dataRoaming; + } + + public void setDataRoaming(Boolean dataRoaming) { + this.dataRoaming = dataRoaming; + } + + public LteWanPortSettingOpenApiVo networkMode(Integer networkMode) { + this.networkMode = networkMode; + return this; + } + + /** + * networkMode: 0:3G Only, 1:4G Only, 2:4G Preferred + * @return networkMode + */ + @ApiModelProperty(required = true, value = "networkMode: 0:3G Only, 1:4G Only, 2:4G Preferred") + @NotNull + + + public Integer getNetworkMode() { + return networkMode; + } + + public void setNetworkMode(Integer networkMode) { + this.networkMode = networkMode; + } + + public LteWanPortSettingOpenApiVo bandMode(Integer bandMode) { + this.bandMode = bandMode; + return this; + } + + /** + * bandMode: 0:auto, 1:manual, only for networkMode 4g Only and 4G Preferred + * @return bandMode + */ + @ApiModelProperty(value = "bandMode: 0:auto, 1:manual, only for networkMode 4g Only and 4G Preferred") + + + public Integer getBandMode() { + return bandMode; + } + + public void setBandMode(Integer bandMode) { + this.bandMode = bandMode; + } + + public LteWanPortSettingOpenApiVo bands(List bands) { + this.bands = bands; + return this; + } + + public LteWanPortSettingOpenApiVo addBandsItem(String bandsItem) { + if (this.bands == null) { + this.bands = new ArrayList<>(); + } + this.bands.add(bandsItem); + return this; + } + + /** + * Only for band mode manual + * @return bands + */ + @ApiModelProperty(value = "Only for band mode manual") + + + public List getBands() { + return bands; + } + + public void setBands(List bands) { + this.bands = bands; + } + + public LteWanPortSettingOpenApiVo dialupSetting(DialupSettingOpenApiVo dialupSetting) { + this.dialupSetting = dialupSetting; + return this; + } + + /** + * Get dialupSetting + * @return dialupSetting + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public DialupSettingOpenApiVo getDialupSetting() { + return dialupSetting; + } + + public void setDialupSetting(DialupSettingOpenApiVo dialupSetting) { + this.dialupSetting = dialupSetting; + } + + public LteWanPortSettingOpenApiVo supportNetworkMode(List supportNetworkMode) { + this.supportNetworkMode = supportNetworkMode; + return this; + } + + public LteWanPortSettingOpenApiVo addSupportNetworkModeItem(Integer supportNetworkModeItem) { + if (this.supportNetworkMode == null) { + this.supportNetworkMode = new ArrayList<>(); + } + this.supportNetworkMode.add(supportNetworkModeItem); + return this; + } + + /** + * The network mode that the device can select. + * @return supportNetworkMode + */ + @ApiModelProperty(value = "The network mode that the device can select.") + + + public List getSupportNetworkMode() { + return supportNetworkMode; + } + + public void setSupportNetworkMode(List supportNetworkMode) { + this.supportNetworkMode = supportNetworkMode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LteWanPortSettingOpenApiVo lteWanPortSettingOpenApiVo = (LteWanPortSettingOpenApiVo) o; + return Objects.equals(this.portId, lteWanPortSettingOpenApiVo.portId) && + Objects.equals(this.portDescription, lteWanPortSettingOpenApiVo.portDescription) && + Objects.equals(this.portName, lteWanPortSettingOpenApiVo.portName) && + Objects.equals(this.cardStatus, lteWanPortSettingOpenApiVo.cardStatus) && + Objects.equals(this.mobileData, lteWanPortSettingOpenApiVo.mobileData) && + Objects.equals(this.dataRoaming, lteWanPortSettingOpenApiVo.dataRoaming) && + Objects.equals(this.networkMode, lteWanPortSettingOpenApiVo.networkMode) && + Objects.equals(this.bandMode, lteWanPortSettingOpenApiVo.bandMode) && + Objects.equals(this.bands, lteWanPortSettingOpenApiVo.bands) && + Objects.equals(this.dialupSetting, lteWanPortSettingOpenApiVo.dialupSetting) && + Objects.equals(this.supportNetworkMode, lteWanPortSettingOpenApiVo.supportNetworkMode); + } + + @Override + public int hashCode() { + return Objects.hash(portId, portDescription, portName, cardStatus, mobileData, dataRoaming, networkMode, bandMode, bands, dialupSetting, supportNetworkMode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LteWanPortSettingOpenApiVo {\n"); + + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append(" portDescription: ").append(toIndentedString(portDescription)).append("\n"); + sb.append(" portName: ").append(toIndentedString(portName)).append("\n"); + sb.append(" cardStatus: ").append(toIndentedString(cardStatus)).append("\n"); + sb.append(" mobileData: ").append(toIndentedString(mobileData)).append("\n"); + sb.append(" dataRoaming: ").append(toIndentedString(dataRoaming)).append("\n"); + sb.append(" networkMode: ").append(toIndentedString(networkMode)).append("\n"); + sb.append(" bandMode: ").append(toIndentedString(bandMode)).append("\n"); + sb.append(" bands: ").append(toIndentedString(bands)).append("\n"); + sb.append(" dialupSetting: ").append(toIndentedString(dialupSetting)).append("\n"); + sb.append(" supportNetworkMode: ").append(toIndentedString(supportNetworkMode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanSettingOpenApiVo.java new file mode 100644 index 0000000..a64bb09 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/LteWanSettingOpenApiVo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * LteWanSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class LteWanSettingOpenApiVo { + @JsonProperty("lteWanPortsConfig") + @Valid + private List lteWanPortsConfig = null; + + public LteWanSettingOpenApiVo lteWanPortsConfig(List lteWanPortsConfig) { + this.lteWanPortsConfig = lteWanPortsConfig; + return this; + } + + public LteWanSettingOpenApiVo addLteWanPortsConfigItem(LteWanPortSettingOpenApiVo lteWanPortsConfigItem) { + if (this.lteWanPortsConfig == null) { + this.lteWanPortsConfig = new ArrayList<>(); + } + this.lteWanPortsConfig.add(lteWanPortsConfigItem); + return this; + } + + /** + * LTE WAN ports config + * @return lteWanPortsConfig + */ + @ApiModelProperty(value = "LTE WAN ports config") + + @Valid + + public List getLteWanPortsConfig() { + return lteWanPortsConfig; + } + + public void setLteWanPortsConfig(List lteWanPortsConfig) { + this.lteWanPortsConfig = lteWanPortsConfig; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + LteWanSettingOpenApiVo lteWanSettingOpenApiVo = (LteWanSettingOpenApiVo) o; + return Objects.equals(this.lteWanPortsConfig, lteWanSettingOpenApiVo.lteWanPortsConfig); + } + + @Override + public int hashCode() { + return Objects.hash(lteWanPortsConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class LteWanSettingOpenApiVo {\n"); + + sb.append(" lteWanPortsConfig: ").append(toIndentedString(lteWanPortsConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacAddressOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacAddressOpenApiVo.java new file mode 100644 index 0000000..dd84e38 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacAddressOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * MAC address list. Valid when [type] is 2 + */ +@ApiModel(description = "MAC address list. Valid when [type] is 2") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class MacAddressOpenApiVo { + @JsonProperty("ruleId") + private Integer ruleId; + + @JsonProperty("name") + private String name; + + @JsonProperty("macAddress") + private String macAddress; + + public MacAddressOpenApiVo ruleId(Integer ruleId) { + this.ruleId = ruleId; + return this; + } + + /** + * ID of MAC address info + * @return ruleId + */ + @ApiModelProperty(value = "ID of MAC address info") + + + public Integer getRuleId() { + return ruleId; + } + + public void setRuleId(Integer ruleId) { + this.ruleId = ruleId; + } + + public MacAddressOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * MAC address name + * @return name + */ + @ApiModelProperty(value = "MAC address name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MacAddressOpenApiVo macAddress(String macAddress) { + this.macAddress = macAddress; + return this; + } + + /** + * MAC address + * @return macAddress + */ + @ApiModelProperty(value = "MAC address") + + + public String getMacAddress() { + return macAddress; + } + + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MacAddressOpenApiVo macAddressOpenApiVo = (MacAddressOpenApiVo) o; + return Objects.equals(this.ruleId, macAddressOpenApiVo.ruleId) && + Objects.equals(this.name, macAddressOpenApiVo.name) && + Objects.equals(this.macAddress, macAddressOpenApiVo.macAddress); + } + + @Override + public int hashCode() { + return Objects.hash(ruleId, name, macAddress); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MacAddressOpenApiVo {\n"); + + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" macAddress: ").append(toIndentedString(macAddress)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacAuthOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacAuthOpenApiVo.java new file mode 100644 index 0000000..56a17b0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacAuthOpenApiVo.java @@ -0,0 +1,239 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * MacAuthOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class MacAuthOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ssids") + @Valid + private List ssids = null; + + @JsonProperty("radiusProfileId") + private String radiusProfileId; + + @JsonProperty("mabEnable") + private Boolean mabEnable; + + @JsonProperty("macFormat") + private Integer macFormat; + + @JsonProperty("emptyPwdEnable") + private Boolean emptyPwdEnable; + + @JsonProperty("nasId") + private String nasId; + + public MacAuthOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * MAC-Based Authentication enable status + * @return enable + */ + @ApiModelProperty(value = "MAC-Based Authentication enable status") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public MacAuthOpenApiVo ssids(List ssids) { + this.ssids = ssids; + return this; + } + + public MacAuthOpenApiVo addSsidsItem(SsidSimpleOpenApiVo ssidsItem) { + if (this.ssids == null) { + this.ssids = new ArrayList<>(); + } + this.ssids.add(ssidsItem); + return this; + } + + /** + * SSID list with MAC-Based authentication configured + * @return ssids + */ + @ApiModelProperty(value = "SSID list with MAC-Based authentication configured") + + @Valid + + public List getSsids() { + return ssids; + } + + public void setSsids(List ssids) { + this.ssids = ssids; + } + + public MacAuthOpenApiVo radiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + return this; + } + + /** + * This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface + * @return radiusProfileId + */ + @ApiModelProperty(value = "This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface") + + + public String getRadiusProfileId() { + return radiusProfileId; + } + + public void setRadiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + } + + public MacAuthOpenApiVo mabEnable(Boolean mabEnable) { + this.mabEnable = mabEnable; + return this; + } + + /** + * MAB enable status + * @return mabEnable + */ + @ApiModelProperty(value = "MAB enable status") + + + public Boolean getMabEnable() { + return mabEnable; + } + + public void setMabEnable(Boolean mabEnable) { + this.mabEnable = mabEnable; + } + + public MacAuthOpenApiVo macFormat(Integer macFormat) { + this.macFormat = macFormat; + return this; + } + + /** + * Format of the MAC address. MacFormat should be a value as follows: 0: aabbccddeeff, 1: aa-bb-cc-dd-ee-ff, 2: aa:bb:cc:dd:ee:ff, 3: AABBCCDDEEFF, 4: AA-BB-CC-DD-EE-FF, 5: AA:BB:CC:DD:EE:FF + * @return macFormat + */ + @ApiModelProperty(value = "Format of the MAC address. MacFormat should be a value as follows: 0: aabbccddeeff, 1: aa-bb-cc-dd-ee-ff, 2: aa:bb:cc:dd:ee:ff, 3: AABBCCDDEEFF, 4: AA-BB-CC-DD-EE-FF, 5: AA:BB:CC:DD:EE:FF") + + + public Integer getMacFormat() { + return macFormat; + } + + public void setMacFormat(Integer macFormat) { + this.macFormat = macFormat; + } + + public MacAuthOpenApiVo emptyPwdEnable(Boolean emptyPwdEnable) { + this.emptyPwdEnable = emptyPwdEnable; + return this; + } + + /** + * Whether to enable empty password + * @return emptyPwdEnable + */ + @ApiModelProperty(value = "Whether to enable empty password") + + + public Boolean getEmptyPwdEnable() { + return emptyPwdEnable; + } + + public void setEmptyPwdEnable(Boolean emptyPwdEnable) { + this.emptyPwdEnable = emptyPwdEnable; + } + + public MacAuthOpenApiVo nasId(String nasId) { + this.nasId = nasId; + return this; + } + + /** + * NAS ID issued to AP. NasId should contain 1 to 64 characters + * @return nasId + */ + @ApiModelProperty(value = "NAS ID issued to AP. NasId should contain 1 to 64 characters") + + + public String getNasId() { + return nasId; + } + + public void setNasId(String nasId) { + this.nasId = nasId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MacAuthOpenApiVo macAuthOpenApiVo = (MacAuthOpenApiVo) o; + return Objects.equals(this.enable, macAuthOpenApiVo.enable) && + Objects.equals(this.ssids, macAuthOpenApiVo.ssids) && + Objects.equals(this.radiusProfileId, macAuthOpenApiVo.radiusProfileId) && + Objects.equals(this.mabEnable, macAuthOpenApiVo.mabEnable) && + Objects.equals(this.macFormat, macAuthOpenApiVo.macFormat) && + Objects.equals(this.emptyPwdEnable, macAuthOpenApiVo.emptyPwdEnable) && + Objects.equals(this.nasId, macAuthOpenApiVo.nasId); + } + + @Override + public int hashCode() { + return Objects.hash(enable, ssids, radiusProfileId, mabEnable, macFormat, emptyPwdEnable, nasId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MacAuthOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ssids: ").append(toIndentedString(ssids)).append("\n"); + sb.append(" radiusProfileId: ").append(toIndentedString(radiusProfileId)).append("\n"); + sb.append(" mabEnable: ").append(toIndentedString(mabEnable)).append("\n"); + sb.append(" macFormat: ").append(toIndentedString(macFormat)).append("\n"); + sb.append(" emptyPwdEnable: ").append(toIndentedString(emptyPwdEnable)).append("\n"); + sb.append(" nasId: ").append(toIndentedString(nasId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacFiltering.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacFiltering.java new file mode 100644 index 0000000..de5c9f5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacFiltering.java @@ -0,0 +1,223 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * MacFiltering + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class MacFiltering { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("filterMode") + private Integer filterMode; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("macAddresses") + @Valid + private List macAddresses = null; + + @JsonProperty("macGroupIds") + @Valid + private List macGroupIds = null; + + public MacFiltering id(String id) { + this.id = id; + return this; + } + + /** + * ID of the MAC filtering entity. + * @return id + */ + @ApiModelProperty(value = "ID of the MAC filtering entity.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public MacFiltering name(String name) { + this.name = name; + return this; + } + + /** + * Name of the MAC filtering entity. + * @return name + */ + @ApiModelProperty(value = "Name of the MAC filtering entity.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MacFiltering filterMode(Integer filterMode) { + this.filterMode = filterMode; + return this; + } + + /** + * Filter mode should be a value as follows: 0: allow; 1: deny. + * @return filterMode + */ + @ApiModelProperty(value = "Filter mode should be a value as follows: 0: allow; 1: deny.") + + + public Integer getFilterMode() { + return filterMode; + } + + public void setFilterMode(Integer filterMode) { + this.filterMode = filterMode; + } + + public MacFiltering type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: 0: macAddresses; 1: macGroupIds. + * @return type + */ + @ApiModelProperty(value = "Type should be a value as follows: 0: macAddresses; 1: macGroupIds.") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public MacFiltering macAddresses(List macAddresses) { + this.macAddresses = macAddresses; + return this; + } + + public MacFiltering addMacAddressesItem(OsgMacFilterAddressOpenApiVo macAddressesItem) { + if (this.macAddresses == null) { + this.macAddresses = new ArrayList<>(); + } + this.macAddresses.add(macAddressesItem); + return this; + } + + /** + * MAC addresses of the MAC filtering entity. + * @return macAddresses + */ + @ApiModelProperty(value = "MAC addresses of the MAC filtering entity.") + + @Valid + + public List getMacAddresses() { + return macAddresses; + } + + public void setMacAddresses(List macAddresses) { + this.macAddresses = macAddresses; + } + + public MacFiltering macGroupIds(List macGroupIds) { + this.macGroupIds = macGroupIds; + return this; + } + + public MacFiltering addMacGroupIdsItem(String macGroupIdsItem) { + if (this.macGroupIds == null) { + this.macGroupIds = new ArrayList<>(); + } + this.macGroupIds.add(macGroupIdsItem); + return this; + } + + /** + * MAC groups of the MAC filtering entity. MAC group can be created using 'Create a new group profile' interface, and MAC group ID can be obtained from 'Get group profile list' interface. + * @return macGroupIds + */ + @ApiModelProperty(value = "MAC groups of the MAC filtering entity. MAC group can be created using 'Create a new group profile' interface, and MAC group ID can be obtained from 'Get group profile list' interface.") + + + public List getMacGroupIds() { + return macGroupIds; + } + + public void setMacGroupIds(List macGroupIds) { + this.macGroupIds = macGroupIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MacFiltering macFiltering = (MacFiltering) o; + return Objects.equals(this.id, macFiltering.id) && + Objects.equals(this.name, macFiltering.name) && + Objects.equals(this.filterMode, macFiltering.filterMode) && + Objects.equals(this.type, macFiltering.type) && + Objects.equals(this.macAddresses, macFiltering.macAddresses) && + Objects.equals(this.macGroupIds, macFiltering.macGroupIds); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, filterMode, type, macAddresses, macGroupIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MacFiltering {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" filterMode: ").append(toIndentedString(filterMode)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" macAddresses: ").append(toIndentedString(macAddresses)).append("\n"); + sb.append(" macGroupIds: ").append(toIndentedString(macGroupIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacFilteringGeneralSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacFilteringGeneralSetting.java new file mode 100644 index 0000000..77717ff --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MacFilteringGeneralSetting.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * MacFilteringGeneralSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class MacFilteringGeneralSetting { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("filterMode") + private Integer filterMode; + + @JsonProperty("direction") + private GatewayDirectionEntity direction; + + public MacFilteringGeneralSetting enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Enable of the MAC filtering general setting. + * @return enable + */ + @ApiModelProperty(required = true, value = "Enable of the MAC filtering general setting.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public MacFilteringGeneralSetting filterMode(Integer filterMode) { + this.filterMode = filterMode; + return this; + } + + /** + * Filter mode should be a value as follows: 0: allow; 1: deny. + * @return filterMode + */ + @ApiModelProperty(value = "Filter mode should be a value as follows: 0: allow; 1: deny.") + + + public Integer getFilterMode() { + return filterMode; + } + + public void setFilterMode(Integer filterMode) { + this.filterMode = filterMode; + } + + public MacFilteringGeneralSetting direction(GatewayDirectionEntity direction) { + this.direction = direction; + return this; + } + + /** + * Get direction + * @return direction + */ + @ApiModelProperty(value = "") + + @Valid + + public GatewayDirectionEntity getDirection() { + return direction; + } + + public void setDirection(GatewayDirectionEntity direction) { + this.direction = direction; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MacFilteringGeneralSetting macFilteringGeneralSetting = (MacFilteringGeneralSetting) o; + return Objects.equals(this.enable, macFilteringGeneralSetting.enable) && + Objects.equals(this.filterMode, macFilteringGeneralSetting.filterMode) && + Objects.equals(this.direction, macFilteringGeneralSetting.direction); + } + + @Override + public int hashCode() { + return Objects.hash(enable, filterMode, direction); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MacFilteringGeneralSetting {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" filterMode: ").append(toIndentedString(filterMode)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ManuallyConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ManuallyConfigOpenApiVo.java new file mode 100644 index 0000000..c2b9fcb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ManuallyConfigOpenApiVo.java @@ -0,0 +1,155 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * It is required when [configType] is 1. + */ +@ApiModel(description = "It is required when [configType] is 1.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ManuallyConfigOpenApiVo { + @JsonProperty("dialNumber") + private String dialNumber; + + @JsonProperty("apn") + private String apn; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + public ManuallyConfigOpenApiVo dialNumber(String dialNumber) { + this.dialNumber = dialNumber; + return this; + } + + /** + * Get dialNumber + * @return dialNumber + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public String getDialNumber() { + return dialNumber; + } + + public void setDialNumber(String dialNumber) { + this.dialNumber = dialNumber; + } + + public ManuallyConfigOpenApiVo apn(String apn) { + this.apn = apn; + return this; + } + + /** + * Get apn + * @return apn + */ + @ApiModelProperty(value = "") + + + public String getApn() { + return apn; + } + + public void setApn(String apn) { + this.apn = apn; + } + + public ManuallyConfigOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * Get username + * @return username + */ + @ApiModelProperty(value = "") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public ManuallyConfigOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Get password + * @return password + */ + @ApiModelProperty(value = "") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ManuallyConfigOpenApiVo manuallyConfigOpenApiVo = (ManuallyConfigOpenApiVo) o; + return Objects.equals(this.dialNumber, manuallyConfigOpenApiVo.dialNumber) && + Objects.equals(this.apn, manuallyConfigOpenApiVo.apn) && + Objects.equals(this.username, manuallyConfigOpenApiVo.username) && + Objects.equals(this.password, manuallyConfigOpenApiVo.password); + } + + @Override + public int hashCode() { + return Objects.hash(dialNumber, apn, username, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ManuallyConfigOpenApiVo {\n"); + + sb.append(" dialNumber: ").append(toIndentedString(dialNumber)).append("\n"); + sb.append(" apn: ").append(toIndentedString(apn)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/McastRateLimitSettingVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/McastRateLimitSettingVo.java new file mode 100644 index 0000000..f8c958b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/McastRateLimitSettingVo.java @@ -0,0 +1,476 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * McastRateLimitSettingVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class McastRateLimitSettingVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("arpEnable") + private Boolean arpEnable; + + @JsonProperty("arpPps") + private Integer arpPps; + + @JsonProperty("ndEnable") + private Boolean ndEnable; + + @JsonProperty("ndPps") + private Integer ndPps; + + @JsonProperty("igmpEnable") + private Boolean igmpEnable; + + @JsonProperty("igmpPps") + private Integer igmpPps; + + @JsonProperty("dhcpEnable") + private Boolean dhcpEnable; + + @JsonProperty("dhcpPps") + private Integer dhcpPps; + + @JsonProperty("dhcpv6Enable") + private Boolean dhcpv6Enable; + + @JsonProperty("dhcpv6Pps") + private Integer dhcpv6Pps; + + @JsonProperty("mdnsEnable") + private Boolean mdnsEnable; + + @JsonProperty("mdnsPps") + private Integer mdnsPps; + + @JsonProperty("otherBcastEnable") + private Boolean otherBcastEnable; + + @JsonProperty("otherBcastPps") + private Integer otherBcastPps; + + @JsonProperty("otherMcastEnable") + private Boolean otherMcastEnable; + + @JsonProperty("otherMcastPps") + private Integer otherMcastPps; + + public McastRateLimitSettingVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Parameter [enable] indicates whether to enable the multicast rate limiting function. True: on, false: off + * @return enable + */ + @ApiModelProperty(value = "Parameter [enable] indicates whether to enable the multicast rate limiting function. True: on, false: off") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public McastRateLimitSettingVo arpEnable(Boolean arpEnable) { + this.arpEnable = arpEnable; + return this; + } + + /** + * Whether to enable ARP. + * @return arpEnable + */ + @ApiModelProperty(value = "Whether to enable ARP.") + + + public Boolean getArpEnable() { + return arpEnable; + } + + public void setArpEnable(Boolean arpEnable) { + this.arpEnable = arpEnable; + } + + public McastRateLimitSettingVo arpPps(Integer arpPps) { + this.arpPps = arpPps; + return this; + } + + /** + * Parameter [arpPps] indicates the number of ARP packets allowed to pass per second. + * @return arpPps + */ + @ApiModelProperty(value = "Parameter [arpPps] indicates the number of ARP packets allowed to pass per second.") + + + public Integer getArpPps() { + return arpPps; + } + + public void setArpPps(Integer arpPps) { + this.arpPps = arpPps; + } + + public McastRateLimitSettingVo ndEnable(Boolean ndEnable) { + this.ndEnable = ndEnable; + return this; + } + + /** + * Whether to enable ND. + * @return ndEnable + */ + @ApiModelProperty(value = "Whether to enable ND.") + + + public Boolean getNdEnable() { + return ndEnable; + } + + public void setNdEnable(Boolean ndEnable) { + this.ndEnable = ndEnable; + } + + public McastRateLimitSettingVo ndPps(Integer ndPps) { + this.ndPps = ndPps; + return this; + } + + /** + * Parameter [ndPps] indicates the number of ND packets allowed to pass per second. + * @return ndPps + */ + @ApiModelProperty(value = "Parameter [ndPps] indicates the number of ND packets allowed to pass per second.") + + + public Integer getNdPps() { + return ndPps; + } + + public void setNdPps(Integer ndPps) { + this.ndPps = ndPps; + } + + public McastRateLimitSettingVo igmpEnable(Boolean igmpEnable) { + this.igmpEnable = igmpEnable; + return this; + } + + /** + * Whether to enable IGMP. + * @return igmpEnable + */ + @ApiModelProperty(value = "Whether to enable IGMP.") + + + public Boolean getIgmpEnable() { + return igmpEnable; + } + + public void setIgmpEnable(Boolean igmpEnable) { + this.igmpEnable = igmpEnable; + } + + public McastRateLimitSettingVo igmpPps(Integer igmpPps) { + this.igmpPps = igmpPps; + return this; + } + + /** + * Parameter [igmpPps] indicates the number of IGMP packets allowed to pass per second. + * @return igmpPps + */ + @ApiModelProperty(value = "Parameter [igmpPps] indicates the number of IGMP packets allowed to pass per second.") + + + public Integer getIgmpPps() { + return igmpPps; + } + + public void setIgmpPps(Integer igmpPps) { + this.igmpPps = igmpPps; + } + + public McastRateLimitSettingVo dhcpEnable(Boolean dhcpEnable) { + this.dhcpEnable = dhcpEnable; + return this; + } + + /** + * Whether to enable DHCP. + * @return dhcpEnable + */ + @ApiModelProperty(value = "Whether to enable DHCP.") + + + public Boolean getDhcpEnable() { + return dhcpEnable; + } + + public void setDhcpEnable(Boolean dhcpEnable) { + this.dhcpEnable = dhcpEnable; + } + + public McastRateLimitSettingVo dhcpPps(Integer dhcpPps) { + this.dhcpPps = dhcpPps; + return this; + } + + /** + * Parameter [dhcpPps] indicates the number of DHCP packets allowed to pass per second. + * @return dhcpPps + */ + @ApiModelProperty(value = "Parameter [dhcpPps] indicates the number of DHCP packets allowed to pass per second.") + + + public Integer getDhcpPps() { + return dhcpPps; + } + + public void setDhcpPps(Integer dhcpPps) { + this.dhcpPps = dhcpPps; + } + + public McastRateLimitSettingVo dhcpv6Enable(Boolean dhcpv6Enable) { + this.dhcpv6Enable = dhcpv6Enable; + return this; + } + + /** + * Whether to enable DHCP v6. + * @return dhcpv6Enable + */ + @ApiModelProperty(value = "Whether to enable DHCP v6.") + + + public Boolean getDhcpv6Enable() { + return dhcpv6Enable; + } + + public void setDhcpv6Enable(Boolean dhcpv6Enable) { + this.dhcpv6Enable = dhcpv6Enable; + } + + public McastRateLimitSettingVo dhcpv6Pps(Integer dhcpv6Pps) { + this.dhcpv6Pps = dhcpv6Pps; + return this; + } + + /** + * Parameter [dhcpv6Pps] indicates the number of DHCP v6 packets allowed to pass per second. + * @return dhcpv6Pps + */ + @ApiModelProperty(value = "Parameter [dhcpv6Pps] indicates the number of DHCP v6 packets allowed to pass per second.") + + + public Integer getDhcpv6Pps() { + return dhcpv6Pps; + } + + public void setDhcpv6Pps(Integer dhcpv6Pps) { + this.dhcpv6Pps = dhcpv6Pps; + } + + public McastRateLimitSettingVo mdnsEnable(Boolean mdnsEnable) { + this.mdnsEnable = mdnsEnable; + return this; + } + + /** + * Whether to enable MDNS. + * @return mdnsEnable + */ + @ApiModelProperty(value = "Whether to enable MDNS.") + + + public Boolean getMdnsEnable() { + return mdnsEnable; + } + + public void setMdnsEnable(Boolean mdnsEnable) { + this.mdnsEnable = mdnsEnable; + } + + public McastRateLimitSettingVo mdnsPps(Integer mdnsPps) { + this.mdnsPps = mdnsPps; + return this; + } + + /** + * Parameter [mdnsPps] indicates the number of MDNS packets allowed to pass per second. + * @return mdnsPps + */ + @ApiModelProperty(value = "Parameter [mdnsPps] indicates the number of MDNS packets allowed to pass per second.") + + + public Integer getMdnsPps() { + return mdnsPps; + } + + public void setMdnsPps(Integer mdnsPps) { + this.mdnsPps = mdnsPps; + } + + public McastRateLimitSettingVo otherBcastEnable(Boolean otherBcastEnable) { + this.otherBcastEnable = otherBcastEnable; + return this; + } + + /** + * Whether to enable OTHER BROADCAST. + * @return otherBcastEnable + */ + @ApiModelProperty(value = "Whether to enable OTHER BROADCAST.") + + + public Boolean getOtherBcastEnable() { + return otherBcastEnable; + } + + public void setOtherBcastEnable(Boolean otherBcastEnable) { + this.otherBcastEnable = otherBcastEnable; + } + + public McastRateLimitSettingVo otherBcastPps(Integer otherBcastPps) { + this.otherBcastPps = otherBcastPps; + return this; + } + + /** + * Parameter [otherBcastPps] indicates the number of OTHER BROADCAST packets allowed to pass per second. + * @return otherBcastPps + */ + @ApiModelProperty(value = "Parameter [otherBcastPps] indicates the number of OTHER BROADCAST packets allowed to pass per second.") + + + public Integer getOtherBcastPps() { + return otherBcastPps; + } + + public void setOtherBcastPps(Integer otherBcastPps) { + this.otherBcastPps = otherBcastPps; + } + + public McastRateLimitSettingVo otherMcastEnable(Boolean otherMcastEnable) { + this.otherMcastEnable = otherMcastEnable; + return this; + } + + /** + * Whether to enable OTHER MULTICAST. + * @return otherMcastEnable + */ + @ApiModelProperty(value = "Whether to enable OTHER MULTICAST.") + + + public Boolean getOtherMcastEnable() { + return otherMcastEnable; + } + + public void setOtherMcastEnable(Boolean otherMcastEnable) { + this.otherMcastEnable = otherMcastEnable; + } + + public McastRateLimitSettingVo otherMcastPps(Integer otherMcastPps) { + this.otherMcastPps = otherMcastPps; + return this; + } + + /** + * Parameter [otherMcastPps] indicates the number of OTHER MULTICAST packets allowed to pass per second. + * @return otherMcastPps + */ + @ApiModelProperty(value = "Parameter [otherMcastPps] indicates the number of OTHER MULTICAST packets allowed to pass per second.") + + + public Integer getOtherMcastPps() { + return otherMcastPps; + } + + public void setOtherMcastPps(Integer otherMcastPps) { + this.otherMcastPps = otherMcastPps; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + McastRateLimitSettingVo mcastRateLimitSettingVo = (McastRateLimitSettingVo) o; + return Objects.equals(this.enable, mcastRateLimitSettingVo.enable) && + Objects.equals(this.arpEnable, mcastRateLimitSettingVo.arpEnable) && + Objects.equals(this.arpPps, mcastRateLimitSettingVo.arpPps) && + Objects.equals(this.ndEnable, mcastRateLimitSettingVo.ndEnable) && + Objects.equals(this.ndPps, mcastRateLimitSettingVo.ndPps) && + Objects.equals(this.igmpEnable, mcastRateLimitSettingVo.igmpEnable) && + Objects.equals(this.igmpPps, mcastRateLimitSettingVo.igmpPps) && + Objects.equals(this.dhcpEnable, mcastRateLimitSettingVo.dhcpEnable) && + Objects.equals(this.dhcpPps, mcastRateLimitSettingVo.dhcpPps) && + Objects.equals(this.dhcpv6Enable, mcastRateLimitSettingVo.dhcpv6Enable) && + Objects.equals(this.dhcpv6Pps, mcastRateLimitSettingVo.dhcpv6Pps) && + Objects.equals(this.mdnsEnable, mcastRateLimitSettingVo.mdnsEnable) && + Objects.equals(this.mdnsPps, mcastRateLimitSettingVo.mdnsPps) && + Objects.equals(this.otherBcastEnable, mcastRateLimitSettingVo.otherBcastEnable) && + Objects.equals(this.otherBcastPps, mcastRateLimitSettingVo.otherBcastPps) && + Objects.equals(this.otherMcastEnable, mcastRateLimitSettingVo.otherMcastEnable) && + Objects.equals(this.otherMcastPps, mcastRateLimitSettingVo.otherMcastPps); + } + + @Override + public int hashCode() { + return Objects.hash(enable, arpEnable, arpPps, ndEnable, ndPps, igmpEnable, igmpPps, dhcpEnable, dhcpPps, dhcpv6Enable, dhcpv6Pps, mdnsEnable, mdnsPps, otherBcastEnable, otherBcastPps, otherMcastEnable, otherMcastPps); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class McastRateLimitSettingVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" arpEnable: ").append(toIndentedString(arpEnable)).append("\n"); + sb.append(" arpPps: ").append(toIndentedString(arpPps)).append("\n"); + sb.append(" ndEnable: ").append(toIndentedString(ndEnable)).append("\n"); + sb.append(" ndPps: ").append(toIndentedString(ndPps)).append("\n"); + sb.append(" igmpEnable: ").append(toIndentedString(igmpEnable)).append("\n"); + sb.append(" igmpPps: ").append(toIndentedString(igmpPps)).append("\n"); + sb.append(" dhcpEnable: ").append(toIndentedString(dhcpEnable)).append("\n"); + sb.append(" dhcpPps: ").append(toIndentedString(dhcpPps)).append("\n"); + sb.append(" dhcpv6Enable: ").append(toIndentedString(dhcpv6Enable)).append("\n"); + sb.append(" dhcpv6Pps: ").append(toIndentedString(dhcpv6Pps)).append("\n"); + sb.append(" mdnsEnable: ").append(toIndentedString(mdnsEnable)).append("\n"); + sb.append(" mdnsPps: ").append(toIndentedString(mdnsPps)).append("\n"); + sb.append(" otherBcastEnable: ").append(toIndentedString(otherBcastEnable)).append("\n"); + sb.append(" otherBcastPps: ").append(toIndentedString(otherBcastPps)).append("\n"); + sb.append(" otherMcastEnable: ").append(toIndentedString(otherMcastEnable)).append("\n"); + sb.append(" otherMcastPps: ").append(toIndentedString(otherMcastPps)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MdnsRuleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MdnsRuleOpenApiVo.java new file mode 100644 index 0000000..326629e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MdnsRuleOpenApiVo.java @@ -0,0 +1,240 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * MdnsRuleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class MdnsRuleOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("profileIds") + @Valid + private List profileIds = null; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("ap") + private ApMdnsRuleOpenApiVo ap; + + @JsonProperty("osg") + private OsgMdnsRuleOpenApiVo osg; + + public MdnsRuleOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * MDNS rule ID + * @return id + */ + @ApiModelProperty(value = "MDNS rule ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public MdnsRuleOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * MDNS rule name + * @return name + */ + @ApiModelProperty(value = "MDNS rule name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public MdnsRuleOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * MDNS rule enable status + * @return status + */ + @ApiModelProperty(value = "MDNS rule enable status") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public MdnsRuleOpenApiVo profileIds(List profileIds) { + this.profileIds = profileIds; + return this; + } + + public MdnsRuleOpenApiVo addProfileIdsItem(String profileIdsItem) { + if (this.profileIds == null) { + this.profileIds = new ArrayList<>(); + } + this.profileIds.add(profileIdsItem); + return this; + } + + /** + * ID list of selected Bonjour Service Profile + * @return profileIds + */ + @ApiModelProperty(value = "ID list of selected Bonjour Service Profile") + + + public List getProfileIds() { + return profileIds; + } + + public void setProfileIds(List profileIds) { + this.profileIds = profileIds; + } + + public MdnsRuleOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * MDNS rule type, 0: AP, 1: Gateway + * @return type + */ + @ApiModelProperty(value = "MDNS rule type, 0: AP, 1: Gateway") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public MdnsRuleOpenApiVo ap(ApMdnsRuleOpenApiVo ap) { + this.ap = ap; + return this; + } + + /** + * Get ap + * @return ap + */ + @ApiModelProperty(value = "") + + @Valid + + public ApMdnsRuleOpenApiVo getAp() { + return ap; + } + + public void setAp(ApMdnsRuleOpenApiVo ap) { + this.ap = ap; + } + + public MdnsRuleOpenApiVo osg(OsgMdnsRuleOpenApiVo osg) { + this.osg = osg; + return this; + } + + /** + * Get osg + * @return osg + */ + @ApiModelProperty(value = "") + + @Valid + + public OsgMdnsRuleOpenApiVo getOsg() { + return osg; + } + + public void setOsg(OsgMdnsRuleOpenApiVo osg) { + this.osg = osg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MdnsRuleOpenApiVo mdnsRuleOpenApiVo = (MdnsRuleOpenApiVo) o; + return Objects.equals(this.id, mdnsRuleOpenApiVo.id) && + Objects.equals(this.name, mdnsRuleOpenApiVo.name) && + Objects.equals(this.status, mdnsRuleOpenApiVo.status) && + Objects.equals(this.profileIds, mdnsRuleOpenApiVo.profileIds) && + Objects.equals(this.type, mdnsRuleOpenApiVo.type) && + Objects.equals(this.ap, mdnsRuleOpenApiVo.ap) && + Objects.equals(this.osg, mdnsRuleOpenApiVo.osg); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, status, profileIds, type, ap, osg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MdnsRuleOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" profileIds: ").append(toIndentedString(profileIds)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" ap: ").append(toIndentedString(ap)).append("\n"); + sb.append(" osg: ").append(toIndentedString(osg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MeshSettingVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MeshSettingVo.java new file mode 100644 index 0000000..4a0ce66 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/MeshSettingVo.java @@ -0,0 +1,181 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Site mesh. + */ +@ApiModel(description = "Site mesh.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class MeshSettingVo { + @JsonProperty("meshEnable") + private Boolean meshEnable; + + @JsonProperty("autoFailoverEnable") + private Boolean autoFailoverEnable; + + @JsonProperty("defGatewayEnable") + private Boolean defGatewayEnable; + + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("fullSector") + private Boolean fullSector; + + public MeshSettingVo meshEnable(Boolean meshEnable) { + this.meshEnable = meshEnable; + return this; + } + + /** + * Whether to enable mesh + * @return meshEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable mesh") + @NotNull + + + public Boolean getMeshEnable() { + return meshEnable; + } + + public void setMeshEnable(Boolean meshEnable) { + this.meshEnable = meshEnable; + } + + public MeshSettingVo autoFailoverEnable(Boolean autoFailoverEnable) { + this.autoFailoverEnable = autoFailoverEnable; + return this; + } + + /** + * Whether to enable auto failover + * @return autoFailoverEnable + */ + @ApiModelProperty(value = "Whether to enable auto failover") + + + public Boolean getAutoFailoverEnable() { + return autoFailoverEnable; + } + + public void setAutoFailoverEnable(Boolean autoFailoverEnable) { + this.autoFailoverEnable = autoFailoverEnable; + } + + public MeshSettingVo defGatewayEnable(Boolean defGatewayEnable) { + this.defGatewayEnable = defGatewayEnable; + return this; + } + + /** + * Connectivity detection, parameter defGatewayEnable should be a value as follows: true: Auto(Recommended) ; false: Customer IP + * @return defGatewayEnable + */ + @ApiModelProperty(value = "Connectivity detection, parameter defGatewayEnable should be a value as follows: true: Auto(Recommended) ; false: Customer IP") + + + public Boolean getDefGatewayEnable() { + return defGatewayEnable; + } + + public void setDefGatewayEnable(Boolean defGatewayEnable) { + this.defGatewayEnable = defGatewayEnable; + } + + public MeshSettingVo gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Customer IP + * @return gateway + */ + @ApiModelProperty(value = "Customer IP") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public MeshSettingVo fullSector(Boolean fullSector) { + this.fullSector = fullSector; + return this; + } + + /** + * Whether to enable full-sector DFS + * @return fullSector + */ + @ApiModelProperty(value = "Whether to enable full-sector DFS") + + + public Boolean getFullSector() { + return fullSector; + } + + public void setFullSector(Boolean fullSector) { + this.fullSector = fullSector; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + MeshSettingVo meshSettingVo = (MeshSettingVo) o; + return Objects.equals(this.meshEnable, meshSettingVo.meshEnable) && + Objects.equals(this.autoFailoverEnable, meshSettingVo.autoFailoverEnable) && + Objects.equals(this.defGatewayEnable, meshSettingVo.defGatewayEnable) && + Objects.equals(this.gateway, meshSettingVo.gateway) && + Objects.equals(this.fullSector, meshSettingVo.fullSector); + } + + @Override + public int hashCode() { + return Objects.hash(meshEnable, autoFailoverEnable, defGatewayEnable, gateway, fullSector); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class MeshSettingVo {\n"); + + sb.append(" meshEnable: ").append(toIndentedString(meshEnable)).append("\n"); + sb.append(" autoFailoverEnable: ").append(toIndentedString(autoFailoverEnable)).append("\n"); + sb.append(" defGatewayEnable: ").append(toIndentedString(defGatewayEnable)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" fullSector: ").append(toIndentedString(fullSector)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyCallBlockingProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyCallBlockingProfileEntity.java new file mode 100644 index 0000000..2f31d9f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyCallBlockingProfileEntity.java @@ -0,0 +1,180 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ModifyCallBlockingProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ModifyCallBlockingProfileEntity { + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("incomingCallsBlockingEnable") + private Boolean incomingCallsBlockingEnable; + + @JsonProperty("incomingCallsBlocking") + private IncomingCallsBlockingVo incomingCallsBlocking; + + @JsonProperty("outgoingCallsBlockingEnable") + private Boolean outgoingCallsBlockingEnable; + + @JsonProperty("outgoingCallsBlocking") + private OutgoingCallsBlockingVo outgoingCallsBlocking; + + public ModifyCallBlockingProfileEntity profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Call blocking profile name + * @return profileName + */ + @ApiModelProperty(value = "Call blocking profile name") + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public ModifyCallBlockingProfileEntity incomingCallsBlockingEnable(Boolean incomingCallsBlockingEnable) { + this.incomingCallsBlockingEnable = incomingCallsBlockingEnable; + return this; + } + + /** + * Enable incoming calls blocking or not. The default value is false. + * @return incomingCallsBlockingEnable + */ + @ApiModelProperty(value = "Enable incoming calls blocking or not. The default value is false.") + + + public Boolean getIncomingCallsBlockingEnable() { + return incomingCallsBlockingEnable; + } + + public void setIncomingCallsBlockingEnable(Boolean incomingCallsBlockingEnable) { + this.incomingCallsBlockingEnable = incomingCallsBlockingEnable; + } + + public ModifyCallBlockingProfileEntity incomingCallsBlocking(IncomingCallsBlockingVo incomingCallsBlocking) { + this.incomingCallsBlocking = incomingCallsBlocking; + return this; + } + + /** + * Get incomingCallsBlocking + * @return incomingCallsBlocking + */ + @ApiModelProperty(value = "") + + @Valid + + public IncomingCallsBlockingVo getIncomingCallsBlocking() { + return incomingCallsBlocking; + } + + public void setIncomingCallsBlocking(IncomingCallsBlockingVo incomingCallsBlocking) { + this.incomingCallsBlocking = incomingCallsBlocking; + } + + public ModifyCallBlockingProfileEntity outgoingCallsBlockingEnable(Boolean outgoingCallsBlockingEnable) { + this.outgoingCallsBlockingEnable = outgoingCallsBlockingEnable; + return this; + } + + /** + * Enable outgoing calls blocking or not. The default value is false. + * @return outgoingCallsBlockingEnable + */ + @ApiModelProperty(value = "Enable outgoing calls blocking or not. The default value is false.") + + + public Boolean getOutgoingCallsBlockingEnable() { + return outgoingCallsBlockingEnable; + } + + public void setOutgoingCallsBlockingEnable(Boolean outgoingCallsBlockingEnable) { + this.outgoingCallsBlockingEnable = outgoingCallsBlockingEnable; + } + + public ModifyCallBlockingProfileEntity outgoingCallsBlocking(OutgoingCallsBlockingVo outgoingCallsBlocking) { + this.outgoingCallsBlocking = outgoingCallsBlocking; + return this; + } + + /** + * Get outgoingCallsBlocking + * @return outgoingCallsBlocking + */ + @ApiModelProperty(value = "") + + @Valid + + public OutgoingCallsBlockingVo getOutgoingCallsBlocking() { + return outgoingCallsBlocking; + } + + public void setOutgoingCallsBlocking(OutgoingCallsBlockingVo outgoingCallsBlocking) { + this.outgoingCallsBlocking = outgoingCallsBlocking; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyCallBlockingProfileEntity modifyCallBlockingProfileEntity = (ModifyCallBlockingProfileEntity) o; + return Objects.equals(this.profileName, modifyCallBlockingProfileEntity.profileName) && + Objects.equals(this.incomingCallsBlockingEnable, modifyCallBlockingProfileEntity.incomingCallsBlockingEnable) && + Objects.equals(this.incomingCallsBlocking, modifyCallBlockingProfileEntity.incomingCallsBlocking) && + Objects.equals(this.outgoingCallsBlockingEnable, modifyCallBlockingProfileEntity.outgoingCallsBlockingEnable) && + Objects.equals(this.outgoingCallsBlocking, modifyCallBlockingProfileEntity.outgoingCallsBlocking); + } + + @Override + public int hashCode() { + return Objects.hash(profileName, incomingCallsBlockingEnable, incomingCallsBlocking, outgoingCallsBlockingEnable, outgoingCallsBlocking); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyCallBlockingProfileEntity {\n"); + + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" incomingCallsBlockingEnable: ").append(toIndentedString(incomingCallsBlockingEnable)).append("\n"); + sb.append(" incomingCallsBlocking: ").append(toIndentedString(incomingCallsBlocking)).append("\n"); + sb.append(" outgoingCallsBlockingEnable: ").append(toIndentedString(outgoingCallsBlockingEnable)).append("\n"); + sb.append(" outgoingCallsBlocking: ").append(toIndentedString(outgoingCallsBlocking)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyConfirmResultOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyConfirmResultOpenApiVo.java new file mode 100644 index 0000000..cfd2ed7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyConfirmResultOpenApiVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ModifyConfirmResultOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ModifyConfirmResultOpenApiVo { + @JsonProperty("needConfirm") + private Boolean needConfirm; + + public ModifyConfirmResultOpenApiVo needConfirm(Boolean needConfirm) { + this.needConfirm = needConfirm; + return this; + } + + /** + * needConfirm indicates whether the digit map configuration conflicts with the \"end with #\" configuration of the current device. + * @return needConfirm + */ + @ApiModelProperty(value = "needConfirm indicates whether the digit map configuration conflicts with the \"end with #\" configuration of the current device.") + + + public Boolean getNeedConfirm() { + return needConfirm; + } + + public void setNeedConfirm(Boolean needConfirm) { + this.needConfirm = needConfirm; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyConfirmResultOpenApiVo modifyConfirmResultOpenApiVo = (ModifyConfirmResultOpenApiVo) o; + return Objects.equals(this.needConfirm, modifyConfirmResultOpenApiVo.needConfirm); + } + + @Override + public int hashCode() { + return Objects.hash(needConfirm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyConfirmResultOpenApiVo {\n"); + + sb.append(" needConfirm: ").append(toIndentedString(needConfirm)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyDigitMapProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyDigitMapProfileEntity.java new file mode 100644 index 0000000..ed48ba2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyDigitMapProfileEntity.java @@ -0,0 +1,102 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ModifyDigitMapProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ModifyDigitMapProfileEntity { + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("digitMap") + private String digitMap; + + public ModifyDigitMapProfileEntity profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Digit map profile name + * @return profileName + */ + @ApiModelProperty(value = "Digit map profile name") + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public ModifyDigitMapProfileEntity digitMap(String digitMap) { + this.digitMap = digitMap; + return this; + } + + /** + * Digit map + * @return digitMap + */ + @ApiModelProperty(value = "Digit map") + + + public String getDigitMap() { + return digitMap; + } + + public void setDigitMap(String digitMap) { + this.digitMap = digitMap; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyDigitMapProfileEntity modifyDigitMapProfileEntity = (ModifyDigitMapProfileEntity) o; + return Objects.equals(this.profileName, modifyDigitMapProfileEntity.profileName) && + Objects.equals(this.digitMap, modifyDigitMapProfileEntity.digitMap); + } + + @Override + public int hashCode() { + return Objects.hash(profileName, digitMap); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyDigitMapProfileEntity {\n"); + + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" digitMap: ").append(toIndentedString(digitMap)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyIpsAllowListEntry.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyIpsAllowListEntry.java new file mode 100644 index 0000000..c8c2b8a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyIpsAllowListEntry.java @@ -0,0 +1,204 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ModifyIpsAllowListEntry + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ModifyIpsAllowListEntry { + @JsonProperty("id") + private String id; + + @JsonProperty("direction") + private Integer direction; + + @JsonProperty("trafficType") + private Integer trafficType; + + @JsonProperty("ipAddress") + private String ipAddress; + + @JsonProperty("network") + private String network; + + @JsonProperty("subnet") + private String subnet; + + public ModifyIpsAllowListEntry id(String id) { + this.id = id; + return this; + } + + /** + * Allow list entry ID. + * @return id + */ + @ApiModelProperty(required = true, value = "Allow list entry ID.") + @NotNull + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ModifyIpsAllowListEntry direction(Integer direction) { + this.direction = direction; + return this; + } + + /** + * The location of the target that can trigger the threat, direction should be a value as follows:0: both 1: source, 2: destination. + * @return direction + */ + @ApiModelProperty(value = "The location of the target that can trigger the threat, direction should be a value as follows:0: both 1: source, 2: destination.") + + + public Integer getDirection() { + return direction; + } + + public void setDirection(Integer direction) { + this.direction = direction; + } + + public ModifyIpsAllowListEntry trafficType(Integer trafficType) { + this.trafficType = trafficType; + return this; + } + + /** + * Exempt the category of objects (targets) that can trigger the threat, trafficType should be a value as follows: 0: IP Address, 1: Network, 2: Subnet. + * @return trafficType + */ + @ApiModelProperty(value = "Exempt the category of objects (targets) that can trigger the threat, trafficType should be a value as follows: 0: IP Address, 1: Network, 2: Subnet.") + + + public Integer getTrafficType() { + return trafficType; + } + + public void setTrafficType(Integer trafficType) { + this.trafficType = trafficType; + } + + public ModifyIpsAllowListEntry ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * The value of the trafficType is 0, indicating IP address. + * @return ipAddress + */ + @ApiModelProperty(value = "The value of the trafficType is 0, indicating IP address.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpAddress() { + return ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public ModifyIpsAllowListEntry network(String network) { + this.network = network; + return this; + } + + /** + * The value of the trafficType is 1, indicating LAN network ID. + * @return network + */ + @ApiModelProperty(value = "The value of the trafficType is 1, indicating LAN network ID.") + + + public String getNetwork() { + return network; + } + + public void setNetwork(String network) { + this.network = network; + } + + public ModifyIpsAllowListEntry subnet(String subnet) { + this.subnet = subnet; + return this; + } + + /** + * The value of the trafficType is 2, indicating subnet. + * @return subnet + */ + @ApiModelProperty(value = "The value of the trafficType is 2, indicating subnet.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])/(\\d|((1|2)\\d)|(30|31|32))\\b") + public String getSubnet() { + return subnet; + } + + public void setSubnet(String subnet) { + this.subnet = subnet; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyIpsAllowListEntry modifyIpsAllowListEntry = (ModifyIpsAllowListEntry) o; + return Objects.equals(this.id, modifyIpsAllowListEntry.id) && + Objects.equals(this.direction, modifyIpsAllowListEntry.direction) && + Objects.equals(this.trafficType, modifyIpsAllowListEntry.trafficType) && + Objects.equals(this.ipAddress, modifyIpsAllowListEntry.ipAddress) && + Objects.equals(this.network, modifyIpsAllowListEntry.network) && + Objects.equals(this.subnet, modifyIpsAllowListEntry.subnet); + } + + @Override + public int hashCode() { + return Objects.hash(id, direction, trafficType, ipAddress, network, subnet); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyIpsAllowListEntry {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" trafficType: ").append(toIndentedString(trafficType)).append("\n"); + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append(" network: ").append(toIndentedString(network)).append("\n"); + sb.append(" subnet: ").append(toIndentedString(subnet)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyProviderProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyProviderProfileEntity.java new file mode 100644 index 0000000..e524a6a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyProviderProfileEntity.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * ModifyProviderProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ModifyProviderProfileEntity { + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("providerSettings") + private ModifyProviderSettingOpenApiVo providerSettings; + + public ModifyProviderProfileEntity profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Provider profile name + * @return profileName + */ + @ApiModelProperty(value = "Provider profile name") + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public ModifyProviderProfileEntity providerSettings(ModifyProviderSettingOpenApiVo providerSettings) { + this.providerSettings = providerSettings; + return this; + } + + /** + * Get providerSettings + * @return providerSettings + */ + @ApiModelProperty(value = "") + + @Valid + + public ModifyProviderSettingOpenApiVo getProviderSettings() { + return providerSettings; + } + + public void setProviderSettings(ModifyProviderSettingOpenApiVo providerSettings) { + this.providerSettings = providerSettings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyProviderProfileEntity modifyProviderProfileEntity = (ModifyProviderProfileEntity) o; + return Objects.equals(this.profileName, modifyProviderProfileEntity.profileName) && + Objects.equals(this.providerSettings, modifyProviderProfileEntity.providerSettings); + } + + @Override + public int hashCode() { + return Objects.hash(profileName, providerSettings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyProviderProfileEntity {\n"); + + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" providerSettings: ").append(toIndentedString(providerSettings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyProviderSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyProviderSettingOpenApiVo.java new file mode 100644 index 0000000..2736fde --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyProviderSettingOpenApiVo.java @@ -0,0 +1,180 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Telephony provider settings + */ +@ApiModel(description = "Telephony provider settings") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ModifyProviderSettingOpenApiVo { + @JsonProperty("provider") + private Integer provider; + + @JsonProperty("registrarAddress") + private String registrarAddress; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + @JsonProperty("portSettings") + private PortSettingVo portSettings; + + public ModifyProviderSettingOpenApiVo provider(Integer provider) { + this.provider = provider; + return this; + } + + /** + * The telephony providers supported. The range is between 0 and 13. 0: Other Provider; 1: 1 & 1 Internet; 2: Congstar; 3: Vodafone/Arcor; 4: DUS.net; 5: Easybell; 6: Kabel Deutschland; 7: QSC/Q-DSL home; 8: Sipgate; 9: Sipgate Team; 10: Sipload; 11: Ventengo; 12: Telekom; 13: Bellsip. The default value is 0. + * @return provider + */ + @ApiModelProperty(value = "The telephony providers supported. The range is between 0 and 13. 0: Other Provider; 1: 1 & 1 Internet; 2: Congstar; 3: Vodafone/Arcor; 4: DUS.net; 5: Easybell; 6: Kabel Deutschland; 7: QSC/Q-DSL home; 8: Sipgate; 9: Sipgate Team; 10: Sipload; 11: Ventengo; 12: Telekom; 13: Bellsip. The default value is 0.") + + + public Integer getProvider() { + return provider; + } + + public void setProvider(Integer provider) { + this.provider = provider; + } + + public ModifyProviderSettingOpenApiVo registrarAddress(String registrarAddress) { + this.registrarAddress = registrarAddress; + return this; + } + + /** + * When parameter [provider] is a value in[0, 6], parameter [registrarAddress] should not be null. + * @return registrarAddress + */ + @ApiModelProperty(value = "When parameter [provider] is a value in[0, 6], parameter [registrarAddress] should not be null.") + + + public String getRegistrarAddress() { + return registrarAddress; + } + + public void setRegistrarAddress(String registrarAddress) { + this.registrarAddress = registrarAddress; + } + + public ModifyProviderSettingOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * When parameter [provider] is a value in [0, 2, 4, 5, 8, 9, 10, 11, 12, 13], parameter [username] should not be null. + * @return username + */ + @ApiModelProperty(value = "When parameter [provider] is a value in [0, 2, 4, 5, 8, 9, 10, 11, 12, 13], parameter [username] should not be null.") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public ModifyProviderSettingOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Get password + * @return password + */ + @ApiModelProperty(value = "") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public ModifyProviderSettingOpenApiVo portSettings(PortSettingVo portSettings) { + this.portSettings = portSettings; + return this; + } + + /** + * Get portSettings + * @return portSettings + */ + @ApiModelProperty(value = "") + + @Valid + + public PortSettingVo getPortSettings() { + return portSettings; + } + + public void setPortSettings(PortSettingVo portSettings) { + this.portSettings = portSettings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyProviderSettingOpenApiVo modifyProviderSettingOpenApiVo = (ModifyProviderSettingOpenApiVo) o; + return Objects.equals(this.provider, modifyProviderSettingOpenApiVo.provider) && + Objects.equals(this.registrarAddress, modifyProviderSettingOpenApiVo.registrarAddress) && + Objects.equals(this.username, modifyProviderSettingOpenApiVo.username) && + Objects.equals(this.password, modifyProviderSettingOpenApiVo.password) && + Objects.equals(this.portSettings, modifyProviderSettingOpenApiVo.portSettings); + } + + @Override + public int hashCode() { + return Objects.hash(provider, registrarAddress, username, password, portSettings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyProviderSettingOpenApiVo {\n"); + + sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); + sb.append(" registrarAddress: ").append(toIndentedString(registrarAddress)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" portSettings: ").append(toIndentedString(portSettings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyVoipDeviceApSettingEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyVoipDeviceApSettingEntity.java new file mode 100644 index 0000000..3cf164a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyVoipDeviceApSettingEntity.java @@ -0,0 +1,131 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ModifyVoipDeviceApSettingEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ModifyVoipDeviceApSettingEntity { + @JsonProperty("voipDeviceApConfiguration") + private Object voipDeviceApConfiguration; + + @JsonProperty("telephoneNumberAdvancedSetting") + private TelephoneNumberAdvancedSettingApOpenApiVo telephoneNumberAdvancedSetting; + + @JsonProperty("skipConfirm") + private Boolean skipConfirm; + + public ModifyVoipDeviceApSettingEntity voipDeviceApConfiguration(Object voipDeviceApConfiguration) { + this.voipDeviceApConfiguration = voipDeviceApConfiguration; + return this; + } + + /** + * Get voipDeviceApConfiguration + * @return voipDeviceApConfiguration + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getVoipDeviceApConfiguration() { + return voipDeviceApConfiguration; + } + + public void setVoipDeviceApConfiguration(Object voipDeviceApConfiguration) { + this.voipDeviceApConfiguration = voipDeviceApConfiguration; + } + + public ModifyVoipDeviceApSettingEntity telephoneNumberAdvancedSetting(TelephoneNumberAdvancedSettingApOpenApiVo telephoneNumberAdvancedSetting) { + this.telephoneNumberAdvancedSetting = telephoneNumberAdvancedSetting; + return this; + } + + /** + * Get telephoneNumberAdvancedSetting + * @return telephoneNumberAdvancedSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public TelephoneNumberAdvancedSettingApOpenApiVo getTelephoneNumberAdvancedSetting() { + return telephoneNumberAdvancedSetting; + } + + public void setTelephoneNumberAdvancedSetting(TelephoneNumberAdvancedSettingApOpenApiVo telephoneNumberAdvancedSetting) { + this.telephoneNumberAdvancedSetting = telephoneNumberAdvancedSetting; + } + + public ModifyVoipDeviceApSettingEntity skipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + return this; + } + + /** + * skipConfirm indicates whether to skip the query of \"#'s conflict\" of voip device settings. false: Not to skip the query. true: Skip the query and the device will give priority to the \"end with #\" configuration. + * @return skipConfirm + */ + @ApiModelProperty(required = true, value = "skipConfirm indicates whether to skip the query of \"#'s conflict\" of voip device settings. false: Not to skip the query. true: Skip the query and the device will give priority to the \"end with #\" configuration. ") + @NotNull + + + public Boolean getSkipConfirm() { + return skipConfirm; + } + + public void setSkipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyVoipDeviceApSettingEntity modifyVoipDeviceApSettingEntity = (ModifyVoipDeviceApSettingEntity) o; + return Objects.equals(this.voipDeviceApConfiguration, modifyVoipDeviceApSettingEntity.voipDeviceApConfiguration) && + Objects.equals(this.telephoneNumberAdvancedSetting, modifyVoipDeviceApSettingEntity.telephoneNumberAdvancedSetting) && + Objects.equals(this.skipConfirm, modifyVoipDeviceApSettingEntity.skipConfirm); + } + + @Override + public int hashCode() { + return Objects.hash(voipDeviceApConfiguration, telephoneNumberAdvancedSetting, skipConfirm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyVoipDeviceApSettingEntity {\n"); + + sb.append(" voipDeviceApConfiguration: ").append(toIndentedString(voipDeviceApConfiguration)).append("\n"); + sb.append(" telephoneNumberAdvancedSetting: ").append(toIndentedString(telephoneNumberAdvancedSetting)).append("\n"); + sb.append(" skipConfirm: ").append(toIndentedString(skipConfirm)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyVoipDeviceOsgSettingEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyVoipDeviceOsgSettingEntity.java new file mode 100644 index 0000000..9b97e94 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ModifyVoipDeviceOsgSettingEntity.java @@ -0,0 +1,131 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * ModifyVoipDeviceOsgSettingEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ModifyVoipDeviceOsgSettingEntity { + @JsonProperty("voipDeviceOsgConfiguration") + private Object voipDeviceOsgConfiguration; + + @JsonProperty("telephoneNumberAdvancedSetting") + private TelephoneNumberAdvancedSettingOsgOpenApiVo telephoneNumberAdvancedSetting; + + @JsonProperty("skipConfirm") + private Boolean skipConfirm; + + public ModifyVoipDeviceOsgSettingEntity voipDeviceOsgConfiguration(Object voipDeviceOsgConfiguration) { + this.voipDeviceOsgConfiguration = voipDeviceOsgConfiguration; + return this; + } + + /** + * Get voipDeviceOsgConfiguration + * @return voipDeviceOsgConfiguration + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getVoipDeviceOsgConfiguration() { + return voipDeviceOsgConfiguration; + } + + public void setVoipDeviceOsgConfiguration(Object voipDeviceOsgConfiguration) { + this.voipDeviceOsgConfiguration = voipDeviceOsgConfiguration; + } + + public ModifyVoipDeviceOsgSettingEntity telephoneNumberAdvancedSetting(TelephoneNumberAdvancedSettingOsgOpenApiVo telephoneNumberAdvancedSetting) { + this.telephoneNumberAdvancedSetting = telephoneNumberAdvancedSetting; + return this; + } + + /** + * Get telephoneNumberAdvancedSetting + * @return telephoneNumberAdvancedSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public TelephoneNumberAdvancedSettingOsgOpenApiVo getTelephoneNumberAdvancedSetting() { + return telephoneNumberAdvancedSetting; + } + + public void setTelephoneNumberAdvancedSetting(TelephoneNumberAdvancedSettingOsgOpenApiVo telephoneNumberAdvancedSetting) { + this.telephoneNumberAdvancedSetting = telephoneNumberAdvancedSetting; + } + + public ModifyVoipDeviceOsgSettingEntity skipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + return this; + } + + /** + * skipConfirm indicates whether to skip the query of \"#'s conflict\" of voip device settings. false: Not to skip the query. true: Skip the query and the device will give priority to the \"end with #\" configuration. + * @return skipConfirm + */ + @ApiModelProperty(required = true, value = "skipConfirm indicates whether to skip the query of \"#'s conflict\" of voip device settings. false: Not to skip the query. true: Skip the query and the device will give priority to the \"end with #\" configuration. ") + @NotNull + + + public Boolean getSkipConfirm() { + return skipConfirm; + } + + public void setSkipConfirm(Boolean skipConfirm) { + this.skipConfirm = skipConfirm; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ModifyVoipDeviceOsgSettingEntity modifyVoipDeviceOsgSettingEntity = (ModifyVoipDeviceOsgSettingEntity) o; + return Objects.equals(this.voipDeviceOsgConfiguration, modifyVoipDeviceOsgSettingEntity.voipDeviceOsgConfiguration) && + Objects.equals(this.telephoneNumberAdvancedSetting, modifyVoipDeviceOsgSettingEntity.telephoneNumberAdvancedSetting) && + Objects.equals(this.skipConfirm, modifyVoipDeviceOsgSettingEntity.skipConfirm); + } + + @Override + public int hashCode() { + return Objects.hash(voipDeviceOsgConfiguration, telephoneNumberAdvancedSetting, skipConfirm); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ModifyVoipDeviceOsgSettingEntity {\n"); + + sb.append(" voipDeviceOsgConfiguration: ").append(toIndentedString(voipDeviceOsgConfiguration)).append("\n"); + sb.append(" telephoneNumberAdvancedSetting: ").append(toIndentedString(telephoneNumberAdvancedSetting)).append("\n"); + sb.append(" skipConfirm: ").append(toIndentedString(skipConfirm)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NewIpsAllowListEntry.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NewIpsAllowListEntry.java new file mode 100644 index 0000000..f098094 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NewIpsAllowListEntry.java @@ -0,0 +1,177 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * NewIpsAllowListEntry + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class NewIpsAllowListEntry { + @JsonProperty("direction") + private Integer direction; + + @JsonProperty("trafficType") + private Integer trafficType; + + @JsonProperty("ipAddress") + private String ipAddress; + + @JsonProperty("network") + private String network; + + @JsonProperty("subnet") + private String subnet; + + public NewIpsAllowListEntry direction(Integer direction) { + this.direction = direction; + return this; + } + + /** + * The location of the target that can trigger the threat, direction should be a value as follows:0: both 1: source, 2: destination. + * @return direction + */ + @ApiModelProperty(value = "The location of the target that can trigger the threat, direction should be a value as follows:0: both 1: source, 2: destination.") + + + public Integer getDirection() { + return direction; + } + + public void setDirection(Integer direction) { + this.direction = direction; + } + + public NewIpsAllowListEntry trafficType(Integer trafficType) { + this.trafficType = trafficType; + return this; + } + + /** + * Exempt the category of objects (targets) that can trigger the threat, trafficType should be a value as follows: 0: IP Address, 1: Network, 2: Subnet. + * @return trafficType + */ + @ApiModelProperty(value = "Exempt the category of objects (targets) that can trigger the threat, trafficType should be a value as follows: 0: IP Address, 1: Network, 2: Subnet.") + + + public Integer getTrafficType() { + return trafficType; + } + + public void setTrafficType(Integer trafficType) { + this.trafficType = trafficType; + } + + public NewIpsAllowListEntry ipAddress(String ipAddress) { + this.ipAddress = ipAddress; + return this; + } + + /** + * The value of the trafficType is 0, indicating IP address. + * @return ipAddress + */ + @ApiModelProperty(value = "The value of the trafficType is 0, indicating IP address.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpAddress() { + return ipAddress; + } + + public void setIpAddress(String ipAddress) { + this.ipAddress = ipAddress; + } + + public NewIpsAllowListEntry network(String network) { + this.network = network; + return this; + } + + /** + * The value of the trafficType is 1, indicating LAN network ID. + * @return network + */ + @ApiModelProperty(value = "The value of the trafficType is 1, indicating LAN network ID.") + + + public String getNetwork() { + return network; + } + + public void setNetwork(String network) { + this.network = network; + } + + public NewIpsAllowListEntry subnet(String subnet) { + this.subnet = subnet; + return this; + } + + /** + * The value of the trafficType is 2, indicating subnet. + * @return subnet + */ + @ApiModelProperty(value = "The value of the trafficType is 2, indicating subnet.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])/([1-9]|((1|2)\\d)|(30|31|32))\\b") + public String getSubnet() { + return subnet; + } + + public void setSubnet(String subnet) { + this.subnet = subnet; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NewIpsAllowListEntry newIpsAllowListEntry = (NewIpsAllowListEntry) o; + return Objects.equals(this.direction, newIpsAllowListEntry.direction) && + Objects.equals(this.trafficType, newIpsAllowListEntry.trafficType) && + Objects.equals(this.ipAddress, newIpsAllowListEntry.ipAddress) && + Objects.equals(this.network, newIpsAllowListEntry.network) && + Objects.equals(this.subnet, newIpsAllowListEntry.subnet); + } + + @Override + public int hashCode() { + return Objects.hash(direction, trafficType, ipAddress, network, subnet); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NewIpsAllowListEntry {\n"); + + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" trafficType: ").append(toIndentedString(trafficType)).append("\n"); + sb.append(" ipAddress: ").append(toIndentedString(ipAddress)).append("\n"); + sb.append(" network: ").append(toIndentedString(network)).append("\n"); + sb.append(" subnet: ").append(toIndentedString(subnet)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NoAuthSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NoAuthSetting.java new file mode 100644 index 0000000..8bedf18 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NoAuthSetting.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * No Auth Portal Setting. + */ +@ApiModel(description = "No Auth Portal Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class NoAuthSetting { + @JsonProperty("dailyLimitEnable") + private Boolean dailyLimitEnable; + + public NoAuthSetting dailyLimitEnable(Boolean dailyLimitEnable) { + this.dailyLimitEnable = dailyLimitEnable; + return this; + } + + /** + * If enabled, authentication can only be performed once a day. + * @return dailyLimitEnable + */ + @ApiModelProperty(required = true, value = "If enabled, authentication can only be performed once a day.") + @NotNull + + + public Boolean getDailyLimitEnable() { + return dailyLimitEnable; + } + + public void setDailyLimitEnable(Boolean dailyLimitEnable) { + this.dailyLimitEnable = dailyLimitEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NoAuthSetting noAuthSetting = (NoAuthSetting) o; + return Objects.equals(this.dailyLimitEnable, noAuthSetting.dailyLimitEnable); + } + + @Override + public int hashCode() { + return Objects.hash(dailyLimitEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NoAuthSetting {\n"); + + sb.append(" dailyLimitEnable: ").append(toIndentedString(dailyLimitEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NumberOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NumberOpenApiVo.java new file mode 100644 index 0000000..f9cb57f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NumberOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Telephone numbers. + */ +@ApiModel(description = "Telephone numbers.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class NumberOpenApiVo { + @JsonProperty("telephone number id") + private String telephoneNumberId; + + @JsonProperty("telephone number") + private String telephoneNumber; + + public NumberOpenApiVo telephoneNumberId(String telephoneNumberId) { + this.telephoneNumberId = telephoneNumberId; + return this; + } + + /** + * telephone number id + * @return telephoneNumberId + */ + @ApiModelProperty(value = "telephone number id") + + + public String getTelephoneNumberId() { + return telephoneNumberId; + } + + public void setTelephoneNumberId(String telephoneNumberId) { + this.telephoneNumberId = telephoneNumberId; + } + + public NumberOpenApiVo telephoneNumber(String telephoneNumber) { + this.telephoneNumber = telephoneNumber; + return this; + } + + /** + * telephone number + * @return telephoneNumber + */ + @ApiModelProperty(value = "telephone number") + + + public String getTelephoneNumber() { + return telephoneNumber; + } + + public void setTelephoneNumber(String telephoneNumber) { + this.telephoneNumber = telephoneNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NumberOpenApiVo numberOpenApiVo = (NumberOpenApiVo) o; + return Objects.equals(this.telephoneNumberId, numberOpenApiVo.telephoneNumberId) && + Objects.equals(this.telephoneNumber, numberOpenApiVo.telephoneNumber); + } + + @Override + public int hashCode() { + return Objects.hash(telephoneNumberId, telephoneNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NumberOpenApiVo {\n"); + + sb.append(" telephoneNumberId: ").append(toIndentedString(telephoneNumberId)).append("\n"); + sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NumberRegistrationResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NumberRegistrationResult.java new file mode 100644 index 0000000..f7105d8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/NumberRegistrationResult.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * NumberRegistrationResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class NumberRegistrationResult { + @JsonProperty("registrationResultList") + @Valid + private List registrationResultList = null; + + public NumberRegistrationResult registrationResultList(List registrationResultList) { + this.registrationResultList = registrationResultList; + return this; + } + + public NumberRegistrationResult addRegistrationResultListItem(TelephoneNumberWithStatusVo registrationResultListItem) { + if (this.registrationResultList == null) { + this.registrationResultList = new ArrayList<>(); + } + this.registrationResultList.add(registrationResultListItem); + return this; + } + + /** + * The list of registration result. + * @return registrationResultList + */ + @ApiModelProperty(value = "The list of registration result.") + + @Valid + + public List getRegistrationResultList() { + return registrationResultList; + } + + public void setRegistrationResultList(List registrationResultList) { + this.registrationResultList = registrationResultList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + NumberRegistrationResult numberRegistrationResult = (NumberRegistrationResult) o; + return Objects.equals(this.registrationResultList, numberRegistrationResult.registrationResultList); + } + + @Override + public int hashCode() { + return Objects.hash(registrationResultList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class NumberRegistrationResult {\n"); + + sb.append(" registrationResultList: ").append(toIndentedString(registrationResultList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAddCallForwardingRuleResp.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAddCallForwardingRuleResp.java new file mode 100644 index 0000000..ffe40af --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAddCallForwardingRuleResp.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseAddCallForwardingRuleResp + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseAddCallForwardingRuleResp { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private AddCallForwardingRuleResp result; + + public OperationResponseAddCallForwardingRuleResp errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseAddCallForwardingRuleResp msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseAddCallForwardingRuleResp result(AddCallForwardingRuleResp result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public AddCallForwardingRuleResp getResult() { + return result; + } + + public void setResult(AddCallForwardingRuleResp result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseAddCallForwardingRuleResp operationResponseAddCallForwardingRuleResp = (OperationResponseAddCallForwardingRuleResp) o; + return Objects.equals(this.errorCode, operationResponseAddCallForwardingRuleResp.errorCode) && + Objects.equals(this.msg, operationResponseAddCallForwardingRuleResp.msg) && + Objects.equals(this.result, operationResponseAddCallForwardingRuleResp.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseAddCallForwardingRuleResp {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAlgSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAlgSetting.java new file mode 100644 index 0000000..366c138 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAlgSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseAlgSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseAlgSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private AlgSetting result; + + public OperationResponseAlgSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseAlgSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseAlgSetting result(AlgSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public AlgSetting getResult() { + return result; + } + + public void setResult(AlgSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseAlgSetting operationResponseAlgSetting = (OperationResponseAlgSetting) o; + return Objects.equals(this.errorCode, operationResponseAlgSetting.errorCode) && + Objects.equals(this.msg, operationResponseAlgSetting.msg) && + Objects.equals(this.result, operationResponseAlgSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseAlgSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAttackDefenseSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAttackDefenseSetting.java new file mode 100644 index 0000000..3ab74de --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseAttackDefenseSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseAttackDefenseSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseAttackDefenseSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private AttackDefenseSetting result; + + public OperationResponseAttackDefenseSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseAttackDefenseSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseAttackDefenseSetting result(AttackDefenseSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public AttackDefenseSetting getResult() { + return result; + } + + public void setResult(AttackDefenseSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseAttackDefenseSetting operationResponseAttackDefenseSetting = (OperationResponseAttackDefenseSetting) o; + return Objects.equals(this.errorCode, operationResponseAttackDefenseSetting.errorCode) && + Objects.equals(this.msg, operationResponseAttackDefenseSetting.msg) && + Objects.equals(this.result, operationResponseAttackDefenseSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseAttackDefenseSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseBandwidthControl.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseBandwidthControl.java new file mode 100644 index 0000000..66cd87a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseBandwidthControl.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseBandwidthControl + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseBandwidthControl { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private BandwidthControl result; + + public OperationResponseBandwidthControl errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseBandwidthControl msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseBandwidthControl result(BandwidthControl result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public BandwidthControl getResult() { + return result; + } + + public void setResult(BandwidthControl result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseBandwidthControl operationResponseBandwidthControl = (OperationResponseBandwidthControl) o; + return Objects.equals(this.errorCode, operationResponseBandwidthControl.errorCode) && + Objects.equals(this.msg, operationResponseBandwidthControl.msg) && + Objects.equals(this.result, operationResponseBandwidthControl.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseBandwidthControl {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseCallForwardingRulesGrid.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseCallForwardingRulesGrid.java new file mode 100644 index 0000000..3f26216 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseCallForwardingRulesGrid.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCallForwardingRulesGrid + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseCallForwardingRulesGrid { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CallForwardingRulesGrid result; + + public OperationResponseCallForwardingRulesGrid errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCallForwardingRulesGrid msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCallForwardingRulesGrid result(CallForwardingRulesGrid result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CallForwardingRulesGrid getResult() { + return result; + } + + public void setResult(CallForwardingRulesGrid result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCallForwardingRulesGrid operationResponseCallForwardingRulesGrid = (OperationResponseCallForwardingRulesGrid) o; + return Objects.equals(this.errorCode, operationResponseCallForwardingRulesGrid.errorCode) && + Objects.equals(this.msg, operationResponseCallForwardingRulesGrid.msg) && + Objects.equals(this.result, operationResponseCallForwardingRulesGrid.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCallForwardingRulesGrid {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseCallLogGridVoVoipCallLog.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseCallLogGridVoVoipCallLog.java new file mode 100644 index 0000000..355aa3c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseCallLogGridVoVoipCallLog.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseCallLogGridVoVoipCallLog + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseCallLogGridVoVoipCallLog { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private CallLogGridVoVoipCallLog result; + + public OperationResponseCallLogGridVoVoipCallLog errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseCallLogGridVoVoipCallLog msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseCallLogGridVoVoipCallLog result(CallLogGridVoVoipCallLog result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public CallLogGridVoVoipCallLog getResult() { + return result; + } + + public void setResult(CallLogGridVoVoipCallLog result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseCallLogGridVoVoipCallLog operationResponseCallLogGridVoVoipCallLog = (OperationResponseCallLogGridVoVoipCallLog) o; + return Objects.equals(this.errorCode, operationResponseCallLogGridVoVoipCallLog.errorCode) && + Objects.equals(this.msg, operationResponseCallLogGridVoVoipCallLog.msg) && + Objects.equals(this.result, operationResponseCallLogGridVoVoipCallLog.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseCallLogGridVoVoipCallLog {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseClientToSiteVpnClient.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseClientToSiteVpnClient.java new file mode 100644 index 0000000..25e9fdf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseClientToSiteVpnClient.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseClientToSiteVpnClient + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseClientToSiteVpnClient { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ClientToSiteVpnClient result; + + public OperationResponseClientToSiteVpnClient errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseClientToSiteVpnClient msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseClientToSiteVpnClient result(ClientToSiteVpnClient result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ClientToSiteVpnClient getResult() { + return result; + } + + public void setResult(ClientToSiteVpnClient result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseClientToSiteVpnClient operationResponseClientToSiteVpnClient = (OperationResponseClientToSiteVpnClient) o; + return Objects.equals(this.errorCode, operationResponseClientToSiteVpnClient.errorCode) && + Objects.equals(this.msg, operationResponseClientToSiteVpnClient.msg) && + Objects.equals(this.result, operationResponseClientToSiteVpnClient.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseClientToSiteVpnClient {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseClientToSiteVpnServer.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseClientToSiteVpnServer.java new file mode 100644 index 0000000..3887493 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseClientToSiteVpnServer.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseClientToSiteVpnServer + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseClientToSiteVpnServer { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ClientToSiteVpnServer result; + + public OperationResponseClientToSiteVpnServer errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseClientToSiteVpnServer msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseClientToSiteVpnServer result(ClientToSiteVpnServer result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ClientToSiteVpnServer getResult() { + return result; + } + + public void setResult(ClientToSiteVpnServer result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseClientToSiteVpnServer operationResponseClientToSiteVpnServer = (OperationResponseClientToSiteVpnServer) o; + return Objects.equals(this.errorCode, operationResponseClientToSiteVpnServer.errorCode) && + Objects.equals(this.msg, operationResponseClientToSiteVpnServer.msg) && + Objects.equals(this.result, operationResponseClientToSiteVpnServer.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseClientToSiteVpnServer {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDndSettingEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDndSettingEntity.java new file mode 100644 index 0000000..4b7a0a1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDndSettingEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseDndSettingEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseDndSettingEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private DndSettingEntity result; + + public OperationResponseDndSettingEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseDndSettingEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseDndSettingEntity result(DndSettingEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public DndSettingEntity getResult() { + return result; + } + + public void setResult(DndSettingEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseDndSettingEntity operationResponseDndSettingEntity = (OperationResponseDndSettingEntity) o; + return Objects.equals(this.errorCode, operationResponseDndSettingEntity.errorCode) && + Objects.equals(this.msg, operationResponseDndSettingEntity.msg) && + Objects.equals(this.result, operationResponseDndSettingEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseDndSettingEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDnsProxySettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDnsProxySettingOpenApiVo.java new file mode 100644 index 0000000..79b5ad6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDnsProxySettingOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseDnsProxySettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseDnsProxySettingOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private DnsProxySettingOpenApiVo result; + + public OperationResponseDnsProxySettingOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseDnsProxySettingOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseDnsProxySettingOpenApiVo result(DnsProxySettingOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public DnsProxySettingOpenApiVo getResult() { + return result; + } + + public void setResult(DnsProxySettingOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseDnsProxySettingOpenApiVo operationResponseDnsProxySettingOpenApiVo = (OperationResponseDnsProxySettingOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseDnsProxySettingOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseDnsProxySettingOpenApiVo.msg) && + Objects.equals(this.result, operationResponseDnsProxySettingOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseDnsProxySettingOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDot1xEapOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDot1xEapOpenApiVo.java new file mode 100644 index 0000000..6c982cf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDot1xEapOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseDot1xEapOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseDot1xEapOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private Dot1xEapOpenApiVo result; + + public OperationResponseDot1xEapOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseDot1xEapOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseDot1xEapOpenApiVo result(Dot1xEapOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public Dot1xEapOpenApiVo getResult() { + return result; + } + + public void setResult(Dot1xEapOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseDot1xEapOpenApiVo operationResponseDot1xEapOpenApiVo = (OperationResponseDot1xEapOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseDot1xEapOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseDot1xEapOpenApiVo.msg) && + Objects.equals(this.result, operationResponseDot1xEapOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseDot1xEapOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDot1xSwitchOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDot1xSwitchOpenApiVo.java new file mode 100644 index 0000000..eb231f6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDot1xSwitchOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseDot1xSwitchOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseDot1xSwitchOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private Dot1xSwitchOpenApiVo result; + + public OperationResponseDot1xSwitchOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseDot1xSwitchOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseDot1xSwitchOpenApiVo result(Dot1xSwitchOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public Dot1xSwitchOpenApiVo getResult() { + return result; + } + + public void setResult(Dot1xSwitchOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseDot1xSwitchOpenApiVo operationResponseDot1xSwitchOpenApiVo = (OperationResponseDot1xSwitchOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseDot1xSwitchOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseDot1xSwitchOpenApiVo.msg) && + Objects.equals(this.result, operationResponseDot1xSwitchOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseDot1xSwitchOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDpiSettings.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDpiSettings.java new file mode 100644 index 0000000..584d16f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseDpiSettings.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseDpiSettings + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseDpiSettings { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private DpiSettings result; + + public OperationResponseDpiSettings errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseDpiSettings msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseDpiSettings result(DpiSettings result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public DpiSettings getResult() { + return result; + } + + public void setResult(DpiSettings result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseDpiSettings operationResponseDpiSettings = (OperationResponseDpiSettings) o; + return Objects.equals(this.errorCode, operationResponseDpiSettings.errorCode) && + Objects.equals(this.msg, operationResponseDpiSettings.msg) && + Objects.equals(this.result, operationResponseDpiSettings.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseDpiSettings {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseFilterEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseFilterEntity.java new file mode 100644 index 0000000..2082f1e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseFilterEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseFilterEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseFilterEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private FilterEntity result; + + public OperationResponseFilterEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseFilterEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseFilterEntity result(FilterEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public FilterEntity getResult() { + return result; + } + + public void setResult(FilterEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseFilterEntity operationResponseFilterEntity = (OperationResponseFilterEntity) o; + return Objects.equals(this.errorCode, operationResponseFilterEntity.errorCode) && + Objects.equals(this.msg, operationResponseFilterEntity.msg) && + Objects.equals(this.result, operationResponseFilterEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseFilterEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseFirewallSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseFirewallSetting.java new file mode 100644 index 0000000..cb4bb52 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseFirewallSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseFirewallSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseFirewallSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private FirewallSetting result; + + public OperationResponseFirewallSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseFirewallSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseFirewallSetting result(FirewallSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public FirewallSetting getResult() { + return result; + } + + public void setResult(FirewallSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseFirewallSetting operationResponseFirewallSetting = (OperationResponseFirewallSetting) o; + return Objects.equals(this.errorCode, operationResponseFirewallSetting.errorCode) && + Objects.equals(this.msg, operationResponseFirewallSetting.msg) && + Objects.equals(this.result, operationResponseFirewallSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseFirewallSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGatewayAclConfigModeEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGatewayAclConfigModeEntity.java new file mode 100644 index 0000000..3c6f7b1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGatewayAclConfigModeEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGatewayAclConfigModeEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGatewayAclConfigModeEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GatewayAclConfigModeEntity result; + + public OperationResponseGatewayAclConfigModeEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGatewayAclConfigModeEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGatewayAclConfigModeEntity result(GatewayAclConfigModeEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GatewayAclConfigModeEntity getResult() { + return result; + } + + public void setResult(GatewayAclConfigModeEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGatewayAclConfigModeEntity operationResponseGatewayAclConfigModeEntity = (OperationResponseGatewayAclConfigModeEntity) o; + return Objects.equals(this.errorCode, operationResponseGatewayAclConfigModeEntity.errorCode) && + Objects.equals(this.msg, operationResponseGatewayAclConfigModeEntity.msg) && + Objects.equals(this.result, operationResponseGatewayAclConfigModeEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGatewayAclConfigModeEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoApplicationEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoApplicationEntity.java new file mode 100644 index 0000000..089160e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoApplicationEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoApplicationEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoApplicationEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoApplicationEntity result; + + public OperationResponseGridVoApplicationEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoApplicationEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoApplicationEntity result(GridVoApplicationEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoApplicationEntity getResult() { + return result; + } + + public void setResult(GridVoApplicationEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoApplicationEntity operationResponseGridVoApplicationEntity = (OperationResponseGridVoApplicationEntity) o; + return Objects.equals(this.errorCode, operationResponseGridVoApplicationEntity.errorCode) && + Objects.equals(this.msg, operationResponseGridVoApplicationEntity.msg) && + Objects.equals(this.result, operationResponseGridVoApplicationEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoApplicationEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoBandwidthControlRule.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoBandwidthControlRule.java new file mode 100644 index 0000000..147ddc9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoBandwidthControlRule.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoBandwidthControlRule + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoBandwidthControlRule { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoBandwidthControlRule result; + + public OperationResponseGridVoBandwidthControlRule errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoBandwidthControlRule msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoBandwidthControlRule result(GridVoBandwidthControlRule result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoBandwidthControlRule getResult() { + return result; + } + + public void setResult(GridVoBandwidthControlRule result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoBandwidthControlRule operationResponseGridVoBandwidthControlRule = (OperationResponseGridVoBandwidthControlRule) o; + return Objects.equals(this.errorCode, operationResponseGridVoBandwidthControlRule.errorCode) && + Objects.equals(this.msg, operationResponseGridVoBandwidthControlRule.msg) && + Objects.equals(this.result, operationResponseGridVoBandwidthControlRule.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoBandwidthControlRule {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoClassRuleDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoClassRuleDetailOpenApiVo.java new file mode 100644 index 0000000..e358f07 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoClassRuleDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoClassRuleDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoClassRuleDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoClassRuleDetailOpenApiVo result; + + public OperationResponseGridVoClassRuleDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoClassRuleDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoClassRuleDetailOpenApiVo result(GridVoClassRuleDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoClassRuleDetailOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoClassRuleDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoClassRuleDetailOpenApiVo operationResponseGridVoClassRuleDetailOpenApiVo = (OperationResponseGridVoClassRuleDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoClassRuleDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoClassRuleDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoClassRuleDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoClassRuleDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDdnsOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDdnsOpenApiVo.java new file mode 100644 index 0000000..a7ddd33 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDdnsOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoDdnsOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoDdnsOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoDdnsOpenApiVo result; + + public OperationResponseGridVoDdnsOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoDdnsOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoDdnsOpenApiVo result(GridVoDdnsOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoDdnsOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoDdnsOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoDdnsOpenApiVo operationResponseGridVoDdnsOpenApiVo = (OperationResponseGridVoDdnsOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoDdnsOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoDdnsOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoDdnsOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoDdnsOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDeviceTelephoneNumber.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDeviceTelephoneNumber.java new file mode 100644 index 0000000..53b82c1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDeviceTelephoneNumber.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoDeviceTelephoneNumber + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoDeviceTelephoneNumber { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoDeviceTelephoneNumber result; + + public OperationResponseGridVoDeviceTelephoneNumber errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoDeviceTelephoneNumber msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoDeviceTelephoneNumber result(GridVoDeviceTelephoneNumber result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoDeviceTelephoneNumber getResult() { + return result; + } + + public void setResult(GridVoDeviceTelephoneNumber result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoDeviceTelephoneNumber operationResponseGridVoDeviceTelephoneNumber = (OperationResponseGridVoDeviceTelephoneNumber) o; + return Objects.equals(this.errorCode, operationResponseGridVoDeviceTelephoneNumber.errorCode) && + Objects.equals(this.msg, operationResponseGridVoDeviceTelephoneNumber.msg) && + Objects.equals(this.result, operationResponseGridVoDeviceTelephoneNumber.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoDeviceTelephoneNumber {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDhcpReservationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDhcpReservationOpenApiVo.java new file mode 100644 index 0000000..6f49706 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoDhcpReservationOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoDhcpReservationOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoDhcpReservationOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoDhcpReservationOpenApiVo result; + + public OperationResponseGridVoDhcpReservationOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoDhcpReservationOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoDhcpReservationOpenApiVo result(GridVoDhcpReservationOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoDhcpReservationOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoDhcpReservationOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoDhcpReservationOpenApiVo operationResponseGridVoDhcpReservationOpenApiVo = (OperationResponseGridVoDhcpReservationOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoDhcpReservationOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoDhcpReservationOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoDhcpReservationOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoDhcpReservationOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoEapAclInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoEapAclInfo.java new file mode 100644 index 0000000..24435b0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoEapAclInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoEapAclInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoEapAclInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoEapAclInfo result; + + public OperationResponseGridVoEapAclInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoEapAclInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoEapAclInfo result(GridVoEapAclInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoEapAclInfo getResult() { + return result; + } + + public void setResult(GridVoEapAclInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoEapAclInfo operationResponseGridVoEapAclInfo = (OperationResponseGridVoEapAclInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoEapAclInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoEapAclInfo.msg) && + Objects.equals(this.result, operationResponseGridVoEapAclInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoEapAclInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoFilterEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoFilterEntity.java new file mode 100644 index 0000000..13e3702 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoFilterEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoFilterEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoFilterEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoFilterEntity result; + + public OperationResponseGridVoFilterEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoFilterEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoFilterEntity result(GridVoFilterEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoFilterEntity getResult() { + return result; + } + + public void setResult(GridVoFilterEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoFilterEntity operationResponseGridVoFilterEntity = (OperationResponseGridVoFilterEntity) o; + return Objects.equals(this.errorCode, operationResponseGridVoFilterEntity.errorCode) && + Objects.equals(this.msg, operationResponseGridVoFilterEntity.msg) && + Objects.equals(this.result, operationResponseGridVoFilterEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoFilterEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayAclInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayAclInfo.java new file mode 100644 index 0000000..d995019 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayAclInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoGatewayAclInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoGatewayAclInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoGatewayAclInfo result; + + public OperationResponseGridVoGatewayAclInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoGatewayAclInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoGatewayAclInfo result(GridVoGatewayAclInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoGatewayAclInfo getResult() { + return result; + } + + public void setResult(GridVoGatewayAclInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoGatewayAclInfo operationResponseGridVoGatewayAclInfo = (OperationResponseGridVoGatewayAclInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoGatewayAclInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoGatewayAclInfo.msg) && + Objects.equals(this.result, operationResponseGridVoGatewayAclInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoGatewayAclInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayCustomAclInfoEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayCustomAclInfoEntity.java new file mode 100644 index 0000000..424ca2e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayCustomAclInfoEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoGatewayCustomAclInfoEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoGatewayCustomAclInfoEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoGatewayCustomAclInfoEntity result; + + public OperationResponseGridVoGatewayCustomAclInfoEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoGatewayCustomAclInfoEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoGatewayCustomAclInfoEntity result(GridVoGatewayCustomAclInfoEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoGatewayCustomAclInfoEntity getResult() { + return result; + } + + public void setResult(GridVoGatewayCustomAclInfoEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoGatewayCustomAclInfoEntity operationResponseGridVoGatewayCustomAclInfoEntity = (OperationResponseGridVoGatewayCustomAclInfoEntity) o; + return Objects.equals(this.errorCode, operationResponseGridVoGatewayCustomAclInfoEntity.errorCode) && + Objects.equals(this.msg, operationResponseGridVoGatewayCustomAclInfoEntity.msg) && + Objects.equals(this.result, operationResponseGridVoGatewayCustomAclInfoEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoGatewayCustomAclInfoEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayQosServiceDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayQosServiceDetailOpenApiVo.java new file mode 100644 index 0000000..f7ad0e2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoGatewayQosServiceDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoGatewayQosServiceDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoGatewayQosServiceDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoGatewayQosServiceDetailOpenApiVo result; + + public OperationResponseGridVoGatewayQosServiceDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoGatewayQosServiceDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoGatewayQosServiceDetailOpenApiVo result(GridVoGatewayQosServiceDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoGatewayQosServiceDetailOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoGatewayQosServiceDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoGatewayQosServiceDetailOpenApiVo operationResponseGridVoGatewayQosServiceDetailOpenApiVo = (OperationResponseGridVoGatewayQosServiceDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoGatewayQosServiceDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoGatewayQosServiceDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoGatewayQosServiceDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoGatewayQosServiceDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoIpsBlockListEntry.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoIpsBlockListEntry.java new file mode 100644 index 0000000..4f7fb92 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoIpsBlockListEntry.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoIpsBlockListEntry + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoIpsBlockListEntry { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoIpsBlockListEntry result; + + public OperationResponseGridVoIpsBlockListEntry errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoIpsBlockListEntry msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoIpsBlockListEntry result(GridVoIpsBlockListEntry result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoIpsBlockListEntry getResult() { + return result; + } + + public void setResult(GridVoIpsBlockListEntry result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoIpsBlockListEntry operationResponseGridVoIpsBlockListEntry = (OperationResponseGridVoIpsBlockListEntry) o; + return Objects.equals(this.errorCode, operationResponseGridVoIpsBlockListEntry.errorCode) && + Objects.equals(this.msg, operationResponseGridVoIpsBlockListEntry.msg) && + Objects.equals(this.result, operationResponseGridVoIpsBlockListEntry.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoIpsBlockListEntry {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoIpsSignatureInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoIpsSignatureInfo.java new file mode 100644 index 0000000..71529cb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoIpsSignatureInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoIpsSignatureInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoIpsSignatureInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoIpsSignatureInfo result; + + public OperationResponseGridVoIpsSignatureInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoIpsSignatureInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoIpsSignatureInfo result(GridVoIpsSignatureInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoIpsSignatureInfo getResult() { + return result; + } + + public void setResult(GridVoIpsSignatureInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoIpsSignatureInfo operationResponseGridVoIpsSignatureInfo = (OperationResponseGridVoIpsSignatureInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoIpsSignatureInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoIpsSignatureInfo.msg) && + Objects.equals(this.result, operationResponseGridVoIpsSignatureInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoIpsSignatureInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoLanProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoLanProfileOpenApiVo.java new file mode 100644 index 0000000..14016cb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoLanProfileOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoLanProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoLanProfileOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoLanProfileOpenApiVo result; + + public OperationResponseGridVoLanProfileOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoLanProfileOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoLanProfileOpenApiVo result(GridVoLanProfileOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoLanProfileOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoLanProfileOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoLanProfileOpenApiVo operationResponseGridVoLanProfileOpenApiVo = (OperationResponseGridVoLanProfileOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoLanProfileOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoLanProfileOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoLanProfileOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoLanProfileOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoMacFiltering.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoMacFiltering.java new file mode 100644 index 0000000..cfc8632 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoMacFiltering.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoMacFiltering + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoMacFiltering { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoMacFiltering result; + + public OperationResponseGridVoMacFiltering errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoMacFiltering msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoMacFiltering result(GridVoMacFiltering result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoMacFiltering getResult() { + return result; + } + + public void setResult(GridVoMacFiltering result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoMacFiltering operationResponseGridVoMacFiltering = (OperationResponseGridVoMacFiltering) o; + return Objects.equals(this.errorCode, operationResponseGridVoMacFiltering.errorCode) && + Objects.equals(this.msg, operationResponseGridVoMacFiltering.msg) && + Objects.equals(this.result, operationResponseGridVoMacFiltering.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoMacFiltering {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoMdnsRuleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoMdnsRuleOpenApiVo.java new file mode 100644 index 0000000..c8f09c5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoMdnsRuleOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoMdnsRuleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoMdnsRuleOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoMdnsRuleOpenApiVo result; + + public OperationResponseGridVoMdnsRuleOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoMdnsRuleOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoMdnsRuleOpenApiVo result(GridVoMdnsRuleOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoMdnsRuleOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoMdnsRuleOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoMdnsRuleOpenApiVo operationResponseGridVoMdnsRuleOpenApiVo = (OperationResponseGridVoMdnsRuleOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoMdnsRuleOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoMdnsRuleOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoMdnsRuleOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoMdnsRuleOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOtoNatInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOtoNatInfoOpenApiVo.java new file mode 100644 index 0000000..e77ce53 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOtoNatInfoOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoOtoNatInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoOtoNatInfoOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoOtoNatInfoOpenApiVo result; + + public OperationResponseGridVoOtoNatInfoOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoOtoNatInfoOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoOtoNatInfoOpenApiVo result(GridVoOtoNatInfoOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoOtoNatInfoOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoOtoNatInfoOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoOtoNatInfoOpenApiVo operationResponseGridVoOtoNatInfoOpenApiVo = (OperationResponseGridVoOtoNatInfoOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoOtoNatInfoOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoOtoNatInfoOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoOtoNatInfoOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoOtoNatInfoOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo.java new file mode 100644 index 0000000..3cf5719 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoOuiBasedVlanApQueryOpenApiVo result; + + public OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo result(GridVoOuiBasedVlanApQueryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoOuiBasedVlanApQueryOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoOuiBasedVlanApQueryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo operationResponseGridVoOuiBasedVlanApQueryOpenApiVo = (OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoOuiBasedVlanApQueryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoOuiBasedVlanApQueryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoOuiBasedVlanApQueryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoOuiBasedVlanApQueryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo.java new file mode 100644 index 0000000..1ad1d51 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoOuiBasedVlanSwitchInfoOpenApiVo result; + + public OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo result(GridVoOuiBasedVlanSwitchInfoOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoOuiBasedVlanSwitchInfoOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoOuiBasedVlanSwitchInfoOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo operationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo = (OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoOuiBasedVlanSwitchInfoOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo.java new file mode 100644 index 0000000..f829fed --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoOuiBasedVlanSwitchQueryOpenApiVo result; + + public OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo result(GridVoOuiBasedVlanSwitchQueryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoOuiBasedVlanSwitchQueryOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoOuiBasedVlanSwitchQueryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo operationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo = (OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoOuiBasedVlanSwitchQueryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPoeScheduleQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPoeScheduleQueryOpenApiVo.java new file mode 100644 index 0000000..316a917 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPoeScheduleQueryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoPoeScheduleQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoPoeScheduleQueryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoPoeScheduleQueryOpenApiVo result; + + public OperationResponseGridVoPoeScheduleQueryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoPoeScheduleQueryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoPoeScheduleQueryOpenApiVo result(GridVoPoeScheduleQueryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoPoeScheduleQueryOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoPoeScheduleQueryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoPoeScheduleQueryOpenApiVo operationResponseGridVoPoeScheduleQueryOpenApiVo = (OperationResponseGridVoPoeScheduleQueryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoPoeScheduleQueryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoPoeScheduleQueryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoPoeScheduleQueryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoPoeScheduleQueryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPolicyRoutingInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPolicyRoutingInfo.java new file mode 100644 index 0000000..c20d4d3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPolicyRoutingInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoPolicyRoutingInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoPolicyRoutingInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoPolicyRoutingInfo result; + + public OperationResponseGridVoPolicyRoutingInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoPolicyRoutingInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoPolicyRoutingInfo result(GridVoPolicyRoutingInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoPolicyRoutingInfo getResult() { + return result; + } + + public void setResult(GridVoPolicyRoutingInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoPolicyRoutingInfo operationResponseGridVoPolicyRoutingInfo = (OperationResponseGridVoPolicyRoutingInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoPolicyRoutingInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoPolicyRoutingInfo.msg) && + Objects.equals(this.result, operationResponseGridVoPolicyRoutingInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoPolicyRoutingInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPortForwardingInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPortForwardingInfo.java new file mode 100644 index 0000000..3e11b0c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPortForwardingInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoPortForwardingInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoPortForwardingInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoPortForwardingInfo result; + + public OperationResponseGridVoPortForwardingInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoPortForwardingInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoPortForwardingInfo result(GridVoPortForwardingInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoPortForwardingInfo getResult() { + return result; + } + + public void setResult(GridVoPortForwardingInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoPortForwardingInfo operationResponseGridVoPortForwardingInfo = (OperationResponseGridVoPortForwardingInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoPortForwardingInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoPortForwardingInfo.msg) && + Objects.equals(this.result, operationResponseGridVoPortForwardingInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoPortForwardingInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPortScheduleQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPortScheduleQueryOpenApiVo.java new file mode 100644 index 0000000..491f71e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoPortScheduleQueryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoPortScheduleQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoPortScheduleQueryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoPortScheduleQueryOpenApiVo result; + + public OperationResponseGridVoPortScheduleQueryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoPortScheduleQueryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoPortScheduleQueryOpenApiVo result(GridVoPortScheduleQueryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoPortScheduleQueryOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoPortScheduleQueryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoPortScheduleQueryOpenApiVo operationResponseGridVoPortScheduleQueryOpenApiVo = (OperationResponseGridVoPortScheduleQueryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoPortScheduleQueryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoPortScheduleQueryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoPortScheduleQueryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoPortScheduleQueryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoProviderProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoProviderProfileEntity.java new file mode 100644 index 0000000..a6b991d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoProviderProfileEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoProviderProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoProviderProfileEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoProviderProfileEntity result; + + public OperationResponseGridVoProviderProfileEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoProviderProfileEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoProviderProfileEntity result(GridVoProviderProfileEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoProviderProfileEntity getResult() { + return result; + } + + public void setResult(GridVoProviderProfileEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoProviderProfileEntity operationResponseGridVoProviderProfileEntity = (OperationResponseGridVoProviderProfileEntity) o; + return Objects.equals(this.errorCode, operationResponseGridVoProviderProfileEntity.errorCode) && + Objects.equals(this.msg, operationResponseGridVoProviderProfileEntity.msg) && + Objects.equals(this.result, operationResponseGridVoProviderProfileEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoProviderProfileEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoQosBwcDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoQosBwcDetailOpenApiVo.java new file mode 100644 index 0000000..5b3532c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoQosBwcDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoQosBwcDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoQosBwcDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoQosBwcDetailOpenApiVo result; + + public OperationResponseGridVoQosBwcDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoQosBwcDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoQosBwcDetailOpenApiVo result(GridVoQosBwcDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoQosBwcDetailOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoQosBwcDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoQosBwcDetailOpenApiVo operationResponseGridVoQosBwcDetailOpenApiVo = (OperationResponseGridVoQosBwcDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoQosBwcDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoQosBwcDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoQosBwcDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoQosBwcDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoQuerySessionLimitRuleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoQuerySessionLimitRuleOpenApiVo.java new file mode 100644 index 0000000..33a4eb5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoQuerySessionLimitRuleOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoQuerySessionLimitRuleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoQuerySessionLimitRuleOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoQuerySessionLimitRuleOpenApiVo result; + + public OperationResponseGridVoQuerySessionLimitRuleOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoQuerySessionLimitRuleOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoQuerySessionLimitRuleOpenApiVo result(GridVoQuerySessionLimitRuleOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoQuerySessionLimitRuleOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoQuerySessionLimitRuleOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoQuerySessionLimitRuleOpenApiVo operationResponseGridVoQuerySessionLimitRuleOpenApiVo = (OperationResponseGridVoQuerySessionLimitRuleOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoQuerySessionLimitRuleOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoQuerySessionLimitRuleOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoQuerySessionLimitRuleOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoQuerySessionLimitRuleOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRadiusUserOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRadiusUserOpenApiVo.java new file mode 100644 index 0000000..86e9996 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRadiusUserOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoRadiusUserOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoRadiusUserOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoRadiusUserOpenApiVo result; + + public OperationResponseGridVoRadiusUserOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoRadiusUserOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoRadiusUserOpenApiVo result(GridVoRadiusUserOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoRadiusUserOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoRadiusUserOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoRadiusUserOpenApiVo operationResponseGridVoRadiusUserOpenApiVo = (OperationResponseGridVoRadiusUserOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoRadiusUserOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoRadiusUserOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoRadiusUserOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoRadiusUserOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRestrictionEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRestrictionEntity.java new file mode 100644 index 0000000..c85ec7f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRestrictionEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoRestrictionEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoRestrictionEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoRestrictionEntity result; + + public OperationResponseGridVoRestrictionEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoRestrictionEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoRestrictionEntity result(GridVoRestrictionEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoRestrictionEntity getResult() { + return result; + } + + public void setResult(GridVoRestrictionEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoRestrictionEntity operationResponseGridVoRestrictionEntity = (OperationResponseGridVoRestrictionEntity) o; + return Objects.equals(this.errorCode, operationResponseGridVoRestrictionEntity.errorCode) && + Objects.equals(this.msg, operationResponseGridVoRestrictionEntity.msg) && + Objects.equals(this.result, operationResponseGridVoRestrictionEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoRestrictionEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRuleEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRuleEntity.java new file mode 100644 index 0000000..ba09d8b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoRuleEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoRuleEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoRuleEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoRuleEntity result; + + public OperationResponseGridVoRuleEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoRuleEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoRuleEntity result(GridVoRuleEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoRuleEntity getResult() { + return result; + } + + public void setResult(GridVoRuleEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoRuleEntity operationResponseGridVoRuleEntity = (OperationResponseGridVoRuleEntity) o; + return Objects.equals(this.errorCode, operationResponseGridVoRuleEntity.errorCode) && + Objects.equals(this.msg, operationResponseGridVoRuleEntity.msg) && + Objects.equals(this.result, operationResponseGridVoRuleEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoRuleEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSsidOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSsidOpenApiVo.java new file mode 100644 index 0000000..28ece1e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSsidOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoSsidOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoSsidOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoSsidOpenApiVo result; + + public OperationResponseGridVoSsidOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoSsidOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoSsidOpenApiVo result(GridVoSsidOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoSsidOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoSsidOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoSsidOpenApiVo operationResponseGridVoSsidOpenApiVo = (OperationResponseGridVoSsidOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoSsidOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoSsidOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoSsidOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoSsidOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnResourceEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnResourceEntity.java new file mode 100644 index 0000000..833eb3c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnResourceEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoSslVpnResourceEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoSslVpnResourceEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoSslVpnResourceEntity result; + + public OperationResponseGridVoSslVpnResourceEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoSslVpnResourceEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoSslVpnResourceEntity result(GridVoSslVpnResourceEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoSslVpnResourceEntity getResult() { + return result; + } + + public void setResult(GridVoSslVpnResourceEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoSslVpnResourceEntity operationResponseGridVoSslVpnResourceEntity = (OperationResponseGridVoSslVpnResourceEntity) o; + return Objects.equals(this.errorCode, operationResponseGridVoSslVpnResourceEntity.errorCode) && + Objects.equals(this.msg, operationResponseGridVoSslVpnResourceEntity.msg) && + Objects.equals(this.result, operationResponseGridVoSslVpnResourceEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoSslVpnResourceEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnResourceGroup.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnResourceGroup.java new file mode 100644 index 0000000..a65f494 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnResourceGroup.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoSslVpnResourceGroup + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoSslVpnResourceGroup { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoSslVpnResourceGroup result; + + public OperationResponseGridVoSslVpnResourceGroup errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoSslVpnResourceGroup msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoSslVpnResourceGroup result(GridVoSslVpnResourceGroup result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoSslVpnResourceGroup getResult() { + return result; + } + + public void setResult(GridVoSslVpnResourceGroup result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoSslVpnResourceGroup operationResponseGridVoSslVpnResourceGroup = (OperationResponseGridVoSslVpnResourceGroup) o; + return Objects.equals(this.errorCode, operationResponseGridVoSslVpnResourceGroup.errorCode) && + Objects.equals(this.msg, operationResponseGridVoSslVpnResourceGroup.msg) && + Objects.equals(this.result, operationResponseGridVoSslVpnResourceGroup.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoSslVpnResourceGroup {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnUserGroupEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnUserGroupEntity.java new file mode 100644 index 0000000..1222bac --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSslVpnUserGroupEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoSslVpnUserGroupEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoSslVpnUserGroupEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoSslVpnUserGroupEntity result; + + public OperationResponseGridVoSslVpnUserGroupEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoSslVpnUserGroupEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoSslVpnUserGroupEntity result(GridVoSslVpnUserGroupEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoSslVpnUserGroupEntity getResult() { + return result; + } + + public void setResult(GridVoSslVpnUserGroupEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoSslVpnUserGroupEntity operationResponseGridVoSslVpnUserGroupEntity = (OperationResponseGridVoSslVpnUserGroupEntity) o; + return Objects.equals(this.errorCode, operationResponseGridVoSslVpnUserGroupEntity.errorCode) && + Objects.equals(this.msg, operationResponseGridVoSslVpnUserGroupEntity.msg) && + Objects.equals(this.result, operationResponseGridVoSslVpnUserGroupEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoSslVpnUserGroupEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoStaticRoutingInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoStaticRoutingInfo.java new file mode 100644 index 0000000..7b3fb01 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoStaticRoutingInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoStaticRoutingInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoStaticRoutingInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoStaticRoutingInfo result; + + public OperationResponseGridVoStaticRoutingInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoStaticRoutingInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoStaticRoutingInfo result(GridVoStaticRoutingInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoStaticRoutingInfo getResult() { + return result; + } + + public void setResult(GridVoStaticRoutingInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoStaticRoutingInfo operationResponseGridVoStaticRoutingInfo = (OperationResponseGridVoStaticRoutingInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoStaticRoutingInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoStaticRoutingInfo.msg) && + Objects.equals(this.result, operationResponseGridVoStaticRoutingInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoStaticRoutingInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSwitchAclInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSwitchAclInfo.java new file mode 100644 index 0000000..fad8d8c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoSwitchAclInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoSwitchAclInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoSwitchAclInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoSwitchAclInfo result; + + public OperationResponseGridVoSwitchAclInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoSwitchAclInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoSwitchAclInfo result(GridVoSwitchAclInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoSwitchAclInfo getResult() { + return result; + } + + public void setResult(GridVoSwitchAclInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoSwitchAclInfo operationResponseGridVoSwitchAclInfo = (OperationResponseGridVoSwitchAclInfo) o; + return Objects.equals(this.errorCode, operationResponseGridVoSwitchAclInfo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoSwitchAclInfo.msg) && + Objects.equals(this.result, operationResponseGridVoSwitchAclInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoSwitchAclInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoUseProfileOswOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoUseProfileOswOpenApiVo.java new file mode 100644 index 0000000..87099e4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoUseProfileOswOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoUseProfileOswOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoUseProfileOswOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoUseProfileOswOpenApiVo result; + + public OperationResponseGridVoUseProfileOswOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoUseProfileOswOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoUseProfileOswOpenApiVo result(GridVoUseProfileOswOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoUseProfileOswOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoUseProfileOswOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoUseProfileOswOpenApiVo operationResponseGridVoUseProfileOswOpenApiVo = (OperationResponseGridVoUseProfileOswOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoUseProfileOswOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoUseProfileOswOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoUseProfileOswOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoUseProfileOswOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoiceMail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoiceMail.java new file mode 100644 index 0000000..c5dfea6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoiceMail.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoVoiceMail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoVoiceMail { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoVoiceMail result; + + public OperationResponseGridVoVoiceMail errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoVoiceMail msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoVoiceMail result(GridVoVoiceMail result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoVoiceMail getResult() { + return result; + } + + public void setResult(GridVoVoiceMail result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoVoiceMail operationResponseGridVoVoiceMail = (OperationResponseGridVoVoiceMail) o; + return Objects.equals(this.errorCode, operationResponseGridVoVoiceMail.errorCode) && + Objects.equals(this.msg, operationResponseGridVoVoiceMail.msg) && + Objects.equals(this.result, operationResponseGridVoVoiceMail.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoVoiceMail {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoipDevice.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoipDevice.java new file mode 100644 index 0000000..df53c62 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoipDevice.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoVoipDevice + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoVoipDevice { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoVoipDevice result; + + public OperationResponseGridVoVoipDevice errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoVoipDevice msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoVoipDevice result(GridVoVoipDevice result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoVoipDevice getResult() { + return result; + } + + public void setResult(GridVoVoipDevice result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoVoipDevice operationResponseGridVoVoipDevice = (OperationResponseGridVoVoipDevice) o; + return Objects.equals(this.errorCode, operationResponseGridVoVoipDevice.errorCode) && + Objects.equals(this.msg, operationResponseGridVoVoipDevice.msg) && + Objects.equals(this.result, operationResponseGridVoVoipDevice.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoVoipDevice {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoipTelephoneBookSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoipTelephoneBookSetting.java new file mode 100644 index 0000000..1f7f573 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVoipTelephoneBookSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoVoipTelephoneBookSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoVoipTelephoneBookSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoVoipTelephoneBookSetting result; + + public OperationResponseGridVoVoipTelephoneBookSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoVoipTelephoneBookSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoVoipTelephoneBookSetting result(GridVoVoipTelephoneBookSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoVoipTelephoneBookSetting getResult() { + return result; + } + + public void setResult(GridVoVoipTelephoneBookSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoVoipTelephoneBookSetting operationResponseGridVoVoipTelephoneBookSetting = (OperationResponseGridVoVoipTelephoneBookSetting) o; + return Objects.equals(this.errorCode, operationResponseGridVoVoipTelephoneBookSetting.errorCode) && + Objects.equals(this.msg, operationResponseGridVoVoipTelephoneBookSetting.msg) && + Objects.equals(this.result, operationResponseGridVoVoipTelephoneBookSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoVoipTelephoneBookSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVpnUserResponse.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVpnUserResponse.java new file mode 100644 index 0000000..d21d761 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoVpnUserResponse.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoVpnUserResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoVpnUserResponse { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoVpnUserResponse result; + + public OperationResponseGridVoVpnUserResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoVpnUserResponse msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoVpnUserResponse result(GridVoVpnUserResponse result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoVpnUserResponse getResult() { + return result; + } + + public void setResult(GridVoVpnUserResponse result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoVpnUserResponse operationResponseGridVoVpnUserResponse = (OperationResponseGridVoVpnUserResponse) o; + return Objects.equals(this.errorCode, operationResponseGridVoVpnUserResponse.errorCode) && + Objects.equals(this.msg, operationResponseGridVoVpnUserResponse.msg) && + Objects.equals(this.result, operationResponseGridVoVpnUserResponse.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoVpnUserResponse {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoWireguardDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoWireguardDetailOpenApiVo.java new file mode 100644 index 0000000..bc7624c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoWireguardDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoWireguardDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoWireguardDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoWireguardDetailOpenApiVo result; + + public OperationResponseGridVoWireguardDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoWireguardDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoWireguardDetailOpenApiVo result(GridVoWireguardDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoWireguardDetailOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoWireguardDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoWireguardDetailOpenApiVo operationResponseGridVoWireguardDetailOpenApiVo = (OperationResponseGridVoWireguardDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoWireguardDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoWireguardDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoWireguardDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoWireguardDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoWireguardPeerDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoWireguardPeerDetailOpenApiVo.java new file mode 100644 index 0000000..0e77c39 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoWireguardPeerDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoWireguardPeerDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoWireguardPeerDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoWireguardPeerDetailOpenApiVo result; + + public OperationResponseGridVoWireguardPeerDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoWireguardPeerDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoWireguardPeerDetailOpenApiVo result(GridVoWireguardPeerDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoWireguardPeerDetailOpenApiVo getResult() { + return result; + } + + public void setResult(GridVoWireguardPeerDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoWireguardPeerDetailOpenApiVo operationResponseGridVoWireguardPeerDetailOpenApiVo = (OperationResponseGridVoWireguardPeerDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseGridVoWireguardPeerDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseGridVoWireguardPeerDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseGridVoWireguardPeerDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoWireguardPeerDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoiPsecFailover.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoiPsecFailover.java new file mode 100644 index 0000000..ddb0d84 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoiPsecFailover.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoiPsecFailover + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoiPsecFailover { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoiPsecFailover result; + + public OperationResponseGridVoiPsecFailover errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoiPsecFailover msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoiPsecFailover result(GridVoiPsecFailover result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoiPsecFailover getResult() { + return result; + } + + public void setResult(GridVoiPsecFailover result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoiPsecFailover operationResponseGridVoiPsecFailover = (OperationResponseGridVoiPsecFailover) o; + return Objects.equals(this.errorCode, operationResponseGridVoiPsecFailover.errorCode) && + Objects.equals(this.msg, operationResponseGridVoiPsecFailover.msg) && + Objects.equals(this.result, operationResponseGridVoiPsecFailover.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoiPsecFailover {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoipMacBinding.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoipMacBinding.java new file mode 100644 index 0000000..65ac077 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVoipMacBinding.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVoipMacBinding + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVoipMacBinding { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVoipMacBinding result; + + public OperationResponseGridVoipMacBinding errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVoipMacBinding msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVoipMacBinding result(GridVoipMacBinding result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVoipMacBinding getResult() { + return result; + } + + public void setResult(GridVoipMacBinding result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVoipMacBinding operationResponseGridVoipMacBinding = (OperationResponseGridVoipMacBinding) o; + return Objects.equals(this.errorCode, operationResponseGridVoipMacBinding.errorCode) && + Objects.equals(this.msg, operationResponseGridVoipMacBinding.msg) && + Objects.equals(this.result, operationResponseGridVoipMacBinding.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVoipMacBinding {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVosslVpnLockEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVosslVpnLockEntity.java new file mode 100644 index 0000000..fccd04c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseGridVosslVpnLockEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseGridVosslVpnLockEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseGridVosslVpnLockEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private GridVosslVpnLockEntity result; + + public OperationResponseGridVosslVpnLockEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseGridVosslVpnLockEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseGridVosslVpnLockEntity result(GridVosslVpnLockEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public GridVosslVpnLockEntity getResult() { + return result; + } + + public void setResult(GridVosslVpnLockEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseGridVosslVpnLockEntity operationResponseGridVosslVpnLockEntity = (OperationResponseGridVosslVpnLockEntity) o; + return Objects.equals(this.errorCode, operationResponseGridVosslVpnLockEntity.errorCode) && + Objects.equals(this.msg, operationResponseGridVosslVpnLockEntity.msg) && + Objects.equals(this.result, operationResponseGridVosslVpnLockEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseGridVosslVpnLockEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIgmpOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIgmpOpenApiVo.java new file mode 100644 index 0000000..dd0686c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIgmpOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseIgmpOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseIgmpOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private IgmpOpenApiVo result; + + public OperationResponseIgmpOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseIgmpOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseIgmpOpenApiVo result(IgmpOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public IgmpOpenApiVo getResult() { + return result; + } + + public void setResult(IgmpOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseIgmpOpenApiVo operationResponseIgmpOpenApiVo = (OperationResponseIgmpOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseIgmpOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseIgmpOpenApiVo.msg) && + Objects.equals(this.result, operationResponseIgmpOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseIgmpOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseImportedPortalPageResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseImportedPortalPageResOpenApiVo.java new file mode 100644 index 0000000..0119b39 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseImportedPortalPageResOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseImportedPortalPageResOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseImportedPortalPageResOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ImportedPortalPageResOpenApiVo result; + + public OperationResponseImportedPortalPageResOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseImportedPortalPageResOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseImportedPortalPageResOpenApiVo result(ImportedPortalPageResOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ImportedPortalPageResOpenApiVo getResult() { + return result; + } + + public void setResult(ImportedPortalPageResOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseImportedPortalPageResOpenApiVo operationResponseImportedPortalPageResOpenApiVo = (OperationResponseImportedPortalPageResOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseImportedPortalPageResOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseImportedPortalPageResOpenApiVo.msg) && + Objects.equals(this.result, operationResponseImportedPortalPageResOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseImportedPortalPageResOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseInternetBaseInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseInternetBaseInfoOpenApiVo.java new file mode 100644 index 0000000..bcb3eea --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseInternetBaseInfoOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseInternetBaseInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseInternetBaseInfoOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private InternetBaseInfoOpenApiVo result; + + public OperationResponseInternetBaseInfoOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseInternetBaseInfoOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseInternetBaseInfoOpenApiVo result(InternetBaseInfoOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public InternetBaseInfoOpenApiVo getResult() { + return result; + } + + public void setResult(InternetBaseInfoOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseInternetBaseInfoOpenApiVo operationResponseInternetBaseInfoOpenApiVo = (OperationResponseInternetBaseInfoOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseInternetBaseInfoOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseInternetBaseInfoOpenApiVo.msg) && + Objects.equals(this.result, operationResponseInternetBaseInfoOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseInternetBaseInfoOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIpMacBindingGeneralSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIpMacBindingGeneralSetting.java new file mode 100644 index 0000000..5835891 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIpMacBindingGeneralSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseIpMacBindingGeneralSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseIpMacBindingGeneralSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private IpMacBindingGeneralSetting result; + + public OperationResponseIpMacBindingGeneralSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseIpMacBindingGeneralSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseIpMacBindingGeneralSetting result(IpMacBindingGeneralSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public IpMacBindingGeneralSetting getResult() { + return result; + } + + public void setResult(IpMacBindingGeneralSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseIpMacBindingGeneralSetting operationResponseIpMacBindingGeneralSetting = (OperationResponseIpMacBindingGeneralSetting) o; + return Objects.equals(this.errorCode, operationResponseIpMacBindingGeneralSetting.errorCode) && + Objects.equals(this.msg, operationResponseIpMacBindingGeneralSetting.msg) && + Objects.equals(this.result, operationResponseIpMacBindingGeneralSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseIpMacBindingGeneralSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIpsInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIpsInfo.java new file mode 100644 index 0000000..d776709 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIpsInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseIpsInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseIpsInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private IpsInfo result; + + public OperationResponseIpsInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseIpsInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseIpsInfo result(IpsInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public IpsInfo getResult() { + return result; + } + + public void setResult(IpsInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseIpsInfo operationResponseIpsInfo = (OperationResponseIpsInfo) o; + return Objects.equals(this.errorCode, operationResponseIpsInfo.errorCode) && + Objects.equals(this.msg, operationResponseIpsInfo.msg) && + Objects.equals(this.result, operationResponseIpsInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseIpsInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIptvOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIptvOpenApiVo.java new file mode 100644 index 0000000..068ff67 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseIptvOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseIptvOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseIptvOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private IptvOpenApiVo result; + + public OperationResponseIptvOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseIptvOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseIptvOpenApiVo result(IptvOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public IptvOpenApiVo getResult() { + return result; + } + + public void setResult(IptvOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseIptvOpenApiVo operationResponseIptvOpenApiVo = (OperationResponseIptvOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseIptvOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseIptvOpenApiVo.msg) && + Objects.equals(this.result, operationResponseIptvOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseIptvOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.java new file mode 100644 index 0000000..6fb6522 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo result; + + public OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo result(LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo getResult() { + return result; + } + + public void setResult(LanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo operationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo = (OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseLanNetworkOpenApiGridVoLanNetworkQueryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.java new file mode 100644 index 0000000..ba024ab --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo result; + + public OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo result(LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo getResult() { + return result; + } + + public void setResult(LanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo operationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo = (OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo) o; + return Objects.equals(this.errorCode, operationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.errorCode) && + Objects.equals(this.msg, operationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.msg) && + Objects.equals(this.result, operationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseLanNetworkOpenApiV2GridVoLanNetworkQueryOpenApiV2Vo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListApnProfile.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListApnProfile.java new file mode 100644 index 0000000..6b7be39 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListApnProfile.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListApnProfile + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListApnProfile { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListApnProfile errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListApnProfile msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListApnProfile result(List result) { + this.result = result; + return this; + } + + public OperationResponseListApnProfile addResultItem(ApnProfile resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListApnProfile operationResponseListApnProfile = (OperationResponseListApnProfile) o; + return Objects.equals(this.errorCode, operationResponseListApnProfile.errorCode) && + Objects.equals(this.msg, operationResponseListApnProfile.msg) && + Objects.equals(this.result, operationResponseListApnProfile.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListApnProfile {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListCallBlockingProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListCallBlockingProfileEntity.java new file mode 100644 index 0000000..2eabe9b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListCallBlockingProfileEntity.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListCallBlockingProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListCallBlockingProfileEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListCallBlockingProfileEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListCallBlockingProfileEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListCallBlockingProfileEntity result(List result) { + this.result = result; + return this; + } + + public OperationResponseListCallBlockingProfileEntity addResultItem(CallBlockingProfileEntity resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListCallBlockingProfileEntity operationResponseListCallBlockingProfileEntity = (OperationResponseListCallBlockingProfileEntity) o; + return Objects.equals(this.errorCode, operationResponseListCallBlockingProfileEntity.errorCode) && + Objects.equals(this.msg, operationResponseListCallBlockingProfileEntity.msg) && + Objects.equals(this.result, operationResponseListCallBlockingProfileEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListCallBlockingProfileEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListClientToSiteVpnClient.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListClientToSiteVpnClient.java new file mode 100644 index 0000000..5caac6c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListClientToSiteVpnClient.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListClientToSiteVpnClient + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListClientToSiteVpnClient { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListClientToSiteVpnClient errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListClientToSiteVpnClient msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListClientToSiteVpnClient result(List result) { + this.result = result; + return this; + } + + public OperationResponseListClientToSiteVpnClient addResultItem(ClientToSiteVpnClient resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListClientToSiteVpnClient operationResponseListClientToSiteVpnClient = (OperationResponseListClientToSiteVpnClient) o; + return Objects.equals(this.errorCode, operationResponseListClientToSiteVpnClient.errorCode) && + Objects.equals(this.msg, operationResponseListClientToSiteVpnClient.msg) && + Objects.equals(this.result, operationResponseListClientToSiteVpnClient.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListClientToSiteVpnClient {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListClientToSiteVpnServer.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListClientToSiteVpnServer.java new file mode 100644 index 0000000..cce0af5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListClientToSiteVpnServer.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListClientToSiteVpnServer + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListClientToSiteVpnServer { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListClientToSiteVpnServer errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListClientToSiteVpnServer msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListClientToSiteVpnServer result(List result) { + this.result = result; + return this; + } + + public OperationResponseListClientToSiteVpnServer addResultItem(ClientToSiteVpnServer resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListClientToSiteVpnServer operationResponseListClientToSiteVpnServer = (OperationResponseListClientToSiteVpnServer) o; + return Objects.equals(this.errorCode, operationResponseListClientToSiteVpnServer.errorCode) && + Objects.equals(this.msg, operationResponseListClientToSiteVpnServer.msg) && + Objects.equals(this.result, operationResponseListClientToSiteVpnServer.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListClientToSiteVpnServer {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDigitMapProfileInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDigitMapProfileInfo.java new file mode 100644 index 0000000..46236ce --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDigitMapProfileInfo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListDigitMapProfileInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListDigitMapProfileInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListDigitMapProfileInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListDigitMapProfileInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListDigitMapProfileInfo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListDigitMapProfileInfo addResultItem(DigitMapProfileInfo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListDigitMapProfileInfo operationResponseListDigitMapProfileInfo = (OperationResponseListDigitMapProfileInfo) o; + return Objects.equals(this.errorCode, operationResponseListDigitMapProfileInfo.errorCode) && + Objects.equals(this.msg, operationResponseListDigitMapProfileInfo.msg) && + Objects.equals(this.result, operationResponseListDigitMapProfileInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListDigitMapProfileInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDot1xEapInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDot1xEapInfoOpenApiVo.java new file mode 100644 index 0000000..1af5ad8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDot1xEapInfoOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListDot1xEapInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListDot1xEapInfoOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListDot1xEapInfoOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListDot1xEapInfoOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListDot1xEapInfoOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListDot1xEapInfoOpenApiVo addResultItem(Dot1xEapInfoOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListDot1xEapInfoOpenApiVo operationResponseListDot1xEapInfoOpenApiVo = (OperationResponseListDot1xEapInfoOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListDot1xEapInfoOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListDot1xEapInfoOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListDot1xEapInfoOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListDot1xEapInfoOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDot1xSwitchInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDot1xSwitchInfoOpenApiVo.java new file mode 100644 index 0000000..a8ef91e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListDot1xSwitchInfoOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListDot1xSwitchInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListDot1xSwitchInfoOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListDot1xSwitchInfoOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListDot1xSwitchInfoOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListDot1xSwitchInfoOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListDot1xSwitchInfoOpenApiVo addResultItem(Dot1xSwitchInfoOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListDot1xSwitchInfoOpenApiVo operationResponseListDot1xSwitchInfoOpenApiVo = (OperationResponseListDot1xSwitchInfoOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListDot1xSwitchInfoOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListDot1xSwitchInfoOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListDot1xSwitchInfoOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListDot1xSwitchInfoOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListFamilyEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListFamilyEntity.java new file mode 100644 index 0000000..2ab6be4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListFamilyEntity.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListFamilyEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListFamilyEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListFamilyEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListFamilyEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListFamilyEntity result(List result) { + this.result = result; + return this; + } + + public OperationResponseListFamilyEntity addResultItem(FamilyEntity resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListFamilyEntity operationResponseListFamilyEntity = (OperationResponseListFamilyEntity) o; + return Objects.equals(this.errorCode, operationResponseListFamilyEntity.errorCode) && + Objects.equals(this.msg, operationResponseListFamilyEntity.msg) && + Objects.equals(this.result, operationResponseListFamilyEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListFamilyEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListGroupOpenApiVo.java new file mode 100644 index 0000000..d7051ff --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListGroupOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListGroupOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListGroupOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListGroupOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListGroupOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListGroupOpenApiVo addResultItem(GroupOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListGroupOpenApiVo operationResponseListGroupOpenApiVo = (OperationResponseListGroupOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListGroupOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListGroupOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListGroupOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListGroupOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListLdapProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListLdapProfileOpenApiVo.java new file mode 100644 index 0000000..8f6b026 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListLdapProfileOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListLdapProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListLdapProfileOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListLdapProfileOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListLdapProfileOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListLdapProfileOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListLdapProfileOpenApiVo addResultItem(LdapProfileOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListLdapProfileOpenApiVo operationResponseListLdapProfileOpenApiVo = (OperationResponseListLdapProfileOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListLdapProfileOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListLdapProfileOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListLdapProfileOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListLdapProfileOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListOuiProfileSummaryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListOuiProfileSummaryOpenApiVo.java new file mode 100644 index 0000000..f08cdbb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListOuiProfileSummaryOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListOuiProfileSummaryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListOuiProfileSummaryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListOuiProfileSummaryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListOuiProfileSummaryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListOuiProfileSummaryOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListOuiProfileSummaryOpenApiVo addResultItem(OuiProfileSummaryOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListOuiProfileSummaryOpenApiVo operationResponseListOuiProfileSummaryOpenApiVo = (OperationResponseListOuiProfileSummaryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListOuiProfileSummaryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListOuiProfileSummaryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListOuiProfileSummaryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListOuiProfileSummaryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPoeDeviceDetail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPoeDeviceDetail.java new file mode 100644 index 0000000..3156419 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPoeDeviceDetail.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListPoeDeviceDetail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListPoeDeviceDetail { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListPoeDeviceDetail errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListPoeDeviceDetail msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListPoeDeviceDetail result(List result) { + this.result = result; + return this; + } + + public OperationResponseListPoeDeviceDetail addResultItem(PoeDeviceDetail resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListPoeDeviceDetail operationResponseListPoeDeviceDetail = (OperationResponseListPoeDeviceDetail) o; + return Objects.equals(this.errorCode, operationResponseListPoeDeviceDetail.errorCode) && + Objects.equals(this.msg, operationResponseListPoeDeviceDetail.msg) && + Objects.equals(this.result, operationResponseListPoeDeviceDetail.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListPoeDeviceDetail {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPortDeviceDetail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPortDeviceDetail.java new file mode 100644 index 0000000..5732447 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPortDeviceDetail.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListPortDeviceDetail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListPortDeviceDetail { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListPortDeviceDetail errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListPortDeviceDetail msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListPortDeviceDetail result(List result) { + this.result = result; + return this; + } + + public OperationResponseListPortDeviceDetail addResultItem(PortDeviceDetail resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListPortDeviceDetail operationResponseListPortDeviceDetail = (OperationResponseListPortDeviceDetail) o; + return Objects.equals(this.errorCode, operationResponseListPortDeviceDetail.errorCode) && + Objects.equals(this.msg, operationResponseListPortDeviceDetail.msg) && + Objects.equals(this.result, operationResponseListPortDeviceDetail.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListPortDeviceDetail {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPortalResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPortalResOpenApiVo.java new file mode 100644 index 0000000..c77b050 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPortalResOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListPortalResOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListPortalResOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListPortalResOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListPortalResOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListPortalResOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListPortalResOpenApiVo addResultItem(PortalResOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListPortalResOpenApiVo operationResponseListPortalResOpenApiVo = (OperationResponseListPortalResOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListPortalResOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListPortalResOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListPortalResOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListPortalResOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPpskProfileBriefInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPpskProfileBriefInfo.java new file mode 100644 index 0000000..d664395 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListPpskProfileBriefInfo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListPpskProfileBriefInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListPpskProfileBriefInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListPpskProfileBriefInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListPpskProfileBriefInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListPpskProfileBriefInfo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListPpskProfileBriefInfo addResultItem(PpskProfileBriefInfo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListPpskProfileBriefInfo operationResponseListPpskProfileBriefInfo = (OperationResponseListPpskProfileBriefInfo) o; + return Objects.equals(this.errorCode, operationResponseListPpskProfileBriefInfo.errorCode) && + Objects.equals(this.msg, operationResponseListPpskProfileBriefInfo.msg) && + Objects.equals(this.result, operationResponseListPpskProfileBriefInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListPpskProfileBriefInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListProfilesBindedDeviceInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListProfilesBindedDeviceInfo.java new file mode 100644 index 0000000..6bf8cbb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListProfilesBindedDeviceInfo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListProfilesBindedDeviceInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListProfilesBindedDeviceInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListProfilesBindedDeviceInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListProfilesBindedDeviceInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListProfilesBindedDeviceInfo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListProfilesBindedDeviceInfo addResultItem(ProfilesBindedDeviceInfo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListProfilesBindedDeviceInfo operationResponseListProfilesBindedDeviceInfo = (OperationResponseListProfilesBindedDeviceInfo) o; + return Objects.equals(this.errorCode, operationResponseListProfilesBindedDeviceInfo.errorCode) && + Objects.equals(this.msg, operationResponseListProfilesBindedDeviceInfo.msg) && + Objects.equals(this.result, operationResponseListProfilesBindedDeviceInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListProfilesBindedDeviceInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRadiusProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRadiusProfileOpenApiVo.java new file mode 100644 index 0000000..9a4109a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRadiusProfileOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListRadiusProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListRadiusProfileOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListRadiusProfileOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListRadiusProfileOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListRadiusProfileOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListRadiusProfileOpenApiVo addResultItem(RadiusProfileOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListRadiusProfileOpenApiVo operationResponseListRadiusProfileOpenApiVo = (OperationResponseListRadiusProfileOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListRadiusProfileOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListRadiusProfileOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListRadiusProfileOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListRadiusProfileOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRateLimitProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRateLimitProfileOpenApiVo.java new file mode 100644 index 0000000..b71b06d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRateLimitProfileOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListRateLimitProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListRateLimitProfileOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListRateLimitProfileOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListRateLimitProfileOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListRateLimitProfileOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListRateLimitProfileOpenApiVo addResultItem(RateLimitProfileOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListRateLimitProfileOpenApiVo operationResponseListRateLimitProfileOpenApiVo = (OperationResponseListRateLimitProfileOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListRateLimitProfileOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListRateLimitProfileOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListRateLimitProfileOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListRateLimitProfileOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRebootScheduleQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRebootScheduleQueryOpenApiVo.java new file mode 100644 index 0000000..7f807fa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListRebootScheduleQueryOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListRebootScheduleQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListRebootScheduleQueryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListRebootScheduleQueryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListRebootScheduleQueryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListRebootScheduleQueryOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListRebootScheduleQueryOpenApiVo addResultItem(RebootScheduleQueryOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListRebootScheduleQueryOpenApiVo operationResponseListRebootScheduleQueryOpenApiVo = (OperationResponseListRebootScheduleQueryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListRebootScheduleQueryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListRebootScheduleQueryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListRebootScheduleQueryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListRebootScheduleQueryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSimplifiedCallBlockingProfile.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSimplifiedCallBlockingProfile.java new file mode 100644 index 0000000..3dac7e1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSimplifiedCallBlockingProfile.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListSimplifiedCallBlockingProfile + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListSimplifiedCallBlockingProfile { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListSimplifiedCallBlockingProfile errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListSimplifiedCallBlockingProfile msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListSimplifiedCallBlockingProfile result(List result) { + this.result = result; + return this; + } + + public OperationResponseListSimplifiedCallBlockingProfile addResultItem(SimplifiedCallBlockingProfile resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListSimplifiedCallBlockingProfile operationResponseListSimplifiedCallBlockingProfile = (OperationResponseListSimplifiedCallBlockingProfile) o; + return Objects.equals(this.errorCode, operationResponseListSimplifiedCallBlockingProfile.errorCode) && + Objects.equals(this.msg, operationResponseListSimplifiedCallBlockingProfile.msg) && + Objects.equals(this.result, operationResponseListSimplifiedCallBlockingProfile.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListSimplifiedCallBlockingProfile {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSimplifiedDigitMapProfile.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSimplifiedDigitMapProfile.java new file mode 100644 index 0000000..05f7f04 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSimplifiedDigitMapProfile.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListSimplifiedDigitMapProfile + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListSimplifiedDigitMapProfile { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListSimplifiedDigitMapProfile errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListSimplifiedDigitMapProfile msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListSimplifiedDigitMapProfile result(List result) { + this.result = result; + return this; + } + + public OperationResponseListSimplifiedDigitMapProfile addResultItem(SimplifiedDigitMapProfile resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListSimplifiedDigitMapProfile operationResponseListSimplifiedDigitMapProfile = (OperationResponseListSimplifiedDigitMapProfile) o; + return Objects.equals(this.errorCode, operationResponseListSimplifiedDigitMapProfile.errorCode) && + Objects.equals(this.msg, operationResponseListSimplifiedDigitMapProfile.msg) && + Objects.equals(this.result, operationResponseListSimplifiedDigitMapProfile.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListSimplifiedDigitMapProfile {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSiteToSiteVpn.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSiteToSiteVpn.java new file mode 100644 index 0000000..1973e78 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListSiteToSiteVpn.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListSiteToSiteVpn + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListSiteToSiteVpn { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListSiteToSiteVpn errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListSiteToSiteVpn msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListSiteToSiteVpn result(List result) { + this.result = result; + return this; + } + + public OperationResponseListSiteToSiteVpn addResultItem(SiteToSiteVpn resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListSiteToSiteVpn operationResponseListSiteToSiteVpn = (OperationResponseListSiteToSiteVpn) o; + return Objects.equals(this.errorCode, operationResponseListSiteToSiteVpn.errorCode) && + Objects.equals(this.msg, operationResponseListSiteToSiteVpn.msg) && + Objects.equals(this.result, operationResponseListSiteToSiteVpn.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListSiteToSiteVpn {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListTimeRangeProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListTimeRangeProfileOpenApiVo.java new file mode 100644 index 0000000..7d7ad92 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListTimeRangeProfileOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListTimeRangeProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListTimeRangeProfileOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListTimeRangeProfileOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListTimeRangeProfileOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListTimeRangeProfileOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListTimeRangeProfileOpenApiVo addResultItem(TimeRangeProfileOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListTimeRangeProfileOpenApiVo operationResponseListTimeRangeProfileOpenApiVo = (OperationResponseListTimeRangeProfileOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListTimeRangeProfileOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListTimeRangeProfileOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListTimeRangeProfileOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListTimeRangeProfileOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListUpgradeScheduleQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListUpgradeScheduleQueryOpenApiVo.java new file mode 100644 index 0000000..c32381a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListUpgradeScheduleQueryOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListUpgradeScheduleQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListUpgradeScheduleQueryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListUpgradeScheduleQueryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListUpgradeScheduleQueryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListUpgradeScheduleQueryOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListUpgradeScheduleQueryOpenApiVo addResultItem(UpgradeScheduleQueryOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListUpgradeScheduleQueryOpenApiVo operationResponseListUpgradeScheduleQueryOpenApiVo = (OperationResponseListUpgradeScheduleQueryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListUpgradeScheduleQueryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListUpgradeScheduleQueryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListUpgradeScheduleQueryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListUpgradeScheduleQueryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListVpnUserResponse.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListVpnUserResponse.java new file mode 100644 index 0000000..8372dd3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListVpnUserResponse.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListVpnUserResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListVpnUserResponse { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListVpnUserResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListVpnUserResponse msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListVpnUserResponse result(List result) { + this.result = result; + return this; + } + + public OperationResponseListVpnUserResponse addResultItem(VpnUserResponse resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListVpnUserResponse operationResponseListVpnUserResponse = (OperationResponseListVpnUserResponse) o; + return Objects.equals(this.errorCode, operationResponseListVpnUserResponse.errorCode) && + Objects.equals(this.msg, operationResponseListVpnUserResponse.msg) && + Objects.equals(this.result, operationResponseListVpnUserResponse.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListVpnUserResponse {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListWlanGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListWlanGroupOpenApiVo.java new file mode 100644 index 0000000..7da307a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListWlanGroupOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListWlanGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListWlanGroupOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListWlanGroupOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListWlanGroupOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListWlanGroupOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListWlanGroupOpenApiVo addResultItem(WlanGroupOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListWlanGroupOpenApiVo operationResponseListWlanGroupOpenApiVo = (OperationResponseListWlanGroupOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListWlanGroupOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListWlanGroupOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListWlanGroupOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListWlanGroupOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListWlanSimpleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListWlanSimpleOpenApiVo.java new file mode 100644 index 0000000..a516239 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseListWlanSimpleOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OperationResponseListWlanSimpleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseListWlanSimpleOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + @Valid + private List result = null; + + public OperationResponseListWlanSimpleOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseListWlanSimpleOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseListWlanSimpleOpenApiVo result(List result) { + this.result = result; + return this; + } + + public OperationResponseListWlanSimpleOpenApiVo addResultItem(WlanSimpleOpenApiVo resultItem) { + if (this.result == null) { + this.result = new ArrayList<>(); + } + this.result.add(resultItem); + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public List getResult() { + return result; + } + + public void setResult(List result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseListWlanSimpleOpenApiVo operationResponseListWlanSimpleOpenApiVo = (OperationResponseListWlanSimpleOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseListWlanSimpleOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseListWlanSimpleOpenApiVo.msg) && + Objects.equals(this.result, operationResponseListWlanSimpleOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseListWlanSimpleOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLocationAndIspInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLocationAndIspInfoOpenApiVo.java new file mode 100644 index 0000000..d2c7cfc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLocationAndIspInfoOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseLocationAndIspInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseLocationAndIspInfoOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private LocationAndIspInfoOpenApiVo result; + + public OperationResponseLocationAndIspInfoOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseLocationAndIspInfoOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseLocationAndIspInfoOpenApiVo result(LocationAndIspInfoOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public LocationAndIspInfoOpenApiVo getResult() { + return result; + } + + public void setResult(LocationAndIspInfoOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseLocationAndIspInfoOpenApiVo operationResponseLocationAndIspInfoOpenApiVo = (OperationResponseLocationAndIspInfoOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseLocationAndIspInfoOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseLocationAndIspInfoOpenApiVo.msg) && + Objects.equals(this.result, operationResponseLocationAndIspInfoOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseLocationAndIspInfoOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLteWanSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLteWanSettingOpenApiVo.java new file mode 100644 index 0000000..5617439 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseLteWanSettingOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseLteWanSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseLteWanSettingOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private LteWanSettingOpenApiVo result; + + public OperationResponseLteWanSettingOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseLteWanSettingOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseLteWanSettingOpenApiVo result(LteWanSettingOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public LteWanSettingOpenApiVo getResult() { + return result; + } + + public void setResult(LteWanSettingOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseLteWanSettingOpenApiVo operationResponseLteWanSettingOpenApiVo = (OperationResponseLteWanSettingOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseLteWanSettingOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseLteWanSettingOpenApiVo.msg) && + Objects.equals(this.result, operationResponseLteWanSettingOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseLteWanSettingOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseMacAuthOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseMacAuthOpenApiVo.java new file mode 100644 index 0000000..015d68c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseMacAuthOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseMacAuthOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseMacAuthOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private MacAuthOpenApiVo result; + + public OperationResponseMacAuthOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseMacAuthOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseMacAuthOpenApiVo result(MacAuthOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public MacAuthOpenApiVo getResult() { + return result; + } + + public void setResult(MacAuthOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseMacAuthOpenApiVo operationResponseMacAuthOpenApiVo = (OperationResponseMacAuthOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseMacAuthOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseMacAuthOpenApiVo.msg) && + Objects.equals(this.result, operationResponseMacAuthOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseMacAuthOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseMacFilteringGeneralSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseMacFilteringGeneralSetting.java new file mode 100644 index 0000000..ea94702 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseMacFilteringGeneralSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseMacFilteringGeneralSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseMacFilteringGeneralSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private MacFilteringGeneralSetting result; + + public OperationResponseMacFilteringGeneralSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseMacFilteringGeneralSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseMacFilteringGeneralSetting result(MacFilteringGeneralSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public MacFilteringGeneralSetting getResult() { + return result; + } + + public void setResult(MacFilteringGeneralSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseMacFilteringGeneralSetting operationResponseMacFilteringGeneralSetting = (OperationResponseMacFilteringGeneralSetting) o; + return Objects.equals(this.errorCode, operationResponseMacFilteringGeneralSetting.errorCode) && + Objects.equals(this.msg, operationResponseMacFilteringGeneralSetting.msg) && + Objects.equals(this.result, operationResponseMacFilteringGeneralSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseMacFilteringGeneralSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseModifyConfirmResultOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseModifyConfirmResultOpenApiVo.java new file mode 100644 index 0000000..443b661 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseModifyConfirmResultOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseModifyConfirmResultOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseModifyConfirmResultOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ModifyConfirmResultOpenApiVo result; + + public OperationResponseModifyConfirmResultOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseModifyConfirmResultOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseModifyConfirmResultOpenApiVo result(ModifyConfirmResultOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ModifyConfirmResultOpenApiVo getResult() { + return result; + } + + public void setResult(ModifyConfirmResultOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseModifyConfirmResultOpenApiVo operationResponseModifyConfirmResultOpenApiVo = (OperationResponseModifyConfirmResultOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseModifyConfirmResultOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseModifyConfirmResultOpenApiVo.msg) && + Objects.equals(this.result, operationResponseModifyConfirmResultOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseModifyConfirmResultOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseNumberRegistrationResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseNumberRegistrationResult.java new file mode 100644 index 0000000..44b4bd7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseNumberRegistrationResult.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseNumberRegistrationResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseNumberRegistrationResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private NumberRegistrationResult result; + + public OperationResponseNumberRegistrationResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseNumberRegistrationResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseNumberRegistrationResult result(NumberRegistrationResult result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public NumberRegistrationResult getResult() { + return result; + } + + public void setResult(NumberRegistrationResult result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseNumberRegistrationResult operationResponseNumberRegistrationResult = (OperationResponseNumberRegistrationResult) o; + return Objects.equals(this.errorCode, operationResponseNumberRegistrationResult.errorCode) && + Objects.equals(this.msg, operationResponseNumberRegistrationResult.msg) && + Objects.equals(this.result, operationResponseNumberRegistrationResult.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseNumberRegistrationResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseObject.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseObject.java new file mode 100644 index 0000000..5aaabab --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseObject.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseObject + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseObject { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private Object result; + + public OperationResponseObject errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseObject msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseObject result(Object result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getResult() { + return result; + } + + public void setResult(Object result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseObject operationResponseObject = (OperationResponseObject) o; + return Objects.equals(this.errorCode, operationResponseObject.errorCode) && + Objects.equals(this.msg, operationResponseObject.msg) && + Objects.equals(this.result, operationResponseObject.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseObject {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseOuiGridVoOuiProfileQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseOuiGridVoOuiProfileQueryOpenApiVo.java new file mode 100644 index 0000000..293db1a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseOuiGridVoOuiProfileQueryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseOuiGridVoOuiProfileQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseOuiGridVoOuiProfileQueryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private OuiGridVoOuiProfileQueryOpenApiVo result; + + public OperationResponseOuiGridVoOuiProfileQueryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseOuiGridVoOuiProfileQueryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseOuiGridVoOuiProfileQueryOpenApiVo result(OuiGridVoOuiProfileQueryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public OuiGridVoOuiProfileQueryOpenApiVo getResult() { + return result; + } + + public void setResult(OuiGridVoOuiProfileQueryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseOuiGridVoOuiProfileQueryOpenApiVo operationResponseOuiGridVoOuiProfileQueryOpenApiVo = (OperationResponseOuiGridVoOuiProfileQueryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseOuiGridVoOuiProfileQueryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseOuiGridVoOuiProfileQueryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseOuiGridVoOuiProfileQueryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseOuiGridVoOuiProfileQueryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalCustomizationPageResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalCustomizationPageResOpenApiVo.java new file mode 100644 index 0000000..b8bed97 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalCustomizationPageResOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponsePortalCustomizationPageResOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponsePortalCustomizationPageResOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private PortalCustomizationPageResOpenApiVo result; + + public OperationResponsePortalCustomizationPageResOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponsePortalCustomizationPageResOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponsePortalCustomizationPageResOpenApiVo result(PortalCustomizationPageResOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public PortalCustomizationPageResOpenApiVo getResult() { + return result; + } + + public void setResult(PortalCustomizationPageResOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponsePortalCustomizationPageResOpenApiVo operationResponsePortalCustomizationPageResOpenApiVo = (OperationResponsePortalCustomizationPageResOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponsePortalCustomizationPageResOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponsePortalCustomizationPageResOpenApiVo.msg) && + Objects.equals(this.result, operationResponsePortalCustomizationPageResOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponsePortalCustomizationPageResOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalDetailResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalDetailResOpenApiVo.java new file mode 100644 index 0000000..c87ab6d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalDetailResOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponsePortalDetailResOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponsePortalDetailResOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private PortalDetailResOpenApiVo result; + + public OperationResponsePortalDetailResOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponsePortalDetailResOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponsePortalDetailResOpenApiVo result(PortalDetailResOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public PortalDetailResOpenApiVo getResult() { + return result; + } + + public void setResult(PortalDetailResOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponsePortalDetailResOpenApiVo operationResponsePortalDetailResOpenApiVo = (OperationResponsePortalDetailResOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponsePortalDetailResOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponsePortalDetailResOpenApiVo.msg) && + Objects.equals(this.result, operationResponsePortalDetailResOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponsePortalDetailResOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalPictureInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalPictureInfo.java new file mode 100644 index 0000000..dcacadb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePortalPictureInfo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponsePortalPictureInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponsePortalPictureInfo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private PortalPictureInfo result; + + public OperationResponsePortalPictureInfo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponsePortalPictureInfo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponsePortalPictureInfo result(PortalPictureInfo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public PortalPictureInfo getResult() { + return result; + } + + public void setResult(PortalPictureInfo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponsePortalPictureInfo operationResponsePortalPictureInfo = (OperationResponsePortalPictureInfo) o; + return Objects.equals(this.errorCode, operationResponsePortalPictureInfo.errorCode) && + Objects.equals(this.msg, operationResponsePortalPictureInfo.msg) && + Objects.equals(this.result, operationResponsePortalPictureInfo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponsePortalPictureInfo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePpskProfileVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePpskProfileVo.java new file mode 100644 index 0000000..ad1a294 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponsePpskProfileVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponsePpskProfileVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponsePpskProfileVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private PpskProfileVo result; + + public OperationResponsePpskProfileVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponsePpskProfileVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponsePpskProfileVo result(PpskProfileVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public PpskProfileVo getResult() { + return result; + } + + public void setResult(PpskProfileVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponsePpskProfileVo operationResponsePpskProfileVo = (OperationResponsePpskProfileVo) o; + return Objects.equals(this.errorCode, operationResponsePpskProfileVo.errorCode) && + Objects.equals(this.msg, operationResponsePpskProfileVo.msg) && + Objects.equals(this.result, operationResponsePpskProfileVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponsePpskProfileVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResIdOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResIdOpenApiVo.java new file mode 100644 index 0000000..fd16264 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResIdOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseResIdOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseResIdOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ResIdOpenApiVo result; + + public OperationResponseResIdOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseResIdOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseResIdOpenApiVo result(ResIdOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ResIdOpenApiVo getResult() { + return result; + } + + public void setResult(ResIdOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseResIdOpenApiVo operationResponseResIdOpenApiVo = (OperationResponseResIdOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseResIdOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseResIdOpenApiVo.msg) && + Objects.equals(this.result, operationResponseResIdOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseResIdOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo.java new file mode 100644 index 0000000..a9ec014 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ResponseDataVoBonjourServiceDetailOpenApiVo result; + + public OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo result(ResponseDataVoBonjourServiceDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ResponseDataVoBonjourServiceDetailOpenApiVo getResult() { + return result; + } + + public void setResult(ResponseDataVoBonjourServiceDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo operationResponseResponseDataVoBonjourServiceDetailOpenApiVo = (OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseResponseDataVoBonjourServiceDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseResponseDataVoBonjourServiceDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseResponseDataVoBonjourServiceDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseResponseDataVoBonjourServiceDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo.java new file mode 100644 index 0000000..b7f81c4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ResponseDataVoGatewayQosServiceSummaryOpenApiVo result; + + public OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo result(ResponseDataVoGatewayQosServiceSummaryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ResponseDataVoGatewayQosServiceSummaryOpenApiVo getResult() { + return result; + } + + public void setResult(ResponseDataVoGatewayQosServiceSummaryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo operationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo = (OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseResponseDataVoGatewayQosServiceSummaryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo.java new file mode 100644 index 0000000..a3d2d9e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ResponseDataVoLanNetworkQueryOpenApiV2Vo result; + + public OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo result(ResponseDataVoLanNetworkQueryOpenApiV2Vo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ResponseDataVoLanNetworkQueryOpenApiV2Vo getResult() { + return result; + } + + public void setResult(ResponseDataVoLanNetworkQueryOpenApiV2Vo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo operationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo = (OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo) o; + return Objects.equals(this.errorCode, operationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo.errorCode) && + Objects.equals(this.msg, operationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo.msg) && + Objects.equals(this.result, operationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseResponseDataVoLanNetworkQueryOpenApiV2Vo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoLanNetworkQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoLanNetworkQueryOpenApiVo.java new file mode 100644 index 0000000..67d1422 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoLanNetworkQueryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseResponseDataVoLanNetworkQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseResponseDataVoLanNetworkQueryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ResponseDataVoLanNetworkQueryOpenApiVo result; + + public OperationResponseResponseDataVoLanNetworkQueryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseResponseDataVoLanNetworkQueryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseResponseDataVoLanNetworkQueryOpenApiVo result(ResponseDataVoLanNetworkQueryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ResponseDataVoLanNetworkQueryOpenApiVo getResult() { + return result; + } + + public void setResult(ResponseDataVoLanNetworkQueryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseResponseDataVoLanNetworkQueryOpenApiVo operationResponseResponseDataVoLanNetworkQueryOpenApiVo = (OperationResponseResponseDataVoLanNetworkQueryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseResponseDataVoLanNetworkQueryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseResponseDataVoLanNetworkQueryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseResponseDataVoLanNetworkQueryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseResponseDataVoLanNetworkQueryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo.java new file mode 100644 index 0000000..11938f8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ResponseDataVoQosBwcWanInfoOpenApiVo result; + + public OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo result(ResponseDataVoQosBwcWanInfoOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ResponseDataVoQosBwcWanInfoOpenApiVo getResult() { + return result; + } + + public void setResult(ResponseDataVoQosBwcWanInfoOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo operationResponseResponseDataVoQosBwcWanInfoOpenApiVo = (OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseResponseDataVoQosBwcWanInfoOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseResponseDataVoQosBwcWanInfoOpenApiVo.msg) && + Objects.equals(this.result, operationResponseResponseDataVoQosBwcWanInfoOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseResponseDataVoQosBwcWanInfoOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoWireguardSummaryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoWireguardSummaryOpenApiVo.java new file mode 100644 index 0000000..ae85175 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseDataVoWireguardSummaryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseResponseDataVoWireguardSummaryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseResponseDataVoWireguardSummaryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ResponseDataVoWireguardSummaryOpenApiVo result; + + public OperationResponseResponseDataVoWireguardSummaryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseResponseDataVoWireguardSummaryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseResponseDataVoWireguardSummaryOpenApiVo result(ResponseDataVoWireguardSummaryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ResponseDataVoWireguardSummaryOpenApiVo getResult() { + return result; + } + + public void setResult(ResponseDataVoWireguardSummaryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseResponseDataVoWireguardSummaryOpenApiVo operationResponseResponseDataVoWireguardSummaryOpenApiVo = (OperationResponseResponseDataVoWireguardSummaryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseResponseDataVoWireguardSummaryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseResponseDataVoWireguardSummaryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseResponseDataVoWireguardSummaryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseResponseDataVoWireguardSummaryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseIdVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseIdVo.java new file mode 100644 index 0000000..c560b90 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseResponseIdVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseResponseIdVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseResponseIdVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private ResponseIdVo result; + + public OperationResponseResponseIdVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseResponseIdVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseResponseIdVo result(ResponseIdVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public ResponseIdVo getResult() { + return result; + } + + public void setResult(ResponseIdVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseResponseIdVo operationResponseResponseIdVo = (OperationResponseResponseIdVo) o; + return Objects.equals(this.errorCode, operationResponseResponseIdVo.errorCode) && + Objects.equals(this.msg, operationResponseResponseIdVo.msg) && + Objects.equals(this.result, operationResponseResponseIdVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseResponseIdVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseRestrictionEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseRestrictionEntity.java new file mode 100644 index 0000000..f277d01 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseRestrictionEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseRestrictionEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseRestrictionEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private RestrictionEntity result; + + public OperationResponseRestrictionEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseRestrictionEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseRestrictionEntity result(RestrictionEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public RestrictionEntity getResult() { + return result; + } + + public void setResult(RestrictionEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseRestrictionEntity operationResponseRestrictionEntity = (OperationResponseRestrictionEntity) o; + return Objects.equals(this.errorCode, operationResponseRestrictionEntity.errorCode) && + Objects.equals(this.msg, operationResponseRestrictionEntity.msg) && + Objects.equals(this.result, operationResponseRestrictionEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseRestrictionEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseRuleEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseRuleEntity.java new file mode 100644 index 0000000..f2d4f1e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseRuleEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseRuleEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseRuleEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private RuleEntity result; + + public OperationResponseRuleEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseRuleEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseRuleEntity result(RuleEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public RuleEntity getResult() { + return result; + } + + public void setResult(RuleEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseRuleEntity operationResponseRuleEntity = (OperationResponseRuleEntity) o; + return Objects.equals(this.errorCode, operationResponseRuleEntity.errorCode) && + Objects.equals(this.msg, operationResponseRuleEntity.msg) && + Objects.equals(this.result, operationResponseRuleEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseRuleEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSessionLimitEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSessionLimitEntity.java new file mode 100644 index 0000000..59c3bf0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSessionLimitEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSessionLimitEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSessionLimitEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SessionLimitEntity result; + + public OperationResponseSessionLimitEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSessionLimitEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSessionLimitEntity result(SessionLimitEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SessionLimitEntity getResult() { + return result; + } + + public void setResult(SessionLimitEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSessionLimitEntity operationResponseSessionLimitEntity = (OperationResponseSessionLimitEntity) o; + return Objects.equals(this.errorCode, operationResponseSessionLimitEntity.errorCode) && + Objects.equals(this.msg, operationResponseSessionLimitEntity.msg) && + Objects.equals(this.result, operationResponseSessionLimitEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSessionLimitEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSimQuotaSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSimQuotaSetting.java new file mode 100644 index 0000000..eb24f36 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSimQuotaSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSimQuotaSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSimQuotaSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SimQuotaSetting result; + + public OperationResponseSimQuotaSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSimQuotaSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSimQuotaSetting result(SimQuotaSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SimQuotaSetting getResult() { + return result; + } + + public void setResult(SimQuotaSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSimQuotaSetting operationResponseSimQuotaSetting = (OperationResponseSimQuotaSetting) o; + return Objects.equals(this.errorCode, operationResponseSimQuotaSetting.errorCode) && + Objects.equals(this.msg, operationResponseSimQuotaSetting.msg) && + Objects.equals(this.result, operationResponseSimQuotaSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSimQuotaSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteBandSteeringSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteBandSteeringSetting.java new file mode 100644 index 0000000..9b7574f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteBandSteeringSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteBandSteeringSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSiteBandSteeringSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteBandSteeringSetting result; + + public OperationResponseSiteBandSteeringSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteBandSteeringSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteBandSteeringSetting result(SiteBandSteeringSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteBandSteeringSetting getResult() { + return result; + } + + public void setResult(SiteBandSteeringSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteBandSteeringSetting operationResponseSiteBandSteeringSetting = (OperationResponseSiteBandSteeringSetting) o; + return Objects.equals(this.errorCode, operationResponseSiteBandSteeringSetting.errorCode) && + Objects.equals(this.msg, operationResponseSiteBandSteeringSetting.msg) && + Objects.equals(this.result, operationResponseSiteBandSteeringSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteBandSteeringSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteBeaconControlSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteBeaconControlSetting.java new file mode 100644 index 0000000..c79d2a3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteBeaconControlSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteBeaconControlSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSiteBeaconControlSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteBeaconControlSetting result; + + public OperationResponseSiteBeaconControlSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteBeaconControlSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteBeaconControlSetting result(SiteBeaconControlSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteBeaconControlSetting getResult() { + return result; + } + + public void setResult(SiteBeaconControlSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteBeaconControlSetting operationResponseSiteBeaconControlSetting = (OperationResponseSiteBeaconControlSetting) o; + return Objects.equals(this.errorCode, operationResponseSiteBeaconControlSetting.errorCode) && + Objects.equals(this.msg, operationResponseSiteBeaconControlSetting.msg) && + Objects.equals(this.result, operationResponseSiteBeaconControlSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteBeaconControlSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteChannelLimitSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteChannelLimitSetting.java new file mode 100644 index 0000000..d8fb962 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteChannelLimitSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteChannelLimitSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSiteChannelLimitSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteChannelLimitSetting result; + + public OperationResponseSiteChannelLimitSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteChannelLimitSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteChannelLimitSetting result(SiteChannelLimitSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteChannelLimitSetting getResult() { + return result; + } + + public void setResult(SiteChannelLimitSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteChannelLimitSetting operationResponseSiteChannelLimitSetting = (OperationResponseSiteChannelLimitSetting) o; + return Objects.equals(this.errorCode, operationResponseSiteChannelLimitSetting.errorCode) && + Objects.equals(this.msg, operationResponseSiteChannelLimitSetting.msg) && + Objects.equals(this.result, operationResponseSiteChannelLimitSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteChannelLimitSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteLedSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteLedSetting.java new file mode 100644 index 0000000..d083b94 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteLedSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteLedSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSiteLedSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteLedSetting result; + + public OperationResponseSiteLedSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteLedSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteLedSetting result(SiteLedSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteLedSetting getResult() { + return result; + } + + public void setResult(SiteLedSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteLedSetting operationResponseSiteLedSetting = (OperationResponseSiteLedSetting) o; + return Objects.equals(this.errorCode, operationResponseSiteLedSetting.errorCode) && + Objects.equals(this.msg, operationResponseSiteLedSetting.msg) && + Objects.equals(this.result, operationResponseSiteLedSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteLedSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteLldpSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteLldpSetting.java new file mode 100644 index 0000000..91f7cb6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteLldpSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteLldpSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSiteLldpSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteLldpSetting result; + + public OperationResponseSiteLldpSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteLldpSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteLldpSetting result(SiteLldpSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteLldpSetting getResult() { + return result; + } + + public void setResult(SiteLldpSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteLldpSetting operationResponseSiteLldpSetting = (OperationResponseSiteLldpSetting) o; + return Objects.equals(this.errorCode, operationResponseSiteLldpSetting.errorCode) && + Objects.equals(this.msg, operationResponseSiteLldpSetting.msg) && + Objects.equals(this.result, operationResponseSiteLldpSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteLldpSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteMeshSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteMeshSetting.java new file mode 100644 index 0000000..1adb7c8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteMeshSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteMeshSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSiteMeshSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteMeshSetting result; + + public OperationResponseSiteMeshSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteMeshSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteMeshSetting result(SiteMeshSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteMeshSetting getResult() { + return result; + } + + public void setResult(SiteMeshSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteMeshSetting operationResponseSiteMeshSetting = (OperationResponseSiteMeshSetting) o; + return Objects.equals(this.errorCode, operationResponseSiteMeshSetting.errorCode) && + Objects.equals(this.msg, operationResponseSiteMeshSetting.msg) && + Objects.equals(this.result, operationResponseSiteMeshSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteMeshSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteMulticastRateLimitSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteMulticastRateLimitSetting.java new file mode 100644 index 0000000..e90be05 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteMulticastRateLimitSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteMulticastRateLimitSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSiteMulticastRateLimitSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteMulticastRateLimitSetting result; + + public OperationResponseSiteMulticastRateLimitSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteMulticastRateLimitSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteMulticastRateLimitSetting result(SiteMulticastRateLimitSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteMulticastRateLimitSetting getResult() { + return result; + } + + public void setResult(SiteMulticastRateLimitSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteMulticastRateLimitSetting operationResponseSiteMulticastRateLimitSetting = (OperationResponseSiteMulticastRateLimitSetting) o; + return Objects.equals(this.errorCode, operationResponseSiteMulticastRateLimitSetting.errorCode) && + Objects.equals(this.msg, operationResponseSiteMulticastRateLimitSetting.msg) && + Objects.equals(this.result, operationResponseSiteMulticastRateLimitSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteMulticastRateLimitSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteRemoteLoggingSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteRemoteLoggingSetting.java new file mode 100644 index 0000000..0fb3255 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteRemoteLoggingSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteRemoteLoggingSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSiteRemoteLoggingSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteRemoteLoggingSetting result; + + public OperationResponseSiteRemoteLoggingSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteRemoteLoggingSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteRemoteLoggingSetting result(SiteRemoteLoggingSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteRemoteLoggingSetting getResult() { + return result; + } + + public void setResult(SiteRemoteLoggingSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteRemoteLoggingSetting operationResponseSiteRemoteLoggingSetting = (OperationResponseSiteRemoteLoggingSetting) o; + return Objects.equals(this.errorCode, operationResponseSiteRemoteLoggingSetting.errorCode) && + Objects.equals(this.msg, operationResponseSiteRemoteLoggingSetting.msg) && + Objects.equals(this.result, operationResponseSiteRemoteLoggingSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteRemoteLoggingSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteRoamingSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteRoamingSetting.java new file mode 100644 index 0000000..ec4f3b6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteRoamingSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteRoamingSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSiteRoamingSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteRoamingSetting result; + + public OperationResponseSiteRoamingSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteRoamingSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteRoamingSetting result(SiteRoamingSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteRoamingSetting getResult() { + return result; + } + + public void setResult(SiteRoamingSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteRoamingSetting operationResponseSiteRoamingSetting = (OperationResponseSiteRoamingSetting) o; + return Objects.equals(this.errorCode, operationResponseSiteRoamingSetting.errorCode) && + Objects.equals(this.msg, operationResponseSiteRoamingSetting.msg) && + Objects.equals(this.result, operationResponseSiteRoamingSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteRoamingSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteToSiteVpn.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteToSiteVpn.java new file mode 100644 index 0000000..8ecde67 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSiteToSiteVpn.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSiteToSiteVpn + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSiteToSiteVpn { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SiteToSiteVpn result; + + public OperationResponseSiteToSiteVpn errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSiteToSiteVpn msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSiteToSiteVpn result(SiteToSiteVpn result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteToSiteVpn getResult() { + return result; + } + + public void setResult(SiteToSiteVpn result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSiteToSiteVpn operationResponseSiteToSiteVpn = (OperationResponseSiteToSiteVpn) o; + return Objects.equals(this.errorCode, operationResponseSiteToSiteVpn.errorCode) && + Objects.equals(this.msg, operationResponseSiteToSiteVpn.msg) && + Objects.equals(this.result, operationResponseSiteToSiteVpn.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSiteToSiteVpn {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSnmpSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSnmpSettingOpenApiVo.java new file mode 100644 index 0000000..b333989 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSnmpSettingOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSnmpSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSnmpSettingOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SnmpSettingOpenApiVo result; + + public OperationResponseSnmpSettingOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSnmpSettingOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSnmpSettingOpenApiVo result(SnmpSettingOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SnmpSettingOpenApiVo getResult() { + return result; + } + + public void setResult(SnmpSettingOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSnmpSettingOpenApiVo operationResponseSnmpSettingOpenApiVo = (OperationResponseSnmpSettingOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseSnmpSettingOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseSnmpSettingOpenApiVo.msg) && + Objects.equals(this.result, operationResponseSnmpSettingOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSnmpSettingOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSshSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSshSetting.java new file mode 100644 index 0000000..97fafe7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSshSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSshSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSshSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SshSetting result; + + public OperationResponseSshSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSshSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSshSetting result(SshSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SshSetting getResult() { + return result; + } + + public void setResult(SshSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSshSetting operationResponseSshSetting = (OperationResponseSshSetting) o; + return Objects.equals(this.errorCode, operationResponseSshSetting.errorCode) && + Objects.equals(this.msg, operationResponseSshSetting.msg) && + Objects.equals(this.result, operationResponseSshSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSshSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSsidDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSsidDetailOpenApiVo.java new file mode 100644 index 0000000..aeb90f6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSsidDetailOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSsidDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSsidDetailOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SsidDetailOpenApiVo result; + + public OperationResponseSsidDetailOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSsidDetailOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSsidDetailOpenApiVo result(SsidDetailOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SsidDetailOpenApiVo getResult() { + return result; + } + + public void setResult(SsidDetailOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSsidDetailOpenApiVo operationResponseSsidDetailOpenApiVo = (OperationResponseSsidDetailOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseSsidDetailOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseSsidDetailOpenApiVo.msg) && + Objects.equals(this.result, operationResponseSsidDetailOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSsidDetailOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSslVpnServerSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSslVpnServerSetting.java new file mode 100644 index 0000000..5ca0a35 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSslVpnServerSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSslVpnServerSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSslVpnServerSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SslVpnServerSetting result; + + public OperationResponseSslVpnServerSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSslVpnServerSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSslVpnServerSetting result(SslVpnServerSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SslVpnServerSetting getResult() { + return result; + } + + public void setResult(SslVpnServerSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSslVpnServerSetting operationResponseSslVpnServerSetting = (OperationResponseSslVpnServerSetting) o; + return Objects.equals(this.errorCode, operationResponseSslVpnServerSetting.errorCode) && + Objects.equals(this.msg, operationResponseSslVpnServerSetting.msg) && + Objects.equals(this.result, operationResponseSslVpnServerSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSslVpnServerSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity.java new file mode 100644 index 0000000..90d85f7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SslVpnUserOpenApiGridVoSslVpnUserEntity result; + + public OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity result(SslVpnUserOpenApiGridVoSslVpnUserEntity result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SslVpnUserOpenApiGridVoSslVpnUserEntity getResult() { + return result; + } + + public void setResult(SslVpnUserOpenApiGridVoSslVpnUserEntity result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity operationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity = (OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity) o; + return Objects.equals(this.errorCode, operationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity.errorCode) && + Objects.equals(this.msg, operationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity.msg) && + Objects.equals(this.result, operationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSslVpnUserOpenApiGridVoSslVpnUserEntity {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseStaticRoutingInterfaceResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseStaticRoutingInterfaceResult.java new file mode 100644 index 0000000..22999c2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseStaticRoutingInterfaceResult.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseStaticRoutingInterfaceResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseStaticRoutingInterfaceResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private StaticRoutingInterfaceResult result; + + public OperationResponseStaticRoutingInterfaceResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseStaticRoutingInterfaceResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseStaticRoutingInterfaceResult result(StaticRoutingInterfaceResult result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public StaticRoutingInterfaceResult getResult() { + return result; + } + + public void setResult(StaticRoutingInterfaceResult result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseStaticRoutingInterfaceResult operationResponseStaticRoutingInterfaceResult = (OperationResponseStaticRoutingInterfaceResult) o; + return Objects.equals(this.errorCode, operationResponseStaticRoutingInterfaceResult.errorCode) && + Objects.equals(this.msg, operationResponseStaticRoutingInterfaceResult.msg) && + Objects.equals(this.result, operationResponseStaticRoutingInterfaceResult.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseStaticRoutingInterfaceResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSupportOsgModelOpenApiAppVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSupportOsgModelOpenApiAppVo.java new file mode 100644 index 0000000..401d70b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseSupportOsgModelOpenApiAppVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseSupportOsgModelOpenApiAppVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseSupportOsgModelOpenApiAppVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private SupportOsgModelOpenApiAppVo result; + + public OperationResponseSupportOsgModelOpenApiAppVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseSupportOsgModelOpenApiAppVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseSupportOsgModelOpenApiAppVo result(SupportOsgModelOpenApiAppVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public SupportOsgModelOpenApiAppVo getResult() { + return result; + } + + public void setResult(SupportOsgModelOpenApiAppVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseSupportOsgModelOpenApiAppVo operationResponseSupportOsgModelOpenApiAppVo = (OperationResponseSupportOsgModelOpenApiAppVo) o; + return Objects.equals(this.errorCode, operationResponseSupportOsgModelOpenApiAppVo.errorCode) && + Objects.equals(this.msg, operationResponseSupportOsgModelOpenApiAppVo.msg) && + Objects.equals(this.result, operationResponseSupportOsgModelOpenApiAppVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseSupportOsgModelOpenApiAppVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseTagOutConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseTagOutConfigOpenApiVo.java new file mode 100644 index 0000000..f98a148 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseTagOutConfigOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseTagOutConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseTagOutConfigOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private TagOutConfigOpenApiVo result; + + public OperationResponseTagOutConfigOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseTagOutConfigOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseTagOutConfigOpenApiVo result(TagOutConfigOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public TagOutConfigOpenApiVo getResult() { + return result; + } + + public void setResult(TagOutConfigOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseTagOutConfigOpenApiVo operationResponseTagOutConfigOpenApiVo = (OperationResponseTagOutConfigOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseTagOutConfigOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseTagOutConfigOpenApiVo.msg) && + Objects.equals(this.result, operationResponseTagOutConfigOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseTagOutConfigOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUpnpSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUpnpSettingOpenApiVo.java new file mode 100644 index 0000000..97aea12 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUpnpSettingOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseUpnpSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseUpnpSettingOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private UpnpSettingOpenApiVo result; + + public OperationResponseUpnpSettingOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseUpnpSettingOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseUpnpSettingOpenApiVo result(UpnpSettingOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public UpnpSettingOpenApiVo getResult() { + return result; + } + + public void setResult(UpnpSettingOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseUpnpSettingOpenApiVo operationResponseUpnpSettingOpenApiVo = (OperationResponseUpnpSettingOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseUpnpSettingOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseUpnpSettingOpenApiVo.msg) && + Objects.equals(this.result, operationResponseUpnpSettingOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseUpnpSettingOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlCategoryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlCategoryOpenApiVo.java new file mode 100644 index 0000000..28bbe7f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlCategoryOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseUrlCategoryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseUrlCategoryOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private UrlCategoryOpenApiVo result; + + public OperationResponseUrlCategoryOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseUrlCategoryOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseUrlCategoryOpenApiVo result(UrlCategoryOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public UrlCategoryOpenApiVo getResult() { + return result; + } + + public void setResult(UrlCategoryOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseUrlCategoryOpenApiVo operationResponseUrlCategoryOpenApiVo = (OperationResponseUrlCategoryOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseUrlCategoryOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseUrlCategoryOpenApiVo.msg) && + Objects.equals(this.result, operationResponseUrlCategoryOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseUrlCategoryOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlFilterGlobalOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlFilterGlobalOpenApiVo.java new file mode 100644 index 0000000..b188b7b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlFilterGlobalOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseUrlFilterGlobalOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseUrlFilterGlobalOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private UrlFilterGlobalOpenApiVo result; + + public OperationResponseUrlFilterGlobalOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseUrlFilterGlobalOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseUrlFilterGlobalOpenApiVo result(UrlFilterGlobalOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public UrlFilterGlobalOpenApiVo getResult() { + return result; + } + + public void setResult(UrlFilterGlobalOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseUrlFilterGlobalOpenApiVo operationResponseUrlFilterGlobalOpenApiVo = (OperationResponseUrlFilterGlobalOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseUrlFilterGlobalOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseUrlFilterGlobalOpenApiVo.msg) && + Objects.equals(this.result, operationResponseUrlFilterGlobalOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseUrlFilterGlobalOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.java new file mode 100644 index 0000000..d11d1f9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo result; + + public OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo result(UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo getResult() { + return result; + } + + public void setResult(UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo operationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo = (OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.msg) && + Objects.equals(this.result, operationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseUrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUsbInfoListResponse.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUsbInfoListResponse.java new file mode 100644 index 0000000..96a385a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseUsbInfoListResponse.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseUsbInfoListResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseUsbInfoListResponse { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private UsbInfoListResponse result; + + public OperationResponseUsbInfoListResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseUsbInfoListResponse msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseUsbInfoListResponse result(UsbInfoListResponse result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public UsbInfoListResponse getResult() { + return result; + } + + public void setResult(UsbInfoListResponse result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseUsbInfoListResponse operationResponseUsbInfoListResponse = (OperationResponseUsbInfoListResponse) o; + return Objects.equals(this.errorCode, operationResponseUsbInfoListResponse.errorCode) && + Objects.equals(this.msg, operationResponseUsbInfoListResponse.msg) && + Objects.equals(this.result, operationResponseUsbInfoListResponse.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseUsbInfoListResponse {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVirtualWanAvailablesOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVirtualWanAvailablesOpenApiVo.java new file mode 100644 index 0000000..eea8d32 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVirtualWanAvailablesOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseVirtualWanAvailablesOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseVirtualWanAvailablesOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private VirtualWanAvailablesOpenApiVo result; + + public OperationResponseVirtualWanAvailablesOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseVirtualWanAvailablesOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseVirtualWanAvailablesOpenApiVo result(VirtualWanAvailablesOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public VirtualWanAvailablesOpenApiVo getResult() { + return result; + } + + public void setResult(VirtualWanAvailablesOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseVirtualWanAvailablesOpenApiVo operationResponseVirtualWanAvailablesOpenApiVo = (OperationResponseVirtualWanAvailablesOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseVirtualWanAvailablesOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseVirtualWanAvailablesOpenApiVo.msg) && + Objects.equals(this.result, operationResponseVirtualWanAvailablesOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseVirtualWanAvailablesOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.java new file mode 100644 index 0000000..5148717 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo result; + + public OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo result(VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo getResult() { + return result; + } + + public void setResult(VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo operationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo = (OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.msg) && + Objects.equals(this.result, operationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseVirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoiceMailSettingResponse.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoiceMailSettingResponse.java new file mode 100644 index 0000000..2cd38b1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoiceMailSettingResponse.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseVoiceMailSettingResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseVoiceMailSettingResponse { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private VoiceMailSettingResponse result; + + public OperationResponseVoiceMailSettingResponse errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseVoiceMailSettingResponse msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseVoiceMailSettingResponse result(VoiceMailSettingResponse result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public VoiceMailSettingResponse getResult() { + return result; + } + + public void setResult(VoiceMailSettingResponse result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseVoiceMailSettingResponse operationResponseVoiceMailSettingResponse = (OperationResponseVoiceMailSettingResponse) o; + return Objects.equals(this.errorCode, operationResponseVoiceMailSettingResponse.errorCode) && + Objects.equals(this.msg, operationResponseVoiceMailSettingResponse.msg) && + Objects.equals(this.result, operationResponseVoiceMailSettingResponse.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseVoiceMailSettingResponse {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoid.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoid.java new file mode 100644 index 0000000..75e42c7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoid.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseVoid + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseVoid { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private Object result; + + public OperationResponseVoid errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseVoid msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseVoid result(Object result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getResult() { + return result; + } + + public void setResult(Object result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseVoid operationResponseVoid = (OperationResponseVoid) o; + return Objects.equals(this.errorCode, operationResponseVoid.errorCode) && + Objects.equals(this.msg, operationResponseVoid.msg) && + Objects.equals(this.result, operationResponseVoid.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseVoid {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipCallLogEnableSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipCallLogEnableSetting.java new file mode 100644 index 0000000..66b79bd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipCallLogEnableSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseVoipCallLogEnableSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseVoipCallLogEnableSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private VoipCallLogEnableSetting result; + + public OperationResponseVoipCallLogEnableSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseVoipCallLogEnableSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseVoipCallLogEnableSetting result(VoipCallLogEnableSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public VoipCallLogEnableSetting getResult() { + return result; + } + + public void setResult(VoipCallLogEnableSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseVoipCallLogEnableSetting operationResponseVoipCallLogEnableSetting = (OperationResponseVoipCallLogEnableSetting) o; + return Objects.equals(this.errorCode, operationResponseVoipCallLogEnableSetting.errorCode) && + Objects.equals(this.msg, operationResponseVoipCallLogEnableSetting.msg) && + Objects.equals(this.result, operationResponseVoipCallLogEnableSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseVoipCallLogEnableSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipEmergencyNumberSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipEmergencyNumberSetting.java new file mode 100644 index 0000000..54bd7e9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipEmergencyNumberSetting.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseVoipEmergencyNumberSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseVoipEmergencyNumberSetting { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private VoipEmergencyNumberSetting result; + + public OperationResponseVoipEmergencyNumberSetting errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseVoipEmergencyNumberSetting msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseVoipEmergencyNumberSetting result(VoipEmergencyNumberSetting result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public VoipEmergencyNumberSetting getResult() { + return result; + } + + public void setResult(VoipEmergencyNumberSetting result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseVoipEmergencyNumberSetting operationResponseVoipEmergencyNumberSetting = (OperationResponseVoipEmergencyNumberSetting) o; + return Objects.equals(this.errorCode, operationResponseVoipEmergencyNumberSetting.errorCode) && + Objects.equals(this.msg, operationResponseVoipEmergencyNumberSetting.msg) && + Objects.equals(this.result, operationResponseVoipEmergencyNumberSetting.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseVoipEmergencyNumberSetting {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipOpenApiVo.java new file mode 100644 index 0000000..ebb0d59 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseVoipOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseVoipOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseVoipOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private VoipOpenApiVo result; + + public OperationResponseVoipOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseVoipOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseVoipOpenApiVo result(VoipOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public VoipOpenApiVo getResult() { + return result; + } + + public void setResult(VoipOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseVoipOpenApiVo operationResponseVoipOpenApiVo = (OperationResponseVoipOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseVoipOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseVoipOpenApiVo.msg) && + Objects.equals(this.result, operationResponseVoipOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseVoipOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWanLoadBalanceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWanLoadBalanceOpenApiVo.java new file mode 100644 index 0000000..f1790a1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWanLoadBalanceOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseWanLoadBalanceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseWanLoadBalanceOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private WanLoadBalanceOpenApiVo result; + + public OperationResponseWanLoadBalanceOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWanLoadBalanceOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseWanLoadBalanceOpenApiVo result(WanLoadBalanceOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public WanLoadBalanceOpenApiVo getResult() { + return result; + } + + public void setResult(WanLoadBalanceOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWanLoadBalanceOpenApiVo operationResponseWanLoadBalanceOpenApiVo = (OperationResponseWanLoadBalanceOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseWanLoadBalanceOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseWanLoadBalanceOpenApiVo.msg) && + Objects.equals(this.result, operationResponseWanLoadBalanceOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWanLoadBalanceOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWanSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWanSettingOpenApiVo.java new file mode 100644 index 0000000..a764b87 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWanSettingOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseWanSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseWanSettingOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private WanSettingOpenApiVo result; + + public OperationResponseWanSettingOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWanSettingOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseWanSettingOpenApiVo result(WanSettingOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public WanSettingOpenApiVo getResult() { + return result; + } + + public void setResult(WanSettingOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWanSettingOpenApiVo operationResponseWanSettingOpenApiVo = (OperationResponseWanSettingOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseWanSettingOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseWanSettingOpenApiVo.msg) && + Objects.equals(this.result, operationResponseWanSettingOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWanSettingOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWidsConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWidsConfigOpenApiVo.java new file mode 100644 index 0000000..457f0fa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWidsConfigOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseWidsConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseWidsConfigOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private WidsConfigOpenApiVo result; + + public OperationResponseWidsConfigOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWidsConfigOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseWidsConfigOpenApiVo result(WidsConfigOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public WidsConfigOpenApiVo getResult() { + return result; + } + + public void setResult(WidsConfigOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWidsConfigOpenApiVo operationResponseWidsConfigOpenApiVo = (OperationResponseWidsConfigOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseWidsConfigOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseWidsConfigOpenApiVo.msg) && + Objects.equals(this.result, operationResponseWidsConfigOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWidsConfigOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWipsConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWipsConfigOpenApiVo.java new file mode 100644 index 0000000..89a728c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWipsConfigOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseWipsConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseWipsConfigOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private WipsConfigOpenApiVo result; + + public OperationResponseWipsConfigOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWipsConfigOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseWipsConfigOpenApiVo result(WipsConfigOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public WipsConfigOpenApiVo getResult() { + return result; + } + + public void setResult(WipsConfigOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWipsConfigOpenApiVo operationResponseWipsConfigOpenApiVo = (OperationResponseWipsConfigOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseWipsConfigOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseWipsConfigOpenApiVo.msg) && + Objects.equals(this.result, operationResponseWipsConfigOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWipsConfigOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWireguardKeyOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWireguardKeyOpenApiVo.java new file mode 100644 index 0000000..eaeba3b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWireguardKeyOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * OperationResponseWireguardKeyOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseWireguardKeyOpenApiVo { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + @JsonProperty("result") + private WireguardKeyOpenApiVo result; + + public OperationResponseWireguardKeyOpenApiVo errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWireguardKeyOpenApiVo msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + public OperationResponseWireguardKeyOpenApiVo result(WireguardKeyOpenApiVo result) { + this.result = result; + return this; + } + + /** + * Get result + * @return result + */ + @ApiModelProperty(value = "") + + @Valid + + public WireguardKeyOpenApiVo getResult() { + return result; + } + + public void setResult(WireguardKeyOpenApiVo result) { + this.result = result; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWireguardKeyOpenApiVo operationResponseWireguardKeyOpenApiVo = (OperationResponseWireguardKeyOpenApiVo) o; + return Objects.equals(this.errorCode, operationResponseWireguardKeyOpenApiVo.errorCode) && + Objects.equals(this.msg, operationResponseWireguardKeyOpenApiVo.msg) && + Objects.equals(this.result, operationResponseWireguardKeyOpenApiVo.result); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg, result); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWireguardKeyOpenApiVo {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append(" result: ").append(toIndentedString(result)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWithoutResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWithoutResult.java new file mode 100644 index 0000000..8876f14 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OperationResponseWithoutResult.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * OperationResponseWithoutResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OperationResponseWithoutResult { + @JsonProperty("errorCode") + private Integer errorCode; + + @JsonProperty("msg") + private String msg; + + public OperationResponseWithoutResult errorCode(Integer errorCode) { + this.errorCode = errorCode; + return this; + } + + /** + * Get errorCode + * @return errorCode + */ + @ApiModelProperty(value = "") + + + public Integer getErrorCode() { + return errorCode; + } + + public void setErrorCode(Integer errorCode) { + this.errorCode = errorCode; + } + + public OperationResponseWithoutResult msg(String msg) { + this.msg = msg; + return this; + } + + /** + * Get msg + * @return msg + */ + @ApiModelProperty(value = "") + + + public String getMsg() { + return msg; + } + + public void setMsg(String msg) { + this.msg = msg; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OperationResponseWithoutResult operationResponseWithoutResult = (OperationResponseWithoutResult) o; + return Objects.equals(this.errorCode, operationResponseWithoutResult.errorCode) && + Objects.equals(this.msg, operationResponseWithoutResult.msg); + } + + @Override + public int hashCode() { + return Objects.hash(errorCode, msg); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OperationResponseWithoutResult {\n"); + + sb.append(" errorCode: ").append(toIndentedString(errorCode)).append("\n"); + sb.append(" msg: ").append(toIndentedString(msg)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgMacFilterAddressOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgMacFilterAddressOpenApiVo.java new file mode 100644 index 0000000..b291e7f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgMacFilterAddressOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * MAC addresses of the MAC filtering entity. + */ +@ApiModel(description = "MAC addresses of the MAC filtering entity.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OsgMacFilterAddressOpenApiVo { + @JsonProperty("macAddress") + private String macAddress; + + @JsonProperty("name") + private String name; + + public OsgMacFilterAddressOpenApiVo macAddress(String macAddress) { + this.macAddress = macAddress; + return this; + } + + /** + * MAC address of the MAC filtering address. + * @return macAddress + */ + @ApiModelProperty(value = "MAC address of the MAC filtering address.") + + + public String getMacAddress() { + return macAddress; + } + + public void setMacAddress(String macAddress) { + this.macAddress = macAddress; + } + + public OsgMacFilterAddressOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the MAC filtering address. + * @return name + */ + @ApiModelProperty(value = "Name of the MAC filtering address.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OsgMacFilterAddressOpenApiVo osgMacFilterAddressOpenApiVo = (OsgMacFilterAddressOpenApiVo) o; + return Objects.equals(this.macAddress, osgMacFilterAddressOpenApiVo.macAddress) && + Objects.equals(this.name, osgMacFilterAddressOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(macAddress, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OsgMacFilterAddressOpenApiVo {\n"); + + sb.append(" macAddress: ").append(toIndentedString(macAddress)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgMdnsRuleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgMdnsRuleOpenApiVo.java new file mode 100644 index 0000000..015dfac --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgMdnsRuleOpenApiVo.java @@ -0,0 +1,121 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * MDNS rule gateway config, valid when parameter [type] is 1 + */ +@ApiModel(description = "MDNS rule gateway config, valid when parameter [type] is 1") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OsgMdnsRuleOpenApiVo { + @JsonProperty("serviceNetworks") + @Valid + private List serviceNetworks = new ArrayList<>(); + + @JsonProperty("clientNetworks") + @Valid + private List clientNetworks = new ArrayList<>(); + + public OsgMdnsRuleOpenApiVo serviceNetworks(List serviceNetworks) { + this.serviceNetworks = serviceNetworks; + return this; + } + + public OsgMdnsRuleOpenApiVo addServiceNetworksItem(String serviceNetworksItem) { + this.serviceNetworks.add(serviceNetworksItem); + return this; + } + + /** + * LAN Network ID list of selected service networks. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface + * @return serviceNetworks + */ + @ApiModelProperty(required = true, value = "LAN Network ID list of selected service networks. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface") + @NotNull + + + public List getServiceNetworks() { + return serviceNetworks; + } + + public void setServiceNetworks(List serviceNetworks) { + this.serviceNetworks = serviceNetworks; + } + + public OsgMdnsRuleOpenApiVo clientNetworks(List clientNetworks) { + this.clientNetworks = clientNetworks; + return this; + } + + public OsgMdnsRuleOpenApiVo addClientNetworksItem(String clientNetworksItem) { + this.clientNetworks.add(clientNetworksItem); + return this; + } + + /** + * LAN Network ID list of selected client networks. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface + * @return clientNetworks + */ + @ApiModelProperty(required = true, value = "LAN Network ID list of selected client networks. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface") + @NotNull + + + public List getClientNetworks() { + return clientNetworks; + } + + public void setClientNetworks(List clientNetworks) { + this.clientNetworks = clientNetworks; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OsgMdnsRuleOpenApiVo osgMdnsRuleOpenApiVo = (OsgMdnsRuleOpenApiVo) o; + return Objects.equals(this.serviceNetworks, osgMdnsRuleOpenApiVo.serviceNetworks) && + Objects.equals(this.clientNetworks, osgMdnsRuleOpenApiVo.clientNetworks); + } + + @Override + public int hashCode() { + return Objects.hash(serviceNetworks, clientNetworks); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OsgMdnsRuleOpenApiVo {\n"); + + sb.append(" serviceNetworks: ").append(toIndentedString(serviceNetworks)).append("\n"); + sb.append(" clientNetworks: ").append(toIndentedString(clientNetworks)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgModelOpenApiInfoVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgModelOpenApiInfoVo.java new file mode 100644 index 0000000..c2802fc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgModelOpenApiInfoVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Model ID and name + */ +@ApiModel(description = "Model ID and name") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OsgModelOpenApiInfoVo { + @JsonProperty("id") + private Integer id; + + @JsonProperty("name") + private String name; + + public OsgModelOpenApiInfoVo id(Integer id) { + this.id = id; + return this; + } + + /** + * Model ID + * @return id + */ + @ApiModelProperty(required = true, value = "Model ID") + @NotNull + + + public Integer getId() { + return id; + } + + public void setId(Integer id) { + this.id = id; + } + + public OsgModelOpenApiInfoVo name(String name) { + this.name = name; + return this; + } + + /** + * Model name + * @return name + */ + @ApiModelProperty(required = true, value = "Model name") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OsgModelOpenApiInfoVo osgModelOpenApiInfoVo = (OsgModelOpenApiInfoVo) o; + return Objects.equals(this.id, osgModelOpenApiInfoVo.id) && + Objects.equals(this.name, osgModelOpenApiInfoVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OsgModelOpenApiInfoVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgModelOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgModelOpenApiVo.java new file mode 100644 index 0000000..9da2605 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OsgModelOpenApiVo.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * OsgModelOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OsgModelOpenApiVo { + @JsonProperty("modelId") + private Integer modelId; + + public OsgModelOpenApiVo modelId(Integer modelId) { + this.modelId = modelId; + return this; + } + + /** + * It refers to function \"Get supported gateway model list for pre-configuration\". + * @return modelId + */ + @ApiModelProperty(required = true, value = "It refers to function \"Get supported gateway model list for pre-configuration\".") + @NotNull + + + public Integer getModelId() { + return modelId; + } + + public void setModelId(Integer modelId) { + this.modelId = modelId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OsgModelOpenApiVo osgModelOpenApiVo = (OsgModelOpenApiVo) o; + return Objects.equals(this.modelId, osgModelOpenApiVo.modelId); + } + + @Override + public int hashCode() { + return Objects.hash(modelId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OsgModelOpenApiVo {\n"); + + sb.append(" modelId: ").append(toIndentedString(modelId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OswProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OswProfileOpenApiVo.java new file mode 100644 index 0000000..f430e90 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OswProfileOpenApiVo.java @@ -0,0 +1,138 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * OswProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OswProfileOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("profiles") + @Valid + private Map profiles = null; + + public OswProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Switch name + * @return name + */ + @ApiModelProperty(value = "Switch name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OswProfileOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Switch MAC + * @return mac + */ + @ApiModelProperty(value = "Switch MAC") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public OswProfileOpenApiVo profiles(Map profiles) { + this.profiles = profiles; + return this; + } + + public OswProfileOpenApiVo putProfilesItem(String key, String profilesItem) { + if (this.profiles == null) { + this.profiles = new HashMap<>(); + } + this.profiles.put(key, profilesItem); + return this; + } + + /** + * Switch port profiles + * @return profiles + */ + @ApiModelProperty(value = "Switch port profiles") + + + public Map getProfiles() { + return profiles; + } + + public void setProfiles(Map profiles) { + this.profiles = profiles; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OswProfileOpenApiVo oswProfileOpenApiVo = (OswProfileOpenApiVo) o; + return Objects.equals(this.name, oswProfileOpenApiVo.name) && + Objects.equals(this.mac, oswProfileOpenApiVo.mac) && + Objects.equals(this.profiles, oswProfileOpenApiVo.profiles); + } + + @Override + public int hashCode() { + return Objects.hash(name, mac, profiles); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OswProfileOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" profiles: ").append(toIndentedString(profiles)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OtoNatInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OtoNatInfoOpenApiVo.java new file mode 100644 index 0000000..7dec869 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OtoNatInfoOpenApiVo.java @@ -0,0 +1,268 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OtoNatInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OtoNatInfoOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("interfaceIds") + @Valid + private List interfaceIds = new ArrayList<>(); + + @JsonProperty("internalIp") + private String internalIp; + + @JsonProperty("externalIp") + private String externalIp; + + @JsonProperty("dmz") + private Boolean dmz; + + @JsonProperty("description") + private String description; + + public OtoNatInfoOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * ID + * @return id + */ + @ApiModelProperty(value = "ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public OtoNatInfoOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OtoNatInfoOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status + * @return status + */ + @ApiModelProperty(required = true, value = "Status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public OtoNatInfoOpenApiVo interfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + return this; + } + + public OtoNatInfoOpenApiVo addInterfaceIdsItem(String interfaceIdsItem) { + this.interfaceIds.add(interfaceIdsItem); + return this; + } + + /** + * This field represents WAN port ID. WAN port ID can be obtained from can be obtained from 'Get internet basic info' interface. + * @return interfaceIds + */ + @ApiModelProperty(required = true, value = "This field represents WAN port ID. WAN port ID can be obtained from can be obtained from 'Get internet basic info' interface.") + @NotNull + + + public List getInterfaceIds() { + return interfaceIds; + } + + public void setInterfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + } + + public OtoNatInfoOpenApiVo internalIp(String internalIp) { + this.internalIp = internalIp; + return this; + } + + /** + * Internal IP + * @return internalIp + */ + @ApiModelProperty(required = true, value = "Internal IP") + @NotNull + + + public String getInternalIp() { + return internalIp; + } + + public void setInternalIp(String internalIp) { + this.internalIp = internalIp; + } + + public OtoNatInfoOpenApiVo externalIp(String externalIp) { + this.externalIp = externalIp; + return this; + } + + /** + * External IP + * @return externalIp + */ + @ApiModelProperty(required = true, value = "External IP") + @NotNull + + + public String getExternalIp() { + return externalIp; + } + + public void setExternalIp(String externalIp) { + this.externalIp = externalIp; + } + + public OtoNatInfoOpenApiVo dmz(Boolean dmz) { + this.dmz = dmz; + return this; + } + + /** + * Whether to enable the DMZ + * @return dmz + */ + @ApiModelProperty(required = true, value = "Whether to enable the DMZ") + @NotNull + + + public Boolean getDmz() { + return dmz; + } + + public void setDmz(Boolean dmz) { + this.dmz = dmz; + } + + public OtoNatInfoOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description should contain 1 to 64 characters. + * @return description + */ + @ApiModelProperty(value = "Description should contain 1 to 64 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OtoNatInfoOpenApiVo otoNatInfoOpenApiVo = (OtoNatInfoOpenApiVo) o; + return Objects.equals(this.id, otoNatInfoOpenApiVo.id) && + Objects.equals(this.name, otoNatInfoOpenApiVo.name) && + Objects.equals(this.status, otoNatInfoOpenApiVo.status) && + Objects.equals(this.interfaceIds, otoNatInfoOpenApiVo.interfaceIds) && + Objects.equals(this.internalIp, otoNatInfoOpenApiVo.internalIp) && + Objects.equals(this.externalIp, otoNatInfoOpenApiVo.externalIp) && + Objects.equals(this.dmz, otoNatInfoOpenApiVo.dmz) && + Objects.equals(this.description, otoNatInfoOpenApiVo.description); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, status, interfaceIds, internalIp, externalIp, dmz, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OtoNatInfoOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" interfaceIds: ").append(toIndentedString(interfaceIds)).append("\n"); + sb.append(" internalIp: ").append(toIndentedString(internalIp)).append("\n"); + sb.append(" externalIp: ").append(toIndentedString(externalIp)).append("\n"); + sb.append(" dmz: ").append(toIndentedString(dmz)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OtoNatOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OtoNatOpenApiVo.java new file mode 100644 index 0000000..d7ab227 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OtoNatOpenApiVo.java @@ -0,0 +1,243 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OtoNatOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OtoNatOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("interfaceIds") + @Valid + private List interfaceIds = new ArrayList<>(); + + @JsonProperty("internalIp") + private String internalIp; + + @JsonProperty("externalIp") + private String externalIp; + + @JsonProperty("dmz") + private Boolean dmz; + + @JsonProperty("description") + private String description; + + public OtoNatOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name, name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name, name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OtoNatOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status + * @return status + */ + @ApiModelProperty(required = true, value = "Status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public OtoNatOpenApiVo interfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + return this; + } + + public OtoNatOpenApiVo addInterfaceIdsItem(String interfaceIdsItem) { + this.interfaceIds.add(interfaceIdsItem); + return this; + } + + /** + * This field represents WAN port ID. WAN port ID can be obtained from can be obtained from 'Get internet basic info' interface. + * @return interfaceIds + */ + @ApiModelProperty(required = true, value = "This field represents WAN port ID. WAN port ID can be obtained from can be obtained from 'Get internet basic info' interface.") + @NotNull + + + public List getInterfaceIds() { + return interfaceIds; + } + + public void setInterfaceIds(List interfaceIds) { + this.interfaceIds = interfaceIds; + } + + public OtoNatOpenApiVo internalIp(String internalIp) { + this.internalIp = internalIp; + return this; + } + + /** + * Internal IP + * @return internalIp + */ + @ApiModelProperty(required = true, value = "Internal IP") + @NotNull + + + public String getInternalIp() { + return internalIp; + } + + public void setInternalIp(String internalIp) { + this.internalIp = internalIp; + } + + public OtoNatOpenApiVo externalIp(String externalIp) { + this.externalIp = externalIp; + return this; + } + + /** + * External IP + * @return externalIp + */ + @ApiModelProperty(required = true, value = "External IP") + @NotNull + + + public String getExternalIp() { + return externalIp; + } + + public void setExternalIp(String externalIp) { + this.externalIp = externalIp; + } + + public OtoNatOpenApiVo dmz(Boolean dmz) { + this.dmz = dmz; + return this; + } + + /** + * Whether to enable the h323 dmz + * @return dmz + */ + @ApiModelProperty(required = true, value = "Whether to enable the h323 dmz") + @NotNull + + + public Boolean getDmz() { + return dmz; + } + + public void setDmz(Boolean dmz) { + this.dmz = dmz; + } + + public OtoNatOpenApiVo description(String description) { + this.description = description; + return this; + } + + /** + * Description should contain 1 to 64 characters. + * @return description + */ + @ApiModelProperty(value = "Description should contain 1 to 64 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OtoNatOpenApiVo otoNatOpenApiVo = (OtoNatOpenApiVo) o; + return Objects.equals(this.name, otoNatOpenApiVo.name) && + Objects.equals(this.status, otoNatOpenApiVo.status) && + Objects.equals(this.interfaceIds, otoNatOpenApiVo.interfaceIds) && + Objects.equals(this.internalIp, otoNatOpenApiVo.internalIp) && + Objects.equals(this.externalIp, otoNatOpenApiVo.externalIp) && + Objects.equals(this.dmz, otoNatOpenApiVo.dmz) && + Objects.equals(this.description, otoNatOpenApiVo.description); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, interfaceIds, internalIp, externalIp, dmz, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OtoNatOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" interfaceIds: ").append(toIndentedString(interfaceIds)).append("\n"); + sb.append(" internalIp: ").append(toIndentedString(internalIp)).append("\n"); + sb.append(" externalIp: ").append(toIndentedString(externalIp)).append("\n"); + sb.append(" dmz: ").append(toIndentedString(dmz)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiAndDescription.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiAndDescription.java new file mode 100644 index 0000000..c5518ef --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiAndDescription.java @@ -0,0 +1,105 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * OUI and description + */ +@ApiModel(description = "OUI and description") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OuiAndDescription { + @JsonProperty("oui") + private String oui; + + @JsonProperty("description") + private String description; + + public OuiAndDescription oui(String oui) { + this.oui = oui; + return this; + } + + /** + * Organizationally unique identifier, should be upper MAC + * @return oui + */ + @ApiModelProperty(required = true, value = "Organizationally unique identifier, should be upper MAC") + @NotNull + + + public String getOui() { + return oui; + } + + public void setOui(String oui) { + this.oui = oui; + } + + public OuiAndDescription description(String description) { + this.description = description; + return this; + } + + /** + * The description of OUI should contain 1 to 128 characters., could be empty + * @return description + */ + @ApiModelProperty(value = "The description of OUI should contain 1 to 128 characters., could be empty") + + + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OuiAndDescription ouiAndDescription = (OuiAndDescription) o; + return Objects.equals(this.oui, ouiAndDescription.oui) && + Objects.equals(this.description, ouiAndDescription.description); + } + + @Override + public int hashCode() { + return Objects.hash(oui, description); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OuiAndDescription {\n"); + + sb.append(" oui: ").append(toIndentedString(oui)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanApOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanApOpenApiVo.java new file mode 100644 index 0000000..05ea51e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanApOpenApiVo.java @@ -0,0 +1,173 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OuiBasedVlanApOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OuiBasedVlanApOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("name") + private String name; + + @JsonProperty("ssidIdList") + @Valid + private List ssidIdList = new ArrayList<>(); + + @JsonProperty("ruleCombine") + @Valid + private List ruleCombine = new ArrayList<>(); + + public OuiBasedVlanApOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Ap Rule state. + * @return enable + */ + @ApiModelProperty(required = true, value = "Ap Rule state.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public OuiBasedVlanApOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Ap Rule name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Ap Rule name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OuiBasedVlanApOpenApiVo ssidIdList(List ssidIdList) { + this.ssidIdList = ssidIdList; + return this; + } + + public OuiBasedVlanApOpenApiVo addSsidIdListItem(String ssidIdListItem) { + this.ssidIdList.add(ssidIdListItem); + return this; + } + + /** + * Configured ssid list. + * @return ssidIdList + */ + @ApiModelProperty(required = true, value = "Configured ssid list.") + @NotNull + + + public List getSsidIdList() { + return ssidIdList; + } + + public void setSsidIdList(List ssidIdList) { + this.ssidIdList = ssidIdList; + } + + public OuiBasedVlanApOpenApiVo ruleCombine(List ruleCombine) { + this.ruleCombine = ruleCombine; + return this; + } + + public OuiBasedVlanApOpenApiVo addRuleCombineItem(VlanOuiModeOpenApiVo ruleCombineItem) { + this.ruleCombine.add(ruleCombineItem); + return this; + } + + /** + * Basic vlan-oui-priority configuration of oui based vlan rule. Cannot be empty. + * @return ruleCombine + */ + @ApiModelProperty(required = true, value = "Basic vlan-oui-priority configuration of oui based vlan rule. Cannot be empty.") + @NotNull + + @Valid + + public List getRuleCombine() { + return ruleCombine; + } + + public void setRuleCombine(List ruleCombine) { + this.ruleCombine = ruleCombine; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OuiBasedVlanApOpenApiVo ouiBasedVlanApOpenApiVo = (OuiBasedVlanApOpenApiVo) o; + return Objects.equals(this.enable, ouiBasedVlanApOpenApiVo.enable) && + Objects.equals(this.name, ouiBasedVlanApOpenApiVo.name) && + Objects.equals(this.ssidIdList, ouiBasedVlanApOpenApiVo.ssidIdList) && + Objects.equals(this.ruleCombine, ouiBasedVlanApOpenApiVo.ruleCombine); + } + + @Override + public int hashCode() { + return Objects.hash(enable, name, ssidIdList, ruleCombine); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OuiBasedVlanApOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ssidIdList: ").append(toIndentedString(ssidIdList)).append("\n"); + sb.append(" ruleCombine: ").append(toIndentedString(ruleCombine)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanApQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanApQueryOpenApiVo.java new file mode 100644 index 0000000..a115728 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanApQueryOpenApiVo.java @@ -0,0 +1,200 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OuiBasedVlanApQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OuiBasedVlanApQueryOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("name") + private String name; + + @JsonProperty("ssidList") + @Valid + private List ssidList = null; + + @JsonProperty("ruleCombine") + @Valid + private List ruleCombine = null; + + public OuiBasedVlanApQueryOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Rule ID + * @return id + */ + @ApiModelProperty(value = "Rule ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public OuiBasedVlanApQueryOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Ap Rule state. + * @return enable + */ + @ApiModelProperty(value = "Ap Rule state.") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public OuiBasedVlanApQueryOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Ap Rule name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(value = "Ap Rule name should contain 1 to 128 characters.") + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OuiBasedVlanApQueryOpenApiVo ssidList(List ssidList) { + this.ssidList = ssidList; + return this; + } + + public OuiBasedVlanApQueryOpenApiVo addSsidListItem(SsidOuiModeOpenApiVo ssidListItem) { + if (this.ssidList == null) { + this.ssidList = new ArrayList<>(); + } + this.ssidList.add(ssidListItem); + return this; + } + + /** + * Configured ssid list. + * @return ssidList + */ + @ApiModelProperty(value = "Configured ssid list.") + + @Valid + + public List getSsidList() { + return ssidList; + } + + public void setSsidList(List ssidList) { + this.ssidList = ssidList; + } + + public OuiBasedVlanApQueryOpenApiVo ruleCombine(List ruleCombine) { + this.ruleCombine = ruleCombine; + return this; + } + + public OuiBasedVlanApQueryOpenApiVo addRuleCombineItem(VlanOuiModeQueryOpenApiVo ruleCombineItem) { + if (this.ruleCombine == null) { + this.ruleCombine = new ArrayList<>(); + } + this.ruleCombine.add(ruleCombineItem); + return this; + } + + /** + * Basic vlan-oui-priority configuration of oui based rule. + * @return ruleCombine + */ + @ApiModelProperty(value = "Basic vlan-oui-priority configuration of oui based rule.") + + @Valid + + public List getRuleCombine() { + return ruleCombine; + } + + public void setRuleCombine(List ruleCombine) { + this.ruleCombine = ruleCombine; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OuiBasedVlanApQueryOpenApiVo ouiBasedVlanApQueryOpenApiVo = (OuiBasedVlanApQueryOpenApiVo) o; + return Objects.equals(this.id, ouiBasedVlanApQueryOpenApiVo.id) && + Objects.equals(this.enable, ouiBasedVlanApQueryOpenApiVo.enable) && + Objects.equals(this.name, ouiBasedVlanApQueryOpenApiVo.name) && + Objects.equals(this.ssidList, ouiBasedVlanApQueryOpenApiVo.ssidList) && + Objects.equals(this.ruleCombine, ouiBasedVlanApQueryOpenApiVo.ruleCombine); + } + + @Override + public int hashCode() { + return Objects.hash(id, enable, name, ssidList, ruleCombine); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OuiBasedVlanApQueryOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ssidList: ").append(toIndentedString(ssidList)).append("\n"); + sb.append(" ruleCombine: ").append(toIndentedString(ruleCombine)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchInfoOpenApiVo.java new file mode 100644 index 0000000..90d5715 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchInfoOpenApiVo.java @@ -0,0 +1,214 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OuiBasedVlanSwitchInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OuiBasedVlanSwitchInfoOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("oldFirmwareDevice") + private Boolean oldFirmwareDevice; + + @JsonProperty("configuredInOuiId") + private String configuredInOuiId; + + @JsonProperty("portNum") + private Integer portNum; + + @JsonProperty("lags") + @Valid + private List lags = null; + + public OuiBasedVlanSwitchInfoOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Device name. + * @return name + */ + @ApiModelProperty(value = "Device name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OuiBasedVlanSwitchInfoOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device mac. + * @return mac + */ + @ApiModelProperty(value = "Device mac.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public OuiBasedVlanSwitchInfoOpenApiVo oldFirmwareDevice(Boolean oldFirmwareDevice) { + this.oldFirmwareDevice = oldFirmwareDevice; + return this; + } + + /** + * If switch supports only one oui combine, this key word is \"true\" + * @return oldFirmwareDevice + */ + @ApiModelProperty(value = "If switch supports only one oui combine, this key word is \"true\"") + + + public Boolean getOldFirmwareDevice() { + return oldFirmwareDevice; + } + + public void setOldFirmwareDevice(Boolean oldFirmwareDevice) { + this.oldFirmwareDevice = oldFirmwareDevice; + } + + public OuiBasedVlanSwitchInfoOpenApiVo configuredInOuiId(String configuredInOuiId) { + this.configuredInOuiId = configuredInOuiId; + return this; + } + + /** + * Indicate ID of \"oldFirmwareDevice\" is configured in specific oui based vlan. + * @return configuredInOuiId + */ + @ApiModelProperty(value = "Indicate ID of \"oldFirmwareDevice\" is configured in specific oui based vlan.") + + + public String getConfiguredInOuiId() { + return configuredInOuiId; + } + + public void setConfiguredInOuiId(String configuredInOuiId) { + this.configuredInOuiId = configuredInOuiId; + } + + public OuiBasedVlanSwitchInfoOpenApiVo portNum(Integer portNum) { + this.portNum = portNum; + return this; + } + + /** + * Switch port number. Valid port range is from 1 to \"portNum\" + * @return portNum + */ + @ApiModelProperty(value = "Switch port number. Valid port range is from 1 to \"portNum\"") + + + public Integer getPortNum() { + return portNum; + } + + public void setPortNum(Integer portNum) { + this.portNum = portNum; + } + + public OuiBasedVlanSwitchInfoOpenApiVo lags(List lags) { + this.lags = lags; + return this; + } + + public OuiBasedVlanSwitchInfoOpenApiVo addLagsItem(LagInfoOpenApiVo lagsItem) { + if (this.lags == null) { + this.lags = new ArrayList<>(); + } + this.lags.add(lagsItem); + return this; + } + + /** + * Switch lag info list. + * @return lags + */ + @ApiModelProperty(value = "Switch lag info list.") + + @Valid + + public List getLags() { + return lags; + } + + public void setLags(List lags) { + this.lags = lags; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OuiBasedVlanSwitchInfoOpenApiVo ouiBasedVlanSwitchInfoOpenApiVo = (OuiBasedVlanSwitchInfoOpenApiVo) o; + return Objects.equals(this.name, ouiBasedVlanSwitchInfoOpenApiVo.name) && + Objects.equals(this.mac, ouiBasedVlanSwitchInfoOpenApiVo.mac) && + Objects.equals(this.oldFirmwareDevice, ouiBasedVlanSwitchInfoOpenApiVo.oldFirmwareDevice) && + Objects.equals(this.configuredInOuiId, ouiBasedVlanSwitchInfoOpenApiVo.configuredInOuiId) && + Objects.equals(this.portNum, ouiBasedVlanSwitchInfoOpenApiVo.portNum) && + Objects.equals(this.lags, ouiBasedVlanSwitchInfoOpenApiVo.lags); + } + + @Override + public int hashCode() { + return Objects.hash(name, mac, oldFirmwareDevice, configuredInOuiId, portNum, lags); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OuiBasedVlanSwitchInfoOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" oldFirmwareDevice: ").append(toIndentedString(oldFirmwareDevice)).append("\n"); + sb.append(" configuredInOuiId: ").append(toIndentedString(configuredInOuiId)).append("\n"); + sb.append(" portNum: ").append(toIndentedString(portNum)).append("\n"); + sb.append(" lags: ").append(toIndentedString(lags)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchOpenApiVo.java new file mode 100644 index 0000000..e75957c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchOpenApiVo.java @@ -0,0 +1,202 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OuiBasedVlanSwitchOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OuiBasedVlanSwitchOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("name") + private String name; + + @JsonProperty("mode") + private Integer mode; + + @JsonProperty("deviceList") + @Valid + private List deviceList = null; + + @JsonProperty("ruleCombine") + @Valid + private List ruleCombine = new ArrayList<>(); + + public OuiBasedVlanSwitchOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Switch Rule state. + * @return enable + */ + @ApiModelProperty(required = true, value = "Switch Rule state.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public OuiBasedVlanSwitchOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Switch Rule name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Switch Rule name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OuiBasedVlanSwitchOpenApiVo mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Switch Rule type. 0:\"All device port\", 1:\"Custom device port\" + * @return mode + */ + @ApiModelProperty(required = true, value = "Switch Rule type. 0:\"All device port\", 1:\"Custom device port\"") + @NotNull + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + public OuiBasedVlanSwitchOpenApiVo deviceList(List deviceList) { + this.deviceList = deviceList; + return this; + } + + public OuiBasedVlanSwitchOpenApiVo addDeviceListItem(DeviceOuiModeOpenApiVo deviceListItem) { + if (this.deviceList == null) { + this.deviceList = new ArrayList<>(); + } + this.deviceList.add(deviceListItem); + return this; + } + + /** + * When mode is 0, should configure device info. + * @return deviceList + */ + @ApiModelProperty(value = "When mode is 0, should configure device info.") + + @Valid + + public List getDeviceList() { + return deviceList; + } + + public void setDeviceList(List deviceList) { + this.deviceList = deviceList; + } + + public OuiBasedVlanSwitchOpenApiVo ruleCombine(List ruleCombine) { + this.ruleCombine = ruleCombine; + return this; + } + + public OuiBasedVlanSwitchOpenApiVo addRuleCombineItem(VlanOuiModeOpenApiVo ruleCombineItem) { + this.ruleCombine.add(ruleCombineItem); + return this; + } + + /** + * Basic vlan-oui-priority configuration of oui based rule. Cannot be empty. + * @return ruleCombine + */ + @ApiModelProperty(required = true, value = "Basic vlan-oui-priority configuration of oui based rule. Cannot be empty.") + @NotNull + + @Valid + + public List getRuleCombine() { + return ruleCombine; + } + + public void setRuleCombine(List ruleCombine) { + this.ruleCombine = ruleCombine; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OuiBasedVlanSwitchOpenApiVo ouiBasedVlanSwitchOpenApiVo = (OuiBasedVlanSwitchOpenApiVo) o; + return Objects.equals(this.enable, ouiBasedVlanSwitchOpenApiVo.enable) && + Objects.equals(this.name, ouiBasedVlanSwitchOpenApiVo.name) && + Objects.equals(this.mode, ouiBasedVlanSwitchOpenApiVo.mode) && + Objects.equals(this.deviceList, ouiBasedVlanSwitchOpenApiVo.deviceList) && + Objects.equals(this.ruleCombine, ouiBasedVlanSwitchOpenApiVo.ruleCombine); + } + + @Override + public int hashCode() { + return Objects.hash(enable, name, mode, deviceList, ruleCombine); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OuiBasedVlanSwitchOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" deviceList: ").append(toIndentedString(deviceList)).append("\n"); + sb.append(" ruleCombine: ").append(toIndentedString(ruleCombine)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchQueryOpenApiVo.java new file mode 100644 index 0000000..53614f4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiBasedVlanSwitchQueryOpenApiVo.java @@ -0,0 +1,225 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OuiBasedVlanSwitchQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OuiBasedVlanSwitchQueryOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("name") + private String name; + + @JsonProperty("mode") + private Integer mode; + + @JsonProperty("deviceList") + @Valid + private List deviceList = null; + + @JsonProperty("ruleCombine") + @Valid + private List ruleCombine = null; + + public OuiBasedVlanSwitchQueryOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Rule ID + * @return id + */ + @ApiModelProperty(value = "Rule ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public OuiBasedVlanSwitchQueryOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Switch Rule state. + * @return enable + */ + @ApiModelProperty(value = "Switch Rule state.") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public OuiBasedVlanSwitchQueryOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Switch Rule name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(value = "Switch Rule name should contain 1 to 128 characters.") + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OuiBasedVlanSwitchQueryOpenApiVo mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Switch Rule type should be a value as follows: 0: All device port; 1: Custom device port + * @return mode + */ + @ApiModelProperty(value = "Switch Rule type should be a value as follows: 0: All device port; 1: Custom device port") + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + public OuiBasedVlanSwitchQueryOpenApiVo deviceList(List deviceList) { + this.deviceList = deviceList; + return this; + } + + public OuiBasedVlanSwitchQueryOpenApiVo addDeviceListItem(DeviceOuiModeQueryOpenApiVo deviceListItem) { + if (this.deviceList == null) { + this.deviceList = new ArrayList<>(); + } + this.deviceList.add(deviceListItem); + return this; + } + + /** + * When mode is 0, Show configured device info. + * @return deviceList + */ + @ApiModelProperty(value = "When mode is 0, Show configured device info.") + + @Valid + + public List getDeviceList() { + return deviceList; + } + + public void setDeviceList(List deviceList) { + this.deviceList = deviceList; + } + + public OuiBasedVlanSwitchQueryOpenApiVo ruleCombine(List ruleCombine) { + this.ruleCombine = ruleCombine; + return this; + } + + public OuiBasedVlanSwitchQueryOpenApiVo addRuleCombineItem(VlanOuiModeQueryOpenApiVo ruleCombineItem) { + if (this.ruleCombine == null) { + this.ruleCombine = new ArrayList<>(); + } + this.ruleCombine.add(ruleCombineItem); + return this; + } + + /** + * Basic vlan-oui-priority configuration of oui based vlan rule. + * @return ruleCombine + */ + @ApiModelProperty(value = "Basic vlan-oui-priority configuration of oui based vlan rule.") + + @Valid + + public List getRuleCombine() { + return ruleCombine; + } + + public void setRuleCombine(List ruleCombine) { + this.ruleCombine = ruleCombine; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OuiBasedVlanSwitchQueryOpenApiVo ouiBasedVlanSwitchQueryOpenApiVo = (OuiBasedVlanSwitchQueryOpenApiVo) o; + return Objects.equals(this.id, ouiBasedVlanSwitchQueryOpenApiVo.id) && + Objects.equals(this.enable, ouiBasedVlanSwitchQueryOpenApiVo.enable) && + Objects.equals(this.name, ouiBasedVlanSwitchQueryOpenApiVo.name) && + Objects.equals(this.mode, ouiBasedVlanSwitchQueryOpenApiVo.mode) && + Objects.equals(this.deviceList, ouiBasedVlanSwitchQueryOpenApiVo.deviceList) && + Objects.equals(this.ruleCombine, ouiBasedVlanSwitchQueryOpenApiVo.ruleCombine); + } + + @Override + public int hashCode() { + return Objects.hash(id, enable, name, mode, deviceList, ruleCombine); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OuiBasedVlanSwitchQueryOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" deviceList: ").append(toIndentedString(deviceList)).append("\n"); + sb.append(" ruleCombine: ").append(toIndentedString(ruleCombine)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiGridVoOuiProfileQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiGridVoOuiProfileQueryOpenApiVo.java new file mode 100644 index 0000000..e7f0909 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiGridVoOuiProfileQueryOpenApiVo.java @@ -0,0 +1,189 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OuiGridVoOuiProfileQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OuiGridVoOuiProfileQueryOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + @JsonProperty("totalCount") + private Integer totalCount; + + public OuiGridVoOuiProfileQueryOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public OuiGridVoOuiProfileQueryOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public OuiGridVoOuiProfileQueryOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public OuiGridVoOuiProfileQueryOpenApiVo data(List data) { + this.data = data; + return this; + } + + public OuiGridVoOuiProfileQueryOpenApiVo addDataItem(OuiProfileQueryOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public OuiGridVoOuiProfileQueryOpenApiVo totalCount(Integer totalCount) { + this.totalCount = totalCount; + return this; + } + + /** + * Get totalCount + * @return totalCount + */ + @ApiModelProperty(value = "") + + + public Integer getTotalCount() { + return totalCount; + } + + public void setTotalCount(Integer totalCount) { + this.totalCount = totalCount; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OuiGridVoOuiProfileQueryOpenApiVo ouiGridVoOuiProfileQueryOpenApiVo = (OuiGridVoOuiProfileQueryOpenApiVo) o; + return Objects.equals(this.totalRows, ouiGridVoOuiProfileQueryOpenApiVo.totalRows) && + Objects.equals(this.currentPage, ouiGridVoOuiProfileQueryOpenApiVo.currentPage) && + Objects.equals(this.currentSize, ouiGridVoOuiProfileQueryOpenApiVo.currentSize) && + Objects.equals(this.data, ouiGridVoOuiProfileQueryOpenApiVo.data) && + Objects.equals(this.totalCount, ouiGridVoOuiProfileQueryOpenApiVo.totalCount); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data, totalCount); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OuiGridVoOuiProfileQueryOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" totalCount: ").append(toIndentedString(totalCount)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileOpenApiVo.java new file mode 100644 index 0000000..2c312d7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileOpenApiVo.java @@ -0,0 +1,119 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OUIProfileOpenApiVO + */ +@ApiModel(description = "OUIProfileOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OuiProfileOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("ouiCombine") + @Valid + private List ouiCombine = null; + + public OuiProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * OUI Profile name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "OUI Profile name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OuiProfileOpenApiVo ouiCombine(List ouiCombine) { + this.ouiCombine = ouiCombine; + return this; + } + + public OuiProfileOpenApiVo addOuiCombineItem(OuiAndDescription ouiCombineItem) { + if (this.ouiCombine == null) { + this.ouiCombine = new ArrayList<>(); + } + this.ouiCombine.add(ouiCombineItem); + return this; + } + + /** + * OUI and description + * @return ouiCombine + */ + @ApiModelProperty(value = "OUI and description") + + @Valid + + public List getOuiCombine() { + return ouiCombine; + } + + public void setOuiCombine(List ouiCombine) { + this.ouiCombine = ouiCombine; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OuiProfileOpenApiVo ouiProfileOpenApiVo = (OuiProfileOpenApiVo) o; + return Objects.equals(this.name, ouiProfileOpenApiVo.name) && + Objects.equals(this.ouiCombine, ouiProfileOpenApiVo.ouiCombine); + } + + @Override + public int hashCode() { + return Objects.hash(name, ouiCombine); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OuiProfileOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ouiCombine: ").append(toIndentedString(ouiCombine)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileQueryOpenApiVo.java new file mode 100644 index 0000000..ddb0b20 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileQueryOpenApiVo.java @@ -0,0 +1,169 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * OUIProfileQueryOpenApiVO + */ +@ApiModel(description = "OUIProfileQueryOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OuiProfileQueryOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("count") + private Integer count; + + @JsonProperty("ouiCombine") + @Valid + private List ouiCombine = null; + + public OuiProfileQueryOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * OUI Profile ID + * @return id + */ + @ApiModelProperty(value = "OUI Profile ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public OuiProfileQueryOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * OUI Profile name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "OUI Profile name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public OuiProfileQueryOpenApiVo count(Integer count) { + this.count = count; + return this; + } + + /** + * OUI Profile count + * @return count + */ + @ApiModelProperty(value = "OUI Profile count") + + + public Integer getCount() { + return count; + } + + public void setCount(Integer count) { + this.count = count; + } + + public OuiProfileQueryOpenApiVo ouiCombine(List ouiCombine) { + this.ouiCombine = ouiCombine; + return this; + } + + public OuiProfileQueryOpenApiVo addOuiCombineItem(OuiAndDescription ouiCombineItem) { + if (this.ouiCombine == null) { + this.ouiCombine = new ArrayList<>(); + } + this.ouiCombine.add(ouiCombineItem); + return this; + } + + /** + * OUI and description + * @return ouiCombine + */ + @ApiModelProperty(value = "OUI and description") + + @Valid + + public List getOuiCombine() { + return ouiCombine; + } + + public void setOuiCombine(List ouiCombine) { + this.ouiCombine = ouiCombine; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OuiProfileQueryOpenApiVo ouiProfileQueryOpenApiVo = (OuiProfileQueryOpenApiVo) o; + return Objects.equals(this.id, ouiProfileQueryOpenApiVo.id) && + Objects.equals(this.name, ouiProfileQueryOpenApiVo.name) && + Objects.equals(this.count, ouiProfileQueryOpenApiVo.count) && + Objects.equals(this.ouiCombine, ouiProfileQueryOpenApiVo.ouiCombine); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, count, ouiCombine); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OuiProfileQueryOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" count: ").append(toIndentedString(count)).append("\n"); + sb.append(" ouiCombine: ").append(toIndentedString(ouiCombine)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileSummaryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileSummaryOpenApiVo.java new file mode 100644 index 0000000..0cc59b2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OuiProfileSummaryOpenApiVo.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * OuiProfileSummaryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OuiProfileSummaryOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + public OuiProfileSummaryOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * OUI Profile ID + * @return id + */ + @ApiModelProperty(value = "OUI Profile ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public OuiProfileSummaryOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * OUI Profile name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "OUI Profile name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OuiProfileSummaryOpenApiVo ouiProfileSummaryOpenApiVo = (OuiProfileSummaryOpenApiVo) o; + return Objects.equals(this.id, ouiProfileSummaryOpenApiVo.id) && + Objects.equals(this.name, ouiProfileSummaryOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OuiProfileSummaryOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OutgoingCallsBlockingVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OutgoingCallsBlockingVo.java new file mode 100644 index 0000000..130563d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/OutgoingCallsBlockingVo.java @@ -0,0 +1,124 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Outgoing calls blocking rules. Rules are valid if and only if parameter [outgoingCallsBlockingEnable] equals true. + */ +@ApiModel(description = "Outgoing calls blocking rules. Rules are valid if and only if parameter [outgoingCallsBlockingEnable] equals true.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class OutgoingCallsBlockingVo { + @JsonProperty("types") + @Valid + private List types = null; + + @JsonProperty("prefixList") + @Valid + private List prefixList = null; + + public OutgoingCallsBlockingVo types(List types) { + this.types = types; + return this; + } + + public OutgoingCallsBlockingVo addTypesItem(Integer typesItem) { + if (this.types == null) { + this.types = new ArrayList<>(); + } + this.types.add(typesItem); + return this; + } + + /** + * Outgoing calls blocking types. 0 means mobile, 1 means landline, 2 means long distance, 3 means international, 4 means calls with specific number prefix. + * @return types + */ + @ApiModelProperty(value = "Outgoing calls blocking types. 0 means mobile, 1 means landline, 2 means long distance, 3 means international, 4 means calls with specific number prefix.") + + + public List getTypes() { + return types; + } + + public void setTypes(List types) { + this.types = types; + } + + public OutgoingCallsBlockingVo prefixList(List prefixList) { + this.prefixList = prefixList; + return this; + } + + public OutgoingCallsBlockingVo addPrefixListItem(String prefixListItem) { + if (this.prefixList == null) { + this.prefixList = new ArrayList<>(); + } + this.prefixList.add(prefixListItem); + return this; + } + + /** + * Field [prefixList] is required when the value of field [types] contains 4. + * @return prefixList + */ + @ApiModelProperty(value = "Field [prefixList] is required when the value of field [types] contains 4.") + + + public List getPrefixList() { + return prefixList; + } + + public void setPrefixList(List prefixList) { + this.prefixList = prefixList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + OutgoingCallsBlockingVo outgoingCallsBlockingVo = (OutgoingCallsBlockingVo) o; + return Objects.equals(this.types, outgoingCallsBlockingVo.types) && + Objects.equals(this.prefixList, outgoingCallsBlockingVo.prefixList); + } + + @Override + public int hashCode() { + return Objects.hash(types, prefixList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class OutgoingCallsBlockingVo {\n"); + + sb.append(" types: ").append(toIndentedString(types)).append("\n"); + sb.append(" prefixList: ").append(toIndentedString(prefixList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeDeviceDetail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeDeviceDetail.java new file mode 100644 index 0000000..e6e6a9c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeDeviceDetail.java @@ -0,0 +1,353 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * PoeDeviceDetail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PoeDeviceDetail { + @JsonProperty("type") + private String type; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("site") + private String site; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + @JsonProperty("hwVersion") + private String hwVersion; + + @JsonProperty("firmwareVersion") + private String firmwareVersion; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("sn") + private String sn; + + @JsonProperty("combinedGateway") + private Boolean combinedGateway; + + @JsonProperty("poePort") + private DevicePoePorts poePort; + + public PoeDeviceDetail type(String type) { + this.type = type; + return this; + } + + /** + * Device type. \"gateway\", \"switch\" + * @return type + */ + @ApiModelProperty(value = "Device type. \"gateway\", \"switch\"") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public PoeDeviceDetail mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC. + * @return mac + */ + @ApiModelProperty(value = "Device MAC.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public PoeDeviceDetail name(String name) { + this.name = name; + return this; + } + + /** + * Device name. + * @return name + */ + @ApiModelProperty(value = "Device name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PoeDeviceDetail site(String site) { + this.site = site; + return this; + } + + /** + * Site ID + * @return site + */ + @ApiModelProperty(value = "Site ID") + + + public String getSite() { + return site; + } + + public void setSite(String site) { + this.site = site; + } + + public PoeDeviceDetail model(String model) { + this.model = model; + return this; + } + + /** + * Device model. + * @return model + */ + @ApiModelProperty(value = "Device model.") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public PoeDeviceDetail modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Device model version. + * @return modelVersion + */ + @ApiModelProperty(value = "Device model version.") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public PoeDeviceDetail hwVersion(String hwVersion) { + this.hwVersion = hwVersion; + return this; + } + + /** + * Device hardware version. + * @return hwVersion + */ + @ApiModelProperty(value = "Device hardware version.") + + + public String getHwVersion() { + return hwVersion; + } + + public void setHwVersion(String hwVersion) { + this.hwVersion = hwVersion; + } + + public PoeDeviceDetail firmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + return this; + } + + /** + * Device firmware version. + * @return firmwareVersion + */ + @ApiModelProperty(value = "Device firmware version.") + + + public String getFirmwareVersion() { + return firmwareVersion; + } + + public void setFirmwareVersion(String firmwareVersion) { + this.firmwareVersion = firmwareVersion; + } + + public PoeDeviceDetail status(Integer status) { + this.status = status; + return this; + } + + /** + * Device status. + * @return status + */ + @ApiModelProperty(value = "Device status.") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public PoeDeviceDetail sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Device SN code. + * @return sn + */ + @ApiModelProperty(value = "Device SN code.") + + + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public PoeDeviceDetail combinedGateway(Boolean combinedGateway) { + this.combinedGateway = combinedGateway; + return this; + } + + /** + * Indicates whether it is a combined-gateway. + * @return combinedGateway + */ + @ApiModelProperty(value = "Indicates whether it is a combined-gateway.") + + + public Boolean getCombinedGateway() { + return combinedGateway; + } + + public void setCombinedGateway(Boolean combinedGateway) { + this.combinedGateway = combinedGateway; + } + + public PoeDeviceDetail poePort(DevicePoePorts poePort) { + this.poePort = poePort; + return this; + } + + /** + * Get poePort + * @return poePort + */ + @ApiModelProperty(value = "") + + @Valid + + public DevicePoePorts getPoePort() { + return poePort; + } + + public void setPoePort(DevicePoePorts poePort) { + this.poePort = poePort; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PoeDeviceDetail poeDeviceDetail = (PoeDeviceDetail) o; + return Objects.equals(this.type, poeDeviceDetail.type) && + Objects.equals(this.mac, poeDeviceDetail.mac) && + Objects.equals(this.name, poeDeviceDetail.name) && + Objects.equals(this.site, poeDeviceDetail.site) && + Objects.equals(this.model, poeDeviceDetail.model) && + Objects.equals(this.modelVersion, poeDeviceDetail.modelVersion) && + Objects.equals(this.hwVersion, poeDeviceDetail.hwVersion) && + Objects.equals(this.firmwareVersion, poeDeviceDetail.firmwareVersion) && + Objects.equals(this.status, poeDeviceDetail.status) && + Objects.equals(this.sn, poeDeviceDetail.sn) && + Objects.equals(this.combinedGateway, poeDeviceDetail.combinedGateway) && + Objects.equals(this.poePort, poeDeviceDetail.poePort); + } + + @Override + public int hashCode() { + return Objects.hash(type, mac, name, site, model, modelVersion, hwVersion, firmwareVersion, status, sn, combinedGateway, poePort); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PoeDeviceDetail {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" site: ").append(toIndentedString(site)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" hwVersion: ").append(toIndentedString(hwVersion)).append("\n"); + sb.append(" firmwareVersion: ").append(toIndentedString(firmwareVersion)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" combinedGateway: ").append(toIndentedString(combinedGateway)).append("\n"); + sb.append(" poePort: ").append(toIndentedString(poePort)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeScheduleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeScheduleOpenApiVo.java new file mode 100644 index 0000000..a31547d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeScheduleOpenApiVo.java @@ -0,0 +1,195 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * Poe schedule entity + */ +@ApiModel(description = "Poe schedule entity") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PoeScheduleOpenApiVo { + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("turnOnTime") + private String turnOnTime; + + @JsonProperty("poePortsMap") + @Valid + private Map> poePortsMap = new HashMap<>(); + + public PoeScheduleOpenApiVo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public PoeScheduleOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * PoE Schedule Name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "PoE Schedule Name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PoeScheduleOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * PoE Schedule Status. + * @return status + */ + @ApiModelProperty(required = true, value = "PoE Schedule Status.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public PoeScheduleOpenApiVo turnOnTime(String turnOnTime) { + this.turnOnTime = turnOnTime; + return this; + } + + /** + * Time Range ID, cannot be empty. + * @return turnOnTime + */ + @ApiModelProperty(required = true, value = "Time Range ID, cannot be empty.") + @NotNull + + + public String getTurnOnTime() { + return turnOnTime; + } + + public void setTurnOnTime(String turnOnTime) { + this.turnOnTime = turnOnTime; + } + + public PoeScheduleOpenApiVo poePortsMap(Map> poePortsMap) { + this.poePortsMap = poePortsMap; + return this; + } + + public PoeScheduleOpenApiVo putPoePortsMapItem(String key, List poePortsMapItem) { + this.poePortsMap.put(key, poePortsMapItem); + return this; + } + + /** + * Key:Mac(\"String\"), Value:Set of Ports(\"Integer\") + * @return poePortsMap + */ + @ApiModelProperty(required = true, value = "Key:Mac(\"String\"), Value:Set of Ports(\"Integer\")") + @NotNull + + @Valid + + public Map> getPoePortsMap() { + return poePortsMap; + } + + public void setPoePortsMap(Map> poePortsMap) { + this.poePortsMap = poePortsMap; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PoeScheduleOpenApiVo poeScheduleOpenApiVo = (PoeScheduleOpenApiVo) o; + return Objects.equals(this.siteId, poeScheduleOpenApiVo.siteId) && + Objects.equals(this.name, poeScheduleOpenApiVo.name) && + Objects.equals(this.status, poeScheduleOpenApiVo.status) && + Objects.equals(this.turnOnTime, poeScheduleOpenApiVo.turnOnTime) && + Objects.equals(this.poePortsMap, poeScheduleOpenApiVo.poePortsMap); + } + + @Override + public int hashCode() { + return Objects.hash(siteId, name, status, turnOnTime, poePortsMap); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PoeScheduleOpenApiVo {\n"); + + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" turnOnTime: ").append(toIndentedString(turnOnTime)).append("\n"); + sb.append(" poePortsMap: ").append(toIndentedString(poePortsMap)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeScheduleQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeScheduleQueryOpenApiVo.java new file mode 100644 index 0000000..ddc4fee --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PoeScheduleQueryOpenApiVo.java @@ -0,0 +1,268 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * PoeScheduleQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PoeScheduleQueryOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("turnOnTime") + private String turnOnTime; + + @JsonProperty("poePortsMap") + @Valid + private Map> poePortsMap = new HashMap<>(); + + @JsonProperty("nextExecute") + private Long nextExecute; + + @JsonProperty("notInDst") + private Boolean notInDst; + + public PoeScheduleQueryOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * PoE Schedule Individual ID. + * @return id + */ + @ApiModelProperty(value = "PoE Schedule Individual ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PoeScheduleQueryOpenApiVo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public PoeScheduleQueryOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * PoE Schedule Name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "PoE Schedule Name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PoeScheduleQueryOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * PoE Schedule Status. + * @return status + */ + @ApiModelProperty(required = true, value = "PoE Schedule Status.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public PoeScheduleQueryOpenApiVo turnOnTime(String turnOnTime) { + this.turnOnTime = turnOnTime; + return this; + } + + /** + * Time Range ID, cannot be empty. + * @return turnOnTime + */ + @ApiModelProperty(required = true, value = "Time Range ID, cannot be empty.") + @NotNull + + + public String getTurnOnTime() { + return turnOnTime; + } + + public void setTurnOnTime(String turnOnTime) { + this.turnOnTime = turnOnTime; + } + + public PoeScheduleQueryOpenApiVo poePortsMap(Map> poePortsMap) { + this.poePortsMap = poePortsMap; + return this; + } + + public PoeScheduleQueryOpenApiVo putPoePortsMapItem(String key, List poePortsMapItem) { + this.poePortsMap.put(key, poePortsMapItem); + return this; + } + + /** + * Key:Mac(\"String\"), Value:Set of Ports(\"Integer\") + * @return poePortsMap + */ + @ApiModelProperty(required = true, value = "Key:Mac(\"String\"), Value:Set of Ports(\"Integer\")") + @NotNull + + @Valid + + public Map> getPoePortsMap() { + return poePortsMap; + } + + public void setPoePortsMap(Map> poePortsMap) { + this.poePortsMap = poePortsMap; + } + + public PoeScheduleQueryOpenApiVo nextExecute(Long nextExecute) { + this.nextExecute = nextExecute; + return this; + } + + /** + * Show PoE Schedule next execution timestamp. + * @return nextExecute + */ + @ApiModelProperty(value = "Show PoE Schedule next execution timestamp.") + + + public Long getNextExecute() { + return nextExecute; + } + + public void setNextExecute(Long nextExecute) { + this.nextExecute = nextExecute; + } + + public PoeScheduleQueryOpenApiVo notInDst(Boolean notInDst) { + this.notInDst = notInDst; + return this; + } + + /** + * When notInDst is true, not displayed in DST. + * @return notInDst + */ + @ApiModelProperty(value = "When notInDst is true, not displayed in DST.") + + + public Boolean getNotInDst() { + return notInDst; + } + + public void setNotInDst(Boolean notInDst) { + this.notInDst = notInDst; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PoeScheduleQueryOpenApiVo poeScheduleQueryOpenApiVo = (PoeScheduleQueryOpenApiVo) o; + return Objects.equals(this.id, poeScheduleQueryOpenApiVo.id) && + Objects.equals(this.siteId, poeScheduleQueryOpenApiVo.siteId) && + Objects.equals(this.name, poeScheduleQueryOpenApiVo.name) && + Objects.equals(this.status, poeScheduleQueryOpenApiVo.status) && + Objects.equals(this.turnOnTime, poeScheduleQueryOpenApiVo.turnOnTime) && + Objects.equals(this.poePortsMap, poeScheduleQueryOpenApiVo.poePortsMap) && + Objects.equals(this.nextExecute, poeScheduleQueryOpenApiVo.nextExecute) && + Objects.equals(this.notInDst, poeScheduleQueryOpenApiVo.notInDst); + } + + @Override + public int hashCode() { + return Objects.hash(id, siteId, name, status, turnOnTime, poePortsMap, nextExecute, notInDst); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PoeScheduleQueryOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" turnOnTime: ").append(toIndentedString(turnOnTime)).append("\n"); + sb.append(" poePortsMap: ").append(toIndentedString(poePortsMap)).append("\n"); + sb.append(" nextExecute: ").append(toIndentedString(nextExecute)).append("\n"); + sb.append(" notInDst: ").append(toIndentedString(notInDst)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingConfig.java new file mode 100644 index 0000000..3e40cfe --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingConfig.java @@ -0,0 +1,434 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PolicyRoutingConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PolicyRoutingConfig { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("protocols") + @Valid + private List protocols = new ArrayList<>(); + + @JsonProperty("interfaceType") + private Integer interfaceType; + + @JsonProperty("interfaceId") + private String interfaceId; + + @JsonProperty("wanPortIds") + @Valid + private List wanPortIds = null; + + @JsonProperty("vpnIds") + @Valid + private List vpnIds = null; + + @JsonProperty("virtualWanIds") + @Valid + private List virtualWanIds = null; + + @JsonProperty("backupInterface") + private Boolean backupInterface; + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = new ArrayList<>(); + + @JsonProperty("destinationType") + private Integer destinationType; + + @JsonProperty("destinationIds") + @Valid + private List destinationIds = new ArrayList<>(); + + public PolicyRoutingConfig name(String name) { + this.name = name; + return this; + } + + /** + * Name, name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name, name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PolicyRoutingConfig status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status + * @return status + */ + @ApiModelProperty(required = true, value = "Status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public PolicyRoutingConfig protocols(List protocols) { + this.protocols = protocols; + return this; + } + + public PolicyRoutingConfig addProtocolsItem(Integer protocolsItem) { + this.protocols.add(protocolsItem); + return this; + } + + /** + * For the values of protocols, refer to section 5.5.2 of the Open API Access Guide. + * @return protocols + */ + @ApiModelProperty(required = true, value = "For the values of protocols, refer to section 5.5.2 of the Open API Access Guide.") + @NotNull + + + public List getProtocols() { + return protocols; + } + + public void setProtocols(List protocols) { + this.protocols = protocols; + } + + public PolicyRoutingConfig interfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + return this; + } + + /** + * InterfaceType should be a value as follows: 0: WAN; 2: L2TP; 3: PPTP; 4: multi-select WAN or VPN or virtual WAN. + * @return interfaceType + */ + @ApiModelProperty(value = "InterfaceType should be a value as follows: 0: WAN; 2: L2TP; 3: PPTP; 4: multi-select WAN or VPN or virtual WAN.") + + + public Integer getInterfaceType() { + return interfaceType; + } + + public void setInterfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + } + + public PolicyRoutingConfig interfaceId(String interfaceId) { + this.interfaceId = interfaceId; + return this; + } + + /** + * Interface ID + * @return interfaceId + */ + @ApiModelProperty(value = "Interface ID") + + + public String getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public PolicyRoutingConfig wanPortIds(List wanPortIds) { + this.wanPortIds = wanPortIds; + return this; + } + + public PolicyRoutingConfig addWanPortIdsItem(String wanPortIdsItem) { + if (this.wanPortIds == null) { + this.wanPortIds = new ArrayList<>(); + } + this.wanPortIds.add(wanPortIdsItem); + return this; + } + + /** + * WAN port list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty. + * @return wanPortIds + */ + @ApiModelProperty(value = "WAN port list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty.") + + + public List getWanPortIds() { + return wanPortIds; + } + + public void setWanPortIds(List wanPortIds) { + this.wanPortIds = wanPortIds; + } + + public PolicyRoutingConfig vpnIds(List vpnIds) { + this.vpnIds = vpnIds; + return this; + } + + public PolicyRoutingConfig addVpnIdsItem(String vpnIdsItem) { + if (this.vpnIds == null) { + this.vpnIds = new ArrayList<>(); + } + this.vpnIds.add(vpnIdsItem); + return this; + } + + /** + * VPN list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty. + * @return vpnIds + */ + @ApiModelProperty(value = "VPN list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty.") + + + public List getVpnIds() { + return vpnIds; + } + + public void setVpnIds(List vpnIds) { + this.vpnIds = vpnIds; + } + + public PolicyRoutingConfig virtualWanIds(List virtualWanIds) { + this.virtualWanIds = virtualWanIds; + return this; + } + + public PolicyRoutingConfig addVirtualWanIdsItem(String virtualWanIdsItem) { + if (this.virtualWanIds == null) { + this.virtualWanIds = new ArrayList<>(); + } + this.virtualWanIds.add(virtualWanIdsItem); + return this; + } + + /** + * Virtual WAN list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty. + * @return virtualWanIds + */ + @ApiModelProperty(value = "Virtual WAN list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty.") + + + public List getVirtualWanIds() { + return virtualWanIds; + } + + public void setVirtualWanIds(List virtualWanIds) { + this.virtualWanIds = virtualWanIds; + } + + public PolicyRoutingConfig backupInterface(Boolean backupInterface) { + this.backupInterface = backupInterface; + return this; + } + + /** + * Use the other WAN port if the current one is down + * @return backupInterface + */ + @ApiModelProperty(required = true, value = "Use the other WAN port if the current one is down") + @NotNull + + + public Boolean getBackupInterface() { + return backupInterface; + } + + public void setBackupInterface(Boolean backupInterface) { + this.backupInterface = backupInterface; + } + + public PolicyRoutingConfig sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * SourceType should be a value as follows: 0: Network; 1: IP Group; 2: IP port Group + * @return sourceType + */ + @ApiModelProperty(required = true, value = "SourceType should be a value as follows: 0: Network; 1: IP Group; 2: IP port Group") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public PolicyRoutingConfig sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public PolicyRoutingConfig addSourceIdsItem(String sourceIdsItem) { + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return sourceIds + */ + @ApiModelProperty(required = true, value = "Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public PolicyRoutingConfig destinationType(Integer destinationType) { + this.destinationType = destinationType; + return this; + } + + /** + * DestinationType should be a value as follows: 0: Network; 1: IP Group; 2: IP port Group + * @return destinationType + */ + @ApiModelProperty(required = true, value = "DestinationType should be a value as follows: 0: Network; 1: IP Group; 2: IP port Group") + @NotNull + + + public Integer getDestinationType() { + return destinationType; + } + + public void setDestinationType(Integer destinationType) { + this.destinationType = destinationType; + } + + public PolicyRoutingConfig destinationIds(List destinationIds) { + this.destinationIds = destinationIds; + return this; + } + + public PolicyRoutingConfig addDestinationIdsItem(String destinationIdsItem) { + this.destinationIds.add(destinationIdsItem); + return this; + } + + /** + * Destination IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return destinationIds + */ + @ApiModelProperty(required = true, value = "Destination IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getDestinationIds() { + return destinationIds; + } + + public void setDestinationIds(List destinationIds) { + this.destinationIds = destinationIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PolicyRoutingConfig policyRoutingConfig = (PolicyRoutingConfig) o; + return Objects.equals(this.name, policyRoutingConfig.name) && + Objects.equals(this.status, policyRoutingConfig.status) && + Objects.equals(this.protocols, policyRoutingConfig.protocols) && + Objects.equals(this.interfaceType, policyRoutingConfig.interfaceType) && + Objects.equals(this.interfaceId, policyRoutingConfig.interfaceId) && + Objects.equals(this.wanPortIds, policyRoutingConfig.wanPortIds) && + Objects.equals(this.vpnIds, policyRoutingConfig.vpnIds) && + Objects.equals(this.virtualWanIds, policyRoutingConfig.virtualWanIds) && + Objects.equals(this.backupInterface, policyRoutingConfig.backupInterface) && + Objects.equals(this.sourceType, policyRoutingConfig.sourceType) && + Objects.equals(this.sourceIds, policyRoutingConfig.sourceIds) && + Objects.equals(this.destinationType, policyRoutingConfig.destinationType) && + Objects.equals(this.destinationIds, policyRoutingConfig.destinationIds); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, protocols, interfaceType, interfaceId, wanPortIds, vpnIds, virtualWanIds, backupInterface, sourceType, sourceIds, destinationType, destinationIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PolicyRoutingConfig {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" protocols: ").append(toIndentedString(protocols)).append("\n"); + sb.append(" interfaceType: ").append(toIndentedString(interfaceType)).append("\n"); + sb.append(" interfaceId: ").append(toIndentedString(interfaceId)).append("\n"); + sb.append(" wanPortIds: ").append(toIndentedString(wanPortIds)).append("\n"); + sb.append(" vpnIds: ").append(toIndentedString(vpnIds)).append("\n"); + sb.append(" virtualWanIds: ").append(toIndentedString(virtualWanIds)).append("\n"); + sb.append(" backupInterface: ").append(toIndentedString(backupInterface)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" destinationType: ").append(toIndentedString(destinationType)).append("\n"); + sb.append(" destinationIds: ").append(toIndentedString(destinationIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingDragSortIndexOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingDragSortIndexOpenApiVo.java new file mode 100644 index 0000000..b7e9607 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingDragSortIndexOpenApiVo.java @@ -0,0 +1,87 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * PolicyRoutingDragSortIndexOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PolicyRoutingDragSortIndexOpenApiVo { + @JsonProperty("indexes") + @Valid + private Map indexes = new HashMap<>(); + + public PolicyRoutingDragSortIndexOpenApiVo indexes(Map indexes) { + this.indexes = indexes; + return this; + } + + public PolicyRoutingDragSortIndexOpenApiVo putIndexesItem(String key, Integer indexesItem) { + this.indexes.put(key, indexesItem); + return this; + } + + /** + * The order in which items take effect, this object is a Map, the key is item ID and the value is the index you want to set. + * @return indexes + */ + @ApiModelProperty(required = true, value = "The order in which items take effect, this object is a Map, the key is item ID and the value is the index you want to set.") + @NotNull + + + public Map getIndexes() { + return indexes; + } + + public void setIndexes(Map indexes) { + this.indexes = indexes; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PolicyRoutingDragSortIndexOpenApiVo policyRoutingDragSortIndexOpenApiVo = (PolicyRoutingDragSortIndexOpenApiVo) o; + return Objects.equals(this.indexes, policyRoutingDragSortIndexOpenApiVo.indexes); + } + + @Override + public int hashCode() { + return Objects.hash(indexes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PolicyRoutingDragSortIndexOpenApiVo {\n"); + + sb.append(" indexes: ").append(toIndentedString(indexes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingInfo.java new file mode 100644 index 0000000..84f0abb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PolicyRoutingInfo.java @@ -0,0 +1,484 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PolicyRoutingInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PolicyRoutingInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("index") + private Integer index; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("protocols") + @Valid + private List protocols = new ArrayList<>(); + + @JsonProperty("interfaceType") + private Integer interfaceType; + + @JsonProperty("interfaceId") + private String interfaceId; + + @JsonProperty("wanPortIds") + @Valid + private List wanPortIds = null; + + @JsonProperty("vpnIds") + @Valid + private List vpnIds = null; + + @JsonProperty("virtualWanIds") + @Valid + private List virtualWanIds = null; + + @JsonProperty("backupInterface") + private Boolean backupInterface; + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = new ArrayList<>(); + + @JsonProperty("destinationType") + private Integer destinationType; + + @JsonProperty("destinationIds") + @Valid + private List destinationIds = new ArrayList<>(); + + public PolicyRoutingInfo id(String id) { + this.id = id; + return this; + } + + /** + * ID + * @return id + */ + @ApiModelProperty(value = "ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PolicyRoutingInfo index(Integer index) { + this.index = index; + return this; + } + + /** + * Index + * @return index + */ + @ApiModelProperty(value = "Index") + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public PolicyRoutingInfo name(String name) { + this.name = name; + return this; + } + + /** + * Name, name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name, name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PolicyRoutingInfo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status + * @return status + */ + @ApiModelProperty(required = true, value = "Status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public PolicyRoutingInfo protocols(List protocols) { + this.protocols = protocols; + return this; + } + + public PolicyRoutingInfo addProtocolsItem(Integer protocolsItem) { + this.protocols.add(protocolsItem); + return this; + } + + /** + * For the values of protocols, refer to section 5.5.2 of the Open API Access Guide. + * @return protocols + */ + @ApiModelProperty(required = true, value = "For the values of protocols, refer to section 5.5.2 of the Open API Access Guide.") + @NotNull + + + public List getProtocols() { + return protocols; + } + + public void setProtocols(List protocols) { + this.protocols = protocols; + } + + public PolicyRoutingInfo interfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + return this; + } + + /** + * InterfaceType should be a value as follows: 0: WAN; 2: L2TP; 3: PPTP; 4: multi-select WAN or VPN or virtual WAN. + * @return interfaceType + */ + @ApiModelProperty(value = "InterfaceType should be a value as follows: 0: WAN; 2: L2TP; 3: PPTP; 4: multi-select WAN or VPN or virtual WAN.") + + + public Integer getInterfaceType() { + return interfaceType; + } + + public void setInterfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + } + + public PolicyRoutingInfo interfaceId(String interfaceId) { + this.interfaceId = interfaceId; + return this; + } + + /** + * Interface ID + * @return interfaceId + */ + @ApiModelProperty(value = "Interface ID") + + + public String getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public PolicyRoutingInfo wanPortIds(List wanPortIds) { + this.wanPortIds = wanPortIds; + return this; + } + + public PolicyRoutingInfo addWanPortIdsItem(String wanPortIdsItem) { + if (this.wanPortIds == null) { + this.wanPortIds = new ArrayList<>(); + } + this.wanPortIds.add(wanPortIdsItem); + return this; + } + + /** + * WAN port list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty. + * @return wanPortIds + */ + @ApiModelProperty(value = "WAN port list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty.") + + + public List getWanPortIds() { + return wanPortIds; + } + + public void setWanPortIds(List wanPortIds) { + this.wanPortIds = wanPortIds; + } + + public PolicyRoutingInfo vpnIds(List vpnIds) { + this.vpnIds = vpnIds; + return this; + } + + public PolicyRoutingInfo addVpnIdsItem(String vpnIdsItem) { + if (this.vpnIds == null) { + this.vpnIds = new ArrayList<>(); + } + this.vpnIds.add(vpnIdsItem); + return this; + } + + /** + * VPN list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty. + * @return vpnIds + */ + @ApiModelProperty(value = "VPN list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty.") + + + public List getVpnIds() { + return vpnIds; + } + + public void setVpnIds(List vpnIds) { + this.vpnIds = vpnIds; + } + + public PolicyRoutingInfo virtualWanIds(List virtualWanIds) { + this.virtualWanIds = virtualWanIds; + return this; + } + + public PolicyRoutingInfo addVirtualWanIdsItem(String virtualWanIdsItem) { + if (this.virtualWanIds == null) { + this.virtualWanIds = new ArrayList<>(); + } + this.virtualWanIds.add(virtualWanIdsItem); + return this; + } + + /** + * Virtual WAN list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty. + * @return virtualWanIds + */ + @ApiModelProperty(value = "Virtual WAN list. When interfaceType is 4, at least one of the wanPortIds or vpnIds or virtualWanIds is not empty.") + + + public List getVirtualWanIds() { + return virtualWanIds; + } + + public void setVirtualWanIds(List virtualWanIds) { + this.virtualWanIds = virtualWanIds; + } + + public PolicyRoutingInfo backupInterface(Boolean backupInterface) { + this.backupInterface = backupInterface; + return this; + } + + /** + * Use another WAN port if the current one is down + * @return backupInterface + */ + @ApiModelProperty(required = true, value = "Use another WAN port if the current one is down") + @NotNull + + + public Boolean getBackupInterface() { + return backupInterface; + } + + public void setBackupInterface(Boolean backupInterface) { + this.backupInterface = backupInterface; + } + + public PolicyRoutingInfo sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * SourceType should be a value as follows: 0: Network; 1: IP Group; 2: IP port Group + * @return sourceType + */ + @ApiModelProperty(required = true, value = "SourceType should be a value as follows: 0: Network; 1: IP Group; 2: IP port Group") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public PolicyRoutingInfo sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public PolicyRoutingInfo addSourceIdsItem(String sourceIdsItem) { + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return sourceIds + */ + @ApiModelProperty(required = true, value = "Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public PolicyRoutingInfo destinationType(Integer destinationType) { + this.destinationType = destinationType; + return this; + } + + /** + * DestinationType should be a value as follows: 0: Network; 1: IP Group; 2: IP port Group + * @return destinationType + */ + @ApiModelProperty(required = true, value = "DestinationType should be a value as follows: 0: Network; 1: IP Group; 2: IP port Group") + @NotNull + + + public Integer getDestinationType() { + return destinationType; + } + + public void setDestinationType(Integer destinationType) { + this.destinationType = destinationType; + } + + public PolicyRoutingInfo destinationIds(List destinationIds) { + this.destinationIds = destinationIds; + return this; + } + + public PolicyRoutingInfo addDestinationIdsItem(String destinationIdsItem) { + this.destinationIds.add(destinationIdsItem); + return this; + } + + /** + * Destination IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return destinationIds + */ + @ApiModelProperty(required = true, value = "Destination IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getDestinationIds() { + return destinationIds; + } + + public void setDestinationIds(List destinationIds) { + this.destinationIds = destinationIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PolicyRoutingInfo policyRoutingInfo = (PolicyRoutingInfo) o; + return Objects.equals(this.id, policyRoutingInfo.id) && + Objects.equals(this.index, policyRoutingInfo.index) && + Objects.equals(this.name, policyRoutingInfo.name) && + Objects.equals(this.status, policyRoutingInfo.status) && + Objects.equals(this.protocols, policyRoutingInfo.protocols) && + Objects.equals(this.interfaceType, policyRoutingInfo.interfaceType) && + Objects.equals(this.interfaceId, policyRoutingInfo.interfaceId) && + Objects.equals(this.wanPortIds, policyRoutingInfo.wanPortIds) && + Objects.equals(this.vpnIds, policyRoutingInfo.vpnIds) && + Objects.equals(this.virtualWanIds, policyRoutingInfo.virtualWanIds) && + Objects.equals(this.backupInterface, policyRoutingInfo.backupInterface) && + Objects.equals(this.sourceType, policyRoutingInfo.sourceType) && + Objects.equals(this.sourceIds, policyRoutingInfo.sourceIds) && + Objects.equals(this.destinationType, policyRoutingInfo.destinationType) && + Objects.equals(this.destinationIds, policyRoutingInfo.destinationIds); + } + + @Override + public int hashCode() { + return Objects.hash(id, index, name, status, protocols, interfaceType, interfaceId, wanPortIds, vpnIds, virtualWanIds, backupInterface, sourceType, sourceIds, destinationType, destinationIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PolicyRoutingInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" protocols: ").append(toIndentedString(protocols)).append("\n"); + sb.append(" interfaceType: ").append(toIndentedString(interfaceType)).append("\n"); + sb.append(" interfaceId: ").append(toIndentedString(interfaceId)).append("\n"); + sb.append(" wanPortIds: ").append(toIndentedString(wanPortIds)).append("\n"); + sb.append(" vpnIds: ").append(toIndentedString(vpnIds)).append("\n"); + sb.append(" virtualWanIds: ").append(toIndentedString(virtualWanIds)).append("\n"); + sb.append(" backupInterface: ").append(toIndentedString(backupInterface)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" destinationType: ").append(toIndentedString(destinationType)).append("\n"); + sb.append(" destinationIds: ").append(toIndentedString(destinationIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortDeviceDetail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortDeviceDetail.java new file mode 100644 index 0000000..2fb79b8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortDeviceDetail.java @@ -0,0 +1,303 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * PortDeviceDetail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortDeviceDetail { + @JsonProperty("type") + private String type; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("site") + private String site; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + @JsonProperty("hwVersion") + private String hwVersion; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("sn") + private String sn; + + @JsonProperty("ports") + private DevicePorts ports; + + public PortDeviceDetail type(String type) { + this.type = type; + return this; + } + + /** + * Device type. \"gateway\", \"switch\" + * @return type + */ + @ApiModelProperty(value = "Device type. \"gateway\", \"switch\"") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public PortDeviceDetail mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device mac. + * @return mac + */ + @ApiModelProperty(value = "Device mac.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public PortDeviceDetail name(String name) { + this.name = name; + return this; + } + + /** + * Device name. + * @return name + */ + @ApiModelProperty(value = "Device name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PortDeviceDetail site(String site) { + this.site = site; + return this; + } + + /** + * Site ID + * @return site + */ + @ApiModelProperty(value = "Site ID") + + + public String getSite() { + return site; + } + + public void setSite(String site) { + this.site = site; + } + + public PortDeviceDetail model(String model) { + this.model = model; + return this; + } + + /** + * Device model. + * @return model + */ + @ApiModelProperty(value = "Device model.") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public PortDeviceDetail modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Device model version. + * @return modelVersion + */ + @ApiModelProperty(value = "Device model version.") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public PortDeviceDetail hwVersion(String hwVersion) { + this.hwVersion = hwVersion; + return this; + } + + /** + * Device hardware version. + * @return hwVersion + */ + @ApiModelProperty(value = "Device hardware version.") + + + public String getHwVersion() { + return hwVersion; + } + + public void setHwVersion(String hwVersion) { + this.hwVersion = hwVersion; + } + + public PortDeviceDetail status(Integer status) { + this.status = status; + return this; + } + + /** + * Device status. + * @return status + */ + @ApiModelProperty(value = "Device status.") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public PortDeviceDetail sn(String sn) { + this.sn = sn; + return this; + } + + /** + * Device SN code. + * @return sn + */ + @ApiModelProperty(value = "Device SN code.") + + + public String getSn() { + return sn; + } + + public void setSn(String sn) { + this.sn = sn; + } + + public PortDeviceDetail ports(DevicePorts ports) { + this.ports = ports; + return this; + } + + /** + * Get ports + * @return ports + */ + @ApiModelProperty(value = "") + + @Valid + + public DevicePorts getPorts() { + return ports; + } + + public void setPorts(DevicePorts ports) { + this.ports = ports; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortDeviceDetail portDeviceDetail = (PortDeviceDetail) o; + return Objects.equals(this.type, portDeviceDetail.type) && + Objects.equals(this.mac, portDeviceDetail.mac) && + Objects.equals(this.name, portDeviceDetail.name) && + Objects.equals(this.site, portDeviceDetail.site) && + Objects.equals(this.model, portDeviceDetail.model) && + Objects.equals(this.modelVersion, portDeviceDetail.modelVersion) && + Objects.equals(this.hwVersion, portDeviceDetail.hwVersion) && + Objects.equals(this.status, portDeviceDetail.status) && + Objects.equals(this.sn, portDeviceDetail.sn) && + Objects.equals(this.ports, portDeviceDetail.ports); + } + + @Override + public int hashCode() { + return Objects.hash(type, mac, name, site, model, modelVersion, hwVersion, status, sn, ports); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortDeviceDetail {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" site: ").append(toIndentedString(site)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" hwVersion: ").append(toIndentedString(hwVersion)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" sn: ").append(toIndentedString(sn)).append("\n"); + sb.append(" ports: ").append(toIndentedString(ports)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortForwardingConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortForwardingConfig.java new file mode 100644 index 0000000..0709f4e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortForwardingConfig.java @@ -0,0 +1,362 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PortForwardingConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortForwardingConfig { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("from") + private Integer from; + + @JsonProperty("limitedAddresses") + @Valid + private List limitedAddresses = null; + + @JsonProperty("interfaceWanPortId") + @Valid + private List interfaceWanPortId = new ArrayList<>(); + + @JsonProperty("wanIps") + @Valid + private List wanIps = null; + + @JsonProperty("externalPort") + private String externalPort; + + @JsonProperty("forwardIp") + private String forwardIp; + + @JsonProperty("forwardPort") + private String forwardPort; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("dMZ") + private Boolean dMZ; + + public PortForwardingConfig name(String name) { + this.name = name; + return this; + } + + /** + * Name, name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name, name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PortForwardingConfig status(Boolean status) { + this.status = status; + return this; + } + + /** + * Port-forwarding enable status. + * @return status + */ + @ApiModelProperty(required = true, value = "Port-forwarding enable status.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public PortForwardingConfig from(Integer from) { + this.from = from; + return this; + } + + /** + * From corresponds with source IP in web. From should be a value as follows: 0: where; 1: limited address + * @return from + */ + @ApiModelProperty(required = true, value = "From corresponds with source IP in web. From should be a value as follows: 0: where; 1: limited address") + @NotNull + + + public Integer getFrom() { + return from; + } + + public void setFrom(Integer from) { + this.from = from; + } + + public PortForwardingConfig limitedAddresses(List limitedAddresses) { + this.limitedAddresses = limitedAddresses; + return this; + } + + public PortForwardingConfig addLimitedAddressesItem(String limitedAddressesItem) { + if (this.limitedAddresses == null) { + this.limitedAddresses = new ArrayList<>(); + } + this.limitedAddresses.add(limitedAddressesItem); + return this; + } + + /** + * Only for limited address + * @return limitedAddresses + */ + @ApiModelProperty(value = "Only for limited address") + + + public List getLimitedAddresses() { + return limitedAddresses; + } + + public void setLimitedAddresses(List limitedAddresses) { + this.limitedAddresses = limitedAddresses; + } + + public PortForwardingConfig interfaceWanPortId(List interfaceWanPortId) { + this.interfaceWanPortId = interfaceWanPortId; + return this; + } + + public PortForwardingConfig addInterfaceWanPortIdItem(String interfaceWanPortIdItem) { + this.interfaceWanPortId.add(interfaceWanPortIdItem); + return this; + } + + /** + * This field represents WAN port ID. WAN port ID can be obtained from can be obtained from 'Get internet basic info' interface. + * @return interfaceWanPortId + */ + @ApiModelProperty(required = true, value = "This field represents WAN port ID. WAN port ID can be obtained from can be obtained from 'Get internet basic info' interface.") + @NotNull + + + public List getInterfaceWanPortId() { + return interfaceWanPortId; + } + + public void setInterfaceWanPortId(List interfaceWanPortId) { + this.interfaceWanPortId = interfaceWanPortId; + } + + public PortForwardingConfig wanIps(List wanIps) { + this.wanIps = wanIps; + return this; + } + + public PortForwardingConfig addWanIpsItem(PortIpOpenApiVo wanIpsItem) { + if (this.wanIps == null) { + this.wanIps = new ArrayList<>(); + } + this.wanIps.add(wanIpsItem); + return this; + } + + /** + * WAN IPs + * @return wanIps + */ + @ApiModelProperty(value = "WAN IPs") + + @Valid + + public List getWanIps() { + return wanIps; + } + + public void setWanIps(List wanIps) { + this.wanIps = wanIps; + } + + public PortForwardingConfig externalPort(String externalPort) { + this.externalPort = externalPort; + return this; + } + + /** + * External port corresponds with source port in web. External port should be within the range of 1–65535. Must be filled in when DMS is false. + * @return externalPort + */ + @ApiModelProperty(value = "External port corresponds with source port in web. External port should be within the range of 1–65535. Must be filled in when DMS is false.") + +@Pattern(regexp="^(([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5]))|((([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5]))-(([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5])))$") + public String getExternalPort() { + return externalPort; + } + + public void setExternalPort(String externalPort) { + this.externalPort = externalPort; + } + + public PortForwardingConfig forwardIp(String forwardIp) { + this.forwardIp = forwardIp; + return this; + } + + /** + * Forward IP corresponds with destination IP in web. Forward IP + * @return forwardIp + */ + @ApiModelProperty(required = true, value = "Forward IP corresponds with destination IP in web. Forward IP") + @NotNull + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getForwardIp() { + return forwardIp; + } + + public void setForwardIp(String forwardIp) { + this.forwardIp = forwardIp; + } + + public PortForwardingConfig forwardPort(String forwardPort) { + this.forwardPort = forwardPort; + return this; + } + + /** + * Forward port corresponds with destination port in web. Forward port should be 1 or 1-10, within the range of 1–65535. Must be filled in when DMS is false. + * @return forwardPort + */ + @ApiModelProperty(value = "Forward port corresponds with destination port in web. Forward port should be 1 or 1-10, within the range of 1–65535. Must be filled in when DMS is false.") + +@Pattern(regexp="^(([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5]))|((([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5]))-(([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5])))$") + public String getForwardPort() { + return forwardPort; + } + + public void setForwardPort(String forwardPort) { + this.forwardPort = forwardPort; + } + + public PortForwardingConfig protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * Protocol should be a value as follows: 0: ALL; 1: TCP; 2: UDP. Must be filled in when DMS is false. + * @return protocol + */ + @ApiModelProperty(value = "Protocol should be a value as follows: 0: ALL; 1: TCP; 2: UDP. Must be filled in when DMS is false.") + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public PortForwardingConfig dMZ(Boolean dMZ) { + this.dMZ = dMZ; + return this; + } + + /** + * With DMZ enabled, all ports are open and the traffic from external network will be forwarded to the specific destination IP in the LAN. + * @return dMZ + */ + @ApiModelProperty(required = true, value = "With DMZ enabled, all ports are open and the traffic from external network will be forwarded to the specific destination IP in the LAN.") + @NotNull + + + public Boolean getdMZ() { + return dMZ; + } + + public void setdMZ(Boolean dMZ) { + this.dMZ = dMZ; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortForwardingConfig portForwardingConfig = (PortForwardingConfig) o; + return Objects.equals(this.name, portForwardingConfig.name) && + Objects.equals(this.status, portForwardingConfig.status) && + Objects.equals(this.from, portForwardingConfig.from) && + Objects.equals(this.limitedAddresses, portForwardingConfig.limitedAddresses) && + Objects.equals(this.interfaceWanPortId, portForwardingConfig.interfaceWanPortId) && + Objects.equals(this.wanIps, portForwardingConfig.wanIps) && + Objects.equals(this.externalPort, portForwardingConfig.externalPort) && + Objects.equals(this.forwardIp, portForwardingConfig.forwardIp) && + Objects.equals(this.forwardPort, portForwardingConfig.forwardPort) && + Objects.equals(this.protocol, portForwardingConfig.protocol) && + Objects.equals(this.dMZ, portForwardingConfig.dMZ); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, from, limitedAddresses, interfaceWanPortId, wanIps, externalPort, forwardIp, forwardPort, protocol, dMZ); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortForwardingConfig {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" limitedAddresses: ").append(toIndentedString(limitedAddresses)).append("\n"); + sb.append(" interfaceWanPortId: ").append(toIndentedString(interfaceWanPortId)).append("\n"); + sb.append(" wanIps: ").append(toIndentedString(wanIps)).append("\n"); + sb.append(" externalPort: ").append(toIndentedString(externalPort)).append("\n"); + sb.append(" forwardIp: ").append(toIndentedString(forwardIp)).append("\n"); + sb.append(" forwardPort: ").append(toIndentedString(forwardPort)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" dMZ: ").append(toIndentedString(dMZ)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortForwardingInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortForwardingInfo.java new file mode 100644 index 0000000..799f3d5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortForwardingInfo.java @@ -0,0 +1,412 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PortForwardingInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortForwardingInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("site id") + private String siteId; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("from") + private Integer from; + + @JsonProperty("limitedAddresses") + @Valid + private List limitedAddresses = null; + + @JsonProperty("interfaceWanPortId") + @Valid + private List interfaceWanPortId = new ArrayList<>(); + + @JsonProperty("wanIps") + @Valid + private List wanIps = null; + + @JsonProperty("externalPort") + private String externalPort; + + @JsonProperty("forwardIp") + private String forwardIp; + + @JsonProperty("forwardPort") + private String forwardPort; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("dMZ") + private Boolean dMZ; + + public PortForwardingInfo id(String id) { + this.id = id; + return this; + } + + /** + * Port-forwarding ID + * @return id + */ + @ApiModelProperty(value = "Port-forwarding ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PortForwardingInfo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public PortForwardingInfo name(String name) { + this.name = name; + return this; + } + + /** + * Name, name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name, name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PortForwardingInfo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Port-forwarding enable status. + * @return status + */ + @ApiModelProperty(required = true, value = "Port-forwarding enable status.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public PortForwardingInfo from(Integer from) { + this.from = from; + return this; + } + + /** + * From corresponds with source IP in web. From should be a value as follows: 0: where; 1: limited address + * @return from + */ + @ApiModelProperty(required = true, value = "From corresponds with source IP in web. From should be a value as follows: 0: where; 1: limited address") + @NotNull + + + public Integer getFrom() { + return from; + } + + public void setFrom(Integer from) { + this.from = from; + } + + public PortForwardingInfo limitedAddresses(List limitedAddresses) { + this.limitedAddresses = limitedAddresses; + return this; + } + + public PortForwardingInfo addLimitedAddressesItem(String limitedAddressesItem) { + if (this.limitedAddresses == null) { + this.limitedAddresses = new ArrayList<>(); + } + this.limitedAddresses.add(limitedAddressesItem); + return this; + } + + /** + * Only for limited address + * @return limitedAddresses + */ + @ApiModelProperty(value = "Only for limited address") + + + public List getLimitedAddresses() { + return limitedAddresses; + } + + public void setLimitedAddresses(List limitedAddresses) { + this.limitedAddresses = limitedAddresses; + } + + public PortForwardingInfo interfaceWanPortId(List interfaceWanPortId) { + this.interfaceWanPortId = interfaceWanPortId; + return this; + } + + public PortForwardingInfo addInterfaceWanPortIdItem(String interfaceWanPortIdItem) { + this.interfaceWanPortId.add(interfaceWanPortIdItem); + return this; + } + + /** + * This field represents WAN port ID. WAN port ID can be obtained from can be obtained from 'Get internet basic info' interface. + * @return interfaceWanPortId + */ + @ApiModelProperty(required = true, value = "This field represents WAN port ID. WAN port ID can be obtained from can be obtained from 'Get internet basic info' interface.") + @NotNull + + + public List getInterfaceWanPortId() { + return interfaceWanPortId; + } + + public void setInterfaceWanPortId(List interfaceWanPortId) { + this.interfaceWanPortId = interfaceWanPortId; + } + + public PortForwardingInfo wanIps(List wanIps) { + this.wanIps = wanIps; + return this; + } + + public PortForwardingInfo addWanIpsItem(PortIpOpenApiVo wanIpsItem) { + if (this.wanIps == null) { + this.wanIps = new ArrayList<>(); + } + this.wanIps.add(wanIpsItem); + return this; + } + + /** + * WAN IPs + * @return wanIps + */ + @ApiModelProperty(value = "WAN IPs") + + @Valid + + public List getWanIps() { + return wanIps; + } + + public void setWanIps(List wanIps) { + this.wanIps = wanIps; + } + + public PortForwardingInfo externalPort(String externalPort) { + this.externalPort = externalPort; + return this; + } + + /** + * External port corresponds with source port in web. ExternalPort should be within the range of 1–65535. + * @return externalPort + */ + @ApiModelProperty(value = "External port corresponds with source port in web. ExternalPort should be within the range of 1–65535.") + +@Pattern(regexp="^(([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5]))|((([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5]))-(([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5])))$") + public String getExternalPort() { + return externalPort; + } + + public void setExternalPort(String externalPort) { + this.externalPort = externalPort; + } + + public PortForwardingInfo forwardIp(String forwardIp) { + this.forwardIp = forwardIp; + return this; + } + + /** + * Forward IP corresponds with destination IP in web. Forward IP + * @return forwardIp + */ + @ApiModelProperty(required = true, value = "Forward IP corresponds with destination IP in web. Forward IP") + @NotNull + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getForwardIp() { + return forwardIp; + } + + public void setForwardIp(String forwardIp) { + this.forwardIp = forwardIp; + } + + public PortForwardingInfo forwardPort(String forwardPort) { + this.forwardPort = forwardPort; + return this; + } + + /** + * Forward port corresponds with destination port in web. ForwardPort should be 1 or 1-10, within the range of 1–65535. + * @return forwardPort + */ + @ApiModelProperty(value = "Forward port corresponds with destination port in web. ForwardPort should be 1 or 1-10, within the range of 1–65535.") + +@Pattern(regexp="^(([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5]))|((([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5]))-(([1-9]\\d{0,3})|([1-5]\\d{4})|(6[0-4]\\d{3})|(65[0-4]\\d{2})|(655[0-2]\\d)|(6553[0-5])))$") + public String getForwardPort() { + return forwardPort; + } + + public void setForwardPort(String forwardPort) { + this.forwardPort = forwardPort; + } + + public PortForwardingInfo protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * Protocol should be a value as follows: 0: ALL; 1: TCP; 2: UDP. + * @return protocol + */ + @ApiModelProperty(value = "Protocol should be a value as follows: 0: ALL; 1: TCP; 2: UDP.") + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public PortForwardingInfo dMZ(Boolean dMZ) { + this.dMZ = dMZ; + return this; + } + + /** + * With DMZ enabled, all ports are open and the traffic from external network will be forwarded to the specific destination IP in the LAN. + * @return dMZ + */ + @ApiModelProperty(required = true, value = "With DMZ enabled, all ports are open and the traffic from external network will be forwarded to the specific destination IP in the LAN.") + @NotNull + + + public Boolean getdMZ() { + return dMZ; + } + + public void setdMZ(Boolean dMZ) { + this.dMZ = dMZ; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortForwardingInfo portForwardingInfo = (PortForwardingInfo) o; + return Objects.equals(this.id, portForwardingInfo.id) && + Objects.equals(this.siteId, portForwardingInfo.siteId) && + Objects.equals(this.name, portForwardingInfo.name) && + Objects.equals(this.status, portForwardingInfo.status) && + Objects.equals(this.from, portForwardingInfo.from) && + Objects.equals(this.limitedAddresses, portForwardingInfo.limitedAddresses) && + Objects.equals(this.interfaceWanPortId, portForwardingInfo.interfaceWanPortId) && + Objects.equals(this.wanIps, portForwardingInfo.wanIps) && + Objects.equals(this.externalPort, portForwardingInfo.externalPort) && + Objects.equals(this.forwardIp, portForwardingInfo.forwardIp) && + Objects.equals(this.forwardPort, portForwardingInfo.forwardPort) && + Objects.equals(this.protocol, portForwardingInfo.protocol) && + Objects.equals(this.dMZ, portForwardingInfo.dMZ); + } + + @Override + public int hashCode() { + return Objects.hash(id, siteId, name, status, from, limitedAddresses, interfaceWanPortId, wanIps, externalPort, forwardIp, forwardPort, protocol, dMZ); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortForwardingInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" from: ").append(toIndentedString(from)).append("\n"); + sb.append(" limitedAddresses: ").append(toIndentedString(limitedAddresses)).append("\n"); + sb.append(" interfaceWanPortId: ").append(toIndentedString(interfaceWanPortId)).append("\n"); + sb.append(" wanIps: ").append(toIndentedString(wanIps)).append("\n"); + sb.append(" externalPort: ").append(toIndentedString(externalPort)).append("\n"); + sb.append(" forwardIp: ").append(toIndentedString(forwardIp)).append("\n"); + sb.append(" forwardPort: ").append(toIndentedString(forwardPort)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" dMZ: ").append(toIndentedString(dMZ)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortIpOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortIpOpenApiVo.java new file mode 100644 index 0000000..d49d20e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortIpOpenApiVo.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * WAN IPs + */ +@ApiModel(description = "WAN IPs") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortIpOpenApiVo { + @JsonProperty("wanId") + private String wanId; + + @JsonProperty("ip") + private String ip; + + public PortIpOpenApiVo wanId(String wanId) { + this.wanId = wanId; + return this; + } + + /** + * This field represents WAN port ID. WAN port ID can be obtained from can be obtained from 'Get internet basic info' interface. + * @return wanId + */ + @ApiModelProperty(value = "This field represents WAN port ID. WAN port ID can be obtained from can be obtained from 'Get internet basic info' interface.") + + + public String getWanId() { + return wanId; + } + + public void setWanId(String wanId) { + this.wanId = wanId; + } + + public PortIpOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP address + * @return ip + */ + @ApiModelProperty(value = "IP address") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortIpOpenApiVo portIpOpenApiVo = (PortIpOpenApiVo) o; + return Objects.equals(this.wanId, portIpOpenApiVo.wanId) && + Objects.equals(this.ip, portIpOpenApiVo.ip); + } + + @Override + public int hashCode() { + return Objects.hash(wanId, ip); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortIpOpenApiVo {\n"); + + sb.append(" wanId: ").append(toIndentedString(wanId)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortMaskOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortMaskOpenApiVo.java new file mode 100644 index 0000000..cd940f7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortMaskOpenApiVo.java @@ -0,0 +1,107 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Port mask list. [portType] value of 1 is required + */ +@ApiModel(description = "Port mask list. [portType] value of 1 is required") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortMaskOpenApiVo { + @JsonProperty("port") + private Integer port; + + @JsonProperty("mask") + private String mask; + + public PortMaskOpenApiVo port(Integer port) { + this.port = port; + return this; + } + + /** + * Port should be within the range of 0-65535 + * @return port + */ + @ApiModelProperty(required = true, value = "Port should be within the range of 0-65535") + @NotNull + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public PortMaskOpenApiVo mask(String mask) { + this.mask = mask; + return this; + } + + /** + * Port mask should be 4 hex number(0-9, A-F), e.g. 0000 or FFFF + * @return mask + */ + @ApiModelProperty(required = true, value = "Port mask should be 4 hex number(0-9, A-F), e.g. 0000 or FFFF") + @NotNull + +@Pattern(regexp="^[0-9a-fA-F]{4}$") + public String getMask() { + return mask; + } + + public void setMask(String mask) { + this.mask = mask; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortMaskOpenApiVo portMaskOpenApiVo = (PortMaskOpenApiVo) o; + return Objects.equals(this.port, portMaskOpenApiVo.port) && + Objects.equals(this.mask, portMaskOpenApiVo.mask); + } + + @Override + public int hashCode() { + return Objects.hash(port, mask); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortMaskOpenApiVo {\n"); + + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" mask: ").append(toIndentedString(mask)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortScheduleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortScheduleOpenApiVo.java new file mode 100644 index 0000000..621ce4e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortScheduleOpenApiVo.java @@ -0,0 +1,168 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * PortScheduleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortScheduleOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("turnOnTime") + private String turnOnTime; + + @JsonProperty("portsMap") + @Valid + private Map> portsMap = new HashMap<>(); + + public PortScheduleOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Port Schedule Name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Port Schedule Name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PortScheduleOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Port Schedule Status. + * @return status + */ + @ApiModelProperty(required = true, value = "Port Schedule Status.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public PortScheduleOpenApiVo turnOnTime(String turnOnTime) { + this.turnOnTime = turnOnTime; + return this; + } + + /** + * Time Range ID, cannot be empty. + * @return turnOnTime + */ + @ApiModelProperty(required = true, value = "Time Range ID, cannot be empty.") + @NotNull + + + public String getTurnOnTime() { + return turnOnTime; + } + + public void setTurnOnTime(String turnOnTime) { + this.turnOnTime = turnOnTime; + } + + public PortScheduleOpenApiVo portsMap(Map> portsMap) { + this.portsMap = portsMap; + return this; + } + + public PortScheduleOpenApiVo putPortsMapItem(String key, List portsMapItem) { + this.portsMap.put(key, portsMapItem); + return this; + } + + /** + * Key:MAC(\"String\"), Value:Set of Ports(\"Integer\") + * @return portsMap + */ + @ApiModelProperty(required = true, value = "Key:MAC(\"String\"), Value:Set of Ports(\"Integer\")") + @NotNull + + @Valid + + public Map> getPortsMap() { + return portsMap; + } + + public void setPortsMap(Map> portsMap) { + this.portsMap = portsMap; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortScheduleOpenApiVo portScheduleOpenApiVo = (PortScheduleOpenApiVo) o; + return Objects.equals(this.name, portScheduleOpenApiVo.name) && + Objects.equals(this.status, portScheduleOpenApiVo.status) && + Objects.equals(this.turnOnTime, portScheduleOpenApiVo.turnOnTime) && + Objects.equals(this.portsMap, portScheduleOpenApiVo.portsMap); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, turnOnTime, portsMap); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortScheduleOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" turnOnTime: ").append(toIndentedString(turnOnTime)).append("\n"); + sb.append(" portsMap: ").append(toIndentedString(portsMap)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortScheduleQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortScheduleQueryOpenApiVo.java new file mode 100644 index 0000000..64858e9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortScheduleQueryOpenApiVo.java @@ -0,0 +1,268 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * PortScheduleQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortScheduleQueryOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("turnOnTime") + private String turnOnTime; + + @JsonProperty("portsMap") + @Valid + private Map> portsMap = new HashMap<>(); + + @JsonProperty("nextExecute") + private Long nextExecute; + + @JsonProperty("notInDst") + private Boolean notInDst; + + public PortScheduleQueryOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Port Schedule individual ID. + * @return id + */ + @ApiModelProperty(value = "Port Schedule individual ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PortScheduleQueryOpenApiVo siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public PortScheduleQueryOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Port Schedule Name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Port Schedule Name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PortScheduleQueryOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Port Schedule Status. + * @return status + */ + @ApiModelProperty(required = true, value = "Port Schedule Status.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public PortScheduleQueryOpenApiVo turnOnTime(String turnOnTime) { + this.turnOnTime = turnOnTime; + return this; + } + + /** + * Time Range ID, cannot be empty. + * @return turnOnTime + */ + @ApiModelProperty(required = true, value = "Time Range ID, cannot be empty.") + @NotNull + + + public String getTurnOnTime() { + return turnOnTime; + } + + public void setTurnOnTime(String turnOnTime) { + this.turnOnTime = turnOnTime; + } + + public PortScheduleQueryOpenApiVo portsMap(Map> portsMap) { + this.portsMap = portsMap; + return this; + } + + public PortScheduleQueryOpenApiVo putPortsMapItem(String key, List portsMapItem) { + this.portsMap.put(key, portsMapItem); + return this; + } + + /** + * Key:MAC(\"String\"), Value:Set of Ports(\"Integer\") + * @return portsMap + */ + @ApiModelProperty(required = true, value = "Key:MAC(\"String\"), Value:Set of Ports(\"Integer\")") + @NotNull + + @Valid + + public Map> getPortsMap() { + return portsMap; + } + + public void setPortsMap(Map> portsMap) { + this.portsMap = portsMap; + } + + public PortScheduleQueryOpenApiVo nextExecute(Long nextExecute) { + this.nextExecute = nextExecute; + return this; + } + + /** + * Show Poe Schedule next execution timestamp. + * @return nextExecute + */ + @ApiModelProperty(value = "Show Poe Schedule next execution timestamp.") + + + public Long getNextExecute() { + return nextExecute; + } + + public void setNextExecute(Long nextExecute) { + this.nextExecute = nextExecute; + } + + public PortScheduleQueryOpenApiVo notInDst(Boolean notInDst) { + this.notInDst = notInDst; + return this; + } + + /** + * When notInDst is true, Not displayed in DST. + * @return notInDst + */ + @ApiModelProperty(value = "When notInDst is true, Not displayed in DST.") + + + public Boolean getNotInDst() { + return notInDst; + } + + public void setNotInDst(Boolean notInDst) { + this.notInDst = notInDst; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortScheduleQueryOpenApiVo portScheduleQueryOpenApiVo = (PortScheduleQueryOpenApiVo) o; + return Objects.equals(this.id, portScheduleQueryOpenApiVo.id) && + Objects.equals(this.siteId, portScheduleQueryOpenApiVo.siteId) && + Objects.equals(this.name, portScheduleQueryOpenApiVo.name) && + Objects.equals(this.status, portScheduleQueryOpenApiVo.status) && + Objects.equals(this.turnOnTime, portScheduleQueryOpenApiVo.turnOnTime) && + Objects.equals(this.portsMap, portScheduleQueryOpenApiVo.portsMap) && + Objects.equals(this.nextExecute, portScheduleQueryOpenApiVo.nextExecute) && + Objects.equals(this.notInDst, portScheduleQueryOpenApiVo.notInDst); + } + + @Override + public int hashCode() { + return Objects.hash(id, siteId, name, status, turnOnTime, portsMap, nextExecute, notInDst); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortScheduleQueryOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" turnOnTime: ").append(toIndentedString(turnOnTime)).append("\n"); + sb.append(" portsMap: ").append(toIndentedString(portsMap)).append("\n"); + sb.append(" nextExecute: ").append(toIndentedString(nextExecute)).append("\n"); + sb.append(" notInDst: ").append(toIndentedString(notInDst)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortSettingVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortSettingVo.java new file mode 100644 index 0000000..5882287 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortSettingVo.java @@ -0,0 +1,204 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Parameter [portSettings] should not be null when parameter [provider] is 6. + */ +@ApiModel(description = "Parameter [portSettings] should not be null when parameter [provider] is 6.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortSettingVo { + @JsonProperty("registrarPort") + private Integer registrarPort; + + @JsonProperty("sipProxy") + private String sipProxy; + + @JsonProperty("sipProxyPort") + private Integer sipProxyPort; + + @JsonProperty("outboundProxy") + private String outboundProxy; + + @JsonProperty("outboundProxyPort") + private Integer outboundProxyPort; + + @JsonProperty("viaOutboundProxy") + private Boolean viaOutboundProxy; + + public PortSettingVo registrarPort(Integer registrarPort) { + this.registrarPort = registrarPort; + return this; + } + + /** + * When parameter [provider] is 0, parameter [registrarPort] has a default value of [5060]. In other cases, parameter [registrarPort] is always 5060. + * @return registrarPort + */ + @ApiModelProperty(value = "When parameter [provider] is 0, parameter [registrarPort] has a default value of [5060]. In other cases, parameter [registrarPort] is always 5060.") + + + public Integer getRegistrarPort() { + return registrarPort; + } + + public void setRegistrarPort(Integer registrarPort) { + this.registrarPort = registrarPort; + } + + public PortSettingVo sipProxy(String sipProxy) { + this.sipProxy = sipProxy; + return this; + } + + /** + * Parameter [sipProxy] should not be null when parameter [provider] is 6. When parameter [provider] is 0, parameter [sipProxy] has a default value of [0.0.0.0]. In other cases, parameter [sipProxy] is always [0.0.0.0]. + * @return sipProxy + */ + @ApiModelProperty(value = "Parameter [sipProxy] should not be null when parameter [provider] is 6. When parameter [provider] is 0, parameter [sipProxy] has a default value of [0.0.0.0]. In other cases, parameter [sipProxy] is always [0.0.0.0].") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSipProxy() { + return sipProxy; + } + + public void setSipProxy(String sipProxy) { + this.sipProxy = sipProxy; + } + + public PortSettingVo sipProxyPort(Integer sipProxyPort) { + this.sipProxyPort = sipProxyPort; + return this; + } + + /** + * When parameter [provider] is 0, parameter [sipProxyPort] has a default value of [5060]. In other cases, parameter [sipProxyPort] is always 5060. + * @return sipProxyPort + */ + @ApiModelProperty(value = "When parameter [provider] is 0, parameter [sipProxyPort] has a default value of [5060]. In other cases, parameter [sipProxyPort] is always 5060.") + + + public Integer getSipProxyPort() { + return sipProxyPort; + } + + public void setSipProxyPort(Integer sipProxyPort) { + this.sipProxyPort = sipProxyPort; + } + + public PortSettingVo outboundProxy(String outboundProxy) { + this.outboundProxy = outboundProxy; + return this; + } + + /** + * When parameter [provider] is 0, parameter [outboundProxy] has a default value of [0.0.0.0]. In other cases, parameter [outboundProxy] is always [0.0.0.0]. + * @return outboundProxy + */ + @ApiModelProperty(value = "When parameter [provider] is 0, parameter [outboundProxy] has a default value of [0.0.0.0]. In other cases, parameter [outboundProxy] is always [0.0.0.0].") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getOutboundProxy() { + return outboundProxy; + } + + public void setOutboundProxy(String outboundProxy) { + this.outboundProxy = outboundProxy; + } + + public PortSettingVo outboundProxyPort(Integer outboundProxyPort) { + this.outboundProxyPort = outboundProxyPort; + return this; + } + + /** + * When parameter [provider] is 0, parameter [outboundProxyPort] has a default value of [5060]. In other cases, parameter [outboundProxyPort] is always 5060. + * @return outboundProxyPort + */ + @ApiModelProperty(value = "When parameter [provider] is 0, parameter [outboundProxyPort] has a default value of [5060]. In other cases, parameter [outboundProxyPort] is always 5060.") + + + public Integer getOutboundProxyPort() { + return outboundProxyPort; + } + + public void setOutboundProxyPort(Integer outboundProxyPort) { + this.outboundProxyPort = outboundProxyPort; + } + + public PortSettingVo viaOutboundProxy(Boolean viaOutboundProxy) { + this.viaOutboundProxy = viaOutboundProxy; + return this; + } + + /** + * When parameter [provider] is 0, parameter [viaOutboundProxy] has a default value of [true]. In other cases, parameter [viaOutboundProxy] is always true. + * @return viaOutboundProxy + */ + @ApiModelProperty(value = "When parameter [provider] is 0, parameter [viaOutboundProxy] has a default value of [true]. In other cases, parameter [viaOutboundProxy] is always true.") + + + public Boolean getViaOutboundProxy() { + return viaOutboundProxy; + } + + public void setViaOutboundProxy(Boolean viaOutboundProxy) { + this.viaOutboundProxy = viaOutboundProxy; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortSettingVo portSettingVo = (PortSettingVo) o; + return Objects.equals(this.registrarPort, portSettingVo.registrarPort) && + Objects.equals(this.sipProxy, portSettingVo.sipProxy) && + Objects.equals(this.sipProxyPort, portSettingVo.sipProxyPort) && + Objects.equals(this.outboundProxy, portSettingVo.outboundProxy) && + Objects.equals(this.outboundProxyPort, portSettingVo.outboundProxyPort) && + Objects.equals(this.viaOutboundProxy, portSettingVo.viaOutboundProxy); + } + + @Override + public int hashCode() { + return Objects.hash(registrarPort, sipProxy, sipProxyPort, outboundProxy, outboundProxyPort, viaOutboundProxy); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortSettingVo {\n"); + + sb.append(" registrarPort: ").append(toIndentedString(registrarPort)).append("\n"); + sb.append(" sipProxy: ").append(toIndentedString(sipProxy)).append("\n"); + sb.append(" sipProxyPort: ").append(toIndentedString(sipProxyPort)).append("\n"); + sb.append(" outboundProxy: ").append(toIndentedString(outboundProxy)).append("\n"); + sb.append(" outboundProxyPort: ").append(toIndentedString(outboundProxyPort)).append("\n"); + sb.append(" viaOutboundProxy: ").append(toIndentedString(viaOutboundProxy)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizationPageResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizationPageResOpenApiVo.java new file mode 100644 index 0000000..37d13ef --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizationPageResOpenApiVo.java @@ -0,0 +1,129 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * PortalCustomizationPageResOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortalCustomizationPageResOpenApiVo { + @JsonProperty("pageType") + private Integer pageType; + + @JsonProperty("portalCustomize") + private PortalCustomizeResOpenApiVo portalCustomize; + + @JsonProperty("importedPortalPage") + private ImportedPortalPageResOpenApiVo importedPortalPage; + + public PortalCustomizationPageResOpenApiVo pageType(Integer pageType) { + this.pageType = pageType; + return this; + } + + /** + * Page type, should be a value as follows: 1: Use default page, 2: use uploaded page. Required when portal auth type is not 4: External Portal Server + * @return pageType + */ + @ApiModelProperty(value = "Page type, should be a value as follows: 1: Use default page, 2: use uploaded page. Required when portal auth type is not 4: External Portal Server") + + + public Integer getPageType() { + return pageType; + } + + public void setPageType(Integer pageType) { + this.pageType = pageType; + } + + public PortalCustomizationPageResOpenApiVo portalCustomize(PortalCustomizeResOpenApiVo portalCustomize) { + this.portalCustomize = portalCustomize; + return this; + } + + /** + * Get portalCustomize + * @return portalCustomize + */ + @ApiModelProperty(value = "") + + @Valid + + public PortalCustomizeResOpenApiVo getPortalCustomize() { + return portalCustomize; + } + + public void setPortalCustomize(PortalCustomizeResOpenApiVo portalCustomize) { + this.portalCustomize = portalCustomize; + } + + public PortalCustomizationPageResOpenApiVo importedPortalPage(ImportedPortalPageResOpenApiVo importedPortalPage) { + this.importedPortalPage = importedPortalPage; + return this; + } + + /** + * Get importedPortalPage + * @return importedPortalPage + */ + @ApiModelProperty(value = "") + + @Valid + + public ImportedPortalPageResOpenApiVo getImportedPortalPage() { + return importedPortalPage; + } + + public void setImportedPortalPage(ImportedPortalPageResOpenApiVo importedPortalPage) { + this.importedPortalPage = importedPortalPage; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortalCustomizationPageResOpenApiVo portalCustomizationPageResOpenApiVo = (PortalCustomizationPageResOpenApiVo) o; + return Objects.equals(this.pageType, portalCustomizationPageResOpenApiVo.pageType) && + Objects.equals(this.portalCustomize, portalCustomizationPageResOpenApiVo.portalCustomize) && + Objects.equals(this.importedPortalPage, portalCustomizationPageResOpenApiVo.importedPortalPage); + } + + @Override + public int hashCode() { + return Objects.hash(pageType, portalCustomize, importedPortalPage); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortalCustomizationPageResOpenApiVo {\n"); + + sb.append(" pageType: ").append(toIndentedString(pageType)).append("\n"); + sb.append(" portalCustomize: ").append(toIndentedString(portalCustomize)).append("\n"); + sb.append(" importedPortalPage: ").append(toIndentedString(importedPortalPage)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizeOpenApiVo.java new file mode 100644 index 0000000..a81700a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizeOpenApiVo.java @@ -0,0 +1,824 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import javax.validation.constraints.Size; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Portal Customize, required when parameter [pageType] is 1 or null + */ +@ApiModel(description = "Portal Customize, required when parameter [pageType] is 1 or null") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortalCustomizeOpenApiVo { + @JsonProperty("defaultLanguage") + private Integer defaultLanguage; + + @JsonProperty("backgroundPictureId") + private String backgroundPictureId; + + @JsonProperty("logoPictureId") + private String logoPictureId; + + @JsonProperty("logoDisplay") + private Boolean logoDisplay; + + @JsonProperty("inputBoxColor") + private String inputBoxColor; + + @JsonProperty("inputBoxOpacity") + private Integer inputBoxOpacity; + + @JsonProperty("inputTextColor") + private String inputTextColor; + + @JsonProperty("inputTextOpacity") + private Integer inputTextOpacity; + + @JsonProperty("buttonColor") + private String buttonColor; + + @JsonProperty("buttonOpacity") + private Integer buttonOpacity; + + @JsonProperty("buttonTextColor") + private String buttonTextColor; + + @JsonProperty("buttonTextOpacity") + private Integer buttonTextOpacity; + + @JsonProperty("buttonText") + private String buttonText; + + @JsonProperty("formAuthButtonText") + private String formAuthButtonText; + + @JsonProperty("welcomeEnable") + private Boolean welcomeEnable; + + @JsonProperty("welcomeInformation") + private String welcomeInformation; + + @JsonProperty("welcomeTextColor") + private String welcomeTextColor; + + @JsonProperty("welcomeTextOpacity") + private Integer welcomeTextOpacity; + + @JsonProperty("welcomeTextFontSize") + private Integer welcomeTextFontSize; + + @JsonProperty("termsOfServiceEnable") + private Boolean termsOfServiceEnable; + + @JsonProperty("termsOfServiceText") + private String termsOfServiceText; + + @JsonProperty("termsOfServiceFontSize") + private Integer termsOfServiceFontSize; + + @JsonProperty("termsOfServiceUrlTexts") + @Valid + private List termsOfServiceUrlTexts = null; + + @JsonProperty("copyrightEnable") + private Boolean copyrightEnable; + + @JsonProperty("copyright") + private String copyright; + + @JsonProperty("copyrightTextColor") + private String copyrightTextColor; + + @JsonProperty("copyrightTextOpacity") + private Integer copyrightTextOpacity; + + @JsonProperty("copyrightTextFontSize") + private Integer copyrightTextFontSize; + + @JsonProperty("redirectionCountDownEnable") + private Boolean redirectionCountDownEnable; + + @JsonProperty("advertisement") + private AdvertisementSetting advertisement; + + public PortalCustomizeOpenApiVo defaultLanguage(Integer defaultLanguage) { + this.defaultLanguage = defaultLanguage; + return this; + } + + /** + * The controller automatically adjusts the language displayed on the Portal page according to the system language of the clients.If the language is not supported, the controller will use the default language specified here.
1: en_US (English); 3: cs_CZ (Český); 4: de_DE (Deutsch); 5: da_DK (Dansk); 6: el_GR (ελληνικά);
7: fr_FR (Français); 8: es_ES (Español); 9: nl_NL (Nederlands); 10: it_IT (Italiano); 11: pl_PL (Polski);
12: pt_PT (Português); 13: ru_RU (Русский); 14: sv_SE (Svenska); 15: tr_TR (Türkçe);
16: ar_SA (لغة عربية);
17: ja_JP (日本語); 18: zh_TW (中文(繁體)); 19: th_TH (ไทย); 20: vi_VN (Tiếng Việt); 21: ko_KR (한국어) + * @return defaultLanguage + */ + @ApiModelProperty(required = true, value = "The controller automatically adjusts the language displayed on the Portal page according to the system language of the clients.If the language is not supported, the controller will use the default language specified here.
1: en_US (English); 3: cs_CZ (Český); 4: de_DE (Deutsch); 5: da_DK (Dansk); 6: el_GR (ελληνικά);
7: fr_FR (Français); 8: es_ES (Español); 9: nl_NL (Nederlands); 10: it_IT (Italiano); 11: pl_PL (Polski);
12: pt_PT (Português); 13: ru_RU (Русский); 14: sv_SE (Svenska); 15: tr_TR (Türkçe);
16: ar_SA (لغة عربية);
17: ja_JP (日本語); 18: zh_TW (中文(繁體)); 19: th_TH (ไทย); 20: vi_VN (Tiếng Việt); 21: ko_KR (한국어)") + @NotNull + + + public Integer getDefaultLanguage() { + return defaultLanguage; + } + + public void setDefaultLanguage(Integer defaultLanguage) { + this.defaultLanguage = defaultLanguage; + } + + public PortalCustomizeOpenApiVo backgroundPictureId(String backgroundPictureId) { + this.backgroundPictureId = backgroundPictureId; + return this; + } + + /** + * Background picture ID + * @return backgroundPictureId + */ + @ApiModelProperty(value = "Background picture ID") + + + public String getBackgroundPictureId() { + return backgroundPictureId; + } + + public void setBackgroundPictureId(String backgroundPictureId) { + this.backgroundPictureId = backgroundPictureId; + } + + public PortalCustomizeOpenApiVo logoPictureId(String logoPictureId) { + this.logoPictureId = logoPictureId; + return this; + } + + /** + * Logo picture ID + * @return logoPictureId + */ + @ApiModelProperty(value = "Logo picture ID") + + + public String getLogoPictureId() { + return logoPictureId; + } + + public void setLogoPictureId(String logoPictureId) { + this.logoPictureId = logoPictureId; + } + + public PortalCustomizeOpenApiVo logoDisplay(Boolean logoDisplay) { + this.logoDisplay = logoDisplay; + return this; + } + + /** + * Whether to display the default logo. + * @return logoDisplay + */ + @ApiModelProperty(required = true, value = "Whether to display the default logo.") + @NotNull + + + public Boolean getLogoDisplay() { + return logoDisplay; + } + + public void setLogoDisplay(Boolean logoDisplay) { + this.logoDisplay = logoDisplay; + } + + public PortalCustomizeOpenApiVo inputBoxColor(String inputBoxColor) { + this.inputBoxColor = inputBoxColor; + return this; + } + + /** + * Input box color. Hex color code such as: #ffffff. + * @return inputBoxColor + */ + @ApiModelProperty(value = "Input box color. Hex color code such as: #ffffff.") + +@Pattern(regexp="^#[0-9A-Fa-f]{6}$") + public String getInputBoxColor() { + return inputBoxColor; + } + + public void setInputBoxColor(String inputBoxColor) { + this.inputBoxColor = inputBoxColor; + } + + public PortalCustomizeOpenApiVo inputBoxOpacity(Integer inputBoxOpacity) { + this.inputBoxOpacity = inputBoxOpacity; + return this; + } + + /** + * Input box opacity, should be within the range of 0–100. + * @return inputBoxOpacity + */ + @ApiModelProperty(value = "Input box opacity, should be within the range of 0–100.") + + + public Integer getInputBoxOpacity() { + return inputBoxOpacity; + } + + public void setInputBoxOpacity(Integer inputBoxOpacity) { + this.inputBoxOpacity = inputBoxOpacity; + } + + public PortalCustomizeOpenApiVo inputTextColor(String inputTextColor) { + this.inputTextColor = inputTextColor; + return this; + } + + /** + * Input text color. Hex color code such as: #ffffff. + * @return inputTextColor + */ + @ApiModelProperty(value = "Input text color. Hex color code such as: #ffffff.") + +@Pattern(regexp="^#[0-9A-Fa-f]{6}$") + public String getInputTextColor() { + return inputTextColor; + } + + public void setInputTextColor(String inputTextColor) { + this.inputTextColor = inputTextColor; + } + + public PortalCustomizeOpenApiVo inputTextOpacity(Integer inputTextOpacity) { + this.inputTextOpacity = inputTextOpacity; + return this; + } + + /** + * Input text opacity, should be within the range of 0–100. + * @return inputTextOpacity + */ + @ApiModelProperty(value = "Input text opacity, should be within the range of 0–100.") + + + public Integer getInputTextOpacity() { + return inputTextOpacity; + } + + public void setInputTextOpacity(Integer inputTextOpacity) { + this.inputTextOpacity = inputTextOpacity; + } + + public PortalCustomizeOpenApiVo buttonColor(String buttonColor) { + this.buttonColor = buttonColor; + return this; + } + + /** + * Button color. Hex color code such as: #ffffff. + * @return buttonColor + */ + @ApiModelProperty(value = "Button color. Hex color code such as: #ffffff.") + +@Pattern(regexp="^#[0-9A-Fa-f]{6}$") + public String getButtonColor() { + return buttonColor; + } + + public void setButtonColor(String buttonColor) { + this.buttonColor = buttonColor; + } + + public PortalCustomizeOpenApiVo buttonOpacity(Integer buttonOpacity) { + this.buttonOpacity = buttonOpacity; + return this; + } + + /** + * Button opacity, should be within the range of 0–100. + * @return buttonOpacity + */ + @ApiModelProperty(value = "Button opacity, should be within the range of 0–100.") + + + public Integer getButtonOpacity() { + return buttonOpacity; + } + + public void setButtonOpacity(Integer buttonOpacity) { + this.buttonOpacity = buttonOpacity; + } + + public PortalCustomizeOpenApiVo buttonTextColor(String buttonTextColor) { + this.buttonTextColor = buttonTextColor; + return this; + } + + /** + * Button text color. Hex color code such as: #ffffff. + * @return buttonTextColor + */ + @ApiModelProperty(value = "Button text color. Hex color code such as: #ffffff.") + +@Pattern(regexp="^#[0-9A-Fa-f]{6}$") + public String getButtonTextColor() { + return buttonTextColor; + } + + public void setButtonTextColor(String buttonTextColor) { + this.buttonTextColor = buttonTextColor; + } + + public PortalCustomizeOpenApiVo buttonTextOpacity(Integer buttonTextOpacity) { + this.buttonTextOpacity = buttonTextOpacity; + return this; + } + + /** + * Button text opacity, should be within the range of 0–100. + * @return buttonTextOpacity + */ + @ApiModelProperty(value = "Button text opacity, should be within the range of 0–100.") + + + public Integer getButtonTextOpacity() { + return buttonTextOpacity; + } + + public void setButtonTextOpacity(Integer buttonTextOpacity) { + this.buttonTextOpacity = buttonTextOpacity; + } + + public PortalCustomizeOpenApiVo buttonText(String buttonText) { + this.buttonText = buttonText; + return this; + } + + /** + * Button text, should contain 0 to 32 characters, default value is \"Log In\". + * @return buttonText + */ + @ApiModelProperty(value = "Button text, should contain 0 to 32 characters, default value is \"Log In\".") + +@Pattern(regexp="^[^ ]$|^[^ ].{0,30}[^ ]$") + public String getButtonText() { + return buttonText; + } + + public void setButtonText(String buttonText) { + this.buttonText = buttonText; + } + + public PortalCustomizeOpenApiVo formAuthButtonText(String formAuthButtonText) { + this.formAuthButtonText = formAuthButtonText; + return this; + } + + /** + * Form auth button text, should contain 0 to 32 characters, required when [authType] is 11 and hotspot [enabledTypes] contains 12.Default value is \"Take the Survey\". + * @return formAuthButtonText + */ + @ApiModelProperty(value = "Form auth button text, should contain 0 to 32 characters, required when [authType] is 11 and hotspot [enabledTypes] contains 12.Default value is \"Take the Survey\".") + +@Pattern(regexp="^[^ ]$|^[^ ].{0,30}[^ ]$") + public String getFormAuthButtonText() { + return formAuthButtonText; + } + + public void setFormAuthButtonText(String formAuthButtonText) { + this.formAuthButtonText = formAuthButtonText; + } + + public PortalCustomizeOpenApiVo welcomeEnable(Boolean welcomeEnable) { + this.welcomeEnable = welcomeEnable; + return this; + } + + /** + * Whether to display the welcome info + * @return welcomeEnable + */ + @ApiModelProperty(required = true, value = "Whether to display the welcome info") + @NotNull + + + public Boolean getWelcomeEnable() { + return welcomeEnable; + } + + public void setWelcomeEnable(Boolean welcomeEnable) { + this.welcomeEnable = welcomeEnable; + } + + public PortalCustomizeOpenApiVo welcomeInformation(String welcomeInformation) { + this.welcomeInformation = welcomeInformation; + return this; + } + + /** + * Welcome Information, should contain 1 to 31 characters. + * @return welcomeInformation + */ + @ApiModelProperty(value = "Welcome Information, should contain 1 to 31 characters.") + +@Pattern(regexp="^.{1,31}$") + public String getWelcomeInformation() { + return welcomeInformation; + } + + public void setWelcomeInformation(String welcomeInformation) { + this.welcomeInformation = welcomeInformation; + } + + public PortalCustomizeOpenApiVo welcomeTextColor(String welcomeTextColor) { + this.welcomeTextColor = welcomeTextColor; + return this; + } + + /** + * Welcome text color. Hex color code such as: #ffffff. + * @return welcomeTextColor + */ + @ApiModelProperty(value = "Welcome text color. Hex color code such as: #ffffff.") + +@Pattern(regexp="^#[0-9A-Fa-f]{6}$") + public String getWelcomeTextColor() { + return welcomeTextColor; + } + + public void setWelcomeTextColor(String welcomeTextColor) { + this.welcomeTextColor = welcomeTextColor; + } + + public PortalCustomizeOpenApiVo welcomeTextOpacity(Integer welcomeTextOpacity) { + this.welcomeTextOpacity = welcomeTextOpacity; + return this; + } + + /** + * Welcome text opacity, should be within the range of 0–100. + * @return welcomeTextOpacity + */ + @ApiModelProperty(value = "Welcome text opacity, should be within the range of 0–100.") + + + public Integer getWelcomeTextOpacity() { + return welcomeTextOpacity; + } + + public void setWelcomeTextOpacity(Integer welcomeTextOpacity) { + this.welcomeTextOpacity = welcomeTextOpacity; + } + + public PortalCustomizeOpenApiVo welcomeTextFontSize(Integer welcomeTextFontSize) { + this.welcomeTextFontSize = welcomeTextFontSize; + return this; + } + + /** + * Welcome text font size, should be within the range of 12–18. + * @return welcomeTextFontSize + */ + @ApiModelProperty(value = "Welcome text font size, should be within the range of 12–18.") + + + public Integer getWelcomeTextFontSize() { + return welcomeTextFontSize; + } + + public void setWelcomeTextFontSize(Integer welcomeTextFontSize) { + this.welcomeTextFontSize = welcomeTextFontSize; + } + + public PortalCustomizeOpenApiVo termsOfServiceEnable(Boolean termsOfServiceEnable) { + this.termsOfServiceEnable = termsOfServiceEnable; + return this; + } + + /** + * Whether to display terms of service. + * @return termsOfServiceEnable + */ + @ApiModelProperty(required = true, value = "Whether to display terms of service.") + @NotNull + + + public Boolean getTermsOfServiceEnable() { + return termsOfServiceEnable; + } + + public void setTermsOfServiceEnable(Boolean termsOfServiceEnable) { + this.termsOfServiceEnable = termsOfServiceEnable; + } + + public PortalCustomizeOpenApiVo termsOfServiceText(String termsOfServiceText) { + this.termsOfServiceText = termsOfServiceText; + return this; + } + + /** + * Terms of service text, should contain 0 to 100 characters. + * @return termsOfServiceText + */ + @ApiModelProperty(value = "Terms of service text, should contain 0 to 100 characters.") + + + public String getTermsOfServiceText() { + return termsOfServiceText; + } + + public void setTermsOfServiceText(String termsOfServiceText) { + this.termsOfServiceText = termsOfServiceText; + } + + public PortalCustomizeOpenApiVo termsOfServiceFontSize(Integer termsOfServiceFontSize) { + this.termsOfServiceFontSize = termsOfServiceFontSize; + return this; + } + + /** + * Terms of service text font size, should be within the range of 12–18. + * @return termsOfServiceFontSize + */ + @ApiModelProperty(value = "Terms of service text font size, should be within the range of 12–18.") + + + public Integer getTermsOfServiceFontSize() { + return termsOfServiceFontSize; + } + + public void setTermsOfServiceFontSize(Integer termsOfServiceFontSize) { + this.termsOfServiceFontSize = termsOfServiceFontSize; + } + + public PortalCustomizeOpenApiVo termsOfServiceUrlTexts(List termsOfServiceUrlTexts) { + this.termsOfServiceUrlTexts = termsOfServiceUrlTexts; + return this; + } + + public PortalCustomizeOpenApiVo addTermsOfServiceUrlTextsItem(Object termsOfServiceUrlTextsItem) { + if (this.termsOfServiceUrlTexts == null) { + this.termsOfServiceUrlTexts = new ArrayList<>(); + } + this.termsOfServiceUrlTexts.add(termsOfServiceUrlTextsItem); + return this; + } + + /** + * Terms of service url texts, match the termsOfServiceText and turn the matching characters into an openable link, Up to 3 entries are allowed for the list. + * @return termsOfServiceUrlTexts + */ + @ApiModelProperty(value = "Terms of service url texts, match the termsOfServiceText and turn the matching characters into an openable link, Up to 3 entries are allowed for the list.") + +@Size(min=0,max=3) + public List getTermsOfServiceUrlTexts() { + return termsOfServiceUrlTexts; + } + + public void setTermsOfServiceUrlTexts(List termsOfServiceUrlTexts) { + this.termsOfServiceUrlTexts = termsOfServiceUrlTexts; + } + + public PortalCustomizeOpenApiVo copyrightEnable(Boolean copyrightEnable) { + this.copyrightEnable = copyrightEnable; + return this; + } + + /** + * Whether to dispaly the copyright. + * @return copyrightEnable + */ + @ApiModelProperty(required = true, value = "Whether to dispaly the copyright.") + @NotNull + + + public Boolean getCopyrightEnable() { + return copyrightEnable; + } + + public void setCopyrightEnable(Boolean copyrightEnable) { + this.copyrightEnable = copyrightEnable; + } + + public PortalCustomizeOpenApiVo copyright(String copyright) { + this.copyright = copyright; + return this; + } + + /** + * Copyright text, should contain 0 to 200 characters. + * @return copyright + */ + @ApiModelProperty(value = "Copyright text, should contain 0 to 200 characters.") + + + public String getCopyright() { + return copyright; + } + + public void setCopyright(String copyright) { + this.copyright = copyright; + } + + public PortalCustomizeOpenApiVo copyrightTextColor(String copyrightTextColor) { + this.copyrightTextColor = copyrightTextColor; + return this; + } + + /** + * Copyright text color. Hex color code such as: #ffffff. + * @return copyrightTextColor + */ + @ApiModelProperty(value = "Copyright text color. Hex color code such as: #ffffff.") + +@Pattern(regexp="^#[0-9A-Fa-f]{6}$") + public String getCopyrightTextColor() { + return copyrightTextColor; + } + + public void setCopyrightTextColor(String copyrightTextColor) { + this.copyrightTextColor = copyrightTextColor; + } + + public PortalCustomizeOpenApiVo copyrightTextOpacity(Integer copyrightTextOpacity) { + this.copyrightTextOpacity = copyrightTextOpacity; + return this; + } + + /** + * Copyright text opacity, should be within the range of 0–100. + * @return copyrightTextOpacity + */ + @ApiModelProperty(value = "Copyright text opacity, should be within the range of 0–100.") + + + public Integer getCopyrightTextOpacity() { + return copyrightTextOpacity; + } + + public void setCopyrightTextOpacity(Integer copyrightTextOpacity) { + this.copyrightTextOpacity = copyrightTextOpacity; + } + + public PortalCustomizeOpenApiVo copyrightTextFontSize(Integer copyrightTextFontSize) { + this.copyrightTextFontSize = copyrightTextFontSize; + return this; + } + + /** + * Copyright text font size, should be within the range of 12–18. + * @return copyrightTextFontSize + */ + @ApiModelProperty(value = "Copyright text font size, should be within the range of 12–18.") + + + public Integer getCopyrightTextFontSize() { + return copyrightTextFontSize; + } + + public void setCopyrightTextFontSize(Integer copyrightTextFontSize) { + this.copyrightTextFontSize = copyrightTextFontSize; + } + + public PortalCustomizeOpenApiVo redirectionCountDownEnable(Boolean redirectionCountDownEnable) { + this.redirectionCountDownEnable = redirectionCountDownEnable; + return this; + } + + /** + * Whether to show redirection countdown after authorized. + * @return redirectionCountDownEnable + */ + @ApiModelProperty(value = "Whether to show redirection countdown after authorized.") + + + public Boolean getRedirectionCountDownEnable() { + return redirectionCountDownEnable; + } + + public void setRedirectionCountDownEnable(Boolean redirectionCountDownEnable) { + this.redirectionCountDownEnable = redirectionCountDownEnable; + } + + public PortalCustomizeOpenApiVo advertisement(AdvertisementSetting advertisement) { + this.advertisement = advertisement; + return this; + } + + /** + * Get advertisement + * @return advertisement + */ + @ApiModelProperty(value = "") + + @Valid + + public AdvertisementSetting getAdvertisement() { + return advertisement; + } + + public void setAdvertisement(AdvertisementSetting advertisement) { + this.advertisement = advertisement; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortalCustomizeOpenApiVo portalCustomizeOpenApiVo = (PortalCustomizeOpenApiVo) o; + return Objects.equals(this.defaultLanguage, portalCustomizeOpenApiVo.defaultLanguage) && + Objects.equals(this.backgroundPictureId, portalCustomizeOpenApiVo.backgroundPictureId) && + Objects.equals(this.logoPictureId, portalCustomizeOpenApiVo.logoPictureId) && + Objects.equals(this.logoDisplay, portalCustomizeOpenApiVo.logoDisplay) && + Objects.equals(this.inputBoxColor, portalCustomizeOpenApiVo.inputBoxColor) && + Objects.equals(this.inputBoxOpacity, portalCustomizeOpenApiVo.inputBoxOpacity) && + Objects.equals(this.inputTextColor, portalCustomizeOpenApiVo.inputTextColor) && + Objects.equals(this.inputTextOpacity, portalCustomizeOpenApiVo.inputTextOpacity) && + Objects.equals(this.buttonColor, portalCustomizeOpenApiVo.buttonColor) && + Objects.equals(this.buttonOpacity, portalCustomizeOpenApiVo.buttonOpacity) && + Objects.equals(this.buttonTextColor, portalCustomizeOpenApiVo.buttonTextColor) && + Objects.equals(this.buttonTextOpacity, portalCustomizeOpenApiVo.buttonTextOpacity) && + Objects.equals(this.buttonText, portalCustomizeOpenApiVo.buttonText) && + Objects.equals(this.formAuthButtonText, portalCustomizeOpenApiVo.formAuthButtonText) && + Objects.equals(this.welcomeEnable, portalCustomizeOpenApiVo.welcomeEnable) && + Objects.equals(this.welcomeInformation, portalCustomizeOpenApiVo.welcomeInformation) && + Objects.equals(this.welcomeTextColor, portalCustomizeOpenApiVo.welcomeTextColor) && + Objects.equals(this.welcomeTextOpacity, portalCustomizeOpenApiVo.welcomeTextOpacity) && + Objects.equals(this.welcomeTextFontSize, portalCustomizeOpenApiVo.welcomeTextFontSize) && + Objects.equals(this.termsOfServiceEnable, portalCustomizeOpenApiVo.termsOfServiceEnable) && + Objects.equals(this.termsOfServiceText, portalCustomizeOpenApiVo.termsOfServiceText) && + Objects.equals(this.termsOfServiceFontSize, portalCustomizeOpenApiVo.termsOfServiceFontSize) && + Objects.equals(this.termsOfServiceUrlTexts, portalCustomizeOpenApiVo.termsOfServiceUrlTexts) && + Objects.equals(this.copyrightEnable, portalCustomizeOpenApiVo.copyrightEnable) && + Objects.equals(this.copyright, portalCustomizeOpenApiVo.copyright) && + Objects.equals(this.copyrightTextColor, portalCustomizeOpenApiVo.copyrightTextColor) && + Objects.equals(this.copyrightTextOpacity, portalCustomizeOpenApiVo.copyrightTextOpacity) && + Objects.equals(this.copyrightTextFontSize, portalCustomizeOpenApiVo.copyrightTextFontSize) && + Objects.equals(this.redirectionCountDownEnable, portalCustomizeOpenApiVo.redirectionCountDownEnable) && + Objects.equals(this.advertisement, portalCustomizeOpenApiVo.advertisement); + } + + @Override + public int hashCode() { + return Objects.hash(defaultLanguage, backgroundPictureId, logoPictureId, logoDisplay, inputBoxColor, inputBoxOpacity, inputTextColor, inputTextOpacity, buttonColor, buttonOpacity, buttonTextColor, buttonTextOpacity, buttonText, formAuthButtonText, welcomeEnable, welcomeInformation, welcomeTextColor, welcomeTextOpacity, welcomeTextFontSize, termsOfServiceEnable, termsOfServiceText, termsOfServiceFontSize, termsOfServiceUrlTexts, copyrightEnable, copyright, copyrightTextColor, copyrightTextOpacity, copyrightTextFontSize, redirectionCountDownEnable, advertisement); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortalCustomizeOpenApiVo {\n"); + + sb.append(" defaultLanguage: ").append(toIndentedString(defaultLanguage)).append("\n"); + sb.append(" backgroundPictureId: ").append(toIndentedString(backgroundPictureId)).append("\n"); + sb.append(" logoPictureId: ").append(toIndentedString(logoPictureId)).append("\n"); + sb.append(" logoDisplay: ").append(toIndentedString(logoDisplay)).append("\n"); + sb.append(" inputBoxColor: ").append(toIndentedString(inputBoxColor)).append("\n"); + sb.append(" inputBoxOpacity: ").append(toIndentedString(inputBoxOpacity)).append("\n"); + sb.append(" inputTextColor: ").append(toIndentedString(inputTextColor)).append("\n"); + sb.append(" inputTextOpacity: ").append(toIndentedString(inputTextOpacity)).append("\n"); + sb.append(" buttonColor: ").append(toIndentedString(buttonColor)).append("\n"); + sb.append(" buttonOpacity: ").append(toIndentedString(buttonOpacity)).append("\n"); + sb.append(" buttonTextColor: ").append(toIndentedString(buttonTextColor)).append("\n"); + sb.append(" buttonTextOpacity: ").append(toIndentedString(buttonTextOpacity)).append("\n"); + sb.append(" buttonText: ").append(toIndentedString(buttonText)).append("\n"); + sb.append(" formAuthButtonText: ").append(toIndentedString(formAuthButtonText)).append("\n"); + sb.append(" welcomeEnable: ").append(toIndentedString(welcomeEnable)).append("\n"); + sb.append(" welcomeInformation: ").append(toIndentedString(welcomeInformation)).append("\n"); + sb.append(" welcomeTextColor: ").append(toIndentedString(welcomeTextColor)).append("\n"); + sb.append(" welcomeTextOpacity: ").append(toIndentedString(welcomeTextOpacity)).append("\n"); + sb.append(" welcomeTextFontSize: ").append(toIndentedString(welcomeTextFontSize)).append("\n"); + sb.append(" termsOfServiceEnable: ").append(toIndentedString(termsOfServiceEnable)).append("\n"); + sb.append(" termsOfServiceText: ").append(toIndentedString(termsOfServiceText)).append("\n"); + sb.append(" termsOfServiceFontSize: ").append(toIndentedString(termsOfServiceFontSize)).append("\n"); + sb.append(" termsOfServiceUrlTexts: ").append(toIndentedString(termsOfServiceUrlTexts)).append("\n"); + sb.append(" copyrightEnable: ").append(toIndentedString(copyrightEnable)).append("\n"); + sb.append(" copyright: ").append(toIndentedString(copyright)).append("\n"); + sb.append(" copyrightTextColor: ").append(toIndentedString(copyrightTextColor)).append("\n"); + sb.append(" copyrightTextOpacity: ").append(toIndentedString(copyrightTextOpacity)).append("\n"); + sb.append(" copyrightTextFontSize: ").append(toIndentedString(copyrightTextFontSize)).append("\n"); + sb.append(" redirectionCountDownEnable: ").append(toIndentedString(redirectionCountDownEnable)).append("\n"); + sb.append(" advertisement: ").append(toIndentedString(advertisement)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizeResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizeResOpenApiVo.java new file mode 100644 index 0000000..46dea4e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalCustomizeResOpenApiVo.java @@ -0,0 +1,1094 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Portal customize setting, required when parameter [pageType] is 1 + */ +@ApiModel(description = "Portal customize setting, required when parameter [pageType] is 1") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortalCustomizeResOpenApiVo { + @JsonProperty("defaultLanguage") + private Integer defaultLanguage; + + @JsonProperty("background") + private Integer background; + + @JsonProperty("backgroundPicture") + private PortalPictureInfo backgroundPicture; + + @JsonProperty("mobileBackgroundPicture") + private PortalPictureInfo mobileBackgroundPicture; + + @JsonProperty("backgroundColor") + private String backgroundColor; + + @JsonProperty("backgroundOpacity") + private Integer backgroundOpacity; + + @JsonProperty("logoPicture") + private PortalPictureInfo logoPicture; + + @JsonProperty("logoDisplay") + private Boolean logoDisplay; + + @JsonProperty("logoPosition") + private Integer logoPosition; + + @JsonProperty("logoSize") + private Integer logoSize; + + @JsonProperty("logoPositionRatio") + private Float logoPositionRatio; + + @JsonProperty("logoTranslate") + private Integer logoTranslate; + + @JsonProperty("inputBoxColor") + private String inputBoxColor; + + @JsonProperty("inputBoxOpacity") + private Integer inputBoxOpacity; + + @JsonProperty("inputTextColor") + private String inputTextColor; + + @JsonProperty("inputTextOpacity") + private Integer inputTextOpacity; + + @JsonProperty("buttonColor") + private String buttonColor; + + @JsonProperty("buttonOpacity") + private Integer buttonOpacity; + + @JsonProperty("buttonTextColor") + private String buttonTextColor; + + @JsonProperty("buttonTextOpacity") + private Integer buttonTextOpacity; + + @JsonProperty("buttonText") + private String buttonText; + + @JsonProperty("formAuthButtonText") + private String formAuthButtonText; + + @JsonProperty("buttonPositionRatio") + private Float buttonPositionRatio; + + @JsonProperty("buttonTranslate") + private Integer buttonTranslate; + + @JsonProperty("welcomeEnable") + private Boolean welcomeEnable; + + @JsonProperty("welcomeInformation") + private String welcomeInformation; + + @JsonProperty("welcomeTextColor") + private String welcomeTextColor; + + @JsonProperty("welcomeTextOpacity") + private Integer welcomeTextOpacity; + + @JsonProperty("welcomeTextFontSize") + private Integer welcomeTextFontSize; + + @JsonProperty("termsOfServiceEnable") + private Boolean termsOfServiceEnable; + + @JsonProperty("termsOfService") + private String termsOfService; + + @JsonProperty("termsOfServiceText") + private String termsOfServiceText; + + @JsonProperty("termsOfServiceFontSize") + private Integer termsOfServiceFontSize; + + @JsonProperty("termsOfServiceUrlTexts") + @Valid + private List termsOfServiceUrlTexts = null; + + @JsonProperty("copyrightEnable") + private Boolean copyrightEnable; + + @JsonProperty("copyright") + private String copyright; + + @JsonProperty("copyrightTextColor") + private String copyrightTextColor; + + @JsonProperty("copyrightTextOpacity") + private Integer copyrightTextOpacity; + + @JsonProperty("copyrightTextFontSize") + private Integer copyrightTextFontSize; + + @JsonProperty("redirectionCountDownEnable") + private Boolean redirectionCountDownEnable; + + @JsonProperty("advertisement") + private AdvertisementSettingResOpenApiVo advertisement; + + public PortalCustomizeResOpenApiVo defaultLanguage(Integer defaultLanguage) { + this.defaultLanguage = defaultLanguage; + return this; + } + + /** + * The controller automatically adjusts the language displayed on the Portal page according to the system language of the clients. If the language is not supported, the controller will use the default language specified here. DefaultLanguage should be a value as follows:
1: en_US (English); 3: cs_CZ (Český); 4: de_DE (Deutsch); 5: da_DK (Dansk); 6: el_GR (ελληνικά);
7: fr_FR (Français); 8: es_ES (Español); 9: nl_NL (Nederlands); 10: it_IT (Italiano); 11: pl_PL (Polski);
12: pt_PT (Português); 13: ru_RU (Русский); 14: sv_SE (Svenska); 15: tr_TR (Türkçe);
16: ar_SA (لغة عربية);
17: ja_JP (日本語); 18: zh_TW (中文(繁體)); 19: th_TH (ไทย); 20: vi_VN (Tiếng Việt); 21: ko_KR (한국어) + * @return defaultLanguage + */ + @ApiModelProperty(value = "The controller automatically adjusts the language displayed on the Portal page according to the system language of the clients. If the language is not supported, the controller will use the default language specified here. DefaultLanguage should be a value as follows:
1: en_US (English); 3: cs_CZ (Český); 4: de_DE (Deutsch); 5: da_DK (Dansk); 6: el_GR (ελληνικά);
7: fr_FR (Français); 8: es_ES (Español); 9: nl_NL (Nederlands); 10: it_IT (Italiano); 11: pl_PL (Polski);
12: pt_PT (Português); 13: ru_RU (Русский); 14: sv_SE (Svenska); 15: tr_TR (Türkçe);
16: ar_SA (لغة عربية);
17: ja_JP (日本語); 18: zh_TW (中文(繁體)); 19: th_TH (ไทย); 20: vi_VN (Tiếng Việt); 21: ko_KR (한국어)") + + + public Integer getDefaultLanguage() { + return defaultLanguage; + } + + public void setDefaultLanguage(Integer defaultLanguage) { + this.defaultLanguage = defaultLanguage; + } + + public PortalCustomizeResOpenApiVo background(Integer background) { + this.background = background; + return this; + } + + /** + * Background type, should be a value as follows: 1: solid color, 2: picture + * @return background + */ + @ApiModelProperty(value = "Background type, should be a value as follows: 1: solid color, 2: picture") + + + public Integer getBackground() { + return background; + } + + public void setBackground(Integer background) { + this.background = background; + } + + public PortalCustomizeResOpenApiVo backgroundPicture(PortalPictureInfo backgroundPicture) { + this.backgroundPicture = backgroundPicture; + return this; + } + + /** + * Get backgroundPicture + * @return backgroundPicture + */ + @ApiModelProperty(value = "") + + @Valid + + public PortalPictureInfo getBackgroundPicture() { + return backgroundPicture; + } + + public void setBackgroundPicture(PortalPictureInfo backgroundPicture) { + this.backgroundPicture = backgroundPicture; + } + + public PortalCustomizeResOpenApiVo mobileBackgroundPicture(PortalPictureInfo mobileBackgroundPicture) { + this.mobileBackgroundPicture = mobileBackgroundPicture; + return this; + } + + /** + * Get mobileBackgroundPicture + * @return mobileBackgroundPicture + */ + @ApiModelProperty(value = "") + + @Valid + + public PortalPictureInfo getMobileBackgroundPicture() { + return mobileBackgroundPicture; + } + + public void setMobileBackgroundPicture(PortalPictureInfo mobileBackgroundPicture) { + this.mobileBackgroundPicture = mobileBackgroundPicture; + } + + public PortalCustomizeResOpenApiVo backgroundColor(String backgroundColor) { + this.backgroundColor = backgroundColor; + return this; + } + + /** + * Portal background picture color. Hex color code such as: #ffffff + * @return backgroundColor + */ + @ApiModelProperty(value = "Portal background picture color. Hex color code such as: #ffffff") + + + public String getBackgroundColor() { + return backgroundColor; + } + + public void setBackgroundColor(String backgroundColor) { + this.backgroundColor = backgroundColor; + } + + public PortalCustomizeResOpenApiVo backgroundOpacity(Integer backgroundOpacity) { + this.backgroundOpacity = backgroundOpacity; + return this; + } + + /** + * Portal background picture transparency percentage, should be within the range of 0–100 + * @return backgroundOpacity + */ + @ApiModelProperty(value = "Portal background picture transparency percentage, should be within the range of 0–100") + + + public Integer getBackgroundOpacity() { + return backgroundOpacity; + } + + public void setBackgroundOpacity(Integer backgroundOpacity) { + this.backgroundOpacity = backgroundOpacity; + } + + public PortalCustomizeResOpenApiVo logoPicture(PortalPictureInfo logoPicture) { + this.logoPicture = logoPicture; + return this; + } + + /** + * Get logoPicture + * @return logoPicture + */ + @ApiModelProperty(value = "") + + @Valid + + public PortalPictureInfo getLogoPicture() { + return logoPicture; + } + + public void setLogoPicture(PortalPictureInfo logoPicture) { + this.logoPicture = logoPicture; + } + + public PortalCustomizeResOpenApiVo logoDisplay(Boolean logoDisplay) { + this.logoDisplay = logoDisplay; + return this; + } + + /** + * Whether to display the default logo + * @return logoDisplay + */ + @ApiModelProperty(value = "Whether to display the default logo") + + + public Boolean getLogoDisplay() { + return logoDisplay; + } + + public void setLogoDisplay(Boolean logoDisplay) { + this.logoDisplay = logoDisplay; + } + + public PortalCustomizeResOpenApiVo logoPosition(Integer logoPosition) { + this.logoPosition = logoPosition; + return this; + } + + /** + * Logo position, should be a value as follow: 1: up; 2: middle; 3: lower + * @return logoPosition + */ + @ApiModelProperty(value = "Logo position, should be a value as follow: 1: up; 2: middle; 3: lower") + + + public Integer getLogoPosition() { + return logoPosition; + } + + public void setLogoPosition(Integer logoPosition) { + this.logoPosition = logoPosition; + } + + public PortalCustomizeResOpenApiVo logoSize(Integer logoSize) { + this.logoSize = logoSize; + return this; + } + + /** + * Logo size, should be within the range of 30-100 + * @return logoSize + */ + @ApiModelProperty(value = "Logo size, should be within the range of 30-100") + + + public Integer getLogoSize() { + return logoSize; + } + + public void setLogoSize(Integer logoSize) { + this.logoSize = logoSize; + } + + public PortalCustomizeResOpenApiVo logoPositionRatio(Float logoPositionRatio) { + this.logoPositionRatio = logoPositionRatio; + return this; + } + + /** + * Logo position ratio, should be within the range of 1-100, represents from high to low. + * @return logoPositionRatio + */ + @ApiModelProperty(value = "Logo position ratio, should be within the range of 1-100, represents from high to low.") + + + public Float getLogoPositionRatio() { + return logoPositionRatio; + } + + public void setLogoPositionRatio(Float logoPositionRatio) { + this.logoPositionRatio = logoPositionRatio; + } + + public PortalCustomizeResOpenApiVo logoTranslate(Integer logoTranslate) { + this.logoTranslate = logoTranslate; + return this; + } + + /** + * Distance of the logo from the top of the container, range: above 0 + * @return logoTranslate + */ + @ApiModelProperty(value = "Distance of the logo from the top of the container, range: above 0") + + + public Integer getLogoTranslate() { + return logoTranslate; + } + + public void setLogoTranslate(Integer logoTranslate) { + this.logoTranslate = logoTranslate; + } + + public PortalCustomizeResOpenApiVo inputBoxColor(String inputBoxColor) { + this.inputBoxColor = inputBoxColor; + return this; + } + + /** + * Input box color. Hex color code such as: #ffffff + * @return inputBoxColor + */ + @ApiModelProperty(value = "Input box color. Hex color code such as: #ffffff") + + + public String getInputBoxColor() { + return inputBoxColor; + } + + public void setInputBoxColor(String inputBoxColor) { + this.inputBoxColor = inputBoxColor; + } + + public PortalCustomizeResOpenApiVo inputBoxOpacity(Integer inputBoxOpacity) { + this.inputBoxOpacity = inputBoxOpacity; + return this; + } + + /** + * Input box opacity, should be within the range of 0–100 + * @return inputBoxOpacity + */ + @ApiModelProperty(value = "Input box opacity, should be within the range of 0–100") + + + public Integer getInputBoxOpacity() { + return inputBoxOpacity; + } + + public void setInputBoxOpacity(Integer inputBoxOpacity) { + this.inputBoxOpacity = inputBoxOpacity; + } + + public PortalCustomizeResOpenApiVo inputTextColor(String inputTextColor) { + this.inputTextColor = inputTextColor; + return this; + } + + /** + * Input text color. Hex color code such as: #ffffff + * @return inputTextColor + */ + @ApiModelProperty(value = "Input text color. Hex color code such as: #ffffff") + + + public String getInputTextColor() { + return inputTextColor; + } + + public void setInputTextColor(String inputTextColor) { + this.inputTextColor = inputTextColor; + } + + public PortalCustomizeResOpenApiVo inputTextOpacity(Integer inputTextOpacity) { + this.inputTextOpacity = inputTextOpacity; + return this; + } + + /** + * Input text opacity, should be within the range of 0–100 + * @return inputTextOpacity + */ + @ApiModelProperty(value = "Input text opacity, should be within the range of 0–100") + + + public Integer getInputTextOpacity() { + return inputTextOpacity; + } + + public void setInputTextOpacity(Integer inputTextOpacity) { + this.inputTextOpacity = inputTextOpacity; + } + + public PortalCustomizeResOpenApiVo buttonColor(String buttonColor) { + this.buttonColor = buttonColor; + return this; + } + + /** + * Button color. Hex color code such as: #ffffff + * @return buttonColor + */ + @ApiModelProperty(value = "Button color. Hex color code such as: #ffffff") + + + public String getButtonColor() { + return buttonColor; + } + + public void setButtonColor(String buttonColor) { + this.buttonColor = buttonColor; + } + + public PortalCustomizeResOpenApiVo buttonOpacity(Integer buttonOpacity) { + this.buttonOpacity = buttonOpacity; + return this; + } + + /** + * Button opacity, should be within the range of 0–100 + * @return buttonOpacity + */ + @ApiModelProperty(value = "Button opacity, should be within the range of 0–100") + + + public Integer getButtonOpacity() { + return buttonOpacity; + } + + public void setButtonOpacity(Integer buttonOpacity) { + this.buttonOpacity = buttonOpacity; + } + + public PortalCustomizeResOpenApiVo buttonTextColor(String buttonTextColor) { + this.buttonTextColor = buttonTextColor; + return this; + } + + /** + * Button text color. Hex color code such as: #ffffff + * @return buttonTextColor + */ + @ApiModelProperty(value = "Button text color. Hex color code such as: #ffffff") + + + public String getButtonTextColor() { + return buttonTextColor; + } + + public void setButtonTextColor(String buttonTextColor) { + this.buttonTextColor = buttonTextColor; + } + + public PortalCustomizeResOpenApiVo buttonTextOpacity(Integer buttonTextOpacity) { + this.buttonTextOpacity = buttonTextOpacity; + return this; + } + + /** + * Button text opacity, should be within the range of 0–100 + * @return buttonTextOpacity + */ + @ApiModelProperty(value = "Button text opacity, should be within the range of 0–100") + + + public Integer getButtonTextOpacity() { + return buttonTextOpacity; + } + + public void setButtonTextOpacity(Integer buttonTextOpacity) { + this.buttonTextOpacity = buttonTextOpacity; + } + + public PortalCustomizeResOpenApiVo buttonText(String buttonText) { + this.buttonText = buttonText; + return this; + } + + /** + * Button text, should contain 0 to 32 characters, default value is \"Log In\" + * @return buttonText + */ + @ApiModelProperty(value = "Button text, should contain 0 to 32 characters, default value is \"Log In\"") + + + public String getButtonText() { + return buttonText; + } + + public void setButtonText(String buttonText) { + this.buttonText = buttonText; + } + + public PortalCustomizeResOpenApiVo formAuthButtonText(String formAuthButtonText) { + this.formAuthButtonText = formAuthButtonText; + return this; + } + + /** + * Form auth button text, should contain 0 to 32 characters. Required when [authType] is 11 and hotspot [enabledTypes] contains 12. Default value is \"Take the Survey\" + * @return formAuthButtonText + */ + @ApiModelProperty(value = "Form auth button text, should contain 0 to 32 characters. Required when [authType] is 11 and hotspot [enabledTypes] contains 12. Default value is \"Take the Survey\"") + + + public String getFormAuthButtonText() { + return formAuthButtonText; + } + + public void setFormAuthButtonText(String formAuthButtonText) { + this.formAuthButtonText = formAuthButtonText; + } + + public PortalCustomizeResOpenApiVo buttonPositionRatio(Float buttonPositionRatio) { + this.buttonPositionRatio = buttonPositionRatio; + return this; + } + + /** + * Button position ratio + * @return buttonPositionRatio + */ + @ApiModelProperty(value = "Button position ratio") + + + public Float getButtonPositionRatio() { + return buttonPositionRatio; + } + + public void setButtonPositionRatio(Float buttonPositionRatio) { + this.buttonPositionRatio = buttonPositionRatio; + } + + public PortalCustomizeResOpenApiVo buttonTranslate(Integer buttonTranslate) { + this.buttonTranslate = buttonTranslate; + return this; + } + + /** + * The distance between the position of the button and the top + * @return buttonTranslate + */ + @ApiModelProperty(value = "The distance between the position of the button and the top") + + + public Integer getButtonTranslate() { + return buttonTranslate; + } + + public void setButtonTranslate(Integer buttonTranslate) { + this.buttonTranslate = buttonTranslate; + } + + public PortalCustomizeResOpenApiVo welcomeEnable(Boolean welcomeEnable) { + this.welcomeEnable = welcomeEnable; + return this; + } + + /** + * Whether to display the welcome info + * @return welcomeEnable + */ + @ApiModelProperty(value = "Whether to display the welcome info") + + + public Boolean getWelcomeEnable() { + return welcomeEnable; + } + + public void setWelcomeEnable(Boolean welcomeEnable) { + this.welcomeEnable = welcomeEnable; + } + + public PortalCustomizeResOpenApiVo welcomeInformation(String welcomeInformation) { + this.welcomeInformation = welcomeInformation; + return this; + } + + /** + * Welcome information, should contain 1 to 31 characters + * @return welcomeInformation + */ + @ApiModelProperty(value = "Welcome information, should contain 1 to 31 characters") + + + public String getWelcomeInformation() { + return welcomeInformation; + } + + public void setWelcomeInformation(String welcomeInformation) { + this.welcomeInformation = welcomeInformation; + } + + public PortalCustomizeResOpenApiVo welcomeTextColor(String welcomeTextColor) { + this.welcomeTextColor = welcomeTextColor; + return this; + } + + /** + * Welcome text color. Hex color code such as: #ffffff + * @return welcomeTextColor + */ + @ApiModelProperty(value = "Welcome text color. Hex color code such as: #ffffff") + + + public String getWelcomeTextColor() { + return welcomeTextColor; + } + + public void setWelcomeTextColor(String welcomeTextColor) { + this.welcomeTextColor = welcomeTextColor; + } + + public PortalCustomizeResOpenApiVo welcomeTextOpacity(Integer welcomeTextOpacity) { + this.welcomeTextOpacity = welcomeTextOpacity; + return this; + } + + /** + * Welcome text opacity, should be within the range of 0–100 + * @return welcomeTextOpacity + */ + @ApiModelProperty(value = "Welcome text opacity, should be within the range of 0–100") + + + public Integer getWelcomeTextOpacity() { + return welcomeTextOpacity; + } + + public void setWelcomeTextOpacity(Integer welcomeTextOpacity) { + this.welcomeTextOpacity = welcomeTextOpacity; + } + + public PortalCustomizeResOpenApiVo welcomeTextFontSize(Integer welcomeTextFontSize) { + this.welcomeTextFontSize = welcomeTextFontSize; + return this; + } + + /** + * Welcome text font size, should be within the range of 12–18 + * @return welcomeTextFontSize + */ + @ApiModelProperty(value = "Welcome text font size, should be within the range of 12–18") + + + public Integer getWelcomeTextFontSize() { + return welcomeTextFontSize; + } + + public void setWelcomeTextFontSize(Integer welcomeTextFontSize) { + this.welcomeTextFontSize = welcomeTextFontSize; + } + + public PortalCustomizeResOpenApiVo termsOfServiceEnable(Boolean termsOfServiceEnable) { + this.termsOfServiceEnable = termsOfServiceEnable; + return this; + } + + /** + * Whether to display terms of service + * @return termsOfServiceEnable + */ + @ApiModelProperty(value = "Whether to display terms of service") + + + public Boolean getTermsOfServiceEnable() { + return termsOfServiceEnable; + } + + public void setTermsOfServiceEnable(Boolean termsOfServiceEnable) { + this.termsOfServiceEnable = termsOfServiceEnable; + } + + public PortalCustomizeResOpenApiVo termsOfService(String termsOfService) { + this.termsOfService = termsOfService; + return this; + } + + /** + * Service Terms Content + * @return termsOfService + */ + @ApiModelProperty(value = "Service Terms Content") + + + public String getTermsOfService() { + return termsOfService; + } + + public void setTermsOfService(String termsOfService) { + this.termsOfService = termsOfService; + } + + public PortalCustomizeResOpenApiVo termsOfServiceText(String termsOfServiceText) { + this.termsOfServiceText = termsOfServiceText; + return this; + } + + /** + * Terms of service text, should contain 0 to 100 characters + * @return termsOfServiceText + */ + @ApiModelProperty(value = "Terms of service text, should contain 0 to 100 characters") + + + public String getTermsOfServiceText() { + return termsOfServiceText; + } + + public void setTermsOfServiceText(String termsOfServiceText) { + this.termsOfServiceText = termsOfServiceText; + } + + public PortalCustomizeResOpenApiVo termsOfServiceFontSize(Integer termsOfServiceFontSize) { + this.termsOfServiceFontSize = termsOfServiceFontSize; + return this; + } + + /** + * Terms of service text font size, should be within the range of 12–18 + * @return termsOfServiceFontSize + */ + @ApiModelProperty(value = "Terms of service text font size, should be within the range of 12–18") + + + public Integer getTermsOfServiceFontSize() { + return termsOfServiceFontSize; + } + + public void setTermsOfServiceFontSize(Integer termsOfServiceFontSize) { + this.termsOfServiceFontSize = termsOfServiceFontSize; + } + + public PortalCustomizeResOpenApiVo termsOfServiceUrlTexts(List termsOfServiceUrlTexts) { + this.termsOfServiceUrlTexts = termsOfServiceUrlTexts; + return this; + } + + public PortalCustomizeResOpenApiVo addTermsOfServiceUrlTextsItem(Object termsOfServiceUrlTextsItem) { + if (this.termsOfServiceUrlTexts == null) { + this.termsOfServiceUrlTexts = new ArrayList<>(); + } + this.termsOfServiceUrlTexts.add(termsOfServiceUrlTextsItem); + return this; + } + + /** + * Terms of service URL texts, match the termsOfServiceText and turn the matching characters into an openable link. Up to 3 entries are allowed for the list + * @return termsOfServiceUrlTexts + */ + @ApiModelProperty(value = "Terms of service URL texts, match the termsOfServiceText and turn the matching characters into an openable link. Up to 3 entries are allowed for the list") + + + public List getTermsOfServiceUrlTexts() { + return termsOfServiceUrlTexts; + } + + public void setTermsOfServiceUrlTexts(List termsOfServiceUrlTexts) { + this.termsOfServiceUrlTexts = termsOfServiceUrlTexts; + } + + public PortalCustomizeResOpenApiVo copyrightEnable(Boolean copyrightEnable) { + this.copyrightEnable = copyrightEnable; + return this; + } + + /** + * Whether to display the copyright + * @return copyrightEnable + */ + @ApiModelProperty(value = "Whether to display the copyright") + + + public Boolean getCopyrightEnable() { + return copyrightEnable; + } + + public void setCopyrightEnable(Boolean copyrightEnable) { + this.copyrightEnable = copyrightEnable; + } + + public PortalCustomizeResOpenApiVo copyright(String copyright) { + this.copyright = copyright; + return this; + } + + /** + * Copyright text, should contain 0 to 200 characters + * @return copyright + */ + @ApiModelProperty(value = "Copyright text, should contain 0 to 200 characters") + + + public String getCopyright() { + return copyright; + } + + public void setCopyright(String copyright) { + this.copyright = copyright; + } + + public PortalCustomizeResOpenApiVo copyrightTextColor(String copyrightTextColor) { + this.copyrightTextColor = copyrightTextColor; + return this; + } + + /** + * Copyright text color. Hex color code such as: #ffffff + * @return copyrightTextColor + */ + @ApiModelProperty(value = "Copyright text color. Hex color code such as: #ffffff") + + + public String getCopyrightTextColor() { + return copyrightTextColor; + } + + public void setCopyrightTextColor(String copyrightTextColor) { + this.copyrightTextColor = copyrightTextColor; + } + + public PortalCustomizeResOpenApiVo copyrightTextOpacity(Integer copyrightTextOpacity) { + this.copyrightTextOpacity = copyrightTextOpacity; + return this; + } + + /** + * Copyright text opacity, should be within the range of 0–100 + * @return copyrightTextOpacity + */ + @ApiModelProperty(value = "Copyright text opacity, should be within the range of 0–100") + + + public Integer getCopyrightTextOpacity() { + return copyrightTextOpacity; + } + + public void setCopyrightTextOpacity(Integer copyrightTextOpacity) { + this.copyrightTextOpacity = copyrightTextOpacity; + } + + public PortalCustomizeResOpenApiVo copyrightTextFontSize(Integer copyrightTextFontSize) { + this.copyrightTextFontSize = copyrightTextFontSize; + return this; + } + + /** + * Copyright text font size, should be within the range of 12–18 + * @return copyrightTextFontSize + */ + @ApiModelProperty(value = "Copyright text font size, should be within the range of 12–18") + + + public Integer getCopyrightTextFontSize() { + return copyrightTextFontSize; + } + + public void setCopyrightTextFontSize(Integer copyrightTextFontSize) { + this.copyrightTextFontSize = copyrightTextFontSize; + } + + public PortalCustomizeResOpenApiVo redirectionCountDownEnable(Boolean redirectionCountDownEnable) { + this.redirectionCountDownEnable = redirectionCountDownEnable; + return this; + } + + /** + * Whether to show redirection countdown after authorized + * @return redirectionCountDownEnable + */ + @ApiModelProperty(value = "Whether to show redirection countdown after authorized") + + + public Boolean getRedirectionCountDownEnable() { + return redirectionCountDownEnable; + } + + public void setRedirectionCountDownEnable(Boolean redirectionCountDownEnable) { + this.redirectionCountDownEnable = redirectionCountDownEnable; + } + + public PortalCustomizeResOpenApiVo advertisement(AdvertisementSettingResOpenApiVo advertisement) { + this.advertisement = advertisement; + return this; + } + + /** + * Get advertisement + * @return advertisement + */ + @ApiModelProperty(value = "") + + @Valid + + public AdvertisementSettingResOpenApiVo getAdvertisement() { + return advertisement; + } + + public void setAdvertisement(AdvertisementSettingResOpenApiVo advertisement) { + this.advertisement = advertisement; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortalCustomizeResOpenApiVo portalCustomizeResOpenApiVo = (PortalCustomizeResOpenApiVo) o; + return Objects.equals(this.defaultLanguage, portalCustomizeResOpenApiVo.defaultLanguage) && + Objects.equals(this.background, portalCustomizeResOpenApiVo.background) && + Objects.equals(this.backgroundPicture, portalCustomizeResOpenApiVo.backgroundPicture) && + Objects.equals(this.mobileBackgroundPicture, portalCustomizeResOpenApiVo.mobileBackgroundPicture) && + Objects.equals(this.backgroundColor, portalCustomizeResOpenApiVo.backgroundColor) && + Objects.equals(this.backgroundOpacity, portalCustomizeResOpenApiVo.backgroundOpacity) && + Objects.equals(this.logoPicture, portalCustomizeResOpenApiVo.logoPicture) && + Objects.equals(this.logoDisplay, portalCustomizeResOpenApiVo.logoDisplay) && + Objects.equals(this.logoPosition, portalCustomizeResOpenApiVo.logoPosition) && + Objects.equals(this.logoSize, portalCustomizeResOpenApiVo.logoSize) && + Objects.equals(this.logoPositionRatio, portalCustomizeResOpenApiVo.logoPositionRatio) && + Objects.equals(this.logoTranslate, portalCustomizeResOpenApiVo.logoTranslate) && + Objects.equals(this.inputBoxColor, portalCustomizeResOpenApiVo.inputBoxColor) && + Objects.equals(this.inputBoxOpacity, portalCustomizeResOpenApiVo.inputBoxOpacity) && + Objects.equals(this.inputTextColor, portalCustomizeResOpenApiVo.inputTextColor) && + Objects.equals(this.inputTextOpacity, portalCustomizeResOpenApiVo.inputTextOpacity) && + Objects.equals(this.buttonColor, portalCustomizeResOpenApiVo.buttonColor) && + Objects.equals(this.buttonOpacity, portalCustomizeResOpenApiVo.buttonOpacity) && + Objects.equals(this.buttonTextColor, portalCustomizeResOpenApiVo.buttonTextColor) && + Objects.equals(this.buttonTextOpacity, portalCustomizeResOpenApiVo.buttonTextOpacity) && + Objects.equals(this.buttonText, portalCustomizeResOpenApiVo.buttonText) && + Objects.equals(this.formAuthButtonText, portalCustomizeResOpenApiVo.formAuthButtonText) && + Objects.equals(this.buttonPositionRatio, portalCustomizeResOpenApiVo.buttonPositionRatio) && + Objects.equals(this.buttonTranslate, portalCustomizeResOpenApiVo.buttonTranslate) && + Objects.equals(this.welcomeEnable, portalCustomizeResOpenApiVo.welcomeEnable) && + Objects.equals(this.welcomeInformation, portalCustomizeResOpenApiVo.welcomeInformation) && + Objects.equals(this.welcomeTextColor, portalCustomizeResOpenApiVo.welcomeTextColor) && + Objects.equals(this.welcomeTextOpacity, portalCustomizeResOpenApiVo.welcomeTextOpacity) && + Objects.equals(this.welcomeTextFontSize, portalCustomizeResOpenApiVo.welcomeTextFontSize) && + Objects.equals(this.termsOfServiceEnable, portalCustomizeResOpenApiVo.termsOfServiceEnable) && + Objects.equals(this.termsOfService, portalCustomizeResOpenApiVo.termsOfService) && + Objects.equals(this.termsOfServiceText, portalCustomizeResOpenApiVo.termsOfServiceText) && + Objects.equals(this.termsOfServiceFontSize, portalCustomizeResOpenApiVo.termsOfServiceFontSize) && + Objects.equals(this.termsOfServiceUrlTexts, portalCustomizeResOpenApiVo.termsOfServiceUrlTexts) && + Objects.equals(this.copyrightEnable, portalCustomizeResOpenApiVo.copyrightEnable) && + Objects.equals(this.copyright, portalCustomizeResOpenApiVo.copyright) && + Objects.equals(this.copyrightTextColor, portalCustomizeResOpenApiVo.copyrightTextColor) && + Objects.equals(this.copyrightTextOpacity, portalCustomizeResOpenApiVo.copyrightTextOpacity) && + Objects.equals(this.copyrightTextFontSize, portalCustomizeResOpenApiVo.copyrightTextFontSize) && + Objects.equals(this.redirectionCountDownEnable, portalCustomizeResOpenApiVo.redirectionCountDownEnable) && + Objects.equals(this.advertisement, portalCustomizeResOpenApiVo.advertisement); + } + + @Override + public int hashCode() { + return Objects.hash(defaultLanguage, background, backgroundPicture, mobileBackgroundPicture, backgroundColor, backgroundOpacity, logoPicture, logoDisplay, logoPosition, logoSize, logoPositionRatio, logoTranslate, inputBoxColor, inputBoxOpacity, inputTextColor, inputTextOpacity, buttonColor, buttonOpacity, buttonTextColor, buttonTextOpacity, buttonText, formAuthButtonText, buttonPositionRatio, buttonTranslate, welcomeEnable, welcomeInformation, welcomeTextColor, welcomeTextOpacity, welcomeTextFontSize, termsOfServiceEnable, termsOfService, termsOfServiceText, termsOfServiceFontSize, termsOfServiceUrlTexts, copyrightEnable, copyright, copyrightTextColor, copyrightTextOpacity, copyrightTextFontSize, redirectionCountDownEnable, advertisement); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortalCustomizeResOpenApiVo {\n"); + + sb.append(" defaultLanguage: ").append(toIndentedString(defaultLanguage)).append("\n"); + sb.append(" background: ").append(toIndentedString(background)).append("\n"); + sb.append(" backgroundPicture: ").append(toIndentedString(backgroundPicture)).append("\n"); + sb.append(" mobileBackgroundPicture: ").append(toIndentedString(mobileBackgroundPicture)).append("\n"); + sb.append(" backgroundColor: ").append(toIndentedString(backgroundColor)).append("\n"); + sb.append(" backgroundOpacity: ").append(toIndentedString(backgroundOpacity)).append("\n"); + sb.append(" logoPicture: ").append(toIndentedString(logoPicture)).append("\n"); + sb.append(" logoDisplay: ").append(toIndentedString(logoDisplay)).append("\n"); + sb.append(" logoPosition: ").append(toIndentedString(logoPosition)).append("\n"); + sb.append(" logoSize: ").append(toIndentedString(logoSize)).append("\n"); + sb.append(" logoPositionRatio: ").append(toIndentedString(logoPositionRatio)).append("\n"); + sb.append(" logoTranslate: ").append(toIndentedString(logoTranslate)).append("\n"); + sb.append(" inputBoxColor: ").append(toIndentedString(inputBoxColor)).append("\n"); + sb.append(" inputBoxOpacity: ").append(toIndentedString(inputBoxOpacity)).append("\n"); + sb.append(" inputTextColor: ").append(toIndentedString(inputTextColor)).append("\n"); + sb.append(" inputTextOpacity: ").append(toIndentedString(inputTextOpacity)).append("\n"); + sb.append(" buttonColor: ").append(toIndentedString(buttonColor)).append("\n"); + sb.append(" buttonOpacity: ").append(toIndentedString(buttonOpacity)).append("\n"); + sb.append(" buttonTextColor: ").append(toIndentedString(buttonTextColor)).append("\n"); + sb.append(" buttonTextOpacity: ").append(toIndentedString(buttonTextOpacity)).append("\n"); + sb.append(" buttonText: ").append(toIndentedString(buttonText)).append("\n"); + sb.append(" formAuthButtonText: ").append(toIndentedString(formAuthButtonText)).append("\n"); + sb.append(" buttonPositionRatio: ").append(toIndentedString(buttonPositionRatio)).append("\n"); + sb.append(" buttonTranslate: ").append(toIndentedString(buttonTranslate)).append("\n"); + sb.append(" welcomeEnable: ").append(toIndentedString(welcomeEnable)).append("\n"); + sb.append(" welcomeInformation: ").append(toIndentedString(welcomeInformation)).append("\n"); + sb.append(" welcomeTextColor: ").append(toIndentedString(welcomeTextColor)).append("\n"); + sb.append(" welcomeTextOpacity: ").append(toIndentedString(welcomeTextOpacity)).append("\n"); + sb.append(" welcomeTextFontSize: ").append(toIndentedString(welcomeTextFontSize)).append("\n"); + sb.append(" termsOfServiceEnable: ").append(toIndentedString(termsOfServiceEnable)).append("\n"); + sb.append(" termsOfService: ").append(toIndentedString(termsOfService)).append("\n"); + sb.append(" termsOfServiceText: ").append(toIndentedString(termsOfServiceText)).append("\n"); + sb.append(" termsOfServiceFontSize: ").append(toIndentedString(termsOfServiceFontSize)).append("\n"); + sb.append(" termsOfServiceUrlTexts: ").append(toIndentedString(termsOfServiceUrlTexts)).append("\n"); + sb.append(" copyrightEnable: ").append(toIndentedString(copyrightEnable)).append("\n"); + sb.append(" copyright: ").append(toIndentedString(copyright)).append("\n"); + sb.append(" copyrightTextColor: ").append(toIndentedString(copyrightTextColor)).append("\n"); + sb.append(" copyrightTextOpacity: ").append(toIndentedString(copyrightTextOpacity)).append("\n"); + sb.append(" copyrightTextFontSize: ").append(toIndentedString(copyrightTextFontSize)).append("\n"); + sb.append(" redirectionCountDownEnable: ").append(toIndentedString(redirectionCountDownEnable)).append("\n"); + sb.append(" advertisement: ").append(toIndentedString(advertisement)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalDetailResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalDetailResOpenApiVo.java new file mode 100644 index 0000000..b3c5416 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalDetailResOpenApiVo.java @@ -0,0 +1,581 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PortalDetailResOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortalDetailResOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ssidList") + @Valid + private List ssidList = null; + + @JsonProperty("networkList") + @Valid + private List networkList = null; + + @JsonProperty("authType") + private Integer authType; + + @JsonProperty("authTimeout") + private AuthTimeOpenApiVo authTimeout; + + @JsonProperty("httpsRedirectEnable") + private Boolean httpsRedirectEnable; + + @JsonProperty("landingPage") + private Integer landingPage; + + @JsonProperty("landingUrlScheme") + private String landingUrlScheme; + + @JsonProperty("landingUrl") + private String landingUrl; + + @JsonProperty("noAuth") + private Object noAuth; + + @JsonProperty("simplePassword") + private Object simplePassword; + + @JsonProperty("hotspot") + private Object hotspot; + + @JsonProperty("sms") + private SmsSettingResOpenApiVo sms; + + @JsonProperty("portalFormId") + private String portalFormId; + + @JsonProperty("hotspotRadius") + private HotspotRadiusSettingResOpenApiVo hotspotRadius; + + @JsonProperty("externalPortal") + private Object externalPortal; + + @JsonProperty("externalRadius") + private ExternalRadiusSettingResOpenApiVo externalRadius; + + @JsonProperty("ldap") + private LdapSetting ldap; + + public PortalDetailResOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Portal ID + * @return id + */ + @ApiModelProperty(value = "Portal ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PortalDetailResOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Portal name, should contain 1 to 128 characters + * @return name + */ + @ApiModelProperty(value = "Portal name, should contain 1 to 128 characters") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PortalDetailResOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Portal enable status + * @return enable + */ + @ApiModelProperty(value = "Portal enable status") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public PortalDetailResOpenApiVo ssidList(List ssidList) { + this.ssidList = ssidList; + return this; + } + + public PortalDetailResOpenApiVo addSsidListItem(String ssidListItem) { + if (this.ssidList == null) { + this.ssidList = new ArrayList<>(); + } + this.ssidList.add(ssidListItem); + return this; + } + + /** + * SSID ID list bound with this Portal. SSID can be created using 'Create new SSID' ('Create new SSID template') interface, and SSID ID can be obtained from 'Get SSID list' ('Get SSID template list') interface + * @return ssidList + */ + @ApiModelProperty(value = "SSID ID list bound with this Portal. SSID can be created using 'Create new SSID' ('Create new SSID template') interface, and SSID ID can be obtained from 'Get SSID list' ('Get SSID template list') interface") + + + public List getSsidList() { + return ssidList; + } + + public void setSsidList(List ssidList) { + this.ssidList = ssidList; + } + + public PortalDetailResOpenApiVo networkList(List networkList) { + this.networkList = networkList; + return this; + } + + public PortalDetailResOpenApiVo addNetworkListItem(String networkListItem) { + if (this.networkList == null) { + this.networkList = new ArrayList<>(); + } + this.networkList.add(networkListItem); + return this; + } + + /** + * Lan network ID list bound with this Portal. LAN Network can be created using 'Create LAN network' ('Create LAN network template') interface, and LAN Network ID can be obtained from 'Get LAN network list' ('Get LAN network template list') interface + * @return networkList + */ + @ApiModelProperty(value = "Lan network ID list bound with this Portal. LAN Network can be created using 'Create LAN network' ('Create LAN network template') interface, and LAN Network ID can be obtained from 'Get LAN network list' ('Get LAN network template list') interface") + + + public List getNetworkList() { + return networkList; + } + + public void setNetworkList(List networkList) { + this.networkList = networkList; + } + + public PortalDetailResOpenApiVo authType(Integer authType) { + this.authType = authType; + return this; + } + + /** + * Auth Type, should be a value as follows:
0:No Authentication; 1:Simple Password;
2: External Radius Server; 4:External Portal Server;
11:Hotspot; 15: Ldap. + * @return authType + */ + @ApiModelProperty(value = "Auth Type, should be a value as follows:
0:No Authentication; 1:Simple Password;
2: External Radius Server; 4:External Portal Server;
11:Hotspot; 15: Ldap.") + + + public Integer getAuthType() { + return authType; + } + + public void setAuthType(Integer authType) { + this.authType = authType; + } + + public PortalDetailResOpenApiVo authTimeout(AuthTimeOpenApiVo authTimeout) { + this.authTimeout = authTimeout; + return this; + } + + /** + * Get authTimeout + * @return authTimeout + */ + @ApiModelProperty(value = "") + + @Valid + + public AuthTimeOpenApiVo getAuthTimeout() { + return authTimeout; + } + + public void setAuthTimeout(AuthTimeOpenApiVo authTimeout) { + this.authTimeout = authTimeout; + } + + public PortalDetailResOpenApiVo httpsRedirectEnable(Boolean httpsRedirectEnable) { + this.httpsRedirectEnable = httpsRedirectEnable; + return this; + } + + /** + * With this option enabled, unauthenticated clients will be redirected to the Portal page when they are trying to browse HTTPS websites. + * @return httpsRedirectEnable + */ + @ApiModelProperty(value = "With this option enabled, unauthenticated clients will be redirected to the Portal page when they are trying to browse HTTPS websites.") + + + public Boolean getHttpsRedirectEnable() { + return httpsRedirectEnable; + } + + public void setHttpsRedirectEnable(Boolean httpsRedirectEnable) { + this.httpsRedirectEnable = httpsRedirectEnable; + } + + public PortalDetailResOpenApiVo landingPage(Integer landingPage) { + this.landingPage = landingPage; + return this; + } + + /** + * LandingPage enum, should be a value as follows: 1: Redirect to the original URL, 2: Redirect to Promotional URL.
With The Original URL selected, clients are directed to the URL they request for after they pass Portal authentication.
With The Promotional URL selected, clients are directed to the specified URL here after they pass Portal authentication. + * @return landingPage + */ + @ApiModelProperty(value = "LandingPage enum, should be a value as follows: 1: Redirect to the original URL, 2: Redirect to Promotional URL.
With The Original URL selected, clients are directed to the URL they request for after they pass Portal authentication.
With The Promotional URL selected, clients are directed to the specified URL here after they pass Portal authentication.") + + + public Integer getLandingPage() { + return landingPage; + } + + public void setLandingPage(Integer landingPage) { + this.landingPage = landingPage; + } + + public PortalDetailResOpenApiVo landingUrlScheme(String landingUrlScheme) { + this.landingUrlScheme = landingUrlScheme; + return this; + } + + /** + * If Parameter [landingPage] is 2(Redirect to Promotional URL),this Parameter is requested, content is http or https. + * @return landingUrlScheme + */ + @ApiModelProperty(value = "If Parameter [landingPage] is 2(Redirect to Promotional URL),this Parameter is requested, content is http or https.") + + + public String getLandingUrlScheme() { + return landingUrlScheme; + } + + public void setLandingUrlScheme(String landingUrlScheme) { + this.landingUrlScheme = landingUrlScheme; + } + + public PortalDetailResOpenApiVo landingUrl(String landingUrl) { + this.landingUrl = landingUrl; + return this; + } + + /** + * If Parameter [landingPage] is 2(Redirect to Promotional URL),this Parameter is requested. + * @return landingUrl + */ + @ApiModelProperty(value = "If Parameter [landingPage] is 2(Redirect to Promotional URL),this Parameter is requested.") + + + public String getLandingUrl() { + return landingUrl; + } + + public void setLandingUrl(String landingUrl) { + this.landingUrl = landingUrl; + } + + public PortalDetailResOpenApiVo noAuth(Object noAuth) { + this.noAuth = noAuth; + return this; + } + + /** + * Get noAuth + * @return noAuth + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getNoAuth() { + return noAuth; + } + + public void setNoAuth(Object noAuth) { + this.noAuth = noAuth; + } + + public PortalDetailResOpenApiVo simplePassword(Object simplePassword) { + this.simplePassword = simplePassword; + return this; + } + + /** + * Get simplePassword + * @return simplePassword + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getSimplePassword() { + return simplePassword; + } + + public void setSimplePassword(Object simplePassword) { + this.simplePassword = simplePassword; + } + + public PortalDetailResOpenApiVo hotspot(Object hotspot) { + this.hotspot = hotspot; + return this; + } + + /** + * Get hotspot + * @return hotspot + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getHotspot() { + return hotspot; + } + + public void setHotspot(Object hotspot) { + this.hotspot = hotspot; + } + + public PortalDetailResOpenApiVo sms(SmsSettingResOpenApiVo sms) { + this.sms = sms; + return this; + } + + /** + * Get sms + * @return sms + */ + @ApiModelProperty(value = "") + + @Valid + + public SmsSettingResOpenApiVo getSms() { + return sms; + } + + public void setSms(SmsSettingResOpenApiVo sms) { + this.sms = sms; + } + + public PortalDetailResOpenApiVo portalFormId(String portalFormId) { + this.portalFormId = portalFormId; + return this; + } + + /** + * Portal form ID, required when [authType] is 11 and hotspot [enabledTypes] contains 12. Portal form can be created using 'Create a new authentication survey' interface, and Portal form ID can be obtained from 'Get authentication survey list' interface + * @return portalFormId + */ + @ApiModelProperty(value = "Portal form ID, required when [authType] is 11 and hotspot [enabledTypes] contains 12. Portal form can be created using 'Create a new authentication survey' interface, and Portal form ID can be obtained from 'Get authentication survey list' interface") + + + public String getPortalFormId() { + return portalFormId; + } + + public void setPortalFormId(String portalFormId) { + this.portalFormId = portalFormId; + } + + public PortalDetailResOpenApiVo hotspotRadius(HotspotRadiusSettingResOpenApiVo hotspotRadius) { + this.hotspotRadius = hotspotRadius; + return this; + } + + /** + * Get hotspotRadius + * @return hotspotRadius + */ + @ApiModelProperty(value = "") + + @Valid + + public HotspotRadiusSettingResOpenApiVo getHotspotRadius() { + return hotspotRadius; + } + + public void setHotspotRadius(HotspotRadiusSettingResOpenApiVo hotspotRadius) { + this.hotspotRadius = hotspotRadius; + } + + public PortalDetailResOpenApiVo externalPortal(Object externalPortal) { + this.externalPortal = externalPortal; + return this; + } + + /** + * Get externalPortal + * @return externalPortal + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getExternalPortal() { + return externalPortal; + } + + public void setExternalPortal(Object externalPortal) { + this.externalPortal = externalPortal; + } + + public PortalDetailResOpenApiVo externalRadius(ExternalRadiusSettingResOpenApiVo externalRadius) { + this.externalRadius = externalRadius; + return this; + } + + /** + * Get externalRadius + * @return externalRadius + */ + @ApiModelProperty(value = "") + + @Valid + + public ExternalRadiusSettingResOpenApiVo getExternalRadius() { + return externalRadius; + } + + public void setExternalRadius(ExternalRadiusSettingResOpenApiVo externalRadius) { + this.externalRadius = externalRadius; + } + + public PortalDetailResOpenApiVo ldap(LdapSetting ldap) { + this.ldap = ldap; + return this; + } + + /** + * Get ldap + * @return ldap + */ + @ApiModelProperty(value = "") + + @Valid + + public LdapSetting getLdap() { + return ldap; + } + + public void setLdap(LdapSetting ldap) { + this.ldap = ldap; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortalDetailResOpenApiVo portalDetailResOpenApiVo = (PortalDetailResOpenApiVo) o; + return Objects.equals(this.id, portalDetailResOpenApiVo.id) && + Objects.equals(this.name, portalDetailResOpenApiVo.name) && + Objects.equals(this.enable, portalDetailResOpenApiVo.enable) && + Objects.equals(this.ssidList, portalDetailResOpenApiVo.ssidList) && + Objects.equals(this.networkList, portalDetailResOpenApiVo.networkList) && + Objects.equals(this.authType, portalDetailResOpenApiVo.authType) && + Objects.equals(this.authTimeout, portalDetailResOpenApiVo.authTimeout) && + Objects.equals(this.httpsRedirectEnable, portalDetailResOpenApiVo.httpsRedirectEnable) && + Objects.equals(this.landingPage, portalDetailResOpenApiVo.landingPage) && + Objects.equals(this.landingUrlScheme, portalDetailResOpenApiVo.landingUrlScheme) && + Objects.equals(this.landingUrl, portalDetailResOpenApiVo.landingUrl) && + Objects.equals(this.noAuth, portalDetailResOpenApiVo.noAuth) && + Objects.equals(this.simplePassword, portalDetailResOpenApiVo.simplePassword) && + Objects.equals(this.hotspot, portalDetailResOpenApiVo.hotspot) && + Objects.equals(this.sms, portalDetailResOpenApiVo.sms) && + Objects.equals(this.portalFormId, portalDetailResOpenApiVo.portalFormId) && + Objects.equals(this.hotspotRadius, portalDetailResOpenApiVo.hotspotRadius) && + Objects.equals(this.externalPortal, portalDetailResOpenApiVo.externalPortal) && + Objects.equals(this.externalRadius, portalDetailResOpenApiVo.externalRadius) && + Objects.equals(this.ldap, portalDetailResOpenApiVo.ldap); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, enable, ssidList, networkList, authType, authTimeout, httpsRedirectEnable, landingPage, landingUrlScheme, landingUrl, noAuth, simplePassword, hotspot, sms, portalFormId, hotspotRadius, externalPortal, externalRadius, ldap); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortalDetailResOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ssidList: ").append(toIndentedString(ssidList)).append("\n"); + sb.append(" networkList: ").append(toIndentedString(networkList)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" authTimeout: ").append(toIndentedString(authTimeout)).append("\n"); + sb.append(" httpsRedirectEnable: ").append(toIndentedString(httpsRedirectEnable)).append("\n"); + sb.append(" landingPage: ").append(toIndentedString(landingPage)).append("\n"); + sb.append(" landingUrlScheme: ").append(toIndentedString(landingUrlScheme)).append("\n"); + sb.append(" landingUrl: ").append(toIndentedString(landingUrl)).append("\n"); + sb.append(" noAuth: ").append(toIndentedString(noAuth)).append("\n"); + sb.append(" simplePassword: ").append(toIndentedString(simplePassword)).append("\n"); + sb.append(" hotspot: ").append(toIndentedString(hotspot)).append("\n"); + sb.append(" sms: ").append(toIndentedString(sms)).append("\n"); + sb.append(" portalFormId: ").append(toIndentedString(portalFormId)).append("\n"); + sb.append(" hotspotRadius: ").append(toIndentedString(hotspotRadius)).append("\n"); + sb.append(" externalPortal: ").append(toIndentedString(externalPortal)).append("\n"); + sb.append(" externalRadius: ").append(toIndentedString(externalRadius)).append("\n"); + sb.append(" ldap: ").append(toIndentedString(ldap)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalPictureInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalPictureInfo.java new file mode 100644 index 0000000..dc845b0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalPictureInfo.java @@ -0,0 +1,126 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * PortalPictureInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortalPictureInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("fileName") + private String fileName; + + @JsonProperty("url") + private String url; + + public PortalPictureInfo id(String id) { + this.id = id; + return this; + } + + /** + * Portal picture ID + * @return id + */ + @ApiModelProperty(value = "Portal picture ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PortalPictureInfo fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * File name + * @return fileName + */ + @ApiModelProperty(value = "File name") + + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + public PortalPictureInfo url(String url) { + this.url = url; + return this; + } + + /** + * File URL + * @return url + */ + @ApiModelProperty(value = "File URL") + + + public String getUrl() { + return url; + } + + public void setUrl(String url) { + this.url = url; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortalPictureInfo portalPictureInfo = (PortalPictureInfo) o; + return Objects.equals(this.id, portalPictureInfo.id) && + Objects.equals(this.fileName, portalPictureInfo.fileName) && + Objects.equals(this.url, portalPictureInfo.url); + } + + @Override + public int hashCode() { + return Objects.hash(id, fileName, url); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortalPictureInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append(" url: ").append(toIndentedString(url)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalResOpenApiVo.java new file mode 100644 index 0000000..e0da0b0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalResOpenApiVo.java @@ -0,0 +1,256 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PortalResOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortalResOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ssidList") + @Valid + private List ssidList = null; + + @JsonProperty("networkList") + @Valid + private List networkList = null; + + @JsonProperty("authType") + private Integer authType; + + @JsonProperty("hotspotTypes") + @Valid + private List hotspotTypes = null; + + public PortalResOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Portal ID + * @return id + */ + @ApiModelProperty(value = "Portal ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PortalResOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Portal name + * @return name + */ + @ApiModelProperty(value = "Portal name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PortalResOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Is the portal enable. + * @return enable + */ + @ApiModelProperty(value = "Is the portal enable.") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public PortalResOpenApiVo ssidList(List ssidList) { + this.ssidList = ssidList; + return this; + } + + public PortalResOpenApiVo addSsidListItem(String ssidListItem) { + if (this.ssidList == null) { + this.ssidList = new ArrayList<>(); + } + this.ssidList.add(ssidListItem); + return this; + } + + /** + * The ssid list of the portal binding. + * @return ssidList + */ + @ApiModelProperty(value = "The ssid list of the portal binding.") + + + public List getSsidList() { + return ssidList; + } + + public void setSsidList(List ssidList) { + this.ssidList = ssidList; + } + + public PortalResOpenApiVo networkList(List networkList) { + this.networkList = networkList; + return this; + } + + public PortalResOpenApiVo addNetworkListItem(String networkListItem) { + if (this.networkList == null) { + this.networkList = new ArrayList<>(); + } + this.networkList.add(networkListItem); + return this; + } + + /** + * The network ID list of the portal binding. + * @return networkList + */ + @ApiModelProperty(value = "The network ID list of the portal binding.") + + + public List getNetworkList() { + return networkList; + } + + public void setNetworkList(List networkList) { + this.networkList = networkList; + } + + public PortalResOpenApiVo authType(Integer authType) { + this.authType = authType; + return this; + } + + /** + * The type of authentication should be a value as follows: 0: NO_AUTH; 1: SIMPLE_PASSWORD; 2: EXTERNAL_RADIUS; 4: EXTERNAL_PORTAL_SERVER; 7: FACEBOOK; 11: HOTSPOT + * @return authType + */ + @ApiModelProperty(value = "The type of authentication should be a value as follows: 0: NO_AUTH; 1: SIMPLE_PASSWORD; 2: EXTERNAL_RADIUS; 4: EXTERNAL_PORTAL_SERVER; 7: FACEBOOK; 11: HOTSPOT") + + + public Integer getAuthType() { + return authType; + } + + public void setAuthType(Integer authType) { + this.authType = authType; + } + + public PortalResOpenApiVo hotspotTypes(List hotspotTypes) { + this.hotspotTypes = hotspotTypes; + return this; + } + + public PortalResOpenApiVo addHotspotTypesItem(Integer hotspotTypesItem) { + if (this.hotspotTypes == null) { + this.hotspotTypes = new ArrayList<>(); + } + this.hotspotTypes.add(hotspotTypesItem); + return this; + } + + /** + * The enable types of hotspot should be a value as follows: 3: VOUCHER; 5: LOCAL_USER 6: SMS; 8: HOTSPOT_RADIUS; 12: FORM_AUTH + * @return hotspotTypes + */ + @ApiModelProperty(value = "The enable types of hotspot should be a value as follows: 3: VOUCHER; 5: LOCAL_USER 6: SMS; 8: HOTSPOT_RADIUS; 12: FORM_AUTH") + + + public List getHotspotTypes() { + return hotspotTypes; + } + + public void setHotspotTypes(List hotspotTypes) { + this.hotspotTypes = hotspotTypes; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortalResOpenApiVo portalResOpenApiVo = (PortalResOpenApiVo) o; + return Objects.equals(this.id, portalResOpenApiVo.id) && + Objects.equals(this.name, portalResOpenApiVo.name) && + Objects.equals(this.enable, portalResOpenApiVo.enable) && + Objects.equals(this.ssidList, portalResOpenApiVo.ssidList) && + Objects.equals(this.networkList, portalResOpenApiVo.networkList) && + Objects.equals(this.authType, portalResOpenApiVo.authType) && + Objects.equals(this.hotspotTypes, portalResOpenApiVo.hotspotTypes); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, enable, ssidList, networkList, authType, hotspotTypes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortalResOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ssidList: ").append(toIndentedString(ssidList)).append("\n"); + sb.append(" networkList: ").append(toIndentedString(networkList)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" hotspotTypes: ").append(toIndentedString(hotspotTypes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalSetting.java new file mode 100644 index 0000000..f9f8db4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PortalSetting.java @@ -0,0 +1,643 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Portal Setting. + */ +@ApiModel(description = "Portal Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PortalSetting { + @JsonProperty("name") + private String name; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ssidList") + @Valid + private List ssidList = null; + + @JsonProperty("networkList") + @Valid + private List networkList = null; + + @JsonProperty("authType") + private Integer authType; + + @JsonProperty("authTimeout") + private AuthTimeoutSetting authTimeout; + + @JsonProperty("httpsRedirectEnable") + private Boolean httpsRedirectEnable; + + @JsonProperty("landingPage") + private Integer landingPage; + + @JsonProperty("landingUrlScheme") + private String landingUrlScheme; + + @JsonProperty("landingUrl") + private String landingUrl; + + @JsonProperty("noAuth") + private Object noAuth; + + @JsonProperty("simplePassword") + private Object simplePassword; + + @JsonProperty("hotspot") + private Object hotspot; + + @JsonProperty("sms") + private SmsSetting sms; + + @JsonProperty("portalFormId") + private String portalFormId; + + @JsonProperty("hotspotRadius") + private HotspotRadiusSetting hotspotRadius; + + @JsonProperty("externalPortal") + private Object externalPortal; + + @JsonProperty("externalRadius") + private ExternalRadiusSetting externalRadius; + + @JsonProperty("ldap") + private LdapSetting ldap; + + @JsonProperty("pageType") + private Integer pageType; + + @JsonProperty("importedPortalPage") + private ImportedPortalPageOpenApiVo importedPortalPage; + + @JsonProperty("portalCustomize") + private PortalCustomizeOpenApiVo portalCustomize; + + public PortalSetting name(String name) { + this.name = name; + return this; + } + + /** + * Portal Name, should contain 1 to 128 characters + * @return name + */ + @ApiModelProperty(required = true, value = "Portal Name, should contain 1 to 128 characters") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PortalSetting enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Portal Enable + * @return enable + */ + @ApiModelProperty(required = true, value = "Portal Enable") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public PortalSetting ssidList(List ssidList) { + this.ssidList = ssidList; + return this; + } + + public PortalSetting addSsidListItem(String ssidListItem) { + if (this.ssidList == null) { + this.ssidList = new ArrayList<>(); + } + this.ssidList.add(ssidListItem); + return this; + } + + /** + * SSID ID list bound with this Portal. SSID can be created using 'Create new SSID' ('Create new SSID template') interface, and SSID ID can be obtained from 'Get SSID list' ('Get SSID template list') interface + * @return ssidList + */ + @ApiModelProperty(value = "SSID ID list bound with this Portal. SSID can be created using 'Create new SSID' ('Create new SSID template') interface, and SSID ID can be obtained from 'Get SSID list' ('Get SSID template list') interface") + + + public List getSsidList() { + return ssidList; + } + + public void setSsidList(List ssidList) { + this.ssidList = ssidList; + } + + public PortalSetting networkList(List networkList) { + this.networkList = networkList; + return this; + } + + public PortalSetting addNetworkListItem(String networkListItem) { + if (this.networkList == null) { + this.networkList = new ArrayList<>(); + } + this.networkList.add(networkListItem); + return this; + } + + /** + * Lan network ID list bound with this Portal. LAN Network can be created using 'Create LAN network' ('Create LAN network template') interface, and LAN Network ID can be obtained from 'Get LAN network list' ('Get LAN network template list') interface + * @return networkList + */ + @ApiModelProperty(value = "Lan network ID list bound with this Portal. LAN Network can be created using 'Create LAN network' ('Create LAN network template') interface, and LAN Network ID can be obtained from 'Get LAN network list' ('Get LAN network template list') interface") + + + public List getNetworkList() { + return networkList; + } + + public void setNetworkList(List networkList) { + this.networkList = networkList; + } + + public PortalSetting authType(Integer authType) { + this.authType = authType; + return this; + } + + /** + * Auth Type, should be a value as follows:
0:No Authentication; 1:Simple Password;
2: External Radius Server; 4:External Portal Server;
11:Hotspot; 15: Ldap. + * @return authType + */ + @ApiModelProperty(required = true, value = "Auth Type, should be a value as follows:
0:No Authentication; 1:Simple Password;
2: External Radius Server; 4:External Portal Server;
11:Hotspot; 15: Ldap.") + @NotNull + + + public Integer getAuthType() { + return authType; + } + + public void setAuthType(Integer authType) { + this.authType = authType; + } + + public PortalSetting authTimeout(AuthTimeoutSetting authTimeout) { + this.authTimeout = authTimeout; + return this; + } + + /** + * Get authTimeout + * @return authTimeout + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public AuthTimeoutSetting getAuthTimeout() { + return authTimeout; + } + + public void setAuthTimeout(AuthTimeoutSetting authTimeout) { + this.authTimeout = authTimeout; + } + + public PortalSetting httpsRedirectEnable(Boolean httpsRedirectEnable) { + this.httpsRedirectEnable = httpsRedirectEnable; + return this; + } + + /** + * With this option enabled, unauthenticated clients will be redirected to the Portal page when they are trying to browse HTTPS websites. + * @return httpsRedirectEnable + */ + @ApiModelProperty(required = true, value = "With this option enabled, unauthenticated clients will be redirected to the Portal page when they are trying to browse HTTPS websites.") + @NotNull + + + public Boolean getHttpsRedirectEnable() { + return httpsRedirectEnable; + } + + public void setHttpsRedirectEnable(Boolean httpsRedirectEnable) { + this.httpsRedirectEnable = httpsRedirectEnable; + } + + public PortalSetting landingPage(Integer landingPage) { + this.landingPage = landingPage; + return this; + } + + /** + * LandingPage enum: 1: Redirect to the original URL, 2: Redirect to Promotional URL, 3: Redirect to Logout Page.
With The Original URL selected, clients are directed to the URL they request for after they pass Portal authentication.
With The Promotional URL selected, clients are directed to the specified URL here after they pass Portal authentication.
With The Logout Page selected, clients are directed to the Portal Logout Page after they pass Portal authentication. + * @return landingPage + */ + @ApiModelProperty(required = true, value = "LandingPage enum: 1: Redirect to the original URL, 2: Redirect to Promotional URL, 3: Redirect to Logout Page.
With The Original URL selected, clients are directed to the URL they request for after they pass Portal authentication.
With The Promotional URL selected, clients are directed to the specified URL here after they pass Portal authentication.
With The Logout Page selected, clients are directed to the Portal Logout Page after they pass Portal authentication. ") + @NotNull + + + public Integer getLandingPage() { + return landingPage; + } + + public void setLandingPage(Integer landingPage) { + this.landingPage = landingPage; + } + + public PortalSetting landingUrlScheme(String landingUrlScheme) { + this.landingUrlScheme = landingUrlScheme; + return this; + } + + /** + * If Parameter [landingPage] is 2(Redirect to Promotional URL),this Parameter is requested, content is http or https. + * @return landingUrlScheme + */ + @ApiModelProperty(value = "If Parameter [landingPage] is 2(Redirect to Promotional URL),this Parameter is requested, content is http or https.") + +@Pattern(regexp="http|https") + public String getLandingUrlScheme() { + return landingUrlScheme; + } + + public void setLandingUrlScheme(String landingUrlScheme) { + this.landingUrlScheme = landingUrlScheme; + } + + public PortalSetting landingUrl(String landingUrl) { + this.landingUrl = landingUrl; + return this; + } + + /** + * If Parameter [landingPage] is 2(Redirect to Promotional URL),this Parameter is requested. + * @return landingUrl + */ + @ApiModelProperty(value = "If Parameter [landingPage] is 2(Redirect to Promotional URL),this Parameter is requested.") + +@Pattern(regexp="^(([-a-zA-Z0-9@:%._+~#=]{2,256}\\.[a-z]{2,63})|(((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)(\\.)){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)))((:([1-9]|[1-9]\\d|[1-9]\\d{2}|[1-9]\\d{3}|[1-5]\\d{4}|6[0-4]\\d{3}|65[0-4]\\d{2}|655[0-2]\\d|6553[0-5]))?)(/([-a-zA-Z0-9@:%_+.~#?&//=]*))?$") + public String getLandingUrl() { + return landingUrl; + } + + public void setLandingUrl(String landingUrl) { + this.landingUrl = landingUrl; + } + + public PortalSetting noAuth(Object noAuth) { + this.noAuth = noAuth; + return this; + } + + /** + * Get noAuth + * @return noAuth + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getNoAuth() { + return noAuth; + } + + public void setNoAuth(Object noAuth) { + this.noAuth = noAuth; + } + + public PortalSetting simplePassword(Object simplePassword) { + this.simplePassword = simplePassword; + return this; + } + + /** + * Get simplePassword + * @return simplePassword + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getSimplePassword() { + return simplePassword; + } + + public void setSimplePassword(Object simplePassword) { + this.simplePassword = simplePassword; + } + + public PortalSetting hotspot(Object hotspot) { + this.hotspot = hotspot; + return this; + } + + /** + * Get hotspot + * @return hotspot + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getHotspot() { + return hotspot; + } + + public void setHotspot(Object hotspot) { + this.hotspot = hotspot; + } + + public PortalSetting sms(SmsSetting sms) { + this.sms = sms; + return this; + } + + /** + * Get sms + * @return sms + */ + @ApiModelProperty(value = "") + + @Valid + + public SmsSetting getSms() { + return sms; + } + + public void setSms(SmsSetting sms) { + this.sms = sms; + } + + public PortalSetting portalFormId(String portalFormId) { + this.portalFormId = portalFormId; + return this; + } + + /** + * Portal form ID, required when [authType] is 11 and hotspot [enabledTypes] contains 12. + * @return portalFormId + */ + @ApiModelProperty(value = "Portal form ID, required when [authType] is 11 and hotspot [enabledTypes] contains 12.") + + + public String getPortalFormId() { + return portalFormId; + } + + public void setPortalFormId(String portalFormId) { + this.portalFormId = portalFormId; + } + + public PortalSetting hotspotRadius(HotspotRadiusSetting hotspotRadius) { + this.hotspotRadius = hotspotRadius; + return this; + } + + /** + * Get hotspotRadius + * @return hotspotRadius + */ + @ApiModelProperty(value = "") + + @Valid + + public HotspotRadiusSetting getHotspotRadius() { + return hotspotRadius; + } + + public void setHotspotRadius(HotspotRadiusSetting hotspotRadius) { + this.hotspotRadius = hotspotRadius; + } + + public PortalSetting externalPortal(Object externalPortal) { + this.externalPortal = externalPortal; + return this; + } + + /** + * Get externalPortal + * @return externalPortal + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getExternalPortal() { + return externalPortal; + } + + public void setExternalPortal(Object externalPortal) { + this.externalPortal = externalPortal; + } + + public PortalSetting externalRadius(ExternalRadiusSetting externalRadius) { + this.externalRadius = externalRadius; + return this; + } + + /** + * Get externalRadius + * @return externalRadius + */ + @ApiModelProperty(value = "") + + @Valid + + public ExternalRadiusSetting getExternalRadius() { + return externalRadius; + } + + public void setExternalRadius(ExternalRadiusSetting externalRadius) { + this.externalRadius = externalRadius; + } + + public PortalSetting ldap(LdapSetting ldap) { + this.ldap = ldap; + return this; + } + + /** + * Get ldap + * @return ldap + */ + @ApiModelProperty(value = "") + + @Valid + + public LdapSetting getLdap() { + return ldap; + } + + public void setLdap(LdapSetting ldap) { + this.ldap = ldap; + } + + public PortalSetting pageType(Integer pageType) { + this.pageType = pageType; + return this; + } + + /** + * Page type, should be a value as follows: 1: Use default page, 2: use uploaded page. When [pageType] is null, it defaults to 1 + * @return pageType + */ + @ApiModelProperty(value = "Page type, should be a value as follows: 1: Use default page, 2: use uploaded page. When [pageType] is null, it defaults to 1") + + + public Integer getPageType() { + return pageType; + } + + public void setPageType(Integer pageType) { + this.pageType = pageType; + } + + public PortalSetting importedPortalPage(ImportedPortalPageOpenApiVo importedPortalPage) { + this.importedPortalPage = importedPortalPage; + return this; + } + + /** + * Get importedPortalPage + * @return importedPortalPage + */ + @ApiModelProperty(value = "") + + @Valid + + public ImportedPortalPageOpenApiVo getImportedPortalPage() { + return importedPortalPage; + } + + public void setImportedPortalPage(ImportedPortalPageOpenApiVo importedPortalPage) { + this.importedPortalPage = importedPortalPage; + } + + public PortalSetting portalCustomize(PortalCustomizeOpenApiVo portalCustomize) { + this.portalCustomize = portalCustomize; + return this; + } + + /** + * Get portalCustomize + * @return portalCustomize + */ + @ApiModelProperty(value = "") + + @Valid + + public PortalCustomizeOpenApiVo getPortalCustomize() { + return portalCustomize; + } + + public void setPortalCustomize(PortalCustomizeOpenApiVo portalCustomize) { + this.portalCustomize = portalCustomize; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PortalSetting portalSetting = (PortalSetting) o; + return Objects.equals(this.name, portalSetting.name) && + Objects.equals(this.enable, portalSetting.enable) && + Objects.equals(this.ssidList, portalSetting.ssidList) && + Objects.equals(this.networkList, portalSetting.networkList) && + Objects.equals(this.authType, portalSetting.authType) && + Objects.equals(this.authTimeout, portalSetting.authTimeout) && + Objects.equals(this.httpsRedirectEnable, portalSetting.httpsRedirectEnable) && + Objects.equals(this.landingPage, portalSetting.landingPage) && + Objects.equals(this.landingUrlScheme, portalSetting.landingUrlScheme) && + Objects.equals(this.landingUrl, portalSetting.landingUrl) && + Objects.equals(this.noAuth, portalSetting.noAuth) && + Objects.equals(this.simplePassword, portalSetting.simplePassword) && + Objects.equals(this.hotspot, portalSetting.hotspot) && + Objects.equals(this.sms, portalSetting.sms) && + Objects.equals(this.portalFormId, portalSetting.portalFormId) && + Objects.equals(this.hotspotRadius, portalSetting.hotspotRadius) && + Objects.equals(this.externalPortal, portalSetting.externalPortal) && + Objects.equals(this.externalRadius, portalSetting.externalRadius) && + Objects.equals(this.ldap, portalSetting.ldap) && + Objects.equals(this.pageType, portalSetting.pageType) && + Objects.equals(this.importedPortalPage, portalSetting.importedPortalPage) && + Objects.equals(this.portalCustomize, portalSetting.portalCustomize); + } + + @Override + public int hashCode() { + return Objects.hash(name, enable, ssidList, networkList, authType, authTimeout, httpsRedirectEnable, landingPage, landingUrlScheme, landingUrl, noAuth, simplePassword, hotspot, sms, portalFormId, hotspotRadius, externalPortal, externalRadius, ldap, pageType, importedPortalPage, portalCustomize); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PortalSetting {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ssidList: ").append(toIndentedString(ssidList)).append("\n"); + sb.append(" networkList: ").append(toIndentedString(networkList)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" authTimeout: ").append(toIndentedString(authTimeout)).append("\n"); + sb.append(" httpsRedirectEnable: ").append(toIndentedString(httpsRedirectEnable)).append("\n"); + sb.append(" landingPage: ").append(toIndentedString(landingPage)).append("\n"); + sb.append(" landingUrlScheme: ").append(toIndentedString(landingUrlScheme)).append("\n"); + sb.append(" landingUrl: ").append(toIndentedString(landingUrl)).append("\n"); + sb.append(" noAuth: ").append(toIndentedString(noAuth)).append("\n"); + sb.append(" simplePassword: ").append(toIndentedString(simplePassword)).append("\n"); + sb.append(" hotspot: ").append(toIndentedString(hotspot)).append("\n"); + sb.append(" sms: ").append(toIndentedString(sms)).append("\n"); + sb.append(" portalFormId: ").append(toIndentedString(portalFormId)).append("\n"); + sb.append(" hotspotRadius: ").append(toIndentedString(hotspotRadius)).append("\n"); + sb.append(" externalPortal: ").append(toIndentedString(externalPortal)).append("\n"); + sb.append(" externalRadius: ").append(toIndentedString(externalRadius)).append("\n"); + sb.append(" ldap: ").append(toIndentedString(ldap)).append("\n"); + sb.append(" pageType: ").append(toIndentedString(pageType)).append("\n"); + sb.append(" importedPortalPage: ").append(toIndentedString(importedPortalPage)).append("\n"); + sb.append(" portalCustomize: ").append(toIndentedString(portalCustomize)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskAutoCreateSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskAutoCreateSetting.java new file mode 100644 index 0000000..8460d93 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskAutoCreateSetting.java @@ -0,0 +1,158 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Auto Create PPSK Setting. + */ +@ApiModel(description = "Auto Create PPSK Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PpskAutoCreateSetting { + @JsonProperty("number") + private Integer number; + + @JsonProperty("prefix") + private String prefix; + + @JsonProperty("length") + private Integer length; + + @JsonProperty("vlan") + private Integer vlan; + + public PpskAutoCreateSetting number(Integer number) { + this.number = number; + return this; + } + + /** + * Generate Number, should be within the range of 1-1024. + * @return number + */ + @ApiModelProperty(required = true, value = "Generate Number, should be within the range of 1-1024.") + @NotNull + + + public Integer getNumber() { + return number; + } + + public void setNumber(Integer number) { + this.number = number; + } + + public PpskAutoCreateSetting prefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * PSK Name Prefix, should contain 1 to 60 visible ASCII characters. + * @return prefix + */ + @ApiModelProperty(required = true, value = "PSK Name Prefix, should contain 1 to 60 visible ASCII characters.") + @NotNull + +@Pattern(regexp="^[a-zA-z0-9'!\"#$%&()*,./:;?^_`\\[\\]{|}~<>\\ ][\\041-\\0176]{0,59}$") + public String getPrefix() { + return prefix; + } + + public void setPrefix(String prefix) { + this.prefix = prefix; + } + + public PpskAutoCreateSetting length(Integer length) { + this.length = length; + return this; + } + + /** + * PSK Password Length, should be within the range of 8-63. + * @return length + */ + @ApiModelProperty(required = true, value = "PSK Password Length, should be within the range of 8-63.") + @NotNull + + + public Integer getLength() { + return length; + } + + public void setLength(Integer length) { + this.length = length; + } + + public PpskAutoCreateSetting vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * PSK Bound Vlan, should be within the range of 1-4094. + * @return vlan + */ + @ApiModelProperty(value = "PSK Bound Vlan, should be within the range of 1-4094.") + + + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PpskAutoCreateSetting ppskAutoCreateSetting = (PpskAutoCreateSetting) o; + return Objects.equals(this.number, ppskAutoCreateSetting.number) && + Objects.equals(this.prefix, ppskAutoCreateSetting.prefix) && + Objects.equals(this.length, ppskAutoCreateSetting.length) && + Objects.equals(this.vlan, ppskAutoCreateSetting.vlan); + } + + @Override + public int hashCode() { + return Objects.hash(number, prefix, length, vlan); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PpskAutoCreateSetting {\n"); + + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" length: ").append(toIndentedString(length)).append("\n"); + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfile.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfile.java new file mode 100644 index 0000000..7ab6b9f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfile.java @@ -0,0 +1,143 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PPSK Profile Setting. + */ +@ApiModel(description = "PPSK Profile Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PpskProfile { + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("ppsk") + @Valid + private List ppsk = new ArrayList<>(); + + @JsonProperty("type") + private Integer type; + + public PpskProfile profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * PPSK Profile Name, should contain 1 to 64 characters. + * @return profileName + */ + @ApiModelProperty(required = true, value = "PPSK Profile Name, should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public PpskProfile ppsk(List ppsk) { + this.ppsk = ppsk; + return this; + } + + public PpskProfile addPpskItem(PpskSetting ppskItem) { + this.ppsk.add(ppskItem); + return this; + } + + /** + * PPSK List In the PPSK Profile + * @return ppsk + */ + @ApiModelProperty(required = true, value = "PPSK List In the PPSK Profile") + @NotNull + + @Valid + + public List getPpsk() { + return ppsk; + } + + public void setPpsk(List ppsk) { + this.ppsk = ppsk; + } + + public PpskProfile type(Integer type) { + this.type = type; + return this; + } + + /** + * PPSK Profile type: 0:PPSK Without RADIUS;Cloud Based Controller only support PPSK Without RADIUS. + * @return type + */ + @ApiModelProperty(required = true, value = "PPSK Profile type: 0:PPSK Without RADIUS;Cloud Based Controller only support PPSK Without RADIUS.") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PpskProfile ppskProfile = (PpskProfile) o; + return Objects.equals(this.profileName, ppskProfile.profileName) && + Objects.equals(this.ppsk, ppskProfile.ppsk) && + Objects.equals(this.type, ppskProfile.type); + } + + @Override + public int hashCode() { + return Objects.hash(profileName, ppsk, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PpskProfile {\n"); + + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" ppsk: ").append(toIndentedString(ppsk)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileBriefInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileBriefInfo.java new file mode 100644 index 0000000..3a73b40 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileBriefInfo.java @@ -0,0 +1,143 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PPSK Profile Brief Info. + */ +@ApiModel(description = "PPSK Profile Brief Info.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PpskProfileBriefInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("ssid") + @Valid + private List ssid = null; + + public PpskProfileBriefInfo id(String id) { + this.id = id; + return this; + } + + /** + * PPSK Profile ID + * @return id + */ + @ApiModelProperty(value = "PPSK Profile ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PpskProfileBriefInfo profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * PPSK Profile Name, should contain 1 to 64 characters. + * @return profileName + */ + @ApiModelProperty(required = true, value = "PPSK Profile Name, should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public PpskProfileBriefInfo ssid(List ssid) { + this.ssid = ssid; + return this; + } + + public PpskProfileBriefInfo addSsidItem(String ssidItem) { + if (this.ssid == null) { + this.ssid = new ArrayList<>(); + } + this.ssid.add(ssidItem); + return this; + } + + /** + * SSIDs Bound With PPSK Profile + * @return ssid + */ + @ApiModelProperty(value = "SSIDs Bound With PPSK Profile") + + + public List getSsid() { + return ssid; + } + + public void setSsid(List ssid) { + this.ssid = ssid; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PpskProfileBriefInfo ppskProfileBriefInfo = (PpskProfileBriefInfo) o; + return Objects.equals(this.id, ppskProfileBriefInfo.id) && + Objects.equals(this.profileName, ppskProfileBriefInfo.profileName) && + Objects.equals(this.ssid, ppskProfileBriefInfo.ssid); + } + + @Override + public int hashCode() { + return Objects.hash(id, profileName, ssid); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PpskProfileBriefInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" ssid: ").append(toIndentedString(ssid)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileV2.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileV2.java new file mode 100644 index 0000000..4f3fdba --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileV2.java @@ -0,0 +1,245 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PPSK Profile Setting. + */ +@ApiModel(description = "PPSK Profile Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PpskProfileV2 { + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("autoCreatePsks") + private Boolean autoCreatePsks; + + @JsonProperty("ppsk") + @Valid + private List ppsk = null; + + @JsonProperty("number") + private Integer number; + + @JsonProperty("prefix") + private String prefix; + + @JsonProperty("length") + private Integer length; + + @JsonProperty("vlan") + private Integer vlan; + + public PpskProfileV2 profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * PPSK Profile Name, should contain 1 to 64 characters. + * @return profileName + */ + @ApiModelProperty(required = true, value = "PPSK Profile Name, should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public PpskProfileV2 autoCreatePsks(Boolean autoCreatePsks) { + this.autoCreatePsks = autoCreatePsks; + return this; + } + + /** + * Whether to enable auto create psks + * @return autoCreatePsks + */ + @ApiModelProperty(required = true, value = "Whether to enable auto create psks") + @NotNull + + + public Boolean getAutoCreatePsks() { + return autoCreatePsks; + } + + public void setAutoCreatePsks(Boolean autoCreatePsks) { + this.autoCreatePsks = autoCreatePsks; + } + + public PpskProfileV2 ppsk(List ppsk) { + this.ppsk = ppsk; + return this; + } + + public PpskProfileV2 addPpskItem(PpskSettingV2 ppskItem) { + if (this.ppsk == null) { + this.ppsk = new ArrayList<>(); + } + this.ppsk.add(ppskItem); + return this; + } + + /** + * This field is required when Parameter [autoCreatePsks] is false; PPSK List In the PPSK Profile + * @return ppsk + */ + @ApiModelProperty(value = "This field is required when Parameter [autoCreatePsks] is false; PPSK List In the PPSK Profile") + + @Valid + + public List getPpsk() { + return ppsk; + } + + public void setPpsk(List ppsk) { + this.ppsk = ppsk; + } + + public PpskProfileV2 number(Integer number) { + this.number = number; + return this; + } + + /** + * This field is required when Parameter [autoCreatePsks] is true; Generate Number, should be within the range of 1-1024. + * @return number + */ + @ApiModelProperty(value = "This field is required when Parameter [autoCreatePsks] is true; Generate Number, should be within the range of 1-1024.") + + + public Integer getNumber() { + return number; + } + + public void setNumber(Integer number) { + this.number = number; + } + + public PpskProfileV2 prefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * This field is required when Parameter [autoCreatePsks] is true; PSK Name Prefix, should contain 1 to 60 visible ASCII characters. + * @return prefix + */ + @ApiModelProperty(value = "This field is required when Parameter [autoCreatePsks] is true; PSK Name Prefix, should contain 1 to 60 visible ASCII characters.") + +@Pattern(regexp="^[a-zA-z0-9'!\"#$%&()*,./:;?^_`\\[\\]{|}~<>\\ ][\\041-\\0176]{0,59}$") + public String getPrefix() { + return prefix; + } + + public void setPrefix(String prefix) { + this.prefix = prefix; + } + + public PpskProfileV2 length(Integer length) { + this.length = length; + return this; + } + + /** + * This field is required when Parameter [autoCreatePsks] is true; PSK Password Length, should be within the range of 8-63. + * @return length + */ + @ApiModelProperty(value = "This field is required when Parameter [autoCreatePsks] is true; PSK Password Length, should be within the range of 8-63.") + + + public Integer getLength() { + return length; + } + + public void setLength(Integer length) { + this.length = length; + } + + public PpskProfileV2 vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * This field is required when Parameter [autoCreatePsks] is true; PSK Bound Vlan, should be within the range of 1-4094. + * @return vlan + */ + @ApiModelProperty(value = "This field is required when Parameter [autoCreatePsks] is true; PSK Bound Vlan, should be within the range of 1-4094.") + + + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PpskProfileV2 ppskProfileV2 = (PpskProfileV2) o; + return Objects.equals(this.profileName, ppskProfileV2.profileName) && + Objects.equals(this.autoCreatePsks, ppskProfileV2.autoCreatePsks) && + Objects.equals(this.ppsk, ppskProfileV2.ppsk) && + Objects.equals(this.number, ppskProfileV2.number) && + Objects.equals(this.prefix, ppskProfileV2.prefix) && + Objects.equals(this.length, ppskProfileV2.length) && + Objects.equals(this.vlan, ppskProfileV2.vlan); + } + + @Override + public int hashCode() { + return Objects.hash(profileName, autoCreatePsks, ppsk, number, prefix, length, vlan); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PpskProfileV2 {\n"); + + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" autoCreatePsks: ").append(toIndentedString(autoCreatePsks)).append("\n"); + sb.append(" ppsk: ").append(toIndentedString(ppsk)).append("\n"); + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" length: ").append(toIndentedString(length)).append("\n"); + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileVo.java new file mode 100644 index 0000000..ad9ee1c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskProfileVo.java @@ -0,0 +1,224 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * PpskProfileVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PpskProfileVo { + @JsonProperty("id") + private String id; + + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("ssid") + @Valid + private List ssid = null; + + @JsonProperty("ppsk") + @Valid + private List ppsk = new ArrayList<>(); + + @JsonProperty("type") + private Integer type; + + @JsonProperty("resource") + private Integer resource; + + public PpskProfileVo id(String id) { + this.id = id; + return this; + } + + /** + * PPSK Profile ID + * @return id + */ + @ApiModelProperty(value = "PPSK Profile ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public PpskProfileVo profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * PPSK Profile Name + * @return profileName + */ + @ApiModelProperty(required = true, value = "PPSK Profile Name") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,62}[^ ]$") + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public PpskProfileVo ssid(List ssid) { + this.ssid = ssid; + return this; + } + + public PpskProfileVo addSsidItem(String ssidItem) { + if (this.ssid == null) { + this.ssid = new ArrayList<>(); + } + this.ssid.add(ssidItem); + return this; + } + + /** + * Ssid List Bound With PPSK Profile + * @return ssid + */ + @ApiModelProperty(value = "Ssid List Bound With PPSK Profile") + + + public List getSsid() { + return ssid; + } + + public void setSsid(List ssid) { + this.ssid = ssid; + } + + public PpskProfileVo ppsk(List ppsk) { + this.ppsk = ppsk; + return this; + } + + public PpskProfileVo addPpskItem(Pskvo ppskItem) { + this.ppsk.add(ppskItem); + return this; + } + + /** + * PSK List In the PPSK Profile + * @return ppsk + */ + @ApiModelProperty(required = true, value = "PSK List In the PPSK Profile") + @NotNull + + @Valid + + public List getPpsk() { + return ppsk; + } + + public void setPpsk(List ppsk) { + this.ppsk = ppsk; + } + + public PpskProfileVo type(Integer type) { + this.type = type; + return this; + } + + /** + * PPSK Profile type: 0:PPSK Without RADIUS; 1: PPSK With Built-In RADIUS. + * @return type + */ + @ApiModelProperty(value = "PPSK Profile type: 0:PPSK Without RADIUS; 1: PPSK With Built-In RADIUS.") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public PpskProfileVo resource(Integer resource) { + this.resource = resource; + return this; + } + + /** + * Get resource + * @return resource + */ + @ApiModelProperty(value = "") + + + public Integer getResource() { + return resource; + } + + public void setResource(Integer resource) { + this.resource = resource; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PpskProfileVo ppskProfileVo = (PpskProfileVo) o; + return Objects.equals(this.id, ppskProfileVo.id) && + Objects.equals(this.profileName, ppskProfileVo.profileName) && + Objects.equals(this.ssid, ppskProfileVo.ssid) && + Objects.equals(this.ppsk, ppskProfileVo.ppsk) && + Objects.equals(this.type, ppskProfileVo.type) && + Objects.equals(this.resource, ppskProfileVo.resource); + } + + @Override + public int hashCode() { + return Objects.hash(id, profileName, ssid, ppsk, type, resource); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PpskProfileVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" ssid: ").append(toIndentedString(ssid)).append("\n"); + sb.append(" ppsk: ").append(toIndentedString(ppsk)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" resource: ").append(toIndentedString(resource)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskSetting.java new file mode 100644 index 0000000..da044f6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskSetting.java @@ -0,0 +1,157 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * PPSK Profile's PPSK Setting. + */ +@ApiModel(description = "PPSK Profile's PPSK Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PpskSetting { + @JsonProperty("name") + private String name; + + @JsonProperty("psk") + private String psk; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("vlan") + private Integer vlan; + + public PpskSetting name(String name) { + this.name = name; + return this; + } + + /** + * PPSK Name, should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "PPSK Name, should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[a-zA-z0-9'!\"#$%&()*,./:;?^_`\\[\\]{|}~<>\\ ][\\041-\\0176]{0,63}$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PpskSetting psk(String psk) { + this.psk = psk; + return this; + } + + /** + * Password, should contain 8 to 63 visible ASCII characters. + * @return psk + */ + @ApiModelProperty(required = true, value = "Password, should contain 8 to 63 visible ASCII characters.") + @NotNull + +@Pattern(regexp="^([A-Za-z0-9\\p{Punct} ]{8,63}|[0-9a-fA-F]{8,63})$") + public String getPsk() { + return psk; + } + + public void setPsk(String psk) { + this.psk = psk; + } + + public PpskSetting mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Mac Bound With PSK.The MAC format requires the use of numbers and uppercase letters and connectors, such as AA-BB-CC-00-11-22. + * @return mac + */ + @ApiModelProperty(value = "Mac Bound With PSK.The MAC format requires the use of numbers and uppercase letters and connectors, such as AA-BB-CC-00-11-22.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public PpskSetting vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * Vlan Bound With PSK, should be within the range of 1-4094. + * @return vlan + */ + @ApiModelProperty(value = "Vlan Bound With PSK, should be within the range of 1-4094.") + + + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PpskSetting ppskSetting = (PpskSetting) o; + return Objects.equals(this.name, ppskSetting.name) && + Objects.equals(this.psk, ppskSetting.psk) && + Objects.equals(this.mac, ppskSetting.mac) && + Objects.equals(this.vlan, ppskSetting.vlan); + } + + @Override + public int hashCode() { + return Objects.hash(name, psk, mac, vlan); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PpskSetting {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" psk: ").append(toIndentedString(psk)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskSettingV2.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskSettingV2.java new file mode 100644 index 0000000..bcc8bd0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/PpskSettingV2.java @@ -0,0 +1,157 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * This field is required when Parameter [autoCreatePsks] is false; PPSK List In the PPSK Profile + */ +@ApiModel(description = "This field is required when Parameter [autoCreatePsks] is false; PPSK List In the PPSK Profile") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class PpskSettingV2 { + @JsonProperty("name") + private String name; + + @JsonProperty("psk") + private String psk; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("vlan") + private Integer vlan; + + public PpskSettingV2 name(String name) { + this.name = name; + return this; + } + + /** + * PPSK Name, should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "PPSK Name, should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[a-zA-z0-9'!\"#$%&()*,./:;?^_`\\[\\]{|}~<>\\ ][\\041-\\0176]{0,63}$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public PpskSettingV2 psk(String psk) { + this.psk = psk; + return this; + } + + /** + * Password, should contain 8 to 63 visible ASCII characters. + * @return psk + */ + @ApiModelProperty(required = true, value = "Password, should contain 8 to 63 visible ASCII characters.") + @NotNull + +@Pattern(regexp="^([A-Za-z0-9\\p{Punct} ]{8,63}|[0-9a-fA-F]{8,63})$") + public String getPsk() { + return psk; + } + + public void setPsk(String psk) { + this.psk = psk; + } + + public PpskSettingV2 mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Mac Bound With PSK.The MAC format requires the use of numbers and uppercase letters and connectors, such as AA-BB-CC-00-11-22. + * @return mac + */ + @ApiModelProperty(value = "Mac Bound With PSK.The MAC format requires the use of numbers and uppercase letters and connectors, such as AA-BB-CC-00-11-22.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public PpskSettingV2 vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * Vlan Bound With PSK, should be within the range of 1-4094. + * @return vlan + */ + @ApiModelProperty(value = "Vlan Bound With PSK, should be within the range of 1-4094.") + + + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + PpskSettingV2 ppskSettingV2 = (PpskSettingV2) o; + return Objects.equals(this.name, ppskSettingV2.name) && + Objects.equals(this.psk, ppskSettingV2.psk) && + Objects.equals(this.mac, ppskSettingV2.mac) && + Objects.equals(this.vlan, ppskSettingV2.vlan); + } + + @Override + public int hashCode() { + return Objects.hash(name, psk, mac, vlan); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class PpskSettingV2 {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" psk: ").append(toIndentedString(psk)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProfilesBindedDeviceInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProfilesBindedDeviceInfo.java new file mode 100644 index 0000000..219d0bd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProfilesBindedDeviceInfo.java @@ -0,0 +1,238 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ProfilesBindedDeviceInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ProfilesBindedDeviceInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("deviceName") + private String deviceName; + + @JsonProperty("deviceMac") + private String deviceMac; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + @JsonProperty("type") + private String type; + + @JsonProperty("profileNames") + @Valid + private List profileNames = null; + + public ProfilesBindedDeviceInfo id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @ApiModelProperty(value = "") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public ProfilesBindedDeviceInfo deviceName(String deviceName) { + this.deviceName = deviceName; + return this; + } + + /** + * Device name. + * @return deviceName + */ + @ApiModelProperty(value = "Device name.") + + + public String getDeviceName() { + return deviceName; + } + + public void setDeviceName(String deviceName) { + this.deviceName = deviceName; + } + + public ProfilesBindedDeviceInfo deviceMac(String deviceMac) { + this.deviceMac = deviceMac; + return this; + } + + /** + * Device MAC. + * @return deviceMac + */ + @ApiModelProperty(value = "Device MAC.") + + + public String getDeviceMac() { + return deviceMac; + } + + public void setDeviceMac(String deviceMac) { + this.deviceMac = deviceMac; + } + + public ProfilesBindedDeviceInfo model(String model) { + this.model = model; + return this; + } + + /** + * Device model name + * @return model + */ + @ApiModelProperty(value = "Device model name") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public ProfilesBindedDeviceInfo modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Device model version + * @return modelVersion + */ + @ApiModelProperty(value = "Device model version") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public ProfilesBindedDeviceInfo type(String type) { + this.type = type; + return this; + } + + /** + * Device type + * @return type + */ + @ApiModelProperty(value = "Device type") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public ProfilesBindedDeviceInfo profileNames(List profileNames) { + this.profileNames = profileNames; + return this; + } + + public ProfilesBindedDeviceInfo addProfileNamesItem(String profileNamesItem) { + if (this.profileNames == null) { + this.profileNames = new ArrayList<>(); + } + this.profileNames.add(profileNamesItem); + return this; + } + + /** + * Profile names binded to the device. + * @return profileNames + */ + @ApiModelProperty(value = "Profile names binded to the device.") + + + public List getProfileNames() { + return profileNames; + } + + public void setProfileNames(List profileNames) { + this.profileNames = profileNames; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProfilesBindedDeviceInfo profilesBindedDeviceInfo = (ProfilesBindedDeviceInfo) o; + return Objects.equals(this.id, profilesBindedDeviceInfo.id) && + Objects.equals(this.deviceName, profilesBindedDeviceInfo.deviceName) && + Objects.equals(this.deviceMac, profilesBindedDeviceInfo.deviceMac) && + Objects.equals(this.model, profilesBindedDeviceInfo.model) && + Objects.equals(this.modelVersion, profilesBindedDeviceInfo.modelVersion) && + Objects.equals(this.type, profilesBindedDeviceInfo.type) && + Objects.equals(this.profileNames, profilesBindedDeviceInfo.profileNames); + } + + @Override + public int hashCode() { + return Objects.hash(id, deviceName, deviceMac, model, modelVersion, type, profileNames); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProfilesBindedDeviceInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" deviceName: ").append(toIndentedString(deviceName)).append("\n"); + sb.append(" deviceMac: ").append(toIndentedString(deviceMac)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" profileNames: ").append(toIndentedString(profileNames)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProviderProfileEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProviderProfileEntity.java new file mode 100644 index 0000000..ab71079 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProviderProfileEntity.java @@ -0,0 +1,178 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * ProviderProfileEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ProviderProfileEntity { + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("omadacId") + private String omadacId; + + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("providerSettings") + private ProviderSettingVo providerSettings; + + public ProviderProfileEntity profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Provider profile ID + * @return profileId + */ + @ApiModelProperty(value = "Provider profile ID") + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public ProviderProfileEntity omadacId(String omadacId) { + this.omadacId = omadacId; + return this; + } + + /** + * Omadac ID + * @return omadacId + */ + @ApiModelProperty(value = "Omadac ID") + + + public String getOmadacId() { + return omadacId; + } + + public void setOmadacId(String omadacId) { + this.omadacId = omadacId; + } + + public ProviderProfileEntity siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID + * @return siteId + */ + @ApiModelProperty(value = "Site ID") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public ProviderProfileEntity profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Provider profile name + * @return profileName + */ + @ApiModelProperty(value = "Provider profile name") + + + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public ProviderProfileEntity providerSettings(ProviderSettingVo providerSettings) { + this.providerSettings = providerSettings; + return this; + } + + /** + * Get providerSettings + * @return providerSettings + */ + @ApiModelProperty(value = "") + + @Valid + + public ProviderSettingVo getProviderSettings() { + return providerSettings; + } + + public void setProviderSettings(ProviderSettingVo providerSettings) { + this.providerSettings = providerSettings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProviderProfileEntity providerProfileEntity = (ProviderProfileEntity) o; + return Objects.equals(this.profileId, providerProfileEntity.profileId) && + Objects.equals(this.omadacId, providerProfileEntity.omadacId) && + Objects.equals(this.siteId, providerProfileEntity.siteId) && + Objects.equals(this.profileName, providerProfileEntity.profileName) && + Objects.equals(this.providerSettings, providerProfileEntity.providerSettings); + } + + @Override + public int hashCode() { + return Objects.hash(profileId, omadacId, siteId, profileName, providerSettings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProviderProfileEntity {\n"); + + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" omadacId: ").append(toIndentedString(omadacId)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" providerSettings: ").append(toIndentedString(providerSettings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProviderSettingVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProviderSettingVo.java new file mode 100644 index 0000000..4d795ac --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ProviderSettingVo.java @@ -0,0 +1,182 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Telephony provider settings + */ +@ApiModel(description = "Telephony provider settings") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ProviderSettingVo { + @JsonProperty("provider") + private Integer provider; + + @JsonProperty("registrarAddress") + private String registrarAddress; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + @JsonProperty("portSettings") + private PortSettingVo portSettings; + + public ProviderSettingVo provider(Integer provider) { + this.provider = provider; + return this; + } + + /** + * The telephony providers supported. The range is between 0 and 13. 0: Other Provider; 1: 1 & 1 Internet; 2: Congstar; 3: Vodafone/Arcor; 4: DUS.net; 5: Easybell; 6: Kabel Deutschland; 7: QSC/Q-DSL home; 8: Sipgate.de; 9: Sipgate Team; 10: Sipload; 11: Ventengo; 12: Telekom; 13: Bellsip. The default value is 0. + * @return provider + */ + @ApiModelProperty(required = true, value = "The telephony providers supported. The range is between 0 and 13. 0: Other Provider; 1: 1 & 1 Internet; 2: Congstar; 3: Vodafone/Arcor; 4: DUS.net; 5: Easybell; 6: Kabel Deutschland; 7: QSC/Q-DSL home; 8: Sipgate.de; 9: Sipgate Team; 10: Sipload; 11: Ventengo; 12: Telekom; 13: Bellsip. The default value is 0.") + @NotNull + + + public Integer getProvider() { + return provider; + } + + public void setProvider(Integer provider) { + this.provider = provider; + } + + public ProviderSettingVo registrarAddress(String registrarAddress) { + this.registrarAddress = registrarAddress; + return this; + } + + /** + * When parameter [provider] is a value in[0, 6], parameter [registrarAddress] should not be null. + * @return registrarAddress + */ + @ApiModelProperty(value = "When parameter [provider] is a value in[0, 6], parameter [registrarAddress] should not be null.") + + + public String getRegistrarAddress() { + return registrarAddress; + } + + public void setRegistrarAddress(String registrarAddress) { + this.registrarAddress = registrarAddress; + } + + public ProviderSettingVo username(String username) { + this.username = username; + return this; + } + + /** + * When parameter [provider] is a value in [0, 2, 4, 5, 8, 9, 10, 11, 12, 13], parameter [username] should not be null. + * @return username + */ + @ApiModelProperty(value = "When parameter [provider] is a value in [0, 2, 4, 5, 8, 9, 10, 11, 12, 13], parameter [username] should not be null.") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public ProviderSettingVo password(String password) { + this.password = password; + return this; + } + + /** + * Get password + * @return password + */ + @ApiModelProperty(value = "") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public ProviderSettingVo portSettings(PortSettingVo portSettings) { + this.portSettings = portSettings; + return this; + } + + /** + * Get portSettings + * @return portSettings + */ + @ApiModelProperty(value = "") + + @Valid + + public PortSettingVo getPortSettings() { + return portSettings; + } + + public void setPortSettings(PortSettingVo portSettings) { + this.portSettings = portSettings; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ProviderSettingVo providerSettingVo = (ProviderSettingVo) o; + return Objects.equals(this.provider, providerSettingVo.provider) && + Objects.equals(this.registrarAddress, providerSettingVo.registrarAddress) && + Objects.equals(this.username, providerSettingVo.username) && + Objects.equals(this.password, providerSettingVo.password) && + Objects.equals(this.portSettings, providerSettingVo.portSettings); + } + + @Override + public int hashCode() { + return Objects.hash(provider, registrarAddress, username, password, portSettings); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ProviderSettingVo {\n"); + + sb.append(" provider: ").append(toIndentedString(provider)).append("\n"); + sb.append(" registrarAddress: ").append(toIndentedString(registrarAddress)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" portSettings: ").append(toIndentedString(portSettings)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Psk.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Psk.java new file mode 100644 index 0000000..ad4adb8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Psk.java @@ -0,0 +1,136 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Max; +import javax.validation.constraints.Min; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Auto Created PSKs. + */ +@ApiModel(description = "Auto Created PSKs.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Psk { + @JsonProperty("name") + private String name; + + @JsonProperty("psk") + private String psk; + + @JsonProperty("vlan") + private Integer vlan; + + public Psk name(String name) { + this.name = name; + return this; + } + + /** + * PSK Name + * @return name + */ + @ApiModelProperty(required = true, value = "PSK Name") + @NotNull + +@Pattern(regexp="^[a-zA-z0-9'!\"#$%&()*,./:;?^_`\\[\\]{|}~<>\\ ][\\041-\\0176]{0,63}$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Psk psk(String psk) { + this.psk = psk; + return this; + } + + /** + * Password + * @return psk + */ + @ApiModelProperty(required = true, value = "Password") + @NotNull + +@Pattern(regexp="^([A-Za-z0-9\\p{Punct} ]{8,63}|[0-9a-fA-F]{8,63})$") + public String getPsk() { + return psk; + } + + public void setPsk(String psk) { + this.psk = psk; + } + + public Psk vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * Vlan Bound With PSK + * minimum: 1 + * maximum: 4094 + * @return vlan + */ + @ApiModelProperty(value = "Vlan Bound With PSK") + +@Min(1) @Max(4094) + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Psk psk = (Psk) o; + return Objects.equals(this.name, psk.name) && + Objects.equals(this.psk, psk.psk) && + Objects.equals(this.vlan, psk.vlan); + } + + @Override + public int hashCode() { + return Objects.hash(name, psk, vlan); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Psk {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" psk: ").append(toIndentedString(psk)).append("\n"); + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Pskvo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Pskvo.java new file mode 100644 index 0000000..2cc9362 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/Pskvo.java @@ -0,0 +1,161 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Max; +import javax.validation.constraints.Min; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * PSK List In the PPSK Profile + */ +@ApiModel(description = "PSK List In the PPSK Profile") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class Pskvo { + @JsonProperty("name") + private String name; + + @JsonProperty("psk") + private String psk; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("vlan") + private Integer vlan; + + public Pskvo name(String name) { + this.name = name; + return this; + } + + /** + * PSK Name + * @return name + */ + @ApiModelProperty(required = true, value = "PSK Name") + @NotNull + +@Pattern(regexp="^[a-zA-z0-9'!\"#$%&()*,./:;?^_`\\[\\]{|}~<>\\ ][\\041-\\0176]{0,63}$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public Pskvo psk(String psk) { + this.psk = psk; + return this; + } + + /** + * Password + * @return psk + */ + @ApiModelProperty(required = true, value = "Password") + @NotNull + +@Pattern(regexp="^([A-Za-z0-9\\p{Punct} ]{8,63}|[0-9a-fA-F]{8,63})$") + public String getPsk() { + return psk; + } + + public void setPsk(String psk) { + this.psk = psk; + } + + public Pskvo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Mac Bound With PSK + * @return mac + */ + @ApiModelProperty(value = "Mac Bound With PSK") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public Pskvo vlan(Integer vlan) { + this.vlan = vlan; + return this; + } + + /** + * Vlan Bound With PSK + * minimum: 1 + * maximum: 4094 + * @return vlan + */ + @ApiModelProperty(value = "Vlan Bound With PSK") + +@Min(1) @Max(4094) + public Integer getVlan() { + return vlan; + } + + public void setVlan(Integer vlan) { + this.vlan = vlan; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + Pskvo pskvo = (Pskvo) o; + return Objects.equals(this.name, pskvo.name) && + Objects.equals(this.psk, pskvo.psk) && + Objects.equals(this.mac, pskvo.mac) && + Objects.equals(this.vlan, pskvo.vlan); + } + + @Override + public int hashCode() { + return Objects.hash(name, psk, mac, vlan); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class Pskvo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" psk: ").append(toIndentedString(psk)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" vlan: ").append(toIndentedString(vlan)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcDetailOpenApiVo.java new file mode 100644 index 0000000..bfeaffa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcDetailOpenApiVo.java @@ -0,0 +1,313 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * QosBwcDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class QosBwcDetailOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("wan") + private String wan; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("udpBandwidthCtrl") + private Boolean udpBandwidthCtrl; + + @JsonProperty("udpRatio") + private Integer udpRatio; + + @JsonProperty("outPrioritization") + private Boolean outPrioritization; + + @JsonProperty("direction") + private Integer direction; + + @JsonProperty("inBandwidth") + private Integer inBandwidth; + + @JsonProperty("outBandwidth") + private Integer outBandwidth; + + @JsonProperty("classRatio") + @Valid + private List classRatio = null; + + public QosBwcDetailOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * The ID of Bandwidth Control rule. + * @return id + */ + @ApiModelProperty(value = "The ID of Bandwidth Control rule.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public QosBwcDetailOpenApiVo wan(String wan) { + this.wan = wan; + return this; + } + + /** + * The ID of WAN port to which this Bandwidth Control applies. + * @return wan + */ + @ApiModelProperty(value = "The ID of WAN port to which this Bandwidth Control applies.") + + + public String getWan() { + return wan; + } + + public void setWan(String wan) { + this.wan = wan; + } + + public QosBwcDetailOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * The status of Bandwidth Control rule, valid values are true or false. + * @return status + */ + @ApiModelProperty(value = "The status of Bandwidth Control rule, valid values are true or false.") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public QosBwcDetailOpenApiVo udpBandwidthCtrl(Boolean udpBandwidthCtrl) { + this.udpBandwidthCtrl = udpBandwidthCtrl; + return this; + } + + /** + * The UDP Bandwidth Control of Bandwidth Control rule, valid values are true or false. + * @return udpBandwidthCtrl + */ + @ApiModelProperty(value = "The UDP Bandwidth Control of Bandwidth Control rule, valid values are true or false.") + + + public Boolean getUdpBandwidthCtrl() { + return udpBandwidthCtrl; + } + + public void setUdpBandwidthCtrl(Boolean udpBandwidthCtrl) { + this.udpBandwidthCtrl = udpBandwidthCtrl; + } + + public QosBwcDetailOpenApiVo udpRatio(Integer udpRatio) { + this.udpRatio = udpRatio; + return this; + } + + /** + * The Limited Bandwidth Ratio of Bandwidth Control rule. It should be within the range of 0-100 when parameter [udpBandwidthCtrl] is true. + * @return udpRatio + */ + @ApiModelProperty(value = "The Limited Bandwidth Ratio of Bandwidth Control rule. It should be within the range of 0-100 when parameter [udpBandwidthCtrl] is true.") + + + public Integer getUdpRatio() { + return udpRatio; + } + + public void setUdpRatio(Integer udpRatio) { + this.udpRatio = udpRatio; + } + + public QosBwcDetailOpenApiVo outPrioritization(Boolean outPrioritization) { + this.outPrioritization = outPrioritization; + return this; + } + + /** + * The Outbound TCP ACK Prioritize of Bandwidth Control rule, valid values are true or false. + * @return outPrioritization + */ + @ApiModelProperty(value = "The Outbound TCP ACK Prioritize of Bandwidth Control rule, valid values are true or false.") + + + public Boolean getOutPrioritization() { + return outPrioritization; + } + + public void setOutPrioritization(Boolean outPrioritization) { + this.outPrioritization = outPrioritization; + } + + public QosBwcDetailOpenApiVo direction(Integer direction) { + this.direction = direction; + return this; + } + + /** + * The direction value selected in the Direction configuration should be a value as follows: 0: Inbound; 1: Outbound; 2: Both. + * @return direction + */ + @ApiModelProperty(value = "The direction value selected in the Direction configuration should be a value as follows: 0: Inbound; 1: Outbound; 2: Both.") + + + public Integer getDirection() { + return direction; + } + + public void setDirection(Integer direction) { + this.direction = direction; + } + + public QosBwcDetailOpenApiVo inBandwidth(Integer inBandwidth) { + this.inBandwidth = inBandwidth; + return this; + } + + /** + * The Inbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000. + * @return inBandwidth + */ + @ApiModelProperty(value = "The Inbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000.") + + + public Integer getInBandwidth() { + return inBandwidth; + } + + public void setInBandwidth(Integer inBandwidth) { + this.inBandwidth = inBandwidth; + } + + public QosBwcDetailOpenApiVo outBandwidth(Integer outBandwidth) { + this.outBandwidth = outBandwidth; + return this; + } + + /** + * The Outbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000. + * @return outBandwidth + */ + @ApiModelProperty(value = "The Outbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000.") + + + public Integer getOutBandwidth() { + return outBandwidth; + } + + public void setOutBandwidth(Integer outBandwidth) { + this.outBandwidth = outBandwidth; + } + + public QosBwcDetailOpenApiVo classRatio(List classRatio) { + this.classRatio = classRatio; + return this; + } + + public QosBwcDetailOpenApiVo addClassRatioItem(Integer classRatioItem) { + if (this.classRatio == null) { + this.classRatio = new ArrayList<>(); + } + this.classRatio.add(classRatioItem); + return this; + } + + /** + * The ratio of class type, value's format is [class1 ratio, class2 ratio, class3 ratio, others ratio]. + * @return classRatio + */ + @ApiModelProperty(value = "The ratio of class type, value's format is [class1 ratio, class2 ratio, class3 ratio, others ratio].") + + + public List getClassRatio() { + return classRatio; + } + + public void setClassRatio(List classRatio) { + this.classRatio = classRatio; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QosBwcDetailOpenApiVo qosBwcDetailOpenApiVo = (QosBwcDetailOpenApiVo) o; + return Objects.equals(this.id, qosBwcDetailOpenApiVo.id) && + Objects.equals(this.wan, qosBwcDetailOpenApiVo.wan) && + Objects.equals(this.status, qosBwcDetailOpenApiVo.status) && + Objects.equals(this.udpBandwidthCtrl, qosBwcDetailOpenApiVo.udpBandwidthCtrl) && + Objects.equals(this.udpRatio, qosBwcDetailOpenApiVo.udpRatio) && + Objects.equals(this.outPrioritization, qosBwcDetailOpenApiVo.outPrioritization) && + Objects.equals(this.direction, qosBwcDetailOpenApiVo.direction) && + Objects.equals(this.inBandwidth, qosBwcDetailOpenApiVo.inBandwidth) && + Objects.equals(this.outBandwidth, qosBwcDetailOpenApiVo.outBandwidth) && + Objects.equals(this.classRatio, qosBwcDetailOpenApiVo.classRatio); + } + + @Override + public int hashCode() { + return Objects.hash(id, wan, status, udpBandwidthCtrl, udpRatio, outPrioritization, direction, inBandwidth, outBandwidth, classRatio); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QosBwcDetailOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" wan: ").append(toIndentedString(wan)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" udpBandwidthCtrl: ").append(toIndentedString(udpBandwidthCtrl)).append("\n"); + sb.append(" udpRatio: ").append(toIndentedString(udpRatio)).append("\n"); + sb.append(" outPrioritization: ").append(toIndentedString(outPrioritization)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" inBandwidth: ").append(toIndentedString(inBandwidth)).append("\n"); + sb.append(" outBandwidth: ").append(toIndentedString(outBandwidth)).append("\n"); + sb.append(" classRatio: ").append(toIndentedString(classRatio)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcEditOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcEditOpenApiVo.java new file mode 100644 index 0000000..6aebb18 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcEditOpenApiVo.java @@ -0,0 +1,268 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * QosBwcEditOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class QosBwcEditOpenApiVo { + @JsonProperty("status") + private Boolean status; + + @JsonProperty("udpBandwidthCtrl") + private Boolean udpBandwidthCtrl; + + @JsonProperty("udpRatio") + private Integer udpRatio; + + @JsonProperty("outPrioritization") + private Boolean outPrioritization; + + @JsonProperty("direction") + private Integer direction; + + @JsonProperty("inBandwidth") + private Integer inBandwidth; + + @JsonProperty("outBandwidth") + private Integer outBandwidth; + + @JsonProperty("classRatio") + @Valid + private List classRatio = new ArrayList<>(); + + public QosBwcEditOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * The status of Bandwidth Control rule, valid values is true or false. + * @return status + */ + @ApiModelProperty(required = true, value = "The status of Bandwidth Control rule, valid values is true or false.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public QosBwcEditOpenApiVo udpBandwidthCtrl(Boolean udpBandwidthCtrl) { + this.udpBandwidthCtrl = udpBandwidthCtrl; + return this; + } + + /** + * The UDP Bandwidth Control of Bandwidth Control rule, valid values is true or false. + * @return udpBandwidthCtrl + */ + @ApiModelProperty(required = true, value = "The UDP Bandwidth Control of Bandwidth Control rule, valid values is true or false.") + @NotNull + + + public Boolean getUdpBandwidthCtrl() { + return udpBandwidthCtrl; + } + + public void setUdpBandwidthCtrl(Boolean udpBandwidthCtrl) { + this.udpBandwidthCtrl = udpBandwidthCtrl; + } + + public QosBwcEditOpenApiVo udpRatio(Integer udpRatio) { + this.udpRatio = udpRatio; + return this; + } + + /** + * The Limited Bandwidth Ratio of Bandwidth Control rule. It should be within the range of 0-100 when parameter [udpBandwidthCtrl] is true. + * @return udpRatio + */ + @ApiModelProperty(value = "The Limited Bandwidth Ratio of Bandwidth Control rule. It should be within the range of 0-100 when parameter [udpBandwidthCtrl] is true.") + + + public Integer getUdpRatio() { + return udpRatio; + } + + public void setUdpRatio(Integer udpRatio) { + this.udpRatio = udpRatio; + } + + public QosBwcEditOpenApiVo outPrioritization(Boolean outPrioritization) { + this.outPrioritization = outPrioritization; + return this; + } + + /** + * The Outbound TCP ACK Prioritize of Bandwidth Control rule, valid values is true or false. + * @return outPrioritization + */ + @ApiModelProperty(required = true, value = "The Outbound TCP ACK Prioritize of Bandwidth Control rule, valid values is true or false.") + @NotNull + + + public Boolean getOutPrioritization() { + return outPrioritization; + } + + public void setOutPrioritization(Boolean outPrioritization) { + this.outPrioritization = outPrioritization; + } + + public QosBwcEditOpenApiVo direction(Integer direction) { + this.direction = direction; + return this; + } + + /** + * The direction value selected in the Direction configuration should be a value as follows: 0: Inbound; 1: Outbound; 2: Both. + * @return direction + */ + @ApiModelProperty(required = true, value = "The direction value selected in the Direction configuration should be a value as follows: 0: Inbound; 1: Outbound; 2: Both.") + @NotNull + + + public Integer getDirection() { + return direction; + } + + public void setDirection(Integer direction) { + this.direction = direction; + } + + public QosBwcEditOpenApiVo inBandwidth(Integer inBandwidth) { + this.inBandwidth = inBandwidth; + return this; + } + + /** + * The Inbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000. + * @return inBandwidth + */ + @ApiModelProperty(required = true, value = "The Inbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000.") + @NotNull + + + public Integer getInBandwidth() { + return inBandwidth; + } + + public void setInBandwidth(Integer inBandwidth) { + this.inBandwidth = inBandwidth; + } + + public QosBwcEditOpenApiVo outBandwidth(Integer outBandwidth) { + this.outBandwidth = outBandwidth; + return this; + } + + /** + * The Outbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000. + * @return outBandwidth + */ + @ApiModelProperty(required = true, value = "The Outbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000.") + @NotNull + + + public Integer getOutBandwidth() { + return outBandwidth; + } + + public void setOutBandwidth(Integer outBandwidth) { + this.outBandwidth = outBandwidth; + } + + public QosBwcEditOpenApiVo classRatio(List classRatio) { + this.classRatio = classRatio; + return this; + } + + public QosBwcEditOpenApiVo addClassRatioItem(Integer classRatioItem) { + this.classRatio.add(classRatioItem); + return this; + } + + /** + * The ratio of class type, value's format is [class1 ratio, class2 ratio, class3 ratio, others ratio]. + * @return classRatio + */ + @ApiModelProperty(required = true, value = "The ratio of class type, value's format is [class1 ratio, class2 ratio, class3 ratio, others ratio].") + @NotNull + + + public List getClassRatio() { + return classRatio; + } + + public void setClassRatio(List classRatio) { + this.classRatio = classRatio; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QosBwcEditOpenApiVo qosBwcEditOpenApiVo = (QosBwcEditOpenApiVo) o; + return Objects.equals(this.status, qosBwcEditOpenApiVo.status) && + Objects.equals(this.udpBandwidthCtrl, qosBwcEditOpenApiVo.udpBandwidthCtrl) && + Objects.equals(this.udpRatio, qosBwcEditOpenApiVo.udpRatio) && + Objects.equals(this.outPrioritization, qosBwcEditOpenApiVo.outPrioritization) && + Objects.equals(this.direction, qosBwcEditOpenApiVo.direction) && + Objects.equals(this.inBandwidth, qosBwcEditOpenApiVo.inBandwidth) && + Objects.equals(this.outBandwidth, qosBwcEditOpenApiVo.outBandwidth) && + Objects.equals(this.classRatio, qosBwcEditOpenApiVo.classRatio); + } + + @Override + public int hashCode() { + return Objects.hash(status, udpBandwidthCtrl, udpRatio, outPrioritization, direction, inBandwidth, outBandwidth, classRatio); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QosBwcEditOpenApiVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" udpBandwidthCtrl: ").append(toIndentedString(udpBandwidthCtrl)).append("\n"); + sb.append(" udpRatio: ").append(toIndentedString(udpRatio)).append("\n"); + sb.append(" outPrioritization: ").append(toIndentedString(outPrioritization)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" inBandwidth: ").append(toIndentedString(inBandwidth)).append("\n"); + sb.append(" outBandwidth: ").append(toIndentedString(outBandwidth)).append("\n"); + sb.append(" classRatio: ").append(toIndentedString(classRatio)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcOpenApiVo.java new file mode 100644 index 0000000..09ef2ba --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcOpenApiVo.java @@ -0,0 +1,294 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * QosBwcOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class QosBwcOpenApiVo { + @JsonProperty("wan") + private String wan; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("udpBandwidthCtrl") + private Boolean udpBandwidthCtrl; + + @JsonProperty("udpRatio") + private Integer udpRatio; + + @JsonProperty("outPrioritization") + private Boolean outPrioritization; + + @JsonProperty("direction") + private Integer direction; + + @JsonProperty("inBandwidth") + private Integer inBandwidth; + + @JsonProperty("outBandwidth") + private Integer outBandwidth; + + @JsonProperty("classRatio") + @Valid + private List classRatio = new ArrayList<>(); + + public QosBwcOpenApiVo wan(String wan) { + this.wan = wan; + return this; + } + + /** + * The ID of WAN port to which this Bandwidth Control applies. Each WAN port can only be configured with one rule. WAN ID can be obtained from 'Get WAN ports info for Gateway QoS' interface. + * @return wan + */ + @ApiModelProperty(required = true, value = "The ID of WAN port to which this Bandwidth Control applies. Each WAN port can only be configured with one rule. WAN ID can be obtained from 'Get WAN ports info for Gateway QoS' interface.") + @NotNull + + + public String getWan() { + return wan; + } + + public void setWan(String wan) { + this.wan = wan; + } + + public QosBwcOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * The status of Bandwidth Control rule, valid values are true or false. + * @return status + */ + @ApiModelProperty(required = true, value = "The status of Bandwidth Control rule, valid values are true or false.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public QosBwcOpenApiVo udpBandwidthCtrl(Boolean udpBandwidthCtrl) { + this.udpBandwidthCtrl = udpBandwidthCtrl; + return this; + } + + /** + * The UDP Bandwidth Control of Bandwidth Control rule, valid values are true or false. + * @return udpBandwidthCtrl + */ + @ApiModelProperty(required = true, value = "The UDP Bandwidth Control of Bandwidth Control rule, valid values are true or false.") + @NotNull + + + public Boolean getUdpBandwidthCtrl() { + return udpBandwidthCtrl; + } + + public void setUdpBandwidthCtrl(Boolean udpBandwidthCtrl) { + this.udpBandwidthCtrl = udpBandwidthCtrl; + } + + public QosBwcOpenApiVo udpRatio(Integer udpRatio) { + this.udpRatio = udpRatio; + return this; + } + + /** + * The Limited Bandwidth Ratio of Bandwidth Control rule. It should be within the range of 0-100 when parameter [udpBandwidthCtrl] is true. + * @return udpRatio + */ + @ApiModelProperty(value = "The Limited Bandwidth Ratio of Bandwidth Control rule. It should be within the range of 0-100 when parameter [udpBandwidthCtrl] is true.") + + + public Integer getUdpRatio() { + return udpRatio; + } + + public void setUdpRatio(Integer udpRatio) { + this.udpRatio = udpRatio; + } + + public QosBwcOpenApiVo outPrioritization(Boolean outPrioritization) { + this.outPrioritization = outPrioritization; + return this; + } + + /** + * The Outbound TCP ACK Prioritize of Bandwidth Control rule, valid values are true or false. + * @return outPrioritization + */ + @ApiModelProperty(required = true, value = "The Outbound TCP ACK Prioritize of Bandwidth Control rule, valid values are true or false.") + @NotNull + + + public Boolean getOutPrioritization() { + return outPrioritization; + } + + public void setOutPrioritization(Boolean outPrioritization) { + this.outPrioritization = outPrioritization; + } + + public QosBwcOpenApiVo direction(Integer direction) { + this.direction = direction; + return this; + } + + /** + * The direction value selected in the Direction configuration should be a value as follows: 0: Inbound; 1: Outbound; 2: Both. + * @return direction + */ + @ApiModelProperty(required = true, value = "The direction value selected in the Direction configuration should be a value as follows: 0: Inbound; 1: Outbound; 2: Both.") + @NotNull + + + public Integer getDirection() { + return direction; + } + + public void setDirection(Integer direction) { + this.direction = direction; + } + + public QosBwcOpenApiVo inBandwidth(Integer inBandwidth) { + this.inBandwidth = inBandwidth; + return this; + } + + /** + * The Inbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000. + * @return inBandwidth + */ + @ApiModelProperty(required = true, value = "The Inbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000.") + @NotNull + + + public Integer getInBandwidth() { + return inBandwidth; + } + + public void setInBandwidth(Integer inBandwidth) { + this.inBandwidth = inBandwidth; + } + + public QosBwcOpenApiVo outBandwidth(Integer outBandwidth) { + this.outBandwidth = outBandwidth; + return this; + } + + /** + * The Outbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000. + * @return outBandwidth + */ + @ApiModelProperty(required = true, value = "The Outbound Bandwidth of Bandwidth Control rule should be within the range of 100-1000000.") + @NotNull + + + public Integer getOutBandwidth() { + return outBandwidth; + } + + public void setOutBandwidth(Integer outBandwidth) { + this.outBandwidth = outBandwidth; + } + + public QosBwcOpenApiVo classRatio(List classRatio) { + this.classRatio = classRatio; + return this; + } + + public QosBwcOpenApiVo addClassRatioItem(Integer classRatioItem) { + this.classRatio.add(classRatioItem); + return this; + } + + /** + * The ratio of class type, value's format is [class1 ratio, class2 ratio, class3 ratio, others ratio], and the total sum should be 100. + * @return classRatio + */ + @ApiModelProperty(required = true, value = "The ratio of class type, value's format is [class1 ratio, class2 ratio, class3 ratio, others ratio], and the total sum should be 100.") + @NotNull + + + public List getClassRatio() { + return classRatio; + } + + public void setClassRatio(List classRatio) { + this.classRatio = classRatio; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QosBwcOpenApiVo qosBwcOpenApiVo = (QosBwcOpenApiVo) o; + return Objects.equals(this.wan, qosBwcOpenApiVo.wan) && + Objects.equals(this.status, qosBwcOpenApiVo.status) && + Objects.equals(this.udpBandwidthCtrl, qosBwcOpenApiVo.udpBandwidthCtrl) && + Objects.equals(this.udpRatio, qosBwcOpenApiVo.udpRatio) && + Objects.equals(this.outPrioritization, qosBwcOpenApiVo.outPrioritization) && + Objects.equals(this.direction, qosBwcOpenApiVo.direction) && + Objects.equals(this.inBandwidth, qosBwcOpenApiVo.inBandwidth) && + Objects.equals(this.outBandwidth, qosBwcOpenApiVo.outBandwidth) && + Objects.equals(this.classRatio, qosBwcOpenApiVo.classRatio); + } + + @Override + public int hashCode() { + return Objects.hash(wan, status, udpBandwidthCtrl, udpRatio, outPrioritization, direction, inBandwidth, outBandwidth, classRatio); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QosBwcOpenApiVo {\n"); + + sb.append(" wan: ").append(toIndentedString(wan)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" udpBandwidthCtrl: ").append(toIndentedString(udpBandwidthCtrl)).append("\n"); + sb.append(" udpRatio: ").append(toIndentedString(udpRatio)).append("\n"); + sb.append(" outPrioritization: ").append(toIndentedString(outPrioritization)).append("\n"); + sb.append(" direction: ").append(toIndentedString(direction)).append("\n"); + sb.append(" inBandwidth: ").append(toIndentedString(inBandwidth)).append("\n"); + sb.append(" outBandwidth: ").append(toIndentedString(outBandwidth)).append("\n"); + sb.append(" classRatio: ").append(toIndentedString(classRatio)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcWanInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcWanInfoOpenApiVo.java new file mode 100644 index 0000000..967d854 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QosBwcWanInfoOpenApiVo.java @@ -0,0 +1,126 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * QosBwcWanInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class QosBwcWanInfoOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("configured") + private Boolean configured; + + public QosBwcWanInfoOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * WAN port ID. + * @return id + */ + @ApiModelProperty(value = "WAN port ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public QosBwcWanInfoOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * WAN port name. + * @return name + */ + @ApiModelProperty(value = "WAN port name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public QosBwcWanInfoOpenApiVo configured(Boolean configured) { + this.configured = configured; + return this; + } + + /** + * Whether the port has been configured with QoS Bandwidth Control. + * @return configured + */ + @ApiModelProperty(value = "Whether the port has been configured with QoS Bandwidth Control.") + + + public Boolean getConfigured() { + return configured; + } + + public void setConfigured(Boolean configured) { + this.configured = configured; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QosBwcWanInfoOpenApiVo qosBwcWanInfoOpenApiVo = (QosBwcWanInfoOpenApiVo) o; + return Objects.equals(this.id, qosBwcWanInfoOpenApiVo.id) && + Objects.equals(this.name, qosBwcWanInfoOpenApiVo.name) && + Objects.equals(this.configured, qosBwcWanInfoOpenApiVo.configured); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, configured); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QosBwcWanInfoOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" configured: ").append(toIndentedString(configured)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuerySessionLimitRuleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuerySessionLimitRuleOpenApiVo.java new file mode 100644 index 0000000..228ed65 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuerySessionLimitRuleOpenApiVo.java @@ -0,0 +1,269 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * QuerySessionLimitRuleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class QuerySessionLimitRuleOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("index") + private Integer index; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = null; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("maxSession") + private Integer maxSession; + + public QuerySessionLimitRuleOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * ID of the session limit rule. + * @return id + */ + @ApiModelProperty(value = "ID of the session limit rule.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public QuerySessionLimitRuleOpenApiVo index(Integer index) { + this.index = index; + return this; + } + + /** + * Index of the session limit rule. + * @return index + */ + @ApiModelProperty(value = "Index of the session limit rule.") + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public QuerySessionLimitRuleOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public QuerySessionLimitRuleOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the session limit rule. + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the session limit rule.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public QuerySessionLimitRuleOpenApiVo sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * Source type should be a value as follows: 0: network; 1: IP group; 2: IP. + * @return sourceType + */ + @ApiModelProperty(required = true, value = "Source type should be a value as follows: 0: network; 1: IP group; 2: IP.") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public QuerySessionLimitRuleOpenApiVo sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public QuerySessionLimitRuleOpenApiVo addSourceIdsItem(String sourceIdsItem) { + if (this.sourceIds == null) { + this.sourceIds = new ArrayList<>(); + } + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs of the session limit rule, only for network and IP group type.Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. IP group can be created using 'Create a new group profile' interface, and IP group ID can be obtained from 'Get group profile list' interface. + * @return sourceIds + */ + @ApiModelProperty(value = "Source IDs of the session limit rule, only for network and IP group type.Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. IP group can be created using 'Create a new group profile' interface, and IP group ID can be obtained from 'Get group profile list' interface.") + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public QuerySessionLimitRuleOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP of the session limit rule. + * @return ip + */ + @ApiModelProperty(value = "IP of the session limit rule.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public QuerySessionLimitRuleOpenApiVo maxSession(Integer maxSession) { + this.maxSession = maxSession; + return this; + } + + /** + * Max sessions should be within the range of 1–999999. + * @return maxSession + */ + @ApiModelProperty(required = true, value = "Max sessions should be within the range of 1–999999.") + @NotNull + + + public Integer getMaxSession() { + return maxSession; + } + + public void setMaxSession(Integer maxSession) { + this.maxSession = maxSession; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QuerySessionLimitRuleOpenApiVo querySessionLimitRuleOpenApiVo = (QuerySessionLimitRuleOpenApiVo) o; + return Objects.equals(this.id, querySessionLimitRuleOpenApiVo.id) && + Objects.equals(this.index, querySessionLimitRuleOpenApiVo.index) && + Objects.equals(this.name, querySessionLimitRuleOpenApiVo.name) && + Objects.equals(this.status, querySessionLimitRuleOpenApiVo.status) && + Objects.equals(this.sourceType, querySessionLimitRuleOpenApiVo.sourceType) && + Objects.equals(this.sourceIds, querySessionLimitRuleOpenApiVo.sourceIds) && + Objects.equals(this.ip, querySessionLimitRuleOpenApiVo.ip) && + Objects.equals(this.maxSession, querySessionLimitRuleOpenApiVo.maxSession); + } + + @Override + public int hashCode() { + return Objects.hash(id, index, name, status, sourceType, sourceIds, ip, maxSession); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QuerySessionLimitRuleOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" maxSession: ").append(toIndentedString(maxSession)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUrlFilteringOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUrlFilteringOpenApiVo.java new file mode 100644 index 0000000..839b31a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUrlFilteringOpenApiVo.java @@ -0,0 +1,474 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * QueryUrlFilteringOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class QueryUrlFilteringOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("index") + private Integer index; + + @JsonProperty("type") + private String type; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = new ArrayList<>(); + + @JsonProperty("mode") + private Integer mode; + + @JsonProperty("urls") + @Valid + private List urls = null; + + @JsonProperty("keywords") + @Valid + private List keywords = null; + + @JsonProperty("filterMode") + private Integer filterMode; + + @JsonProperty("scenarioMode") + private Integer scenarioMode; + + @JsonProperty("categories") + @Valid + private Map> categories = null; + + @JsonProperty("timeRange") + private String timeRange; + + public QueryUrlFilteringOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * ID of the URL filtering. + * @return id + */ + @ApiModelProperty(value = "ID of the URL filtering.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public QueryUrlFilteringOpenApiVo index(Integer index) { + this.index = index; + return this; + } + + /** + * Index of the URL filtering. + * @return index + */ + @ApiModelProperty(value = "Index of the URL filtering.") + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public QueryUrlFilteringOpenApiVo type(String type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: \"gateway\"; \"ap\". + * @return type + */ + @ApiModelProperty(required = true, value = "Type should be a value as follows: \"gateway\"; \"ap\".") + @NotNull + +@Pattern(regexp="gateway|ap") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public QueryUrlFilteringOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public QueryUrlFilteringOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the URL filtering. + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the URL filtering.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public QueryUrlFilteringOpenApiVo policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * Policy should be a value as follows: 0: drop; 1: allow. + * @return policy + */ + @ApiModelProperty(required = true, value = "Policy should be a value as follows: 0: drop; 1: allow.") + @NotNull + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public QueryUrlFilteringOpenApiVo sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * Source type should be a value as follows: 0: network; 1: IP group; 2: SSID. + * @return sourceType + */ + @ApiModelProperty(required = true, value = "Source type should be a value as follows: 0: network; 1: IP group; 2: SSID.") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public QueryUrlFilteringOpenApiVo sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public QueryUrlFilteringOpenApiVo addSourceIdsItem(String sourceIdsItem) { + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs of the URL filtering. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. IP group can be created using 'Create a new group profile' interface, and IP group ID can be obtained from 'Get group profile list' interface. SSID can be created using 'Create new SSID' interface, and SSID ID can be obtained from 'Get SSID list' interface. + * @return sourceIds + */ + @ApiModelProperty(required = true, value = "Source IDs of the URL filtering. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. IP group can be created using 'Create a new group profile' interface, and IP group ID can be obtained from 'Get group profile list' interface. SSID can be created using 'Create new SSID' interface, and SSID ID can be obtained from 'Get SSID list' interface.") + @NotNull + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public QueryUrlFilteringOpenApiVo mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Mode should be a value as follows: 0: URL; 1: keyword. + * @return mode + */ + @ApiModelProperty(value = "Mode should be a value as follows: 0: URL; 1: keyword.") + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + public QueryUrlFilteringOpenApiVo urls(List urls) { + this.urls = urls; + return this; + } + + public QueryUrlFilteringOpenApiVo addUrlsItem(String urlsItem) { + if (this.urls == null) { + this.urls = new ArrayList<>(); + } + this.urls.add(urlsItem); + return this; + } + + /** + * URLs of the URL filtering, eg: www.google.com. + * @return urls + */ + @ApiModelProperty(value = "URLs of the URL filtering, eg: www.google.com.") + + + public List getUrls() { + return urls; + } + + public void setUrls(List urls) { + this.urls = urls; + } + + public QueryUrlFilteringOpenApiVo keywords(List keywords) { + this.keywords = keywords; + return this; + } + + public QueryUrlFilteringOpenApiVo addKeywordsItem(String keywordsItem) { + if (this.keywords == null) { + this.keywords = new ArrayList<>(); + } + this.keywords.add(keywordsItem); + return this; + } + + /** + * Keywords of the URL filtering. + * @return keywords + */ + @ApiModelProperty(value = "Keywords of the URL filtering.") + + + public List getKeywords() { + return keywords; + } + + public void setKeywords(List keywords) { + this.keywords = keywords; + } + + public QueryUrlFilteringOpenApiVo filterMode(Integer filterMode) { + this.filterMode = filterMode; + return this; + } + + /** + * filterMode should be a value as follows: 0: URL; 1: category. + * @return filterMode + */ + @ApiModelProperty(required = true, value = "filterMode should be a value as follows: 0: URL; 1: category.") + @NotNull + + + public Integer getFilterMode() { + return filterMode; + } + + public void setFilterMode(Integer filterMode) { + this.filterMode = filterMode; + } + + public QueryUrlFilteringOpenApiVo scenarioMode(Integer scenarioMode) { + this.scenarioMode = scenarioMode; + return this; + } + + /** + * scenarioMode should be a value as follows:0: Custom 1: Family 2:Work 3:Education 4:Guest. + * @return scenarioMode + */ + @ApiModelProperty(value = "scenarioMode should be a value as follows:0: Custom 1: Family 2:Work 3:Education 4:Guest.") + + + public Integer getScenarioMode() { + return scenarioMode; + } + + public void setScenarioMode(Integer scenarioMode) { + this.scenarioMode = scenarioMode; + } + + public QueryUrlFilteringOpenApiVo categories(Map> categories) { + this.categories = categories; + return this; + } + + public QueryUrlFilteringOpenApiVo putCategoriesItem(String key, List categoriesItem) { + if (this.categories == null) { + this.categories = new HashMap<>(); + } + this.categories.put(key, categoriesItem); + return this; + } + + /** + * categories of the URL filtering, TreeMap> categories + * @return categories + */ + @ApiModelProperty(value = "categories of the URL filtering, TreeMap> categories") + + @Valid + + public Map> getCategories() { + return categories; + } + + public void setCategories(Map> categories) { + this.categories = categories; + } + + public QueryUrlFilteringOpenApiVo timeRange(String timeRange) { + this.timeRange = timeRange; + return this; + } + + /** + * timeRange of the URL filtering, TimeSchedule + * @return timeRange + */ + @ApiModelProperty(value = "timeRange of the URL filtering, TimeSchedule") + + + public String getTimeRange() { + return timeRange; + } + + public void setTimeRange(String timeRange) { + this.timeRange = timeRange; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QueryUrlFilteringOpenApiVo queryUrlFilteringOpenApiVo = (QueryUrlFilteringOpenApiVo) o; + return Objects.equals(this.id, queryUrlFilteringOpenApiVo.id) && + Objects.equals(this.index, queryUrlFilteringOpenApiVo.index) && + Objects.equals(this.type, queryUrlFilteringOpenApiVo.type) && + Objects.equals(this.name, queryUrlFilteringOpenApiVo.name) && + Objects.equals(this.status, queryUrlFilteringOpenApiVo.status) && + Objects.equals(this.policy, queryUrlFilteringOpenApiVo.policy) && + Objects.equals(this.sourceType, queryUrlFilteringOpenApiVo.sourceType) && + Objects.equals(this.sourceIds, queryUrlFilteringOpenApiVo.sourceIds) && + Objects.equals(this.mode, queryUrlFilteringOpenApiVo.mode) && + Objects.equals(this.urls, queryUrlFilteringOpenApiVo.urls) && + Objects.equals(this.keywords, queryUrlFilteringOpenApiVo.keywords) && + Objects.equals(this.filterMode, queryUrlFilteringOpenApiVo.filterMode) && + Objects.equals(this.scenarioMode, queryUrlFilteringOpenApiVo.scenarioMode) && + Objects.equals(this.categories, queryUrlFilteringOpenApiVo.categories) && + Objects.equals(this.timeRange, queryUrlFilteringOpenApiVo.timeRange); + } + + @Override + public int hashCode() { + return Objects.hash(id, index, type, name, status, policy, sourceType, sourceIds, mode, urls, keywords, filterMode, scenarioMode, categories, timeRange); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryUrlFilteringOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" urls: ").append(toIndentedString(urls)).append("\n"); + sb.append(" keywords: ").append(toIndentedString(keywords)).append("\n"); + sb.append(" filterMode: ").append(toIndentedString(filterMode)).append("\n"); + sb.append(" scenarioMode: ").append(toIndentedString(scenarioMode)).append("\n"); + sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); + sb.append(" timeRange: ").append(toIndentedString(timeRange)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUseNativeNetworkOswOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUseNativeNetworkOswOpenApiVo.java new file mode 100644 index 0000000..1cb6bdf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUseNativeNetworkOswOpenApiVo.java @@ -0,0 +1,168 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * QueryUseNativeNetworkOswOpenApiVO + */ +@ApiModel(description = "QueryUseNativeNetworkOswOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class QueryUseNativeNetworkOswOpenApiVo { + @JsonProperty("page") + private Integer page; + + @JsonProperty("pageSize") + private Integer pageSize; + + @JsonProperty("selectAll") + private Boolean selectAll; + + @JsonProperty("ids") + @Valid + private List ids = null; + + public QueryUseNativeNetworkOswOpenApiVo page(Integer page) { + this.page = page; + return this; + } + + /** + * Start from 1. + * @return page + */ + @ApiModelProperty(required = true, value = "Start from 1.") + @NotNull + + + public Integer getPage() { + return page; + } + + public void setPage(Integer page) { + this.page = page; + } + + public QueryUseNativeNetworkOswOpenApiVo pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * It should be within the range of 1–1000. + * @return pageSize + */ + @ApiModelProperty(required = true, value = "It should be within the range of 1–1000.") + @NotNull + + + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public QueryUseNativeNetworkOswOpenApiVo selectAll(Boolean selectAll) { + this.selectAll = selectAll; + return this; + } + + /** + * Select all VLAN networks + * @return selectAll + */ + @ApiModelProperty(value = "Select all VLAN networks") + + + public Boolean getSelectAll() { + return selectAll; + } + + public void setSelectAll(Boolean selectAll) { + this.selectAll = selectAll; + } + + public QueryUseNativeNetworkOswOpenApiVo ids(List ids) { + this.ids = ids; + return this; + } + + public QueryUseNativeNetworkOswOpenApiVo addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + /** + * List of VLAN and Interface network IDs. The valid network IDs can be obtained from \"Get LAN network list\". When selectAll is true, it means select all except specified IDs; When selectAll is false, it means select specified IDs. + * @return ids + */ + @ApiModelProperty(value = "List of VLAN and Interface network IDs. The valid network IDs can be obtained from \"Get LAN network list\". When selectAll is true, it means select all except specified IDs; When selectAll is false, it means select specified IDs.") + + + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QueryUseNativeNetworkOswOpenApiVo queryUseNativeNetworkOswOpenApiVo = (QueryUseNativeNetworkOswOpenApiVo) o; + return Objects.equals(this.page, queryUseNativeNetworkOswOpenApiVo.page) && + Objects.equals(this.pageSize, queryUseNativeNetworkOswOpenApiVo.pageSize) && + Objects.equals(this.selectAll, queryUseNativeNetworkOswOpenApiVo.selectAll) && + Objects.equals(this.ids, queryUseNativeNetworkOswOpenApiVo.ids); + } + + @Override + public int hashCode() { + return Objects.hash(page, pageSize, selectAll, ids); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryUseNativeNetworkOswOpenApiVo {\n"); + + sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" selectAll: ").append(toIndentedString(selectAll)).append("\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUseNativeNetworkOswV2OpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUseNativeNetworkOswV2OpenApiVo.java new file mode 100644 index 0000000..83efe42 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QueryUseNativeNetworkOswV2OpenApiVo.java @@ -0,0 +1,169 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * QueryUseNativeNetworkOswV2OpenApiVO + */ +@ApiModel(description = "QueryUseNativeNetworkOswV2OpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class QueryUseNativeNetworkOswV2OpenApiVo { + @JsonProperty("page") + private Integer page; + + @JsonProperty("pageSize") + private Integer pageSize; + + @JsonProperty("selectType") + private String selectType; + + @JsonProperty("ids") + @Valid + private List ids = null; + + public QueryUseNativeNetworkOswV2OpenApiVo page(Integer page) { + this.page = page; + return this; + } + + /** + * Start from 1. + * @return page + */ + @ApiModelProperty(required = true, value = "Start from 1.") + @NotNull + + + public Integer getPage() { + return page; + } + + public void setPage(Integer page) { + this.page = page; + } + + public QueryUseNativeNetworkOswV2OpenApiVo pageSize(Integer pageSize) { + this.pageSize = pageSize; + return this; + } + + /** + * It should be within the range of 1–1000. + * @return pageSize + */ + @ApiModelProperty(required = true, value = "It should be within the range of 1–1000.") + @NotNull + + + public Integer getPageSize() { + return pageSize; + } + + public void setPageSize(Integer pageSize) { + this.pageSize = pageSize; + } + + public QueryUseNativeNetworkOswV2OpenApiVo selectType(String selectType) { + this.selectType = selectType; + return this; + } + + /** + * selectType should be a value as follows: all: select all; include: include ids; exclude: exclude ids. + * @return selectType + */ + @ApiModelProperty(value = "selectType should be a value as follows: all: select all; include: include ids; exclude: exclude ids.") + +@Pattern(regexp="all|include|exclude") + public String getSelectType() { + return selectType; + } + + public void setSelectType(String selectType) { + this.selectType = selectType; + } + + public QueryUseNativeNetworkOswV2OpenApiVo ids(List ids) { + this.ids = ids; + return this; + } + + public QueryUseNativeNetworkOswV2OpenApiVo addIdsItem(String idsItem) { + if (this.ids == null) { + this.ids = new ArrayList<>(); + } + this.ids.add(idsItem); + return this; + } + + /** + * List of VLAN and Interface network IDs. The valid network IDs can be obtained from \"Get LAN network list\". + * @return ids + */ + @ApiModelProperty(value = "List of VLAN and Interface network IDs. The valid network IDs can be obtained from \"Get LAN network list\".") + + + public List getIds() { + return ids; + } + + public void setIds(List ids) { + this.ids = ids; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QueryUseNativeNetworkOswV2OpenApiVo queryUseNativeNetworkOswV2OpenApiVo = (QueryUseNativeNetworkOswV2OpenApiVo) o; + return Objects.equals(this.page, queryUseNativeNetworkOswV2OpenApiVo.page) && + Objects.equals(this.pageSize, queryUseNativeNetworkOswV2OpenApiVo.pageSize) && + Objects.equals(this.selectType, queryUseNativeNetworkOswV2OpenApiVo.selectType) && + Objects.equals(this.ids, queryUseNativeNetworkOswV2OpenApiVo.ids); + } + + @Override + public int hashCode() { + return Objects.hash(page, pageSize, selectType, ids); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QueryUseNativeNetworkOswV2OpenApiVo {\n"); + + sb.append(" page: ").append(toIndentedString(page)).append("\n"); + sb.append(" pageSize: ").append(toIndentedString(pageSize)).append("\n"); + sb.append(" selectType: ").append(toIndentedString(selectType)).append("\n"); + sb.append(" ids: ").append(toIndentedString(ids)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuotaDataSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuotaDataSettingOpenApiVo.java new file mode 100644 index 0000000..ef50bd2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuotaDataSettingOpenApiVo.java @@ -0,0 +1,333 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import javax.validation.constraints.Size; +import java.util.Objects; + +/** + * Data quota setting. + */ +@ApiModel(description = "Data quota setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class QuotaDataSettingOpenApiVo { + @JsonProperty("used") + private Float used; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("startDate") + private Integer startDate; + + @JsonProperty("limit") + private Boolean limit; + + @JsonProperty("credit") + private Float credit; + + @JsonProperty("creditUnit") + private Integer creditUnit; + + @JsonProperty("alert") + private Boolean alert; + + @JsonProperty("usage") + private Integer usage; + + @JsonProperty("countryCode") + private String countryCode; + + @JsonProperty("callingCode") + private String callingCode; + + @JsonProperty("phone") + private String phone; + + public QuotaDataSettingOpenApiVo used(Float used) { + this.used = used; + return this; + } + + /** + * The amount of data usage (KB) in current billing cycle. + * @return used + */ + @ApiModelProperty(value = "The amount of data usage (KB) in current billing cycle.") + + + public Float getUsed() { + return used; + } + + public void setUsed(Float used) { + this.used = used; + } + + public QuotaDataSettingOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Billing cycle type should be a value as follows: 0:total; 1:monthly. + * @return type + */ + @ApiModelProperty(required = true, value = "Billing cycle type should be a value as follows: 0:total; 1:monthly.") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public QuotaDataSettingOpenApiVo startDate(Integer startDate) { + this.startDate = startDate; + return this; + } + + /** + * Start date of monthly billing cycle type, valid date should be within the range of 1–31. + * @return startDate + */ + @ApiModelProperty(value = "Start date of monthly billing cycle type, valid date should be within the range of 1–31.") + + + public Integer getStartDate() { + return startDate; + } + + public void setStartDate(Integer startDate) { + this.startDate = startDate; + } + + public QuotaDataSettingOpenApiVo limit(Boolean limit) { + this.limit = limit; + return this; + } + + /** + * Quota limit is enabled/disabled. + * @return limit + */ + @ApiModelProperty(required = true, value = "Quota limit is enabled/disabled.") + @NotNull + + + public Boolean getLimit() { + return limit; + } + + public void setLimit(Boolean limit) { + this.limit = limit; + } + + public QuotaDataSettingOpenApiVo credit(Float credit) { + this.credit = credit; + return this; + } + + /** + * The amount of data allowance in current billing cycle. + * @return credit + */ + @ApiModelProperty(value = "The amount of data allowance in current billing cycle.") + + + public Float getCredit() { + return credit; + } + + public void setCredit(Float credit) { + this.credit = credit; + } + + public QuotaDataSettingOpenApiVo creditUnit(Integer creditUnit) { + this.creditUnit = creditUnit; + return this; + } + + /** + * Unit for data allowance should be a value as follows: 2:MB; 3:GB. + * @return creditUnit + */ + @ApiModelProperty(value = "Unit for data allowance should be a value as follows: 2:MB; 3:GB.") + + + public Integer getCreditUnit() { + return creditUnit; + } + + public void setCreditUnit(Integer creditUnit) { + this.creditUnit = creditUnit; + } + + public QuotaDataSettingOpenApiVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * SMS alert for usage is enabled/disabled. + * @return alert + */ + @ApiModelProperty(value = "SMS alert for usage is enabled/disabled.") + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + public QuotaDataSettingOpenApiVo usage(Integer usage) { + this.usage = usage; + return this; + } + + /** + * SMS alert for usage when reach percentage of allowance, valid date should be within the range of 0–100. + * @return usage + */ + @ApiModelProperty(value = "SMS alert for usage when reach percentage of allowance, valid date should be within the range of 0–100.") + + + public Integer getUsage() { + return usage; + } + + public void setUsage(Integer usage) { + this.usage = usage; + } + + public QuotaDataSettingOpenApiVo countryCode(String countryCode) { + this.countryCode = countryCode; + return this; + } + + /** + * Country code should contain 2 characters. Country code must be entered when entering the calling code. For the values of Country code, refer to section 5.4.1 of the Open API Access Guide. + * @return countryCode + */ + @ApiModelProperty(value = "Country code should contain 2 characters. Country code must be entered when entering the calling code. For the values of Country code, refer to section 5.4.1 of the Open API Access Guide.") + +@Size(min=2,max=2) + public String getCountryCode() { + return countryCode; + } + + public void setCountryCode(String countryCode) { + this.countryCode = countryCode; + } + + public QuotaDataSettingOpenApiVo callingCode(String callingCode) { + this.callingCode = callingCode; + return this; + } + + /** + * Calling code should contain 2 to 5 characters. Calling code must be entered when entering the country code. For the values of Calling code, refer to section 5.4.1 of the Open API Access Guide. + * @return callingCode + */ + @ApiModelProperty(value = "Calling code should contain 2 to 5 characters. Calling code must be entered when entering the country code. For the values of Calling code, refer to section 5.4.1 of the Open API Access Guide.") + +@Size(min=2,max=5) + public String getCallingCode() { + return callingCode; + } + + public void setCallingCode(String callingCode) { + this.callingCode = callingCode; + } + + public QuotaDataSettingOpenApiVo phone(String phone) { + this.phone = phone; + return this; + } + + /** + * The phone number to receive SMS alerts. + * @return phone + */ + @ApiModelProperty(value = "The phone number to receive SMS alerts.") + +@Pattern(regexp="\\d{4,12}") + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QuotaDataSettingOpenApiVo quotaDataSettingOpenApiVo = (QuotaDataSettingOpenApiVo) o; + return Objects.equals(this.used, quotaDataSettingOpenApiVo.used) && + Objects.equals(this.type, quotaDataSettingOpenApiVo.type) && + Objects.equals(this.startDate, quotaDataSettingOpenApiVo.startDate) && + Objects.equals(this.limit, quotaDataSettingOpenApiVo.limit) && + Objects.equals(this.credit, quotaDataSettingOpenApiVo.credit) && + Objects.equals(this.creditUnit, quotaDataSettingOpenApiVo.creditUnit) && + Objects.equals(this.alert, quotaDataSettingOpenApiVo.alert) && + Objects.equals(this.usage, quotaDataSettingOpenApiVo.usage) && + Objects.equals(this.countryCode, quotaDataSettingOpenApiVo.countryCode) && + Objects.equals(this.callingCode, quotaDataSettingOpenApiVo.callingCode) && + Objects.equals(this.phone, quotaDataSettingOpenApiVo.phone); + } + + @Override + public int hashCode() { + return Objects.hash(used, type, startDate, limit, credit, creditUnit, alert, usage, countryCode, callingCode, phone); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QuotaDataSettingOpenApiVo {\n"); + + sb.append(" used: ").append(toIndentedString(used)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" credit: ").append(toIndentedString(credit)).append("\n"); + sb.append(" creditUnit: ").append(toIndentedString(creditUnit)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); + sb.append(" callingCode: ").append(toIndentedString(callingCode)).append("\n"); + sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuotaSmsSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuotaSmsSettingOpenApiVo.java new file mode 100644 index 0000000..af2a6c4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/QuotaSmsSettingOpenApiVo.java @@ -0,0 +1,308 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import javax.validation.constraints.Size; +import java.util.Objects; + +/** + * SMS quota setting. + */ +@ApiModel(description = "SMS quota setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class QuotaSmsSettingOpenApiVo { + @JsonProperty("used") + private Integer used; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("startDate") + private Integer startDate; + + @JsonProperty("limit") + private Boolean limit; + + @JsonProperty("credit") + private Integer credit; + + @JsonProperty("alert") + private Boolean alert; + + @JsonProperty("usage") + private Integer usage; + + @JsonProperty("countryCode") + private String countryCode; + + @JsonProperty("callingCode") + private String callingCode; + + @JsonProperty("phone") + private String phone; + + public QuotaSmsSettingOpenApiVo used(Integer used) { + this.used = used; + return this; + } + + /** + * The amount of SMS in current billing cycle. + * @return used + */ + @ApiModelProperty(value = "The amount of SMS in current billing cycle.") + + + public Integer getUsed() { + return used; + } + + public void setUsed(Integer used) { + this.used = used; + } + + public QuotaSmsSettingOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Billing cycle type should be a value as follows: 0:total; 1:monthly. + * @return type + */ + @ApiModelProperty(required = true, value = "Billing cycle type should be a value as follows: 0:total; 1:monthly.") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public QuotaSmsSettingOpenApiVo startDate(Integer startDate) { + this.startDate = startDate; + return this; + } + + /** + * Start date of monthly billing cycle type, valid date should be within the range of 1–31. + * @return startDate + */ + @ApiModelProperty(value = "Start date of monthly billing cycle type, valid date should be within the range of 1–31.") + + + public Integer getStartDate() { + return startDate; + } + + public void setStartDate(Integer startDate) { + this.startDate = startDate; + } + + public QuotaSmsSettingOpenApiVo limit(Boolean limit) { + this.limit = limit; + return this; + } + + /** + * Quota limit is enabled/disabled. + * @return limit + */ + @ApiModelProperty(required = true, value = "Quota limit is enabled/disabled.") + @NotNull + + + public Boolean getLimit() { + return limit; + } + + public void setLimit(Boolean limit) { + this.limit = limit; + } + + public QuotaSmsSettingOpenApiVo credit(Integer credit) { + this.credit = credit; + return this; + } + + /** + * The amount of data allowance in current billing cycle, valid date should be within the range of 0–100000. + * @return credit + */ + @ApiModelProperty(value = "The amount of data allowance in current billing cycle, valid date should be within the range of 0–100000.") + + + public Integer getCredit() { + return credit; + } + + public void setCredit(Integer credit) { + this.credit = credit; + } + + public QuotaSmsSettingOpenApiVo alert(Boolean alert) { + this.alert = alert; + return this; + } + + /** + * SMS alert for usage is enabled/disabled. + * @return alert + */ + @ApiModelProperty(value = "SMS alert for usage is enabled/disabled.") + + + public Boolean getAlert() { + return alert; + } + + public void setAlert(Boolean alert) { + this.alert = alert; + } + + public QuotaSmsSettingOpenApiVo usage(Integer usage) { + this.usage = usage; + return this; + } + + /** + * SMS alert for usage when reach percentage of allowance, valid date should be within the range of 0–100. + * @return usage + */ + @ApiModelProperty(value = "SMS alert for usage when reach percentage of allowance, valid date should be within the range of 0–100.") + + + public Integer getUsage() { + return usage; + } + + public void setUsage(Integer usage) { + this.usage = usage; + } + + public QuotaSmsSettingOpenApiVo countryCode(String countryCode) { + this.countryCode = countryCode; + return this; + } + + /** + * Country code should contain 2 characters. Country code must be entered when entering the calling code. For the values of Country code, refer to section 5.4.1 of the Open API Access Guide. + * @return countryCode + */ + @ApiModelProperty(value = "Country code should contain 2 characters. Country code must be entered when entering the calling code. For the values of Country code, refer to section 5.4.1 of the Open API Access Guide.") + +@Size(min=2,max=2) + public String getCountryCode() { + return countryCode; + } + + public void setCountryCode(String countryCode) { + this.countryCode = countryCode; + } + + public QuotaSmsSettingOpenApiVo callingCode(String callingCode) { + this.callingCode = callingCode; + return this; + } + + /** + * Calling code should contain 2 to 5 characters. Calling code must be entered when entering the country code. For the values of Calling code, refer to section 5.4.1 of the Open API Access Guide. + * @return callingCode + */ + @ApiModelProperty(value = "Calling code should contain 2 to 5 characters. Calling code must be entered when entering the country code. For the values of Calling code, refer to section 5.4.1 of the Open API Access Guide.") + +@Size(min=2,max=5) + public String getCallingCode() { + return callingCode; + } + + public void setCallingCode(String callingCode) { + this.callingCode = callingCode; + } + + public QuotaSmsSettingOpenApiVo phone(String phone) { + this.phone = phone; + return this; + } + + /** + * The phone number to receive SMS alerts. + * @return phone + */ + @ApiModelProperty(value = "The phone number to receive SMS alerts.") + +@Pattern(regexp="\\d{4,12}") + public String getPhone() { + return phone; + } + + public void setPhone(String phone) { + this.phone = phone; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + QuotaSmsSettingOpenApiVo quotaSmsSettingOpenApiVo = (QuotaSmsSettingOpenApiVo) o; + return Objects.equals(this.used, quotaSmsSettingOpenApiVo.used) && + Objects.equals(this.type, quotaSmsSettingOpenApiVo.type) && + Objects.equals(this.startDate, quotaSmsSettingOpenApiVo.startDate) && + Objects.equals(this.limit, quotaSmsSettingOpenApiVo.limit) && + Objects.equals(this.credit, quotaSmsSettingOpenApiVo.credit) && + Objects.equals(this.alert, quotaSmsSettingOpenApiVo.alert) && + Objects.equals(this.usage, quotaSmsSettingOpenApiVo.usage) && + Objects.equals(this.countryCode, quotaSmsSettingOpenApiVo.countryCode) && + Objects.equals(this.callingCode, quotaSmsSettingOpenApiVo.callingCode) && + Objects.equals(this.phone, quotaSmsSettingOpenApiVo.phone); + } + + @Override + public int hashCode() { + return Objects.hash(used, type, startDate, limit, credit, alert, usage, countryCode, callingCode, phone); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class QuotaSmsSettingOpenApiVo {\n"); + + sb.append(" used: ").append(toIndentedString(used)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" startDate: ").append(toIndentedString(startDate)).append("\n"); + sb.append(" limit: ").append(toIndentedString(limit)).append("\n"); + sb.append(" credit: ").append(toIndentedString(credit)).append("\n"); + sb.append(" alert: ").append(toIndentedString(alert)).append("\n"); + sb.append(" usage: ").append(toIndentedString(usage)).append("\n"); + sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); + sb.append(" callingCode: ").append(toIndentedString(callingCode)).append("\n"); + sb.append(" phone: ").append(toIndentedString(phone)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RaSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RaSetting.java new file mode 100644 index 0000000..f6cc70a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RaSetting.java @@ -0,0 +1,155 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Ra Setting + */ +@ApiModel(description = "Ra Setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RaSetting { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("preference") + private Integer preference; + + @JsonProperty("validLifetime") + private Integer validLifetime; + + @JsonProperty("preferredLifetime") + private Integer preferredLifetime; + + public RaSetting enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * The switch of Ra + * @return enable + */ + @ApiModelProperty(required = true, value = "The switch of Ra") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public RaSetting preference(Integer preference) { + this.preference = preference; + return this; + } + + /** + * Preference should be a value as follows: 0: \"low\"; 1: \"medium\"; 2: \"high\" + * @return preference + */ + @ApiModelProperty(value = "Preference should be a value as follows: 0: \"low\"; 1: \"medium\"; 2: \"high\"") + + + public Integer getPreference() { + return preference; + } + + public void setPreference(Integer preference) { + this.preference = preference; + } + + public RaSetting validLifetime(Integer validLifetime) { + this.validLifetime = validLifetime; + return this; + } + + /** + * ValidLifetime should be larger than PreferredLifetime. + * @return validLifetime + */ + @ApiModelProperty(value = "ValidLifetime should be larger than PreferredLifetime.") + + + public Integer getValidLifetime() { + return validLifetime; + } + + public void setValidLifetime(Integer validLifetime) { + this.validLifetime = validLifetime; + } + + public RaSetting preferredLifetime(Integer preferredLifetime) { + this.preferredLifetime = preferredLifetime; + return this; + } + + /** + * PreferredLifetime + * @return preferredLifetime + */ + @ApiModelProperty(value = "PreferredLifetime") + + + public Integer getPreferredLifetime() { + return preferredLifetime; + } + + public void setPreferredLifetime(Integer preferredLifetime) { + this.preferredLifetime = preferredLifetime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RaSetting raSetting = (RaSetting) o; + return Objects.equals(this.enable, raSetting.enable) && + Objects.equals(this.preference, raSetting.preference) && + Objects.equals(this.validLifetime, raSetting.validLifetime) && + Objects.equals(this.preferredLifetime, raSetting.preferredLifetime); + } + + @Override + public int hashCode() { + return Objects.hash(enable, preference, validLifetime, preferredLifetime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RaSetting {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" preference: ").append(toIndentedString(preference)).append("\n"); + sb.append(" validLifetime: ").append(toIndentedString(validLifetime)).append("\n"); + sb.append(" preferredLifetime: ").append(toIndentedString(preferredLifetime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusAcctServerOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusAcctServerOpenApiVo.java new file mode 100644 index 0000000..0e7bbf4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusAcctServerOpenApiVo.java @@ -0,0 +1,133 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Radius accounting server list, valid when parameter [radiusAccountingEnable] is true + */ +@ApiModel(description = "Radius accounting server list, valid when parameter [radiusAccountingEnable] is true") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RadiusAcctServerOpenApiVo { + @JsonProperty("accountingServerIp") + private String accountingServerIp; + + @JsonProperty("accountingServerPort") + private Integer accountingServerPort; + + @JsonProperty("accountingServerPwd") + private String accountingServerPwd; + + public RadiusAcctServerOpenApiVo accountingServerIp(String accountingServerIp) { + this.accountingServerIp = accountingServerIp; + return this; + } + + /** + * Radius Accounting Server IP.In Pro Site of the Omada Pro Controller, [accountingServerIp] should be a valid IP or domain address. In Omada Controller and Basic Site of the Omada Pro Controller, [accountingServerIp] should be a valid IP address. + * @return accountingServerIp + */ + @ApiModelProperty(required = true, value = "Radius Accounting Server IP.In Pro Site of the Omada Pro Controller, [accountingServerIp] should be a valid IP or domain address. In Omada Controller and Basic Site of the Omada Pro Controller, [accountingServerIp] should be a valid IP address.") + @NotNull + +@Pattern(regexp="((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])){3}|([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})") + public String getAccountingServerIp() { + return accountingServerIp; + } + + public void setAccountingServerIp(String accountingServerIp) { + this.accountingServerIp = accountingServerIp; + } + + public RadiusAcctServerOpenApiVo accountingServerPort(Integer accountingServerPort) { + this.accountingServerPort = accountingServerPort; + return this; + } + + /** + * Radius Accounting port. AccountingServerPort should be within the range of 1-65535 + * @return accountingServerPort + */ + @ApiModelProperty(required = true, value = "Radius Accounting port. AccountingServerPort should be within the range of 1-65535") + @NotNull + + + public Integer getAccountingServerPort() { + return accountingServerPort; + } + + public void setAccountingServerPort(Integer accountingServerPort) { + this.accountingServerPort = accountingServerPort; + } + + public RadiusAcctServerOpenApiVo accountingServerPwd(String accountingServerPwd) { + this.accountingServerPwd = accountingServerPwd; + return this; + } + + /** + * Radius Accounting password + * @return accountingServerPwd + */ + @ApiModelProperty(required = true, value = "Radius Accounting password") + @NotNull + + + public String getAccountingServerPwd() { + return accountingServerPwd; + } + + public void setAccountingServerPwd(String accountingServerPwd) { + this.accountingServerPwd = accountingServerPwd; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RadiusAcctServerOpenApiVo radiusAcctServerOpenApiVo = (RadiusAcctServerOpenApiVo) o; + return Objects.equals(this.accountingServerIp, radiusAcctServerOpenApiVo.accountingServerIp) && + Objects.equals(this.accountingServerPort, radiusAcctServerOpenApiVo.accountingServerPort) && + Objects.equals(this.accountingServerPwd, radiusAcctServerOpenApiVo.accountingServerPwd); + } + + @Override + public int hashCode() { + return Objects.hash(accountingServerIp, accountingServerPort, accountingServerPwd); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RadiusAcctServerOpenApiVo {\n"); + + sb.append(" accountingServerIp: ").append(toIndentedString(accountingServerIp)).append("\n"); + sb.append(" accountingServerPort: ").append(toIndentedString(accountingServerPort)).append("\n"); + sb.append(" accountingServerPwd: ").append(toIndentedString(accountingServerPwd)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusAuthServerOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusAuthServerOpenApiVo.java new file mode 100644 index 0000000..20e51f7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusAuthServerOpenApiVo.java @@ -0,0 +1,133 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Radius authentication server list + */ +@ApiModel(description = "Radius authentication server list") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RadiusAuthServerOpenApiVo { + @JsonProperty("radiusServerIp") + private String radiusServerIp; + + @JsonProperty("radiusPort") + private Integer radiusPort; + + @JsonProperty("radiusPwd") + private String radiusPwd; + + public RadiusAuthServerOpenApiVo radiusServerIp(String radiusServerIp) { + this.radiusServerIp = radiusServerIp; + return this; + } + + /** + * Radius authentication server IP. In Pro Site of the Omada Pro Controller, [radiusServerIp] should be a valid IP or domain address. In Omada Controller and Basic Site of the Omada Pro Controller, [radiusServerIp] should be a valid IP address. + * @return radiusServerIp + */ + @ApiModelProperty(required = true, value = "Radius authentication server IP. In Pro Site of the Omada Pro Controller, [radiusServerIp] should be a valid IP or domain address. In Omada Controller and Basic Site of the Omada Pro Controller, [radiusServerIp] should be a valid IP address.") + @NotNull + +@Pattern(regexp="((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])){3}|([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})") + public String getRadiusServerIp() { + return radiusServerIp; + } + + public void setRadiusServerIp(String radiusServerIp) { + this.radiusServerIp = radiusServerIp; + } + + public RadiusAuthServerOpenApiVo radiusPort(Integer radiusPort) { + this.radiusPort = radiusPort; + return this; + } + + /** + * Radius authentication server port, radiusPort should be within the range of 1-65535 + * @return radiusPort + */ + @ApiModelProperty(required = true, value = "Radius authentication server port, radiusPort should be within the range of 1-65535") + @NotNull + + + public Integer getRadiusPort() { + return radiusPort; + } + + public void setRadiusPort(Integer radiusPort) { + this.radiusPort = radiusPort; + } + + public RadiusAuthServerOpenApiVo radiusPwd(String radiusPwd) { + this.radiusPwd = radiusPwd; + return this; + } + + /** + * Radius authentication server password, radiusPwd should contain 1 to 64 characters + * @return radiusPwd + */ + @ApiModelProperty(required = true, value = "Radius authentication server password, radiusPwd should contain 1 to 64 characters") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]{1,128}$") + public String getRadiusPwd() { + return radiusPwd; + } + + public void setRadiusPwd(String radiusPwd) { + this.radiusPwd = radiusPwd; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RadiusAuthServerOpenApiVo radiusAuthServerOpenApiVo = (RadiusAuthServerOpenApiVo) o; + return Objects.equals(this.radiusServerIp, radiusAuthServerOpenApiVo.radiusServerIp) && + Objects.equals(this.radiusPort, radiusAuthServerOpenApiVo.radiusPort) && + Objects.equals(this.radiusPwd, radiusAuthServerOpenApiVo.radiusPwd); + } + + @Override + public int hashCode() { + return Objects.hash(radiusServerIp, radiusPort, radiusPwd); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RadiusAuthServerOpenApiVo {\n"); + + sb.append(" radiusServerIp: ").append(toIndentedString(radiusServerIp)).append("\n"); + sb.append(" radiusPort: ").append(toIndentedString(radiusPort)).append("\n"); + sb.append(" radiusPwd: ").append(toIndentedString(radiusPwd)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusProfileOpenApiVo.java new file mode 100644 index 0000000..b4c47df --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusProfileOpenApiVo.java @@ -0,0 +1,499 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * RadiusProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RadiusProfileOpenApiVo { + @JsonProperty("radiusProfileId") + private String radiusProfileId; + + @JsonProperty("name") + private String name; + + @JsonProperty("authServer") + @Valid + private List authServer = null; + + @JsonProperty("radiusAccountingEnable") + private Boolean radiusAccountingEnable; + + @JsonProperty("interimUpdateEnable") + private Boolean interimUpdateEnable; + + @JsonProperty("interimUpdateInterval") + private Integer interimUpdateInterval; + + @JsonProperty("acctServer") + @Valid + private List acctServer = null; + + @JsonProperty("wirelessVlanAssignment") + private Boolean wirelessVlanAssignment; + + @JsonProperty("domainEnable") + private Boolean domainEnable; + + @JsonProperty("coaEnable") + private Boolean coaEnable; + + @JsonProperty("coaPassword") + private String coaPassword; + + @JsonProperty("builtInServer") + private Boolean builtInServer; + + @JsonProperty("serverEnable") + private Boolean serverEnable; + + @JsonProperty("tunnelReplyEnable") + private Boolean tunnelReplyEnable; + + @JsonProperty("builtInServerSecret") + private String builtInServerSecret; + + @JsonProperty("ipType") + private Integer ipType; + + @JsonProperty("customIp") + private String customIp; + + public RadiusProfileOpenApiVo radiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + return this; + } + + /** + * Radius profile ID + * @return radiusProfileId + */ + @ApiModelProperty(value = "Radius profile ID") + + + public String getRadiusProfileId() { + return radiusProfileId; + } + + public void setRadiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + } + + public RadiusProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Radius profile name + * @return name + */ + @ApiModelProperty(value = "Radius profile name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public RadiusProfileOpenApiVo authServer(List authServer) { + this.authServer = authServer; + return this; + } + + public RadiusProfileOpenApiVo addAuthServerItem(RadiusAuthServerOpenApiVo authServerItem) { + if (this.authServer == null) { + this.authServer = new ArrayList<>(); + } + this.authServer.add(authServerItem); + return this; + } + + /** + * Radius authentication server list + * @return authServer + */ + @ApiModelProperty(value = "Radius authentication server list") + + @Valid + + public List getAuthServer() { + return authServer; + } + + public void setAuthServer(List authServer) { + this.authServer = authServer; + } + + public RadiusProfileOpenApiVo radiusAccountingEnable(Boolean radiusAccountingEnable) { + this.radiusAccountingEnable = radiusAccountingEnable; + return this; + } + + /** + * Radius accounting enable status + * @return radiusAccountingEnable + */ + @ApiModelProperty(value = "Radius accounting enable status") + + + public Boolean getRadiusAccountingEnable() { + return radiusAccountingEnable; + } + + public void setRadiusAccountingEnable(Boolean radiusAccountingEnable) { + this.radiusAccountingEnable = radiusAccountingEnable; + } + + public RadiusProfileOpenApiVo interimUpdateEnable(Boolean interimUpdateEnable) { + this.interimUpdateEnable = interimUpdateEnable; + return this; + } + + /** + * When radius accounting enables, interval update enable status + * @return interimUpdateEnable + */ + @ApiModelProperty(value = "When radius accounting enables, interval update enable status") + + + public Boolean getInterimUpdateEnable() { + return interimUpdateEnable; + } + + public void setInterimUpdateEnable(Boolean interimUpdateEnable) { + this.interimUpdateEnable = interimUpdateEnable; + } + + public RadiusProfileOpenApiVo interimUpdateInterval(Integer interimUpdateInterval) { + this.interimUpdateInterval = interimUpdateInterval; + return this; + } + + /** + * When interval update enables, interval update duration + * @return interimUpdateInterval + */ + @ApiModelProperty(value = "When interval update enables, interval update duration") + + + public Integer getInterimUpdateInterval() { + return interimUpdateInterval; + } + + public void setInterimUpdateInterval(Integer interimUpdateInterval) { + this.interimUpdateInterval = interimUpdateInterval; + } + + public RadiusProfileOpenApiVo acctServer(List acctServer) { + this.acctServer = acctServer; + return this; + } + + public RadiusProfileOpenApiVo addAcctServerItem(RadiusAcctServerOpenApiVo acctServerItem) { + if (this.acctServer == null) { + this.acctServer = new ArrayList<>(); + } + this.acctServer.add(acctServerItem); + return this; + } + + /** + * Radius accounting server list, valid when parameter [radiusAccountingEnable] is true + * @return acctServer + */ + @ApiModelProperty(value = "Radius accounting server list, valid when parameter [radiusAccountingEnable] is true") + + @Valid + + public List getAcctServer() { + return acctServer; + } + + public void setAcctServer(List acctServer) { + this.acctServer = acctServer; + } + + public RadiusProfileOpenApiVo wirelessVlanAssignment(Boolean wirelessVlanAssignment) { + this.wirelessVlanAssignment = wirelessVlanAssignment; + return this; + } + + /** + * VLAN assignment for wireless network enable status + * @return wirelessVlanAssignment + */ + @ApiModelProperty(value = "VLAN assignment for wireless network enable status") + + + public Boolean getWirelessVlanAssignment() { + return wirelessVlanAssignment; + } + + public void setWirelessVlanAssignment(Boolean wirelessVlanAssignment) { + this.wirelessVlanAssignment = wirelessVlanAssignment; + } + + public RadiusProfileOpenApiVo domainEnable(Boolean domainEnable) { + this.domainEnable = domainEnable; + return this; + } + + /** + * Domain enable status + * @return domainEnable + */ + @ApiModelProperty(value = "Domain enable status") + + + public Boolean getDomainEnable() { + return domainEnable; + } + + public void setDomainEnable(Boolean domainEnable) { + this.domainEnable = domainEnable; + } + + public RadiusProfileOpenApiVo coaEnable(Boolean coaEnable) { + this.coaEnable = coaEnable; + return this; + } + + /** + * Radius CoA enable status. This configuration applies to the Pro Site of the Omada Pro Controller only + * @return coaEnable + */ + @ApiModelProperty(value = "Radius CoA enable status. This configuration applies to the Pro Site of the Omada Pro Controller only") + + + public Boolean getCoaEnable() { + return coaEnable; + } + + public void setCoaEnable(Boolean coaEnable) { + this.coaEnable = coaEnable; + } + + public RadiusProfileOpenApiVo coaPassword(String coaPassword) { + this.coaPassword = coaPassword; + return this; + } + + /** + * Radius CoA password, valid when parameter [coaEnable] is true. This configuration applies to the Pro Site of the Omada Pro Controller only + * @return coaPassword + */ + @ApiModelProperty(value = "Radius CoA password, valid when parameter [coaEnable] is true. This configuration applies to the Pro Site of the Omada Pro Controller only") + + + public String getCoaPassword() { + return coaPassword; + } + + public void setCoaPassword(String coaPassword) { + this.coaPassword = coaPassword; + } + + public RadiusProfileOpenApiVo builtInServer(Boolean builtInServer) { + this.builtInServer = builtInServer; + return this; + } + + /** + * Is this Radius server a built-in server + * @return builtInServer + */ + @ApiModelProperty(value = "Is this Radius server a built-in server") + + + public Boolean getBuiltInServer() { + return builtInServer; + } + + public void setBuiltInServer(Boolean builtInServer) { + this.builtInServer = builtInServer; + } + + public RadiusProfileOpenApiVo serverEnable(Boolean serverEnable) { + this.serverEnable = serverEnable; + return this; + } + + /** + * Built-in Radius server enable status, valid when parameter [builtInServer] is true + * @return serverEnable + */ + @ApiModelProperty(value = "Built-in Radius server enable status, valid when parameter [builtInServer] is true") + + + public Boolean getServerEnable() { + return serverEnable; + } + + public void setServerEnable(Boolean serverEnable) { + this.serverEnable = serverEnable; + } + + public RadiusProfileOpenApiVo tunnelReplyEnable(Boolean tunnelReplyEnable) { + this.tunnelReplyEnable = tunnelReplyEnable; + return this; + } + + /** + * Built-in Radius server tunneled reply enable status, valid when parameter [builtInServer] is true + * @return tunnelReplyEnable + */ + @ApiModelProperty(value = "Built-in Radius server tunneled reply enable status, valid when parameter [builtInServer] is true") + + + public Boolean getTunnelReplyEnable() { + return tunnelReplyEnable; + } + + public void setTunnelReplyEnable(Boolean tunnelReplyEnable) { + this.tunnelReplyEnable = tunnelReplyEnable; + } + + public RadiusProfileOpenApiVo builtInServerSecret(String builtInServerSecret) { + this.builtInServerSecret = builtInServerSecret; + return this; + } + + /** + * Built-in Radius server secret, valid when parameter [builtInServer] is true + * @return builtInServerSecret + */ + @ApiModelProperty(value = "Built-in Radius server secret, valid when parameter [builtInServer] is true") + + + public String getBuiltInServerSecret() { + return builtInServerSecret; + } + + public void setBuiltInServerSecret(String builtInServerSecret) { + this.builtInServerSecret = builtInServerSecret; + } + + public RadiusProfileOpenApiVo ipType(Integer ipType) { + this.ipType = ipType; + return this; + } + + /** + * Built-in Radius server IP type, 0: auto,1: custom, valid when parameter [builtInServer] is true + * @return ipType + */ + @ApiModelProperty(value = "Built-in Radius server IP type, 0: auto,1: custom, valid when parameter [builtInServer] is true") + + + public Integer getIpType() { + return ipType; + } + + public void setIpType(Integer ipType) { + this.ipType = ipType; + } + + public RadiusProfileOpenApiVo customIp(String customIp) { + this.customIp = customIp; + return this; + } + + /** + * Built-in Radius server custom IP, valid when parameter [builtInServer] is true and [ipType] is 1 + * @return customIp + */ + @ApiModelProperty(value = "Built-in Radius server custom IP, valid when parameter [builtInServer] is true and [ipType] is 1") + + + public String getCustomIp() { + return customIp; + } + + public void setCustomIp(String customIp) { + this.customIp = customIp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RadiusProfileOpenApiVo radiusProfileOpenApiVo = (RadiusProfileOpenApiVo) o; + return Objects.equals(this.radiusProfileId, radiusProfileOpenApiVo.radiusProfileId) && + Objects.equals(this.name, radiusProfileOpenApiVo.name) && + Objects.equals(this.authServer, radiusProfileOpenApiVo.authServer) && + Objects.equals(this.radiusAccountingEnable, radiusProfileOpenApiVo.radiusAccountingEnable) && + Objects.equals(this.interimUpdateEnable, radiusProfileOpenApiVo.interimUpdateEnable) && + Objects.equals(this.interimUpdateInterval, radiusProfileOpenApiVo.interimUpdateInterval) && + Objects.equals(this.acctServer, radiusProfileOpenApiVo.acctServer) && + Objects.equals(this.wirelessVlanAssignment, radiusProfileOpenApiVo.wirelessVlanAssignment) && + Objects.equals(this.domainEnable, radiusProfileOpenApiVo.domainEnable) && + Objects.equals(this.coaEnable, radiusProfileOpenApiVo.coaEnable) && + Objects.equals(this.coaPassword, radiusProfileOpenApiVo.coaPassword) && + Objects.equals(this.builtInServer, radiusProfileOpenApiVo.builtInServer) && + Objects.equals(this.serverEnable, radiusProfileOpenApiVo.serverEnable) && + Objects.equals(this.tunnelReplyEnable, radiusProfileOpenApiVo.tunnelReplyEnable) && + Objects.equals(this.builtInServerSecret, radiusProfileOpenApiVo.builtInServerSecret) && + Objects.equals(this.ipType, radiusProfileOpenApiVo.ipType) && + Objects.equals(this.customIp, radiusProfileOpenApiVo.customIp); + } + + @Override + public int hashCode() { + return Objects.hash(radiusProfileId, name, authServer, radiusAccountingEnable, interimUpdateEnable, interimUpdateInterval, acctServer, wirelessVlanAssignment, domainEnable, coaEnable, coaPassword, builtInServer, serverEnable, tunnelReplyEnable, builtInServerSecret, ipType, customIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RadiusProfileOpenApiVo {\n"); + + sb.append(" radiusProfileId: ").append(toIndentedString(radiusProfileId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" authServer: ").append(toIndentedString(authServer)).append("\n"); + sb.append(" radiusAccountingEnable: ").append(toIndentedString(radiusAccountingEnable)).append("\n"); + sb.append(" interimUpdateEnable: ").append(toIndentedString(interimUpdateEnable)).append("\n"); + sb.append(" interimUpdateInterval: ").append(toIndentedString(interimUpdateInterval)).append("\n"); + sb.append(" acctServer: ").append(toIndentedString(acctServer)).append("\n"); + sb.append(" wirelessVlanAssignment: ").append(toIndentedString(wirelessVlanAssignment)).append("\n"); + sb.append(" domainEnable: ").append(toIndentedString(domainEnable)).append("\n"); + sb.append(" coaEnable: ").append(toIndentedString(coaEnable)).append("\n"); + sb.append(" coaPassword: ").append(toIndentedString(coaPassword)).append("\n"); + sb.append(" builtInServer: ").append(toIndentedString(builtInServer)).append("\n"); + sb.append(" serverEnable: ").append(toIndentedString(serverEnable)).append("\n"); + sb.append(" tunnelReplyEnable: ").append(toIndentedString(tunnelReplyEnable)).append("\n"); + sb.append(" builtInServerSecret: ").append(toIndentedString(builtInServerSecret)).append("\n"); + sb.append(" ipType: ").append(toIndentedString(ipType)).append("\n"); + sb.append(" customIp: ").append(toIndentedString(customIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusSettingOpenApiVo.java new file mode 100644 index 0000000..7f200ac --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusSettingOpenApiVo.java @@ -0,0 +1,210 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * It is required when parameter [authType] is 1. + */ +@ApiModel(description = "It is required when parameter [authType] is 1.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RadiusSettingOpenApiVo { + @JsonProperty("radiusProfile") + private String radiusProfile; + + @JsonProperty("defaultGroup") + private String defaultGroup; + + @JsonProperty("authType") + private Integer authType; + + @JsonProperty("repeatTime") + private Integer repeatTime; + + @JsonProperty("overTime") + private Integer overTime; + + @JsonProperty("nasIp") + private String nasIp; + + public RadiusSettingOpenApiVo radiusProfile(String radiusProfile) { + this.radiusProfile = radiusProfile; + return this; + } + + /** + * Radius profile ID. Radius profile can be created using 'Create a new Radius profile' interface, and Radius profile ID can be obtained from 'Get Radius profile list' interface. + * @return radiusProfile + */ + @ApiModelProperty(required = true, value = "Radius profile ID. Radius profile can be created using 'Create a new Radius profile' interface, and Radius profile ID can be obtained from 'Get Radius profile list' interface.") + @NotNull + + + public String getRadiusProfile() { + return radiusProfile; + } + + public void setRadiusProfile(String radiusProfile) { + this.radiusProfile = radiusProfile; + } + + public RadiusSettingOpenApiVo defaultGroup(String defaultGroup) { + this.defaultGroup = defaultGroup; + return this; + } + + /** + * Default user group ID for the user on the radius server. User group can be created using 'Create SSL VPN user group' interface, and user group ID can be obtained from 'Get user group list for SSL VPN server' interface. + * @return defaultGroup + */ + @ApiModelProperty(required = true, value = "Default user group ID for the user on the radius server. User group can be created using 'Create SSL VPN user group' interface, and user group ID can be obtained from 'Get user group list for SSL VPN server' interface.") + @NotNull + + + public String getDefaultGroup() { + return defaultGroup; + } + + public void setDefaultGroup(String defaultGroup) { + this.defaultGroup = defaultGroup; + } + + public RadiusSettingOpenApiVo authType(Integer authType) { + this.authType = authType; + return this; + } + + /** + * Authtype should be a value as follows: 0:PAP; 1:CHAP + * @return authType + */ + @ApiModelProperty(required = true, value = "Authtype should be a value as follows: 0:PAP; 1:CHAP") + @NotNull + + + public Integer getAuthType() { + return authType; + } + + public void setAuthType(Integer authType) { + this.authType = authType; + } + + public RadiusSettingOpenApiVo repeatTime(Integer repeatTime) { + this.repeatTime = repeatTime; + return this; + } + + /** + * Repeat time should be within the range of 1–10 + * @return repeatTime + */ + @ApiModelProperty(required = true, value = "Repeat time should be within the range of 1–10") + @NotNull + + + public Integer getRepeatTime() { + return repeatTime; + } + + public void setRepeatTime(Integer repeatTime) { + this.repeatTime = repeatTime; + } + + public RadiusSettingOpenApiVo overTime(Integer overTime) { + this.overTime = overTime; + return this; + } + + /** + * Request Timeout, 1~60(s). + * @return overTime + */ + @ApiModelProperty(required = true, value = "Request Timeout, 1~60(s).") + @NotNull + + + public Integer getOverTime() { + return overTime; + } + + public void setOverTime(Integer overTime) { + this.overTime = overTime; + } + + public RadiusSettingOpenApiVo nasIp(String nasIp) { + this.nasIp = nasIp; + return this; + } + + /** + * NAS IP + * @return nasIp + */ + @ApiModelProperty(value = "NAS IP") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getNasIp() { + return nasIp; + } + + public void setNasIp(String nasIp) { + this.nasIp = nasIp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RadiusSettingOpenApiVo radiusSettingOpenApiVo = (RadiusSettingOpenApiVo) o; + return Objects.equals(this.radiusProfile, radiusSettingOpenApiVo.radiusProfile) && + Objects.equals(this.defaultGroup, radiusSettingOpenApiVo.defaultGroup) && + Objects.equals(this.authType, radiusSettingOpenApiVo.authType) && + Objects.equals(this.repeatTime, radiusSettingOpenApiVo.repeatTime) && + Objects.equals(this.overTime, radiusSettingOpenApiVo.overTime) && + Objects.equals(this.nasIp, radiusSettingOpenApiVo.nasIp); + } + + @Override + public int hashCode() { + return Objects.hash(radiusProfile, defaultGroup, authType, repeatTime, overTime, nasIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RadiusSettingOpenApiVo {\n"); + + sb.append(" radiusProfile: ").append(toIndentedString(radiusProfile)).append("\n"); + sb.append(" defaultGroup: ").append(toIndentedString(defaultGroup)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" repeatTime: ").append(toIndentedString(repeatTime)).append("\n"); + sb.append(" overTime: ").append(toIndentedString(overTime)).append("\n"); + sb.append(" nasIp: ").append(toIndentedString(nasIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusUserInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusUserInfoOpenApiVo.java new file mode 100644 index 0000000..78bd696 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusUserInfoOpenApiVo.java @@ -0,0 +1,107 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * User name and password, required when parameter [type] is 0. + */ +@ApiModel(description = "User name and password, required when parameter [type] is 0.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RadiusUserInfoOpenApiVo { + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + public RadiusUserInfoOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * Build-in Radius profile user name. Username should contain 1 to 64 characters + * @return username + */ + @ApiModelProperty(required = true, value = "Build-in Radius profile user name. Username should contain 1 to 64 characters") + @NotNull + +@Pattern(regexp="^[\\x21-\\x7e]{1,64}$") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public RadiusUserInfoOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Build-in Radius profile user password. Password should contain 1 to 64 characters + * @return password + */ + @ApiModelProperty(required = true, value = "Build-in Radius profile user password. Password should contain 1 to 64 characters") + @NotNull + +@Pattern(regexp="^[\\x21-\\x7e]{1,64}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RadiusUserInfoOpenApiVo radiusUserInfoOpenApiVo = (RadiusUserInfoOpenApiVo) o; + return Objects.equals(this.username, radiusUserInfoOpenApiVo.username) && + Objects.equals(this.password, radiusUserInfoOpenApiVo.password); + } + + @Override + public int hashCode() { + return Objects.hash(username, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RadiusUserInfoOpenApiVo {\n"); + + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusUserOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusUserOpenApiVo.java new file mode 100644 index 0000000..4d06dd7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RadiusUserOpenApiVo.java @@ -0,0 +1,301 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * RadiusUserOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RadiusUserOpenApiVo { + @JsonProperty("userId") + private String userId; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + @JsonProperty("upRateLimit") + private Long upRateLimit; + + @JsonProperty("downRateLimit") + private Long downRateLimit; + + @JsonProperty("upLimit") + private Long upLimit; + + @JsonProperty("downLimit") + private Long downLimit; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("timeout") + private Integer timeout; + + public RadiusUserOpenApiVo userId(String userId) { + this.userId = userId; + return this; + } + + /** + * Build-in Radius profile user ID + * @return userId + */ + @ApiModelProperty(value = "Build-in Radius profile user ID") + + + public String getUserId() { + return userId; + } + + public void setUserId(String userId) { + this.userId = userId; + } + + public RadiusUserOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of Build-in Radius profile user, 0: user auth; 1: MAC auth + * @return type + */ + @ApiModelProperty(value = "Type of Build-in Radius profile user, 0: user auth; 1: MAC auth") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public RadiusUserOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * Build-in Radius profile user name, when parameter [type] is 1, [username] is the MAC address + * @return username + */ + @ApiModelProperty(value = "Build-in Radius profile user name, when parameter [type] is 1, [username] is the MAC address") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public RadiusUserOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Build-in Radius profile user password, when parameter [type] is 1, [password] is the MAC address + * @return password + */ + @ApiModelProperty(value = "Build-in Radius profile user password, when parameter [type] is 1, [password] is the MAC address") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public RadiusUserOpenApiVo upRateLimit(Long upRateLimit) { + this.upRateLimit = upRateLimit; + return this; + } + + /** + * Build-in Radius profile user uplink rate limit, unit: Kbps + * @return upRateLimit + */ + @ApiModelProperty(value = "Build-in Radius profile user uplink rate limit, unit: Kbps") + + + public Long getUpRateLimit() { + return upRateLimit; + } + + public void setUpRateLimit(Long upRateLimit) { + this.upRateLimit = upRateLimit; + } + + public RadiusUserOpenApiVo downRateLimit(Long downRateLimit) { + this.downRateLimit = downRateLimit; + return this; + } + + /** + * Build-in Radius profile user downlink rate limit, unit: Kbps + * @return downRateLimit + */ + @ApiModelProperty(value = "Build-in Radius profile user downlink rate limit, unit: Kbps") + + + public Long getDownRateLimit() { + return downRateLimit; + } + + public void setDownRateLimit(Long downRateLimit) { + this.downRateLimit = downRateLimit; + } + + public RadiusUserOpenApiVo upLimit(Long upLimit) { + this.upLimit = upLimit; + return this; + } + + /** + * Build-in Radius profile user uplink traffic limit, unit: MB + * @return upLimit + */ + @ApiModelProperty(value = "Build-in Radius profile user uplink traffic limit, unit: MB") + + + public Long getUpLimit() { + return upLimit; + } + + public void setUpLimit(Long upLimit) { + this.upLimit = upLimit; + } + + public RadiusUserOpenApiVo downLimit(Long downLimit) { + this.downLimit = downLimit; + return this; + } + + /** + * Build-in Radius profile user downlink traffic limit, unit: MB + * @return downLimit + */ + @ApiModelProperty(value = "Build-in Radius profile user downlink traffic limit, unit: MB") + + + public Long getDownLimit() { + return downLimit; + } + + public void setDownLimit(Long downLimit) { + this.downLimit = downLimit; + } + + public RadiusUserOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * VLAN ID, from 1 to 4096 + * @return vlanId + */ + @ApiModelProperty(value = "VLAN ID, from 1 to 4096") + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public RadiusUserOpenApiVo timeout(Integer timeout) { + this.timeout = timeout; + return this; + } + + /** + * Session timeout + * @return timeout + */ + @ApiModelProperty(value = "Session timeout") + + + public Integer getTimeout() { + return timeout; + } + + public void setTimeout(Integer timeout) { + this.timeout = timeout; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RadiusUserOpenApiVo radiusUserOpenApiVo = (RadiusUserOpenApiVo) o; + return Objects.equals(this.userId, radiusUserOpenApiVo.userId) && + Objects.equals(this.type, radiusUserOpenApiVo.type) && + Objects.equals(this.username, radiusUserOpenApiVo.username) && + Objects.equals(this.password, radiusUserOpenApiVo.password) && + Objects.equals(this.upRateLimit, radiusUserOpenApiVo.upRateLimit) && + Objects.equals(this.downRateLimit, radiusUserOpenApiVo.downRateLimit) && + Objects.equals(this.upLimit, radiusUserOpenApiVo.upLimit) && + Objects.equals(this.downLimit, radiusUserOpenApiVo.downLimit) && + Objects.equals(this.vlanId, radiusUserOpenApiVo.vlanId) && + Objects.equals(this.timeout, radiusUserOpenApiVo.timeout); + } + + @Override + public int hashCode() { + return Objects.hash(userId, type, username, password, upRateLimit, downRateLimit, upLimit, downLimit, vlanId, timeout); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RadiusUserOpenApiVo {\n"); + + sb.append(" userId: ").append(toIndentedString(userId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" upRateLimit: ").append(toIndentedString(upRateLimit)).append("\n"); + sb.append(" downRateLimit: ").append(toIndentedString(downRateLimit)).append("\n"); + sb.append(" upLimit: ").append(toIndentedString(upLimit)).append("\n"); + sb.append(" downLimit: ").append(toIndentedString(downLimit)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" timeout: ").append(toIndentedString(timeout)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RateLimitProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RateLimitProfileOpenApiVo.java new file mode 100644 index 0000000..0240b82 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RateLimitProfileOpenApiVo.java @@ -0,0 +1,226 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * RateLimitProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RateLimitProfileOpenApiVo { + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("name") + private String name; + + @JsonProperty("downLimitEnable") + private Boolean downLimitEnable; + + @JsonProperty("downLimit") + private Long downLimit; + + @JsonProperty("upLimitEnable") + private Boolean upLimitEnable; + + @JsonProperty("upLimit") + private Long upLimit; + + @JsonProperty("defaultProfile") + private Boolean defaultProfile; + + public RateLimitProfileOpenApiVo profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Rate limit profile ID + * @return profileId + */ + @ApiModelProperty(value = "Rate limit profile ID") + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public RateLimitProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Rate limit profile name + * @return name + */ + @ApiModelProperty(value = "Rate limit profile name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public RateLimitProfileOpenApiVo downLimitEnable(Boolean downLimitEnable) { + this.downLimitEnable = downLimitEnable; + return this; + } + + /** + * Whether to enable download limit + * @return downLimitEnable + */ + @ApiModelProperty(value = "Whether to enable download limit") + + + public Boolean getDownLimitEnable() { + return downLimitEnable; + } + + public void setDownLimitEnable(Boolean downLimitEnable) { + this.downLimitEnable = downLimitEnable; + } + + public RateLimitProfileOpenApiVo downLimit(Long downLimit) { + this.downLimit = downLimit; + return this; + } + + /** + * Download limit(Unit: Kbps), this field is required when parameter [downLimitEnable] is true. + * @return downLimit + */ + @ApiModelProperty(value = "Download limit(Unit: Kbps), this field is required when parameter [downLimitEnable] is true.") + + + public Long getDownLimit() { + return downLimit; + } + + public void setDownLimit(Long downLimit) { + this.downLimit = downLimit; + } + + public RateLimitProfileOpenApiVo upLimitEnable(Boolean upLimitEnable) { + this.upLimitEnable = upLimitEnable; + return this; + } + + /** + * Whether to enable upload limit + * @return upLimitEnable + */ + @ApiModelProperty(value = "Whether to enable upload limit") + + + public Boolean getUpLimitEnable() { + return upLimitEnable; + } + + public void setUpLimitEnable(Boolean upLimitEnable) { + this.upLimitEnable = upLimitEnable; + } + + public RateLimitProfileOpenApiVo upLimit(Long upLimit) { + this.upLimit = upLimit; + return this; + } + + /** + * Upload limit(Unit: Kbps), this field is required when parameter [upLimitEnable] is true. + * @return upLimit + */ + @ApiModelProperty(value = "Upload limit(Unit: Kbps), this field is required when parameter [upLimitEnable] is true.") + + + public Long getUpLimit() { + return upLimit; + } + + public void setUpLimit(Long upLimit) { + this.upLimit = upLimit; + } + + public RateLimitProfileOpenApiVo defaultProfile(Boolean defaultProfile) { + this.defaultProfile = defaultProfile; + return this; + } + + /** + * Whether it is default profile. + * @return defaultProfile + */ + @ApiModelProperty(value = "Whether it is default profile.") + + + public Boolean getDefaultProfile() { + return defaultProfile; + } + + public void setDefaultProfile(Boolean defaultProfile) { + this.defaultProfile = defaultProfile; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RateLimitProfileOpenApiVo rateLimitProfileOpenApiVo = (RateLimitProfileOpenApiVo) o; + return Objects.equals(this.profileId, rateLimitProfileOpenApiVo.profileId) && + Objects.equals(this.name, rateLimitProfileOpenApiVo.name) && + Objects.equals(this.downLimitEnable, rateLimitProfileOpenApiVo.downLimitEnable) && + Objects.equals(this.downLimit, rateLimitProfileOpenApiVo.downLimit) && + Objects.equals(this.upLimitEnable, rateLimitProfileOpenApiVo.upLimitEnable) && + Objects.equals(this.upLimit, rateLimitProfileOpenApiVo.upLimit) && + Objects.equals(this.defaultProfile, rateLimitProfileOpenApiVo.defaultProfile); + } + + @Override + public int hashCode() { + return Objects.hash(profileId, name, downLimitEnable, downLimit, upLimitEnable, upLimit, defaultProfile); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RateLimitProfileOpenApiVo {\n"); + + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" downLimitEnable: ").append(toIndentedString(downLimitEnable)).append("\n"); + sb.append(" downLimit: ").append(toIndentedString(downLimit)).append("\n"); + sb.append(" upLimitEnable: ").append(toIndentedString(upLimitEnable)).append("\n"); + sb.append(" upLimit: ").append(toIndentedString(upLimit)).append("\n"); + sb.append(" defaultProfile: ").append(toIndentedString(defaultProfile)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RateLimitSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RateLimitSettingOpenApiVo.java new file mode 100644 index 0000000..1b5c082 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RateLimitSettingOpenApiVo.java @@ -0,0 +1,105 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * SSID rate limit config. + */ +@ApiModel(description = "SSID rate limit config.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RateLimitSettingOpenApiVo { + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("customSetting") + private CustomRateLimitSettingOpenApiVo customSetting; + + public RateLimitSettingOpenApiVo profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * This field represents RateLimit Profile ID. RateLimit Profile can be created using Create rate limit profile interface, and RateLimit Profile ID can be obtained from Get rate limit profile list interface.(The validity priority is higher than the custom setting) + * @return profileId + */ + @ApiModelProperty(value = "This field represents RateLimit Profile ID. RateLimit Profile can be created using Create rate limit profile interface, and RateLimit Profile ID can be obtained from Get rate limit profile list interface.(The validity priority is higher than the custom setting)") + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public RateLimitSettingOpenApiVo customSetting(CustomRateLimitSettingOpenApiVo customSetting) { + this.customSetting = customSetting; + return this; + } + + /** + * Get customSetting + * @return customSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public CustomRateLimitSettingOpenApiVo getCustomSetting() { + return customSetting; + } + + public void setCustomSetting(CustomRateLimitSettingOpenApiVo customSetting) { + this.customSetting = customSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RateLimitSettingOpenApiVo rateLimitSettingOpenApiVo = (RateLimitSettingOpenApiVo) o; + return Objects.equals(this.profileId, rateLimitSettingOpenApiVo.profileId) && + Objects.equals(this.customSetting, rateLimitSettingOpenApiVo.customSetting); + } + + @Override + public int hashCode() { + return Objects.hash(profileId, customSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RateLimitSettingOpenApiVo {\n"); + + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" customSetting: ").append(toIndentedString(customSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleOpenApiVo.java new file mode 100644 index 0000000..dc01482 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleOpenApiVo.java @@ -0,0 +1,167 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * RebootScheduleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RebootScheduleOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("deviceMacs") + @Valid + private List deviceMacs = new ArrayList<>(); + + @JsonProperty("time") + private RebootScheduleTimeOpenApiVo time; + + public RebootScheduleOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Reboot Schedule name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Reboot Schedule name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public RebootScheduleOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Reboot Schedule status. + * @return status + */ + @ApiModelProperty(required = true, value = "Reboot Schedule status.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public RebootScheduleOpenApiVo deviceMacs(List deviceMacs) { + this.deviceMacs = deviceMacs; + return this; + } + + public RebootScheduleOpenApiVo addDeviceMacsItem(String deviceMacsItem) { + this.deviceMacs.add(deviceMacsItem); + return this; + } + + /** + * MAC address of the selected devices. E.g. AA-BB-CC-DD-11-22 + * @return deviceMacs + */ + @ApiModelProperty(required = true, value = "MAC address of the selected devices. E.g. AA-BB-CC-DD-11-22") + @NotNull + + + public List getDeviceMacs() { + return deviceMacs; + } + + public void setDeviceMacs(List deviceMacs) { + this.deviceMacs = deviceMacs; + } + + public RebootScheduleOpenApiVo time(RebootScheduleTimeOpenApiVo time) { + this.time = time; + return this; + } + + /** + * Get time + * @return time + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public RebootScheduleTimeOpenApiVo getTime() { + return time; + } + + public void setTime(RebootScheduleTimeOpenApiVo time) { + this.time = time; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RebootScheduleOpenApiVo rebootScheduleOpenApiVo = (RebootScheduleOpenApiVo) o; + return Objects.equals(this.name, rebootScheduleOpenApiVo.name) && + Objects.equals(this.status, rebootScheduleOpenApiVo.status) && + Objects.equals(this.deviceMacs, rebootScheduleOpenApiVo.deviceMacs) && + Objects.equals(this.time, rebootScheduleOpenApiVo.time); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, deviceMacs, time); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RebootScheduleOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" deviceMacs: ").append(toIndentedString(deviceMacs)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleQueryOpenApiVo.java new file mode 100644 index 0000000..545210e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleQueryOpenApiVo.java @@ -0,0 +1,217 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * RebootScheduleQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RebootScheduleQueryOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("deviceMacs") + @Valid + private List deviceMacs = new ArrayList<>(); + + @JsonProperty("time") + private RebootScheduleTimeOpenApiVo time; + + @JsonProperty("nextExecute") + private Long nextExecute; + + public RebootScheduleQueryOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Reboot Schedule ID. + * @return id + */ + @ApiModelProperty(value = "Reboot Schedule ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public RebootScheduleQueryOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Reboot Schedule name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Reboot Schedule name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public RebootScheduleQueryOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Reboot Schedule status. + * @return status + */ + @ApiModelProperty(required = true, value = "Reboot Schedule status.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public RebootScheduleQueryOpenApiVo deviceMacs(List deviceMacs) { + this.deviceMacs = deviceMacs; + return this; + } + + public RebootScheduleQueryOpenApiVo addDeviceMacsItem(String deviceMacsItem) { + this.deviceMacs.add(deviceMacsItem); + return this; + } + + /** + * MAC address of the selected devices. + * @return deviceMacs + */ + @ApiModelProperty(required = true, value = "MAC address of the selected devices.") + @NotNull + + + public List getDeviceMacs() { + return deviceMacs; + } + + public void setDeviceMacs(List deviceMacs) { + this.deviceMacs = deviceMacs; + } + + public RebootScheduleQueryOpenApiVo time(RebootScheduleTimeOpenApiVo time) { + this.time = time; + return this; + } + + /** + * Get time + * @return time + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public RebootScheduleTimeOpenApiVo getTime() { + return time; + } + + public void setTime(RebootScheduleTimeOpenApiVo time) { + this.time = time; + } + + public RebootScheduleQueryOpenApiVo nextExecute(Long nextExecute) { + this.nextExecute = nextExecute; + return this; + } + + /** + * Reboot Schedule next execution timestamp(ms). + * @return nextExecute + */ + @ApiModelProperty(value = "Reboot Schedule next execution timestamp(ms).") + + + public Long getNextExecute() { + return nextExecute; + } + + public void setNextExecute(Long nextExecute) { + this.nextExecute = nextExecute; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RebootScheduleQueryOpenApiVo rebootScheduleQueryOpenApiVo = (RebootScheduleQueryOpenApiVo) o; + return Objects.equals(this.id, rebootScheduleQueryOpenApiVo.id) && + Objects.equals(this.name, rebootScheduleQueryOpenApiVo.name) && + Objects.equals(this.status, rebootScheduleQueryOpenApiVo.status) && + Objects.equals(this.deviceMacs, rebootScheduleQueryOpenApiVo.deviceMacs) && + Objects.equals(this.time, rebootScheduleQueryOpenApiVo.time) && + Objects.equals(this.nextExecute, rebootScheduleQueryOpenApiVo.nextExecute); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, status, deviceMacs, time, nextExecute); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RebootScheduleQueryOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" deviceMacs: ").append(toIndentedString(deviceMacs)).append("\n"); + sb.append(" time: ").append(toIndentedString(time)).append("\n"); + sb.append(" nextExecute: ").append(toIndentedString(nextExecute)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleTimeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleTimeOpenApiVo.java new file mode 100644 index 0000000..e08f74b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RebootScheduleTimeOpenApiVo.java @@ -0,0 +1,182 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Execution time setting. + */ +@ApiModel(description = "Execution time setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RebootScheduleTimeOpenApiVo { + @JsonProperty("timingType") + private Integer timingType; + + @JsonProperty("dayOfWeek") + private Integer dayOfWeek; + + @JsonProperty("dayOfMonth") + private Integer dayOfMonth; + + @JsonProperty("hour") + private Integer hour; + + @JsonProperty("minute") + private Integer minute; + + public RebootScheduleTimeOpenApiVo timingType(Integer timingType) { + this.timingType = timingType; + return this; + } + + /** + * Time type should be a value as follows: 1:Daily; 2:Weekly; 3:Monthly + * @return timingType + */ + @ApiModelProperty(required = true, value = "Time type should be a value as follows: 1:Daily; 2:Weekly; 3:Monthly") + @NotNull + + + public Integer getTimingType() { + return timingType; + } + + public void setTimingType(Integer timingType) { + this.timingType = timingType; + } + + public RebootScheduleTimeOpenApiVo dayOfWeek(Integer dayOfWeek) { + this.dayOfWeek = dayOfWeek; + return this; + } + + /** + * It should be within the range of 0(Sunday)~6(Saturday). Required when parameter [timingType] is 2. + * @return dayOfWeek + */ + @ApiModelProperty(value = "It should be within the range of 0(Sunday)~6(Saturday). Required when parameter [timingType] is 2.") + + + public Integer getDayOfWeek() { + return dayOfWeek; + } + + public void setDayOfWeek(Integer dayOfWeek) { + this.dayOfWeek = dayOfWeek; + } + + public RebootScheduleTimeOpenApiVo dayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + return this; + } + + /** + * It should be within the range of 1~31. Required when parameter [timingType] is 3. + * @return dayOfMonth + */ + @ApiModelProperty(value = "It should be within the range of 1~31. Required when parameter [timingType] is 3.") + + + public Integer getDayOfMonth() { + return dayOfMonth; + } + + public void setDayOfMonth(Integer dayOfMonth) { + this.dayOfMonth = dayOfMonth; + } + + public RebootScheduleTimeOpenApiVo hour(Integer hour) { + this.hour = hour; + return this; + } + + /** + * It should be within the range of 0~23 + * @return hour + */ + @ApiModelProperty(required = true, value = "It should be within the range of 0~23") + @NotNull + + + public Integer getHour() { + return hour; + } + + public void setHour(Integer hour) { + this.hour = hour; + } + + public RebootScheduleTimeOpenApiVo minute(Integer minute) { + this.minute = minute; + return this; + } + + /** + * It should be within the range of 0~59 + * @return minute + */ + @ApiModelProperty(required = true, value = "It should be within the range of 0~59") + @NotNull + + + public Integer getMinute() { + return minute; + } + + public void setMinute(Integer minute) { + this.minute = minute; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RebootScheduleTimeOpenApiVo rebootScheduleTimeOpenApiVo = (RebootScheduleTimeOpenApiVo) o; + return Objects.equals(this.timingType, rebootScheduleTimeOpenApiVo.timingType) && + Objects.equals(this.dayOfWeek, rebootScheduleTimeOpenApiVo.dayOfWeek) && + Objects.equals(this.dayOfMonth, rebootScheduleTimeOpenApiVo.dayOfMonth) && + Objects.equals(this.hour, rebootScheduleTimeOpenApiVo.hour) && + Objects.equals(this.minute, rebootScheduleTimeOpenApiVo.minute); + } + + @Override + public int hashCode() { + return Objects.hash(timingType, dayOfWeek, dayOfMonth, hour, minute); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RebootScheduleTimeOpenApiVo {\n"); + + sb.append(" timingType: ").append(toIndentedString(timingType)).append("\n"); + sb.append(" dayOfWeek: ").append(toIndentedString(dayOfWeek)).append("\n"); + sb.append(" dayOfMonth: ").append(toIndentedString(dayOfMonth)).append("\n"); + sb.append(" hour: ").append(toIndentedString(hour)).append("\n"); + sb.append(" minute: ").append(toIndentedString(minute)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RemoteLogSettingVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RemoteLogSettingVo.java new file mode 100644 index 0000000..9a6af5e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RemoteLogSettingVo.java @@ -0,0 +1,156 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Site remote logging. + */ +@ApiModel(description = "Site remote logging.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RemoteLogSettingVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("host") + private String host; + + @JsonProperty("port") + private Integer port; + + @JsonProperty("moreClientLog") + private Boolean moreClientLog; + + public RemoteLogSettingVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Whether to enable the feature + * @return enable + */ + @ApiModelProperty(required = true, value = "Whether to enable the feature") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public RemoteLogSettingVo host(String host) { + this.host = host; + return this; + } + + /** + * The IP address of the remote log server + * @return host + */ + @ApiModelProperty(value = "The IP address of the remote log server") + +@Pattern(regexp="((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])){3}|([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})") + public String getHost() { + return host; + } + + public void setHost(String host) { + this.host = host; + } + + public RemoteLogSettingVo port(Integer port) { + this.port = port; + return this; + } + + /** + * Port of the remote log server, port should be within the range of 1-65535 + * @return port + */ + @ApiModelProperty(value = "Port of the remote log server, port should be within the range of 1-65535") + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public RemoteLogSettingVo moreClientLog(Boolean moreClientLog) { + this.moreClientLog = moreClientLog; + return this; + } + + /** + * Whether it contains client log + * @return moreClientLog + */ + @ApiModelProperty(value = "Whether it contains client log") + + + public Boolean getMoreClientLog() { + return moreClientLog; + } + + public void setMoreClientLog(Boolean moreClientLog) { + this.moreClientLog = moreClientLog; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RemoteLogSettingVo remoteLogSettingVo = (RemoteLogSettingVo) o; + return Objects.equals(this.enable, remoteLogSettingVo.enable) && + Objects.equals(this.host, remoteLogSettingVo.host) && + Objects.equals(this.port, remoteLogSettingVo.port) && + Objects.equals(this.moreClientLog, remoteLogSettingVo.moreClientLog); + } + + @Override + public int hashCode() { + return Objects.hash(enable, host, port, moreClientLog); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RemoteLogSettingVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" host: ").append(toIndentedString(host)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" moreClientLog: ").append(toIndentedString(moreClientLog)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResIdOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResIdOpenApiVo.java new file mode 100644 index 0000000..6153a64 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResIdOpenApiVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ResIdOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ResIdOpenApiVo { + @JsonProperty("id") + private String id; + + public ResIdOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * ID of the created object + * @return id + */ + @ApiModelProperty(value = "ID of the created object") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResIdOpenApiVo resIdOpenApiVo = (ResIdOpenApiVo) o; + return Objects.equals(this.id, resIdOpenApiVo.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResIdOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoBonjourServiceDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoBonjourServiceDetailOpenApiVo.java new file mode 100644 index 0000000..bd692e5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoBonjourServiceDetailOpenApiVo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ResponseDataVoBonjourServiceDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ResponseDataVoBonjourServiceDetailOpenApiVo { + @JsonProperty("data") + @Valid + private List data = null; + + public ResponseDataVoBonjourServiceDetailOpenApiVo data(List data) { + this.data = data; + return this; + } + + public ResponseDataVoBonjourServiceDetailOpenApiVo addDataItem(BonjourServiceDetailOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseDataVoBonjourServiceDetailOpenApiVo responseDataVoBonjourServiceDetailOpenApiVo = (ResponseDataVoBonjourServiceDetailOpenApiVo) o; + return Objects.equals(this.data, responseDataVoBonjourServiceDetailOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseDataVoBonjourServiceDetailOpenApiVo {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoGatewayQosServiceSummaryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoGatewayQosServiceSummaryOpenApiVo.java new file mode 100644 index 0000000..5fb3979 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoGatewayQosServiceSummaryOpenApiVo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ResponseDataVoGatewayQosServiceSummaryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ResponseDataVoGatewayQosServiceSummaryOpenApiVo { + @JsonProperty("data") + @Valid + private List data = null; + + public ResponseDataVoGatewayQosServiceSummaryOpenApiVo data(List data) { + this.data = data; + return this; + } + + public ResponseDataVoGatewayQosServiceSummaryOpenApiVo addDataItem(GatewayQosServiceSummaryOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseDataVoGatewayQosServiceSummaryOpenApiVo responseDataVoGatewayQosServiceSummaryOpenApiVo = (ResponseDataVoGatewayQosServiceSummaryOpenApiVo) o; + return Objects.equals(this.data, responseDataVoGatewayQosServiceSummaryOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseDataVoGatewayQosServiceSummaryOpenApiVo {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoLanNetworkQueryOpenApiV2Vo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoLanNetworkQueryOpenApiV2Vo.java new file mode 100644 index 0000000..9b7b216 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoLanNetworkQueryOpenApiV2Vo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ResponseDataVoLanNetworkQueryOpenApiV2Vo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ResponseDataVoLanNetworkQueryOpenApiV2Vo { + @JsonProperty("data") + @Valid + private List data = null; + + public ResponseDataVoLanNetworkQueryOpenApiV2Vo data(List data) { + this.data = data; + return this; + } + + public ResponseDataVoLanNetworkQueryOpenApiV2Vo addDataItem(LanNetworkQueryOpenApiV2Vo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseDataVoLanNetworkQueryOpenApiV2Vo responseDataVoLanNetworkQueryOpenApiV2Vo = (ResponseDataVoLanNetworkQueryOpenApiV2Vo) o; + return Objects.equals(this.data, responseDataVoLanNetworkQueryOpenApiV2Vo.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseDataVoLanNetworkQueryOpenApiV2Vo {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoLanNetworkQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoLanNetworkQueryOpenApiVo.java new file mode 100644 index 0000000..229fd7f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoLanNetworkQueryOpenApiVo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ResponseDataVoLanNetworkQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ResponseDataVoLanNetworkQueryOpenApiVo { + @JsonProperty("data") + @Valid + private List data = null; + + public ResponseDataVoLanNetworkQueryOpenApiVo data(List data) { + this.data = data; + return this; + } + + public ResponseDataVoLanNetworkQueryOpenApiVo addDataItem(LanNetworkQueryOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseDataVoLanNetworkQueryOpenApiVo responseDataVoLanNetworkQueryOpenApiVo = (ResponseDataVoLanNetworkQueryOpenApiVo) o; + return Objects.equals(this.data, responseDataVoLanNetworkQueryOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseDataVoLanNetworkQueryOpenApiVo {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoQosBwcWanInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoQosBwcWanInfoOpenApiVo.java new file mode 100644 index 0000000..6b18039 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoQosBwcWanInfoOpenApiVo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ResponseDataVoQosBwcWanInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ResponseDataVoQosBwcWanInfoOpenApiVo { + @JsonProperty("data") + @Valid + private List data = null; + + public ResponseDataVoQosBwcWanInfoOpenApiVo data(List data) { + this.data = data; + return this; + } + + public ResponseDataVoQosBwcWanInfoOpenApiVo addDataItem(QosBwcWanInfoOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseDataVoQosBwcWanInfoOpenApiVo responseDataVoQosBwcWanInfoOpenApiVo = (ResponseDataVoQosBwcWanInfoOpenApiVo) o; + return Objects.equals(this.data, responseDataVoQosBwcWanInfoOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseDataVoQosBwcWanInfoOpenApiVo {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoWireguardSummaryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoWireguardSummaryOpenApiVo.java new file mode 100644 index 0000000..1913b27 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseDataVoWireguardSummaryOpenApiVo.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * ResponseDataVoWireguardSummaryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ResponseDataVoWireguardSummaryOpenApiVo { + @JsonProperty("data") + @Valid + private List data = null; + + public ResponseDataVoWireguardSummaryOpenApiVo data(List data) { + this.data = data; + return this; + } + + public ResponseDataVoWireguardSummaryOpenApiVo addDataItem(WireguardSummaryOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseDataVoWireguardSummaryOpenApiVo responseDataVoWireguardSummaryOpenApiVo = (ResponseDataVoWireguardSummaryOpenApiVo) o; + return Objects.equals(this.data, responseDataVoWireguardSummaryOpenApiVo.data); + } + + @Override + public int hashCode() { + return Objects.hash(data); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseDataVoWireguardSummaryOpenApiVo {\n"); + + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseIdVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseIdVo.java new file mode 100644 index 0000000..2170016 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ResponseIdVo.java @@ -0,0 +1,76 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * ResponseIdVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ResponseIdVo { + @JsonProperty("id") + private String id; + + public ResponseIdVo id(String id) { + this.id = id; + return this; + } + + /** + * Get id + * @return id + */ + @ApiModelProperty(value = "") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ResponseIdVo responseIdVo = (ResponseIdVo) o; + return Objects.equals(this.id, responseIdVo.id); + } + + @Override + public int hashCode() { + return Objects.hash(id); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ResponseIdVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RestrictionEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RestrictionEntity.java new file mode 100644 index 0000000..b84037b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RestrictionEntity.java @@ -0,0 +1,129 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * RestrictionEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RestrictionEntity { + @JsonProperty("networkName") + private String networkName; + + @JsonProperty("filterId") + private Integer filterId; + + @JsonProperty("networkId") + private String networkId; + + public RestrictionEntity networkName(String networkName) { + this.networkName = networkName; + return this; + } + + /** + * Network name. It should be the name of LAN network, can be obtained from 'Get LAN network list' interface. + * @return networkName + */ + @ApiModelProperty(required = true, value = "Network name. It should be the name of LAN network, can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public String getNetworkName() { + return networkName; + } + + public void setNetworkName(String networkName) { + this.networkName = networkName; + } + + public RestrictionEntity filterId(Integer filterId) { + this.filterId = filterId; + return this; + } + + /** + * Filter ID can be obtained from 'Get filter list' interface. + * @return filterId + */ + @ApiModelProperty(required = true, value = "Filter ID can be obtained from 'Get filter list' interface.") + @NotNull + + + public Integer getFilterId() { + return filterId; + } + + public void setFilterId(Integer filterId) { + this.filterId = filterId; + } + + public RestrictionEntity networkId(String networkId) { + this.networkId = networkId; + return this; + } + + /** + * Network ID. It should be the ID of lan network. It can be queried by request: Get LAN network list. + * @return networkId + */ + @ApiModelProperty(value = "Network ID. It should be the ID of lan network. It can be queried by request: Get LAN network list.") + + + public String getNetworkId() { + return networkId; + } + + public void setNetworkId(String networkId) { + this.networkId = networkId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RestrictionEntity restrictionEntity = (RestrictionEntity) o; + return Objects.equals(this.networkName, restrictionEntity.networkName) && + Objects.equals(this.filterId, restrictionEntity.filterId) && + Objects.equals(this.networkId, restrictionEntity.networkId); + } + + @Override + public int hashCode() { + return Objects.hash(networkName, filterId, networkId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RestrictionEntity {\n"); + + sb.append(" networkName: ").append(toIndentedString(networkName)).append("\n"); + sb.append(" filterId: ").append(toIndentedString(filterId)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RoamingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RoamingOpenApiVo.java new file mode 100644 index 0000000..5bcdb9e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RoamingOpenApiVo.java @@ -0,0 +1,181 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Site roaming. + */ +@ApiModel(description = "Site roaming.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RoamingOpenApiVo { + @JsonProperty("fastRoamingEnable") + private Boolean fastRoamingEnable; + + @JsonProperty("aiRoamingEnable") + private Boolean aiRoamingEnable; + + @JsonProperty("dualBand11kReportEnable") + private Boolean dualBand11kReportEnable; + + @JsonProperty("forceDisassociationEnable") + private Boolean forceDisassociationEnable; + + @JsonProperty("nonStickRoamingEnable") + private Boolean nonStickRoamingEnable; + + public RoamingOpenApiVo fastRoamingEnable(Boolean fastRoamingEnable) { + this.fastRoamingEnable = fastRoamingEnable; + return this; + } + + /** + * Whether to enable fast roaming + * @return fastRoamingEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable fast roaming") + @NotNull + + + public Boolean getFastRoamingEnable() { + return fastRoamingEnable; + } + + public void setFastRoamingEnable(Boolean fastRoamingEnable) { + this.fastRoamingEnable = fastRoamingEnable; + } + + public RoamingOpenApiVo aiRoamingEnable(Boolean aiRoamingEnable) { + this.aiRoamingEnable = aiRoamingEnable; + return this; + } + + /** + * Whether to enable AI roaming, this configuration will take effect only when fast roaming is enabled + * @return aiRoamingEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable AI roaming, this configuration will take effect only when fast roaming is enabled") + @NotNull + + + public Boolean getAiRoamingEnable() { + return aiRoamingEnable; + } + + public void setAiRoamingEnable(Boolean aiRoamingEnable) { + this.aiRoamingEnable = aiRoamingEnable; + } + + public RoamingOpenApiVo dualBand11kReportEnable(Boolean dualBand11kReportEnable) { + this.dualBand11kReportEnable = dualBand11kReportEnable; + return this; + } + + /** + * Whether to enable 802.11k report. It has been deprecated. + * @return dualBand11kReportEnable + */ + @ApiModelProperty(value = "Whether to enable 802.11k report. It has been deprecated.") + + + public Boolean getDualBand11kReportEnable() { + return dualBand11kReportEnable; + } + + public void setDualBand11kReportEnable(Boolean dualBand11kReportEnable) { + this.dualBand11kReportEnable = dualBand11kReportEnable; + } + + public RoamingOpenApiVo forceDisassociationEnable(Boolean forceDisassociationEnable) { + this.forceDisassociationEnable = forceDisassociationEnable; + return this; + } + + /** + * Whether to enable forced disassociation. Note: This field will no longer be supported since Omada Controller 5.14.24.40. + * @return forceDisassociationEnable + */ + @ApiModelProperty(value = "Whether to enable forced disassociation. Note: This field will no longer be supported since Omada Controller 5.14.24.40.") + + + public Boolean getForceDisassociationEnable() { + return forceDisassociationEnable; + } + + public void setForceDisassociationEnable(Boolean forceDisassociationEnable) { + this.forceDisassociationEnable = forceDisassociationEnable; + } + + public RoamingOpenApiVo nonStickRoamingEnable(Boolean nonStickRoamingEnable) { + this.nonStickRoamingEnable = nonStickRoamingEnable; + return this; + } + + /** + * Whether to enable non-stick roaming + * @return nonStickRoamingEnable + */ + @ApiModelProperty(value = "Whether to enable non-stick roaming") + + + public Boolean getNonStickRoamingEnable() { + return nonStickRoamingEnable; + } + + public void setNonStickRoamingEnable(Boolean nonStickRoamingEnable) { + this.nonStickRoamingEnable = nonStickRoamingEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RoamingOpenApiVo roamingOpenApiVo = (RoamingOpenApiVo) o; + return Objects.equals(this.fastRoamingEnable, roamingOpenApiVo.fastRoamingEnable) && + Objects.equals(this.aiRoamingEnable, roamingOpenApiVo.aiRoamingEnable) && + Objects.equals(this.dualBand11kReportEnable, roamingOpenApiVo.dualBand11kReportEnable) && + Objects.equals(this.forceDisassociationEnable, roamingOpenApiVo.forceDisassociationEnable) && + Objects.equals(this.nonStickRoamingEnable, roamingOpenApiVo.nonStickRoamingEnable); + } + + @Override + public int hashCode() { + return Objects.hash(fastRoamingEnable, aiRoamingEnable, dualBand11kReportEnable, forceDisassociationEnable, nonStickRoamingEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RoamingOpenApiVo {\n"); + + sb.append(" fastRoamingEnable: ").append(toIndentedString(fastRoamingEnable)).append("\n"); + sb.append(" aiRoamingEnable: ").append(toIndentedString(aiRoamingEnable)).append("\n"); + sb.append(" dualBand11kReportEnable: ").append(toIndentedString(dualBand11kReportEnable)).append("\n"); + sb.append(" forceDisassociationEnable: ").append(toIndentedString(forceDisassociationEnable)).append("\n"); + sb.append(" nonStickRoamingEnable: ").append(toIndentedString(nonStickRoamingEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RuleEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RuleEntity.java new file mode 100644 index 0000000..4f9e2f5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/RuleEntity.java @@ -0,0 +1,214 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * RuleEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class RuleEntity { + @JsonProperty("ruleName") + private String ruleName; + + @JsonProperty("ruleId") + private Integer ruleId; + + @JsonProperty("schedule") + private String schedule; + + @JsonProperty("qos") + private Boolean qos; + + @JsonProperty("qosClass") + private Integer qosClass; + + @JsonProperty("applications") + @Valid + private List applications = null; + + public RuleEntity ruleName(String ruleName) { + this.ruleName = ruleName; + return this; + } + + /** + * Rule name + * @return ruleName + */ + @ApiModelProperty(value = "Rule name") + + + public String getRuleName() { + return ruleName; + } + + public void setRuleName(String ruleName) { + this.ruleName = ruleName; + } + + public RuleEntity ruleId(Integer ruleId) { + this.ruleId = ruleId; + return this; + } + + /** + * Rule ID + * @return ruleId + */ + @ApiModelProperty(value = "Rule ID") + + + public Integer getRuleId() { + return ruleId; + } + + public void setRuleId(Integer ruleId) { + this.ruleId = ruleId; + } + + public RuleEntity schedule(String schedule) { + this.schedule = schedule; + return this; + } + + /** + * Schedule profile ID + * @return schedule + */ + @ApiModelProperty(value = "Schedule profile ID") + + + public String getSchedule() { + return schedule; + } + + public void setSchedule(String schedule) { + this.schedule = schedule; + } + + public RuleEntity qos(Boolean qos) { + this.qos = qos; + return this; + } + + /** + * Enable qos. true:enable / false:disable + * @return qos + */ + @ApiModelProperty(value = "Enable qos. true:enable / false:disable") + + + public Boolean getQos() { + return qos; + } + + public void setQos(Boolean qos) { + this.qos = qos; + } + + public RuleEntity qosClass(Integer qosClass) { + this.qosClass = qosClass; + return this; + } + + /** + * Qos class category + * @return qosClass + */ + @ApiModelProperty(value = "Qos class category") + + + public Integer getQosClass() { + return qosClass; + } + + public void setQosClass(Integer qosClass) { + this.qosClass = qosClass; + } + + public RuleEntity applications(List applications) { + this.applications = applications; + return this; + } + + public RuleEntity addApplicationsItem(ApplicationEntity applicationsItem) { + if (this.applications == null) { + this.applications = new ArrayList<>(); + } + this.applications.add(applicationsItem); + return this; + } + + /** + * Application list + * @return applications + */ + @ApiModelProperty(value = "Application list") + + @Valid + + public List getApplications() { + return applications; + } + + public void setApplications(List applications) { + this.applications = applications; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + RuleEntity ruleEntity = (RuleEntity) o; + return Objects.equals(this.ruleName, ruleEntity.ruleName) && + Objects.equals(this.ruleId, ruleEntity.ruleId) && + Objects.equals(this.schedule, ruleEntity.schedule) && + Objects.equals(this.qos, ruleEntity.qos) && + Objects.equals(this.qosClass, ruleEntity.qosClass) && + Objects.equals(this.applications, ruleEntity.applications); + } + + @Override + public int hashCode() { + return Objects.hash(ruleName, ruleId, schedule, qos, qosClass, applications); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class RuleEntity {\n"); + + sb.append(" ruleName: ").append(toIndentedString(ruleName)).append("\n"); + sb.append(" ruleId: ").append(toIndentedString(ruleId)).append("\n"); + sb.append(" schedule: ").append(toIndentedString(schedule)).append("\n"); + sb.append(" qos: ").append(toIndentedString(qos)).append("\n"); + sb.append(" qosClass: ").append(toIndentedString(qosClass)).append("\n"); + sb.append(" applications: ").append(toIndentedString(applications)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ScheduleTimeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ScheduleTimeOpenApiVo.java new file mode 100644 index 0000000..64f3446 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/ScheduleTimeOpenApiVo.java @@ -0,0 +1,184 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Time range profile schedule time config + */ +@ApiModel(description = "Time range profile schedule time config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class ScheduleTimeOpenApiVo { + @JsonProperty("dayType") + private Integer dayType; + + @JsonProperty("startTimeH") + private Integer startTimeH; + + @JsonProperty("startTimeM") + private Integer startTimeM; + + @JsonProperty("endTimeH") + private Integer endTimeH; + + @JsonProperty("endTimeM") + private Integer endTimeM; + + public ScheduleTimeOpenApiVo dayType(Integer dayType) { + this.dayType = dayType; + return this; + } + + /** + * Time range schedule time day type, 1 to 7 indicates Monday to Sunday, if parameter [dayMode] is 0 to 2, the input value for this field should be 0. + * @return dayType + */ + @ApiModelProperty(required = true, value = "Time range schedule time day type, 1 to 7 indicates Monday to Sunday, if parameter [dayMode] is 0 to 2, the input value for this field should be 0.") + @NotNull + + + public Integer getDayType() { + return dayType; + } + + public void setDayType(Integer dayType) { + this.dayType = dayType; + } + + public ScheduleTimeOpenApiVo startTimeH(Integer startTimeH) { + this.startTimeH = startTimeH; + return this; + } + + /** + * Time range schedule start time (unit: hour); It should be within the range of 0–24. + * @return startTimeH + */ + @ApiModelProperty(required = true, value = "Time range schedule start time (unit: hour); It should be within the range of 0–24.") + @NotNull + + + public Integer getStartTimeH() { + return startTimeH; + } + + public void setStartTimeH(Integer startTimeH) { + this.startTimeH = startTimeH; + } + + public ScheduleTimeOpenApiVo startTimeM(Integer startTimeM) { + this.startTimeM = startTimeM; + return this; + } + + /** + * Time range schedule start time (unit: minute); It should be a value as follows: [0, 15, 30, 45]. + * @return startTimeM + */ + @ApiModelProperty(required = true, value = "Time range schedule start time (unit: minute); It should be a value as follows: [0, 15, 30, 45].") + @NotNull + + + public Integer getStartTimeM() { + return startTimeM; + } + + public void setStartTimeM(Integer startTimeM) { + this.startTimeM = startTimeM; + } + + public ScheduleTimeOpenApiVo endTimeH(Integer endTimeH) { + this.endTimeH = endTimeH; + return this; + } + + /** + * Time range schedule end time (unit: hour); It should be within the range of 0–24. + * @return endTimeH + */ + @ApiModelProperty(required = true, value = "Time range schedule end time (unit: hour); It should be within the range of 0–24.") + @NotNull + + + public Integer getEndTimeH() { + return endTimeH; + } + + public void setEndTimeH(Integer endTimeH) { + this.endTimeH = endTimeH; + } + + public ScheduleTimeOpenApiVo endTimeM(Integer endTimeM) { + this.endTimeM = endTimeM; + return this; + } + + /** + * Time range schedule end time (unit: minute); It should be a value as follows: [0, 15, 30, 45]. + * @return endTimeM + */ + @ApiModelProperty(required = true, value = "Time range schedule end time (unit: minute); It should be a value as follows: [0, 15, 30, 45].") + @NotNull + + + public Integer getEndTimeM() { + return endTimeM; + } + + public void setEndTimeM(Integer endTimeM) { + this.endTimeM = endTimeM; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + ScheduleTimeOpenApiVo scheduleTimeOpenApiVo = (ScheduleTimeOpenApiVo) o; + return Objects.equals(this.dayType, scheduleTimeOpenApiVo.dayType) && + Objects.equals(this.startTimeH, scheduleTimeOpenApiVo.startTimeH) && + Objects.equals(this.startTimeM, scheduleTimeOpenApiVo.startTimeM) && + Objects.equals(this.endTimeH, scheduleTimeOpenApiVo.endTimeH) && + Objects.equals(this.endTimeM, scheduleTimeOpenApiVo.endTimeM); + } + + @Override + public int hashCode() { + return Objects.hash(dayType, startTimeH, startTimeM, endTimeH, endTimeM); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class ScheduleTimeOpenApiVo {\n"); + + sb.append(" dayType: ").append(toIndentedString(dayType)).append("\n"); + sb.append(" startTimeH: ").append(toIndentedString(startTimeH)).append("\n"); + sb.append(" startTimeM: ").append(toIndentedString(startTimeM)).append("\n"); + sb.append(" endTimeH: ").append(toIndentedString(endTimeH)).append("\n"); + sb.append(" endTimeM: ").append(toIndentedString(endTimeM)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SessionLimitEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SessionLimitEntity.java new file mode 100644 index 0000000..0bff9d3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SessionLimitEntity.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * SessionLimitEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SessionLimitEntity { + @JsonProperty("enable") + private Boolean enable; + + public SessionLimitEntity enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Enable the session limit. + * @return enable + */ + @ApiModelProperty(required = true, value = "Enable the session limit.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SessionLimitEntity sessionLimitEntity = (SessionLimitEntity) o; + return Objects.equals(this.enable, sessionLimitEntity.enable); + } + + @Override + public int hashCode() { + return Objects.hash(enable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SessionLimitEntity {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SessionLimitRuleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SessionLimitRuleOpenApiVo.java new file mode 100644 index 0000000..4a6da1a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SessionLimitRuleOpenApiVo.java @@ -0,0 +1,219 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SessionLimitRuleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SessionLimitRuleOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = null; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("maxSession") + private Integer maxSession; + + public SessionLimitRuleOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SessionLimitRuleOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the session limit rule. + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the session limit rule.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public SessionLimitRuleOpenApiVo sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * Source type should be a value as follows: 0: network; 1: IP group; 2: IP. + * @return sourceType + */ + @ApiModelProperty(required = true, value = "Source type should be a value as follows: 0: network; 1: IP group; 2: IP.") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public SessionLimitRuleOpenApiVo sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public SessionLimitRuleOpenApiVo addSourceIdsItem(String sourceIdsItem) { + if (this.sourceIds == null) { + this.sourceIds = new ArrayList<>(); + } + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs of the session limit rule, only for network and IP group type.Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. IP group can be created using 'Create a new group profile' interface, and IP group ID can be obtained from 'Get group profile list' interface. + * @return sourceIds + */ + @ApiModelProperty(value = "Source IDs of the session limit rule, only for network and IP group type.Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. IP group can be created using 'Create a new group profile' interface, and IP group ID can be obtained from 'Get group profile list' interface.") + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public SessionLimitRuleOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP of the session limit rule. + * @return ip + */ + @ApiModelProperty(value = "IP of the session limit rule.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public SessionLimitRuleOpenApiVo maxSession(Integer maxSession) { + this.maxSession = maxSession; + return this; + } + + /** + * Max sessions should be within the range of 1–999999. + * @return maxSession + */ + @ApiModelProperty(required = true, value = "Max sessions should be within the range of 1–999999.") + @NotNull + + + public Integer getMaxSession() { + return maxSession; + } + + public void setMaxSession(Integer maxSession) { + this.maxSession = maxSession; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SessionLimitRuleOpenApiVo sessionLimitRuleOpenApiVo = (SessionLimitRuleOpenApiVo) o; + return Objects.equals(this.name, sessionLimitRuleOpenApiVo.name) && + Objects.equals(this.status, sessionLimitRuleOpenApiVo.status) && + Objects.equals(this.sourceType, sessionLimitRuleOpenApiVo.sourceType) && + Objects.equals(this.sourceIds, sessionLimitRuleOpenApiVo.sourceIds) && + Objects.equals(this.ip, sessionLimitRuleOpenApiVo.ip) && + Objects.equals(this.maxSession, sessionLimitRuleOpenApiVo.maxSession); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, sourceType, sourceIds, ip, maxSession); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SessionLimitRuleOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" maxSession: ").append(toIndentedString(maxSession)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimQuotaSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimQuotaSetting.java new file mode 100644 index 0000000..f6d7adc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimQuotaSetting.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * SimQuotaSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SimQuotaSetting { + @JsonProperty("dataSetting") + private QuotaDataSettingOpenApiVo dataSetting; + + @JsonProperty("smsSetting") + private QuotaSmsSettingOpenApiVo smsSetting; + + public SimQuotaSetting dataSetting(QuotaDataSettingOpenApiVo dataSetting) { + this.dataSetting = dataSetting; + return this; + } + + /** + * Get dataSetting + * @return dataSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public QuotaDataSettingOpenApiVo getDataSetting() { + return dataSetting; + } + + public void setDataSetting(QuotaDataSettingOpenApiVo dataSetting) { + this.dataSetting = dataSetting; + } + + public SimQuotaSetting smsSetting(QuotaSmsSettingOpenApiVo smsSetting) { + this.smsSetting = smsSetting; + return this; + } + + /** + * Get smsSetting + * @return smsSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public QuotaSmsSettingOpenApiVo getSmsSetting() { + return smsSetting; + } + + public void setSmsSetting(QuotaSmsSettingOpenApiVo smsSetting) { + this.smsSetting = smsSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimQuotaSetting simQuotaSetting = (SimQuotaSetting) o; + return Objects.equals(this.dataSetting, simQuotaSetting.dataSetting) && + Objects.equals(this.smsSetting, simQuotaSetting.smsSetting); + } + + @Override + public int hashCode() { + return Objects.hash(dataSetting, smsSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimQuotaSetting {\n"); + + sb.append(" dataSetting: ").append(toIndentedString(dataSetting)).append("\n"); + sb.append(" smsSetting: ").append(toIndentedString(smsSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplePasswordSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplePasswordSetting.java new file mode 100644 index 0000000..f10532c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplePasswordSetting.java @@ -0,0 +1,81 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Simple Password Portal Setting. + */ +@ApiModel(description = "Simple Password Portal Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SimplePasswordSetting { + @JsonProperty("password") + private String password; + + public SimplePasswordSetting password(String password) { + this.password = password; + return this; + } + + /** + * Auth password, should contain 1 to 128 characters. + * @return password + */ + @ApiModelProperty(required = true, value = "Auth password, should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^.{1,128}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimplePasswordSetting simplePasswordSetting = (SimplePasswordSetting) o; + return Objects.equals(this.password, simplePasswordSetting.password); + } + + @Override + public int hashCode() { + return Objects.hash(password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimplePasswordSetting {\n"); + + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplifiedCallBlockingProfile.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplifiedCallBlockingProfile.java new file mode 100644 index 0000000..9dc16fd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplifiedCallBlockingProfile.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * SimplifiedCallBlockingProfile + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SimplifiedCallBlockingProfile { + @JsonProperty("callBlockingProfileId") + private String callBlockingProfileId; + + @JsonProperty("callBlockingProfileName") + private String callBlockingProfileName; + + public SimplifiedCallBlockingProfile callBlockingProfileId(String callBlockingProfileId) { + this.callBlockingProfileId = callBlockingProfileId; + return this; + } + + /** + * Call blocking profile id. + * @return callBlockingProfileId + */ + @ApiModelProperty(value = "Call blocking profile id.") + + + public String getCallBlockingProfileId() { + return callBlockingProfileId; + } + + public void setCallBlockingProfileId(String callBlockingProfileId) { + this.callBlockingProfileId = callBlockingProfileId; + } + + public SimplifiedCallBlockingProfile callBlockingProfileName(String callBlockingProfileName) { + this.callBlockingProfileName = callBlockingProfileName; + return this; + } + + /** + * Call blocking profile name. + * @return callBlockingProfileName + */ + @ApiModelProperty(value = "Call blocking profile name.") + + + public String getCallBlockingProfileName() { + return callBlockingProfileName; + } + + public void setCallBlockingProfileName(String callBlockingProfileName) { + this.callBlockingProfileName = callBlockingProfileName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimplifiedCallBlockingProfile simplifiedCallBlockingProfile = (SimplifiedCallBlockingProfile) o; + return Objects.equals(this.callBlockingProfileId, simplifiedCallBlockingProfile.callBlockingProfileId) && + Objects.equals(this.callBlockingProfileName, simplifiedCallBlockingProfile.callBlockingProfileName); + } + + @Override + public int hashCode() { + return Objects.hash(callBlockingProfileId, callBlockingProfileName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimplifiedCallBlockingProfile {\n"); + + sb.append(" callBlockingProfileId: ").append(toIndentedString(callBlockingProfileId)).append("\n"); + sb.append(" callBlockingProfileName: ").append(toIndentedString(callBlockingProfileName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplifiedDigitMapProfile.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplifiedDigitMapProfile.java new file mode 100644 index 0000000..f47eae8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SimplifiedDigitMapProfile.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * SimplifiedDigitMapProfile + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SimplifiedDigitMapProfile { + @JsonProperty("digitMapProfileId") + private String digitMapProfileId; + + @JsonProperty("digitMapProfileName") + private String digitMapProfileName; + + public SimplifiedDigitMapProfile digitMapProfileId(String digitMapProfileId) { + this.digitMapProfileId = digitMapProfileId; + return this; + } + + /** + * Digit map profile ID. + * @return digitMapProfileId + */ + @ApiModelProperty(value = "Digit map profile ID.") + + + public String getDigitMapProfileId() { + return digitMapProfileId; + } + + public void setDigitMapProfileId(String digitMapProfileId) { + this.digitMapProfileId = digitMapProfileId; + } + + public SimplifiedDigitMapProfile digitMapProfileName(String digitMapProfileName) { + this.digitMapProfileName = digitMapProfileName; + return this; + } + + /** + * Digit map profile name. + * @return digitMapProfileName + */ + @ApiModelProperty(value = "Digit map profile name.") + + + public String getDigitMapProfileName() { + return digitMapProfileName; + } + + public void setDigitMapProfileName(String digitMapProfileName) { + this.digitMapProfileName = digitMapProfileName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SimplifiedDigitMapProfile simplifiedDigitMapProfile = (SimplifiedDigitMapProfile) o; + return Objects.equals(this.digitMapProfileId, simplifiedDigitMapProfile.digitMapProfileId) && + Objects.equals(this.digitMapProfileName, simplifiedDigitMapProfile.digitMapProfileName); + } + + @Override + public int hashCode() { + return Objects.hash(digitMapProfileId, digitMapProfileName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SimplifiedDigitMapProfile {\n"); + + sb.append(" digitMapProfileId: ").append(toIndentedString(digitMapProfileId)).append("\n"); + sb.append(" digitMapProfileName: ").append(toIndentedString(digitMapProfileName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteApLldpSettingVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteApLldpSettingVo.java new file mode 100644 index 0000000..3f22525 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteApLldpSettingVo.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Site LLDP. + */ +@ApiModel(description = "Site LLDP.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SiteApLldpSettingVo { + @JsonProperty("enable") + private Boolean enable; + + public SiteApLldpSettingVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Whether to enable LLDP. + * @return enable + */ + @ApiModelProperty(required = true, value = "Whether to enable LLDP.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteApLldpSettingVo siteApLldpSettingVo = (SiteApLldpSettingVo) o; + return Objects.equals(this.enable, siteApLldpSettingVo.enable); + } + + @Override + public int hashCode() { + return Objects.hash(enable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteApLldpSettingVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteBandSteeringSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteBandSteeringSetting.java new file mode 100644 index 0000000..dde9575 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteBandSteeringSetting.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Site band steering setting. + */ +@ApiModel(description = "Site band steering setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SiteBandSteeringSetting { + @JsonProperty("bandSteeringForMultiBand") + private BandSteeringMultiBandVo bandSteeringForMultiBand; + + public SiteBandSteeringSetting bandSteeringForMultiBand(BandSteeringMultiBandVo bandSteeringForMultiBand) { + this.bandSteeringForMultiBand = bandSteeringForMultiBand; + return this; + } + + /** + * Get bandSteeringForMultiBand + * @return bandSteeringForMultiBand + */ + @ApiModelProperty(value = "") + + @Valid + + public BandSteeringMultiBandVo getBandSteeringForMultiBand() { + return bandSteeringForMultiBand; + } + + public void setBandSteeringForMultiBand(BandSteeringMultiBandVo bandSteeringForMultiBand) { + this.bandSteeringForMultiBand = bandSteeringForMultiBand; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteBandSteeringSetting siteBandSteeringSetting = (SiteBandSteeringSetting) o; + return Objects.equals(this.bandSteeringForMultiBand, siteBandSteeringSetting.bandSteeringForMultiBand); + } + + @Override + public int hashCode() { + return Objects.hash(bandSteeringForMultiBand); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteBandSteeringSetting {\n"); + + sb.append(" bandSteeringForMultiBand: ").append(toIndentedString(bandSteeringForMultiBand)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteBeaconControlSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteBeaconControlSetting.java new file mode 100644 index 0000000..4461220 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteBeaconControlSetting.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Site beacon control setting. + */ +@ApiModel(description = "Site beacon control setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SiteBeaconControlSetting { + @JsonProperty("beaconControl") + private BeaconControlVo beaconControl; + + @JsonProperty("airtimeFairness") + private AirtimeFairnessSettingVo airtimeFairness; + + public SiteBeaconControlSetting beaconControl(BeaconControlVo beaconControl) { + this.beaconControl = beaconControl; + return this; + } + + /** + * Get beaconControl + * @return beaconControl + */ + @ApiModelProperty(value = "") + + @Valid + + public BeaconControlVo getBeaconControl() { + return beaconControl; + } + + public void setBeaconControl(BeaconControlVo beaconControl) { + this.beaconControl = beaconControl; + } + + public SiteBeaconControlSetting airtimeFairness(AirtimeFairnessSettingVo airtimeFairness) { + this.airtimeFairness = airtimeFairness; + return this; + } + + /** + * Get airtimeFairness + * @return airtimeFairness + */ + @ApiModelProperty(value = "") + + @Valid + + public AirtimeFairnessSettingVo getAirtimeFairness() { + return airtimeFairness; + } + + public void setAirtimeFairness(AirtimeFairnessSettingVo airtimeFairness) { + this.airtimeFairness = airtimeFairness; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteBeaconControlSetting siteBeaconControlSetting = (SiteBeaconControlSetting) o; + return Objects.equals(this.beaconControl, siteBeaconControlSetting.beaconControl) && + Objects.equals(this.airtimeFairness, siteBeaconControlSetting.airtimeFairness); + } + + @Override + public int hashCode() { + return Objects.hash(beaconControl, airtimeFairness); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteBeaconControlSetting {\n"); + + sb.append(" beaconControl: ").append(toIndentedString(beaconControl)).append("\n"); + sb.append(" airtimeFairness: ").append(toIndentedString(airtimeFairness)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteChannelLimitSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteChannelLimitSetting.java new file mode 100644 index 0000000..65023e0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteChannelLimitSetting.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Site channel limit setting. + */ +@ApiModel(description = "Site channel limit setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SiteChannelLimitSetting { + @JsonProperty("channelLimit") + private ChannelLimitSettingVo channelLimit; + + public SiteChannelLimitSetting channelLimit(ChannelLimitSettingVo channelLimit) { + this.channelLimit = channelLimit; + return this; + } + + /** + * Get channelLimit + * @return channelLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public ChannelLimitSettingVo getChannelLimit() { + return channelLimit; + } + + public void setChannelLimit(ChannelLimitSettingVo channelLimit) { + this.channelLimit = channelLimit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteChannelLimitSetting siteChannelLimitSetting = (SiteChannelLimitSetting) o; + return Objects.equals(this.channelLimit, siteChannelLimitSetting.channelLimit); + } + + @Override + public int hashCode() { + return Objects.hash(channelLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteChannelLimitSetting {\n"); + + sb.append(" channelLimit: ").append(toIndentedString(channelLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteLedSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteLedSetting.java new file mode 100644 index 0000000..44262aa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteLedSetting.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Site led setting + */ +@ApiModel(description = "Site led setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SiteLedSetting { + @JsonProperty("enable") + private Boolean enable; + + public SiteLedSetting enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Whether to enable led + * @return enable + */ + @ApiModelProperty(required = true, value = "Whether to enable led") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteLedSetting siteLedSetting = (SiteLedSetting) o; + return Objects.equals(this.enable, siteLedSetting.enable); + } + + @Override + public int hashCode() { + return Objects.hash(enable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteLedSetting {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteLldpSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteLldpSetting.java new file mode 100644 index 0000000..54f344e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteLldpSetting.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Site LLDP setting. + */ +@ApiModel(description = "Site LLDP setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SiteLldpSetting { + @JsonProperty("lldp") + private SiteApLldpSettingVo lldp; + + public SiteLldpSetting lldp(SiteApLldpSettingVo lldp) { + this.lldp = lldp; + return this; + } + + /** + * Get lldp + * @return lldp + */ + @ApiModelProperty(value = "") + + @Valid + + public SiteApLldpSettingVo getLldp() { + return lldp; + } + + public void setLldp(SiteApLldpSettingVo lldp) { + this.lldp = lldp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteLldpSetting siteLldpSetting = (SiteLldpSetting) o; + return Objects.equals(this.lldp, siteLldpSetting.lldp); + } + + @Override + public int hashCode() { + return Objects.hash(lldp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteLldpSetting {\n"); + + sb.append(" lldp: ").append(toIndentedString(lldp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteMeshSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteMeshSetting.java new file mode 100644 index 0000000..2082ceb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteMeshSetting.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Site mesh setting. + */ +@ApiModel(description = "Site mesh setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SiteMeshSetting { + @JsonProperty("mesh") + private MeshSettingVo mesh; + + public SiteMeshSetting mesh(MeshSettingVo mesh) { + this.mesh = mesh; + return this; + } + + /** + * Get mesh + * @return mesh + */ + @ApiModelProperty(value = "") + + @Valid + + public MeshSettingVo getMesh() { + return mesh; + } + + public void setMesh(MeshSettingVo mesh) { + this.mesh = mesh; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteMeshSetting siteMeshSetting = (SiteMeshSetting) o; + return Objects.equals(this.mesh, siteMeshSetting.mesh); + } + + @Override + public int hashCode() { + return Objects.hash(mesh); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteMeshSetting {\n"); + + sb.append(" mesh: ").append(toIndentedString(mesh)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteMulticastRateLimitSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteMulticastRateLimitSetting.java new file mode 100644 index 0000000..b141ab2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteMulticastRateLimitSetting.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Site multicast rate limit setting + */ +@ApiModel(description = "Site multicast rate limit setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SiteMulticastRateLimitSetting { + @JsonProperty("mcastRateLimit") + private McastRateLimitSettingVo mcastRateLimit; + + public SiteMulticastRateLimitSetting mcastRateLimit(McastRateLimitSettingVo mcastRateLimit) { + this.mcastRateLimit = mcastRateLimit; + return this; + } + + /** + * Get mcastRateLimit + * @return mcastRateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public McastRateLimitSettingVo getMcastRateLimit() { + return mcastRateLimit; + } + + public void setMcastRateLimit(McastRateLimitSettingVo mcastRateLimit) { + this.mcastRateLimit = mcastRateLimit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteMulticastRateLimitSetting siteMulticastRateLimitSetting = (SiteMulticastRateLimitSetting) o; + return Objects.equals(this.mcastRateLimit, siteMulticastRateLimitSetting.mcastRateLimit); + } + + @Override + public int hashCode() { + return Objects.hash(mcastRateLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteMulticastRateLimitSetting {\n"); + + sb.append(" mcastRateLimit: ").append(toIndentedString(mcastRateLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteRemoteLoggingSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteRemoteLoggingSetting.java new file mode 100644 index 0000000..c8731d3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteRemoteLoggingSetting.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Site remote logging setting. + */ +@ApiModel(description = "Site remote logging setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SiteRemoteLoggingSetting { + @JsonProperty("remoteLog") + private RemoteLogSettingVo remoteLog; + + public SiteRemoteLoggingSetting remoteLog(RemoteLogSettingVo remoteLog) { + this.remoteLog = remoteLog; + return this; + } + + /** + * Get remoteLog + * @return remoteLog + */ + @ApiModelProperty(value = "") + + @Valid + + public RemoteLogSettingVo getRemoteLog() { + return remoteLog; + } + + public void setRemoteLog(RemoteLogSettingVo remoteLog) { + this.remoteLog = remoteLog; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteRemoteLoggingSetting siteRemoteLoggingSetting = (SiteRemoteLoggingSetting) o; + return Objects.equals(this.remoteLog, siteRemoteLoggingSetting.remoteLog); + } + + @Override + public int hashCode() { + return Objects.hash(remoteLog); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteRemoteLoggingSetting {\n"); + + sb.append(" remoteLog: ").append(toIndentedString(remoteLog)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteRoamingSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteRoamingSetting.java new file mode 100644 index 0000000..e296c11 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteRoamingSetting.java @@ -0,0 +1,82 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Site roaming setting + */ +@ApiModel(description = "Site roaming setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SiteRoamingSetting { + @JsonProperty("roaming") + private RoamingOpenApiVo roaming; + + public SiteRoamingSetting roaming(RoamingOpenApiVo roaming) { + this.roaming = roaming; + return this; + } + + /** + * Get roaming + * @return roaming + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public RoamingOpenApiVo getRoaming() { + return roaming; + } + + public void setRoaming(RoamingOpenApiVo roaming) { + this.roaming = roaming; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteRoamingSetting siteRoamingSetting = (SiteRoamingSetting) o; + return Objects.equals(this.roaming, siteRoamingSetting.roaming); + } + + @Override + public int hashCode() { + return Objects.hash(roaming); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteRoamingSetting {\n"); + + sb.append(" roaming: ").append(toIndentedString(roaming)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteToSiteVpn.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteToSiteVpn.java new file mode 100644 index 0000000..f208f11 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SiteToSiteVpn.java @@ -0,0 +1,423 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SiteToSiteVpn + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SiteToSiteVpn { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("siteVpnType") + private Integer siteVpnType; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("remoteSite") + private String remoteSite; + + @JsonProperty("remoteIp") + private String remoteIp; + + @JsonProperty("remoteSubnet") + @Valid + private List remoteSubnet = null; + + @JsonProperty("networkType") + private Integer networkType; + + @JsonProperty("networkList") + @Valid + private List networkList = null; + + @JsonProperty("customNetwork") + @Valid + private List customNetwork = null; + + @JsonProperty("preSharedKey") + private String preSharedKey; + + @JsonProperty("wan") + @Valid + private List wan = null; + + @JsonProperty("advancedSetting") + private VpnAdvancedSettingOpenApiVo advancedSetting; + + public SiteToSiteVpn id(String id) { + this.id = id; + return this; + } + + /** + * ID of the VPN. + * @return id + */ + @ApiModelProperty(value = "ID of the VPN.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SiteToSiteVpn name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 63 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 63 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,61}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SiteToSiteVpn siteVpnType(Integer siteVpnType) { + this.siteVpnType = siteVpnType; + return this; + } + + /** + * Site VPN type should be a value as follows: 0: Auto IPSec; 1: Manual IPSec. + * @return siteVpnType + */ + @ApiModelProperty(required = true, value = "Site VPN type should be a value as follows: 0: Auto IPSec; 1: Manual IPSec.") + @NotNull + + + public Integer getSiteVpnType() { + return siteVpnType; + } + + public void setSiteVpnType(Integer siteVpnType) { + this.siteVpnType = siteVpnType; + } + + public SiteToSiteVpn status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the VPN. + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the VPN.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public SiteToSiteVpn remoteSite(String remoteSite) { + this.remoteSite = remoteSite; + return this; + } + + /** + * Remote site of the VPN, only for Auto IPSec type. + * @return remoteSite + */ + @ApiModelProperty(value = "Remote site of the VPN, only for Auto IPSec type.") + + + public String getRemoteSite() { + return remoteSite; + } + + public void setRemoteSite(String remoteSite) { + this.remoteSite = remoteSite; + } + + public SiteToSiteVpn remoteIp(String remoteIp) { + this.remoteIp = remoteIp; + return this; + } + + /** + * Remote IP of the VPN, only for Manual IPSec type. + * @return remoteIp + */ + @ApiModelProperty(value = "Remote IP of the VPN, only for Manual IPSec type.") + + + public String getRemoteIp() { + return remoteIp; + } + + public void setRemoteIp(String remoteIp) { + this.remoteIp = remoteIp; + } + + public SiteToSiteVpn remoteSubnet(List remoteSubnet) { + this.remoteSubnet = remoteSubnet; + return this; + } + + public SiteToSiteVpn addRemoteSubnetItem(IpSubnetsVo remoteSubnetItem) { + if (this.remoteSubnet == null) { + this.remoteSubnet = new ArrayList<>(); + } + this.remoteSubnet.add(remoteSubnetItem); + return this; + } + + /** + * Remote subnet of the VPN, only for Manual IPSec type. + * @return remoteSubnet + */ + @ApiModelProperty(value = "Remote subnet of the VPN, only for Manual IPSec type.") + + @Valid + + public List getRemoteSubnet() { + return remoteSubnet; + } + + public void setRemoteSubnet(List remoteSubnet) { + this.remoteSubnet = remoteSubnet; + } + + public SiteToSiteVpn networkType(Integer networkType) { + this.networkType = networkType; + return this; + } + + /** + * Network type should be a value as follows: 0: network list; 1: custom networks. + * @return networkType + */ + @ApiModelProperty(value = "Network type should be a value as follows: 0: network list; 1: custom networks.") + + + public Integer getNetworkType() { + return networkType; + } + + public void setNetworkType(Integer networkType) { + this.networkType = networkType; + } + + public SiteToSiteVpn networkList(List networkList) { + this.networkList = networkList; + return this; + } + + public SiteToSiteVpn addNetworkListItem(String networkListItem) { + if (this.networkList == null) { + this.networkList = new ArrayList<>(); + } + this.networkList.add(networkListItem); + return this; + } + + /** + * Network list of the VPN, only for Manual IPSec type. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. + * @return networkList + */ + @ApiModelProperty(value = "Network list of the VPN, only for Manual IPSec type. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface.") + + + public List getNetworkList() { + return networkList; + } + + public void setNetworkList(List networkList) { + this.networkList = networkList; + } + + public SiteToSiteVpn customNetwork(List customNetwork) { + this.customNetwork = customNetwork; + return this; + } + + public SiteToSiteVpn addCustomNetworkItem(IpSubnetsVo customNetworkItem) { + if (this.customNetwork == null) { + this.customNetwork = new ArrayList<>(); + } + this.customNetwork.add(customNetworkItem); + return this; + } + + /** + * Custom networks of the VPN, only for Manual IPSec type. + * @return customNetwork + */ + @ApiModelProperty(value = "Custom networks of the VPN, only for Manual IPSec type.") + + @Valid + + public List getCustomNetwork() { + return customNetwork; + } + + public void setCustomNetwork(List customNetwork) { + this.customNetwork = customNetwork; + } + + public SiteToSiteVpn preSharedKey(String preSharedKey) { + this.preSharedKey = preSharedKey; + return this; + } + + /** + * Pre-shared key of the VPN, only for Manual IPSec type. + * @return preSharedKey + */ + @ApiModelProperty(value = "Pre-shared key of the VPN, only for Manual IPSec type.") + + + public String getPreSharedKey() { + return preSharedKey; + } + + public void setPreSharedKey(String preSharedKey) { + this.preSharedKey = preSharedKey; + } + + public SiteToSiteVpn wan(List wan) { + this.wan = wan; + return this; + } + + public SiteToSiteVpn addWanItem(String wanItem) { + if (this.wan == null) { + this.wan = new ArrayList<>(); + } + this.wan.add(wanItem); + return this; + } + + /** + * WAN list of the VPN, only for Manual IPSec type. WAN port ID can be obtained from 'Get internet basic info' interface. + * @return wan + */ + @ApiModelProperty(value = "WAN list of the VPN, only for Manual IPSec type. WAN port ID can be obtained from 'Get internet basic info' interface.") + + + public List getWan() { + return wan; + } + + public void setWan(List wan) { + this.wan = wan; + } + + public SiteToSiteVpn advancedSetting(VpnAdvancedSettingOpenApiVo advancedSetting) { + this.advancedSetting = advancedSetting; + return this; + } + + /** + * Get advancedSetting + * @return advancedSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public VpnAdvancedSettingOpenApiVo getAdvancedSetting() { + return advancedSetting; + } + + public void setAdvancedSetting(VpnAdvancedSettingOpenApiVo advancedSetting) { + this.advancedSetting = advancedSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SiteToSiteVpn siteToSiteVpn = (SiteToSiteVpn) o; + return Objects.equals(this.id, siteToSiteVpn.id) && + Objects.equals(this.name, siteToSiteVpn.name) && + Objects.equals(this.siteVpnType, siteToSiteVpn.siteVpnType) && + Objects.equals(this.status, siteToSiteVpn.status) && + Objects.equals(this.remoteSite, siteToSiteVpn.remoteSite) && + Objects.equals(this.remoteIp, siteToSiteVpn.remoteIp) && + Objects.equals(this.remoteSubnet, siteToSiteVpn.remoteSubnet) && + Objects.equals(this.networkType, siteToSiteVpn.networkType) && + Objects.equals(this.networkList, siteToSiteVpn.networkList) && + Objects.equals(this.customNetwork, siteToSiteVpn.customNetwork) && + Objects.equals(this.preSharedKey, siteToSiteVpn.preSharedKey) && + Objects.equals(this.wan, siteToSiteVpn.wan) && + Objects.equals(this.advancedSetting, siteToSiteVpn.advancedSetting); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, siteVpnType, status, remoteSite, remoteIp, remoteSubnet, networkType, networkList, customNetwork, preSharedKey, wan, advancedSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SiteToSiteVpn {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" siteVpnType: ").append(toIndentedString(siteVpnType)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" remoteSite: ").append(toIndentedString(remoteSite)).append("\n"); + sb.append(" remoteIp: ").append(toIndentedString(remoteIp)).append("\n"); + sb.append(" remoteSubnet: ").append(toIndentedString(remoteSubnet)).append("\n"); + sb.append(" networkType: ").append(toIndentedString(networkType)).append("\n"); + sb.append(" networkList: ").append(toIndentedString(networkList)).append("\n"); + sb.append(" customNetwork: ").append(toIndentedString(customNetwork)).append("\n"); + sb.append(" preSharedKey: ").append(toIndentedString(preSharedKey)).append("\n"); + sb.append(" wan: ").append(toIndentedString(wan)).append("\n"); + sb.append(" advancedSetting: ").append(toIndentedString(advancedSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SmsSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SmsSetting.java new file mode 100644 index 0000000..abc55b2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SmsSetting.java @@ -0,0 +1,237 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Sms Portal Setting. + */ +@ApiModel(description = "Sms Portal Setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SmsSetting { + @JsonProperty("sid") + private String sid; + + @JsonProperty("authToken") + private String authToken; + + @JsonProperty("phoneNum") + private String phoneNum; + + @JsonProperty("userLimitEnable") + private Boolean userLimitEnable; + + @JsonProperty("userLimit") + private Integer userLimit; + + @JsonProperty("authTimeout") + private AuthTimeoutSetting authTimeout; + + @JsonProperty("countryCode") + private String countryCode; + + public SmsSetting sid(String sid) { + this.sid = sid; + return this; + } + + /** + * Twilio SID + * @return sid + */ + @ApiModelProperty(required = true, value = "Twilio SID") + @NotNull + + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + + public SmsSetting authToken(String authToken) { + this.authToken = authToken; + return this; + } + + /** + * Twilio auth token + * @return authToken + */ + @ApiModelProperty(required = true, value = "Twilio auth token") + @NotNull + + + public String getAuthToken() { + return authToken; + } + + public void setAuthToken(String authToken) { + this.authToken = authToken; + } + + public SmsSetting phoneNum(String phoneNum) { + this.phoneNum = phoneNum; + return this; + } + + /** + * Twilio phone number. String value, should contain at least 6 digits such as \"+123456\". + * @return phoneNum + */ + @ApiModelProperty(required = true, value = "Twilio phone number. String value, should contain at least 6 digits such as \"+123456\".") + @NotNull + +@Pattern(regexp="\\+\\d{6,}") + public String getPhoneNum() { + return phoneNum; + } + + public void setPhoneNum(String phoneNum) { + this.phoneNum = phoneNum; + } + + public SmsSetting userLimitEnable(Boolean userLimitEnable) { + this.userLimitEnable = userLimitEnable; + return this; + } + + /** + * Whether to control the limit of authentication for the same phone number. + * @return userLimitEnable + */ + @ApiModelProperty(required = true, value = "Whether to control the limit of authentication for the same phone number.") + @NotNull + + + public Boolean getUserLimitEnable() { + return userLimitEnable; + } + + public void setUserLimitEnable(Boolean userLimitEnable) { + this.userLimitEnable = userLimitEnable; + } + + public SmsSetting userLimit(Integer userLimit) { + this.userLimit = userLimit; + return this; + } + + /** + * User limit with the same phone number, should be within the range of 1–10. Required when parameter [userLimitEnable] is true. + * @return userLimit + */ + @ApiModelProperty(value = "User limit with the same phone number, should be within the range of 1–10. Required when parameter [userLimitEnable] is true.") + + + public Integer getUserLimit() { + return userLimit; + } + + public void setUserLimit(Integer userLimit) { + this.userLimit = userLimit; + } + + public SmsSetting authTimeout(AuthTimeoutSetting authTimeout) { + this.authTimeout = authTimeout; + return this; + } + + /** + * Get authTimeout + * @return authTimeout + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public AuthTimeoutSetting getAuthTimeout() { + return authTimeout; + } + + public void setAuthTimeout(AuthTimeoutSetting authTimeout) { + this.authTimeout = authTimeout; + } + + public SmsSetting countryCode(String countryCode) { + this.countryCode = countryCode; + return this; + } + + /** + * Preset Contry code. String value such as \"+86\". + * @return countryCode + */ + @ApiModelProperty(value = "Preset Contry code. String value such as \"+86\".") + +@Pattern(regexp="^$|^\\+(93|374|994|973|880|975|673|855|86|670|995|852|91|62|98|964|972|81|962|850|82|965|996|856|961|853|60|960|976|95|977|968|92|970|63|974|7|966|65|94|963|886|992|66|90|90|993|971|998|84|967|355|376|43|375|32|387|359|3491|385|357|420|45|372|298|358|33|49|350|30|36|354|353|39|371|423|370|352|389|356|373|377|382|31|47|48|351|40|378|381|421|386|34|46|41|380|44|379|213|244|229|267|226|257|237|3491|238|236|235|269|242|243|253|20|240|291|251|241|220|233|224|245|225|254|266|231|218|261|265|223|222|230|212|258|264|227|234|262|250|239|221|248|232|252|27|211|34|249|268|255|228|216|256|260|263|1684|61|682|679|689|1671|692|691|687|64|1670|680|675|685|677|676|688|678|1684|1264|1268|297|247|1|1246|501|1441|1|1345|506|53|1767|1809|1809201|503|299|1473|590|1671|502|509|504|1876|596|52|1664|599|505|1670|507|1787|1869|1758|508|1784|1868|1649|1|1284|1340|54|591|55|56|57|593|500|594|592|595|51|597|598|58|383)$") + public String getCountryCode() { + return countryCode; + } + + public void setCountryCode(String countryCode) { + this.countryCode = countryCode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SmsSetting smsSetting = (SmsSetting) o; + return Objects.equals(this.sid, smsSetting.sid) && + Objects.equals(this.authToken, smsSetting.authToken) && + Objects.equals(this.phoneNum, smsSetting.phoneNum) && + Objects.equals(this.userLimitEnable, smsSetting.userLimitEnable) && + Objects.equals(this.userLimit, smsSetting.userLimit) && + Objects.equals(this.authTimeout, smsSetting.authTimeout) && + Objects.equals(this.countryCode, smsSetting.countryCode); + } + + @Override + public int hashCode() { + return Objects.hash(sid, authToken, phoneNum, userLimitEnable, userLimit, authTimeout, countryCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SmsSetting {\n"); + + sb.append(" sid: ").append(toIndentedString(sid)).append("\n"); + sb.append(" authToken: ").append(toIndentedString(authToken)).append("\n"); + sb.append(" phoneNum: ").append(toIndentedString(phoneNum)).append("\n"); + sb.append(" userLimitEnable: ").append(toIndentedString(userLimitEnable)).append("\n"); + sb.append(" userLimit: ").append(toIndentedString(userLimit)).append("\n"); + sb.append(" authTimeout: ").append(toIndentedString(authTimeout)).append("\n"); + sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SmsSettingResOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SmsSettingResOpenApiVo.java new file mode 100644 index 0000000..a70e549 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SmsSettingResOpenApiVo.java @@ -0,0 +1,230 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * Hotspot: SMS Portal setting, required when [authType] is 11 and hotspot [enabledTypes] contains 6. + */ +@ApiModel(description = "Hotspot: SMS Portal setting, required when [authType] is 11 and hotspot [enabledTypes] contains 6.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SmsSettingResOpenApiVo { + @JsonProperty("sid") + private String sid; + + @JsonProperty("authToken") + private String authToken; + + @JsonProperty("phoneNum") + private String phoneNum; + + @JsonProperty("maxVerificationCodeEnable") + private Boolean maxVerificationCodeEnable; + + @JsonProperty("maxVerificationCodeTimes") + private Integer maxVerificationCodeTimes; + + @JsonProperty("authTimeout") + private AuthTimeOpenApiVo authTimeout; + + @JsonProperty("countryCode") + private String countryCode; + + public SmsSettingResOpenApiVo sid(String sid) { + this.sid = sid; + return this; + } + + /** + * Twilio SID + * @return sid + */ + @ApiModelProperty(value = "Twilio SID") + + + public String getSid() { + return sid; + } + + public void setSid(String sid) { + this.sid = sid; + } + + public SmsSettingResOpenApiVo authToken(String authToken) { + this.authToken = authToken; + return this; + } + + /** + * Twilio auth token + * @return authToken + */ + @ApiModelProperty(value = "Twilio auth token") + + + public String getAuthToken() { + return authToken; + } + + public void setAuthToken(String authToken) { + this.authToken = authToken; + } + + public SmsSettingResOpenApiVo phoneNum(String phoneNum) { + this.phoneNum = phoneNum; + return this; + } + + /** + * Twilio phone number. String value, should contain at least 6 digits such as \"+123456\". + * @return phoneNum + */ + @ApiModelProperty(value = "Twilio phone number. String value, should contain at least 6 digits such as \"+123456\".") + + + public String getPhoneNum() { + return phoneNum; + } + + public void setPhoneNum(String phoneNum) { + this.phoneNum = phoneNum; + } + + public SmsSettingResOpenApiVo maxVerificationCodeEnable(Boolean maxVerificationCodeEnable) { + this.maxVerificationCodeEnable = maxVerificationCodeEnable; + return this; + } + + /** + * Whether to control the limit of authentication for the same phone number. + * @return maxVerificationCodeEnable + */ + @ApiModelProperty(value = "Whether to control the limit of authentication for the same phone number.") + + + public Boolean getMaxVerificationCodeEnable() { + return maxVerificationCodeEnable; + } + + public void setMaxVerificationCodeEnable(Boolean maxVerificationCodeEnable) { + this.maxVerificationCodeEnable = maxVerificationCodeEnable; + } + + public SmsSettingResOpenApiVo maxVerificationCodeTimes(Integer maxVerificationCodeTimes) { + this.maxVerificationCodeTimes = maxVerificationCodeTimes; + return this; + } + + /** + * User limit with the same phone number, should be within the range of 1–10. Required when parameter [maxVerificationCodeEnable] is true. + * @return maxVerificationCodeTimes + */ + @ApiModelProperty(value = "User limit with the same phone number, should be within the range of 1–10. Required when parameter [maxVerificationCodeEnable] is true.") + + + public Integer getMaxVerificationCodeTimes() { + return maxVerificationCodeTimes; + } + + public void setMaxVerificationCodeTimes(Integer maxVerificationCodeTimes) { + this.maxVerificationCodeTimes = maxVerificationCodeTimes; + } + + public SmsSettingResOpenApiVo authTimeout(AuthTimeOpenApiVo authTimeout) { + this.authTimeout = authTimeout; + return this; + } + + /** + * Get authTimeout + * @return authTimeout + */ + @ApiModelProperty(value = "") + + @Valid + + public AuthTimeOpenApiVo getAuthTimeout() { + return authTimeout; + } + + public void setAuthTimeout(AuthTimeOpenApiVo authTimeout) { + this.authTimeout = authTimeout; + } + + public SmsSettingResOpenApiVo countryCode(String countryCode) { + this.countryCode = countryCode; + return this; + } + + /** + * Preset Contry code. String value such as \"+86\". + * @return countryCode + */ + @ApiModelProperty(value = "Preset Contry code. String value such as \"+86\".") + + + public String getCountryCode() { + return countryCode; + } + + public void setCountryCode(String countryCode) { + this.countryCode = countryCode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SmsSettingResOpenApiVo smsSettingResOpenApiVo = (SmsSettingResOpenApiVo) o; + return Objects.equals(this.sid, smsSettingResOpenApiVo.sid) && + Objects.equals(this.authToken, smsSettingResOpenApiVo.authToken) && + Objects.equals(this.phoneNum, smsSettingResOpenApiVo.phoneNum) && + Objects.equals(this.maxVerificationCodeEnable, smsSettingResOpenApiVo.maxVerificationCodeEnable) && + Objects.equals(this.maxVerificationCodeTimes, smsSettingResOpenApiVo.maxVerificationCodeTimes) && + Objects.equals(this.authTimeout, smsSettingResOpenApiVo.authTimeout) && + Objects.equals(this.countryCode, smsSettingResOpenApiVo.countryCode); + } + + @Override + public int hashCode() { + return Objects.hash(sid, authToken, phoneNum, maxVerificationCodeEnable, maxVerificationCodeTimes, authTimeout, countryCode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SmsSettingResOpenApiVo {\n"); + + sb.append(" sid: ").append(toIndentedString(sid)).append("\n"); + sb.append(" authToken: ").append(toIndentedString(authToken)).append("\n"); + sb.append(" phoneNum: ").append(toIndentedString(phoneNum)).append("\n"); + sb.append(" maxVerificationCodeEnable: ").append(toIndentedString(maxVerificationCodeEnable)).append("\n"); + sb.append(" maxVerificationCodeTimes: ").append(toIndentedString(maxVerificationCodeTimes)).append("\n"); + sb.append(" authTimeout: ").append(toIndentedString(authTimeout)).append("\n"); + sb.append(" countryCode: ").append(toIndentedString(countryCode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SnmpSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SnmpSettingOpenApiVo.java new file mode 100644 index 0000000..da7b4e6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SnmpSettingOpenApiVo.java @@ -0,0 +1,180 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SnmpSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SnmpSettingOpenApiVo { + @JsonProperty("snmpV1V2CEnable") + private Boolean snmpV1V2CEnable; + + @JsonProperty("communityString") + private String communityString; + + @JsonProperty("snmpV3Enable") + private Boolean snmpV3Enable; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + public SnmpSettingOpenApiVo snmpV1V2CEnable(Boolean snmpV1V2CEnable) { + this.snmpV1V2CEnable = snmpV1V2CEnable; + return this; + } + + /** + * SNMPv1 & SNMPv2c enable status + * @return snmpV1V2CEnable + */ + @ApiModelProperty(required = true, value = "SNMPv1 & SNMPv2c enable status") + @NotNull + + + public Boolean getSnmpV1V2CEnable() { + return snmpV1V2CEnable; + } + + public void setSnmpV1V2CEnable(Boolean snmpV1V2CEnable) { + this.snmpV1V2CEnable = snmpV1V2CEnable; + } + + public SnmpSettingOpenApiVo communityString(String communityString) { + this.communityString = communityString; + return this; + } + + /** + * Community string, valid when parameter [snmpV1V2CEnable] is true. CommunityString should contain 1 to 64 characters + * @return communityString + */ + @ApiModelProperty(value = "Community string, valid when parameter [snmpV1V2CEnable] is true. CommunityString should contain 1 to 64 characters") + +@Pattern(regexp="^[\\041\\043-\\076\\0100-\\0176]{1,64}$") + public String getCommunityString() { + return communityString; + } + + public void setCommunityString(String communityString) { + this.communityString = communityString; + } + + public SnmpSettingOpenApiVo snmpV3Enable(Boolean snmpV3Enable) { + this.snmpV3Enable = snmpV3Enable; + return this; + } + + /** + * SNMPv3 enable status + * @return snmpV3Enable + */ + @ApiModelProperty(required = true, value = "SNMPv3 enable status") + @NotNull + + + public Boolean getSnmpV3Enable() { + return snmpV3Enable; + } + + public void setSnmpV3Enable(Boolean snmpV3Enable) { + this.snmpV3Enable = snmpV3Enable; + } + + public SnmpSettingOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * Username, valid when parameter [snmpV3Enable] is true. Username should contain 1 to 30 characters + * @return username + */ + @ApiModelProperty(value = "Username, valid when parameter [snmpV3Enable] is true. Username should contain 1 to 30 characters") + +@Pattern(regexp="^[0-9a-zA-Z\\-\\_]{1,30}$") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public SnmpSettingOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Password, valid when parameter [snmpV3Enable] is true. Password should contain 1 to 32 characters + * @return password + */ + @ApiModelProperty(value = "Password, valid when parameter [snmpV3Enable] is true. Password should contain 1 to 32 characters") + +@Pattern(regexp="^[\\041\\043-\\076\\0100-\\0133\\0135-\\0176]{8,32}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SnmpSettingOpenApiVo snmpSettingOpenApiVo = (SnmpSettingOpenApiVo) o; + return Objects.equals(this.snmpV1V2CEnable, snmpSettingOpenApiVo.snmpV1V2CEnable) && + Objects.equals(this.communityString, snmpSettingOpenApiVo.communityString) && + Objects.equals(this.snmpV3Enable, snmpSettingOpenApiVo.snmpV3Enable) && + Objects.equals(this.username, snmpSettingOpenApiVo.username) && + Objects.equals(this.password, snmpSettingOpenApiVo.password); + } + + @Override + public int hashCode() { + return Objects.hash(snmpV1V2CEnable, communityString, snmpV3Enable, username, password); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SnmpSettingOpenApiVo {\n"); + + sb.append(" snmpV1V2CEnable: ").append(toIndentedString(snmpV1V2CEnable)).append("\n"); + sb.append(" communityString: ").append(toIndentedString(communityString)).append("\n"); + sb.append(" snmpV3Enable: ").append(toIndentedString(snmpV3Enable)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SpecifiedOptionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SpecifiedOptionOpenApiVo.java new file mode 100644 index 0000000..bb69d05 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SpecifiedOptionOpenApiVo.java @@ -0,0 +1,178 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Specified option of the attack defense setting. + */ +@ApiModel(description = "Specified option of the attack defense setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SpecifiedOptionOpenApiVo { + @JsonProperty("securityOptionEnable") + private Boolean securityOptionEnable; + + @JsonProperty("recordRouteEnable") + private Boolean recordRouteEnable; + + @JsonProperty("streamEnable") + private Boolean streamEnable; + + @JsonProperty("timestampEnable") + private Boolean timestampEnable; + + @JsonProperty("noOperationEnable") + private Boolean noOperationEnable; + + public SpecifiedOptionOpenApiVo securityOptionEnable(Boolean securityOptionEnable) { + this.securityOptionEnable = securityOptionEnable; + return this; + } + + /** + * Security Option of the attack defense setting. + * @return securityOptionEnable + */ + @ApiModelProperty(value = "Security Option of the attack defense setting.") + + + public Boolean getSecurityOptionEnable() { + return securityOptionEnable; + } + + public void setSecurityOptionEnable(Boolean securityOptionEnable) { + this.securityOptionEnable = securityOptionEnable; + } + + public SpecifiedOptionOpenApiVo recordRouteEnable(Boolean recordRouteEnable) { + this.recordRouteEnable = recordRouteEnable; + return this; + } + + /** + * Record Route Option of the attack defense setting. + * @return recordRouteEnable + */ + @ApiModelProperty(value = "Record Route Option of the attack defense setting.") + + + public Boolean getRecordRouteEnable() { + return recordRouteEnable; + } + + public void setRecordRouteEnable(Boolean recordRouteEnable) { + this.recordRouteEnable = recordRouteEnable; + } + + public SpecifiedOptionOpenApiVo streamEnable(Boolean streamEnable) { + this.streamEnable = streamEnable; + return this; + } + + /** + * Stream Option of the attack defense setting. + * @return streamEnable + */ + @ApiModelProperty(value = "Stream Option of the attack defense setting.") + + + public Boolean getStreamEnable() { + return streamEnable; + } + + public void setStreamEnable(Boolean streamEnable) { + this.streamEnable = streamEnable; + } + + public SpecifiedOptionOpenApiVo timestampEnable(Boolean timestampEnable) { + this.timestampEnable = timestampEnable; + return this; + } + + /** + * Timestamp Option of the attack defense setting. + * @return timestampEnable + */ + @ApiModelProperty(value = "Timestamp Option of the attack defense setting.") + + + public Boolean getTimestampEnable() { + return timestampEnable; + } + + public void setTimestampEnable(Boolean timestampEnable) { + this.timestampEnable = timestampEnable; + } + + public SpecifiedOptionOpenApiVo noOperationEnable(Boolean noOperationEnable) { + this.noOperationEnable = noOperationEnable; + return this; + } + + /** + * No Operation Option of the attack defense setting. + * @return noOperationEnable + */ + @ApiModelProperty(value = "No Operation Option of the attack defense setting.") + + + public Boolean getNoOperationEnable() { + return noOperationEnable; + } + + public void setNoOperationEnable(Boolean noOperationEnable) { + this.noOperationEnable = noOperationEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SpecifiedOptionOpenApiVo specifiedOptionOpenApiVo = (SpecifiedOptionOpenApiVo) o; + return Objects.equals(this.securityOptionEnable, specifiedOptionOpenApiVo.securityOptionEnable) && + Objects.equals(this.recordRouteEnable, specifiedOptionOpenApiVo.recordRouteEnable) && + Objects.equals(this.streamEnable, specifiedOptionOpenApiVo.streamEnable) && + Objects.equals(this.timestampEnable, specifiedOptionOpenApiVo.timestampEnable) && + Objects.equals(this.noOperationEnable, specifiedOptionOpenApiVo.noOperationEnable); + } + + @Override + public int hashCode() { + return Objects.hash(securityOptionEnable, recordRouteEnable, streamEnable, timestampEnable, noOperationEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SpecifiedOptionOpenApiVo {\n"); + + sb.append(" securityOptionEnable: ").append(toIndentedString(securityOptionEnable)).append("\n"); + sb.append(" recordRouteEnable: ").append(toIndentedString(recordRouteEnable)).append("\n"); + sb.append(" streamEnable: ").append(toIndentedString(streamEnable)).append("\n"); + sb.append(" timestampEnable: ").append(toIndentedString(timestampEnable)).append("\n"); + sb.append(" noOperationEnable: ").append(toIndentedString(noOperationEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SshSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SshSetting.java new file mode 100644 index 0000000..3aff624 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SshSetting.java @@ -0,0 +1,130 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * SSH setting + */ +@ApiModel(description = "SSH setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SshSetting { + @JsonProperty("sshEnable") + private Boolean sshEnable; + + @JsonProperty("sshServerPort") + private Integer sshServerPort; + + @JsonProperty("layer3Access") + private Boolean layer3Access; + + public SshSetting sshEnable(Boolean sshEnable) { + this.sshEnable = sshEnable; + return this; + } + + /** + * Whether to enable SSH + * @return sshEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable SSH") + @NotNull + + + public Boolean getSshEnable() { + return sshEnable; + } + + public void setSshEnable(Boolean sshEnable) { + this.sshEnable = sshEnable; + } + + public SshSetting sshServerPort(Integer sshServerPort) { + this.sshServerPort = sshServerPort; + return this; + } + + /** + * SSH server port should be 22 or within the range of 1025-65535. + * @return sshServerPort + */ + @ApiModelProperty(value = "SSH server port should be 22 or within the range of 1025-65535.") + + + public Integer getSshServerPort() { + return sshServerPort; + } + + public void setSshServerPort(Integer sshServerPort) { + this.sshServerPort = sshServerPort; + } + + public SshSetting layer3Access(Boolean layer3Access) { + this.layer3Access = layer3Access; + return this; + } + + /** + * Whether to enable layer 3 accessibility + * @return layer3Access + */ + @ApiModelProperty(value = "Whether to enable layer 3 accessibility") + + + public Boolean getLayer3Access() { + return layer3Access; + } + + public void setLayer3Access(Boolean layer3Access) { + this.layer3Access = layer3Access; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SshSetting sshSetting = (SshSetting) o; + return Objects.equals(this.sshEnable, sshSetting.sshEnable) && + Objects.equals(this.sshServerPort, sshSetting.sshServerPort) && + Objects.equals(this.layer3Access, sshSetting.layer3Access); + } + + @Override + public int hashCode() { + return Objects.hash(sshEnable, sshServerPort, layer3Access); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SshSetting {\n"); + + sb.append(" sshEnable: ").append(toIndentedString(sshEnable)).append("\n"); + sb.append(" sshServerPort: ").append(toIndentedString(sshServerPort)).append("\n"); + sb.append(" layer3Access: ").append(toIndentedString(layer3Access)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidDetailOpenApiVo.java new file mode 100644 index 0000000..1c4ca95 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidDetailOpenApiVo.java @@ -0,0 +1,612 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * SsidDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidDetailOpenApiVo { + @JsonProperty("ssidId") + private String ssidId; + + @JsonProperty("name") + private String name; + + @JsonProperty("band") + private Integer band; + + @JsonProperty("guestNetEnable") + private Boolean guestNetEnable; + + @JsonProperty("security") + private Integer security; + + @JsonProperty("broadcast") + private Boolean broadcast; + + @JsonProperty("vlanEnable") + private Boolean vlanEnable; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("pskSetting") + private Object pskSetting; + + @JsonProperty("entSetting") + private Object entSetting; + + @JsonProperty("ppskSetting") + private Object ppskSetting; + + @JsonProperty("mloEnable") + private Boolean mloEnable; + + @JsonProperty("pmfMode") + private Integer pmfMode; + + @JsonProperty("enable11r") + private Boolean enable11r; + + @JsonProperty("clientRateLimit") + private Object clientRateLimit; + + @JsonProperty("ssidRateLimit") + private Object ssidRateLimit; + + @JsonProperty("wlanSchedule") + private SsidWlanScheduleOpenApiVo wlanSchedule; + + @JsonProperty("rateControl") + private SsidRateControlOpenApiVo rateControl; + + @JsonProperty("macFilter") + private SsidMacFilterOpenApiVo macFilter; + + @JsonProperty("multiCast") + private SsidMultiCastOpenApiVo multiCast; + + @JsonProperty("dhcpOption82") + private SsidDhcpOptionOpenApiVo dhcpOption82; + + @JsonProperty("deviceType") + private Integer deviceType; + + public SsidDetailOpenApiVo ssidId(String ssidId) { + this.ssidId = ssidId; + return this; + } + + /** + * SSID ID + * @return ssidId + */ + @ApiModelProperty(value = "SSID ID") + + + public String getSsidId() { + return ssidId; + } + + public void setSsidId(String ssidId) { + this.ssidId = ssidId; + } + + public SsidDetailOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * SSID name. It should contain 1 to 32 UTF-8 characters. + * @return name + */ + @ApiModelProperty(value = "SSID name. It should contain 1 to 32 UTF-8 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SsidDetailOpenApiVo band(Integer band) { + this.band = band; + return this; + } + + /** + * SSID band. The lowest bit indicates whether 2.4G is included; the second lowest bit indicates whether 5G is included; the third lowest bit indicates whether 6G is included; 1 means included while 0 means not included. For example, 7(111) means that 2G/5G/6G are enabled; 1(001) means that 2G is enabled. (When 5G is included,it means 5G/5G1/5G2 are enabled.) + * @return band + */ + @ApiModelProperty(value = "SSID band. The lowest bit indicates whether 2.4G is included; the second lowest bit indicates whether 5G is included; the third lowest bit indicates whether 6G is included; 1 means included while 0 means not included. For example, 7(111) means that 2G/5G/6G are enabled; 1(001) means that 2G is enabled. (When 5G is included,it means 5G/5G1/5G2 are enabled.)") + + + public Integer getBand() { + return band; + } + + public void setBand(Integer band) { + this.band = band; + } + + public SsidDetailOpenApiVo guestNetEnable(Boolean guestNetEnable) { + this.guestNetEnable = guestNetEnable; + return this; + } + + /** + * SSID guest network config status. True: enable, false: disable. + * @return guestNetEnable + */ + @ApiModelProperty(value = "SSID guest network config status. True: enable, false: disable.") + + + public Boolean getGuestNetEnable() { + return guestNetEnable; + } + + public void setGuestNetEnable(Boolean guestNetEnable) { + this.guestNetEnable = guestNetEnable; + } + + public SsidDetailOpenApiVo security(Integer security) { + this.security = security; + return this; + } + + /** + * SSID security mode; Security should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal; 4: PPSK without RADIUS; 5: PPSK with RADIUS. + * @return security + */ + @ApiModelProperty(value = "SSID security mode; Security should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal; 4: PPSK without RADIUS; 5: PPSK with RADIUS.") + + + public Integer getSecurity() { + return security; + } + + public void setSecurity(Integer security) { + this.security = security; + } + + public SsidDetailOpenApiVo broadcast(Boolean broadcast) { + this.broadcast = broadcast; + return this; + } + + /** + * SSID broadcast config status. True: enable, false: disable. + * @return broadcast + */ + @ApiModelProperty(value = "SSID broadcast config status. True: enable, false: disable.") + + + public Boolean getBroadcast() { + return broadcast; + } + + public void setBroadcast(Boolean broadcast) { + this.broadcast = broadcast; + } + + public SsidDetailOpenApiVo vlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + return this; + } + + /** + * SSID VLAN config status. True: enable, false: disable. + * @return vlanEnable + */ + @ApiModelProperty(value = "SSID VLAN config status. True: enable, false: disable.") + + + public Boolean getVlanEnable() { + return vlanEnable; + } + + public void setVlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + } + + public SsidDetailOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * SSID VLAN ID. This field is required when Parameter [vlanEnable] is true; It should be within the range of 1–4094. + * @return vlanId + */ + @ApiModelProperty(value = "SSID VLAN ID. This field is required when Parameter [vlanEnable] is true; It should be within the range of 1–4094.") + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public SsidDetailOpenApiVo pskSetting(Object pskSetting) { + this.pskSetting = pskSetting; + return this; + } + + /** + * Get pskSetting + * @return pskSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getPskSetting() { + return pskSetting; + } + + public void setPskSetting(Object pskSetting) { + this.pskSetting = pskSetting; + } + + public SsidDetailOpenApiVo entSetting(Object entSetting) { + this.entSetting = entSetting; + return this; + } + + /** + * Get entSetting + * @return entSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getEntSetting() { + return entSetting; + } + + public void setEntSetting(Object entSetting) { + this.entSetting = entSetting; + } + + public SsidDetailOpenApiVo ppskSetting(Object ppskSetting) { + this.ppskSetting = ppskSetting; + return this; + } + + /** + * Get ppskSetting + * @return ppskSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getPpskSetting() { + return ppskSetting; + } + + public void setPpskSetting(Object ppskSetting) { + this.ppskSetting = ppskSetting; + } + + public SsidDetailOpenApiVo mloEnable(Boolean mloEnable) { + this.mloEnable = mloEnable; + return this; + } + + /** + * SSID MLO config status. True: enable, false: disable. + * @return mloEnable + */ + @ApiModelProperty(value = "SSID MLO config status. True: enable, false: disable.") + + + public Boolean getMloEnable() { + return mloEnable; + } + + public void setMloEnable(Boolean mloEnable) { + this.mloEnable = mloEnable; + } + + public SsidDetailOpenApiVo pmfMode(Integer pmfMode) { + this.pmfMode = pmfMode; + return this; + } + + /** + * SSID PMF mode. It should be a value as follows: 1: Mandatory; 2: Capable; 3: Disable. + * @return pmfMode + */ + @ApiModelProperty(value = "SSID PMF mode. It should be a value as follows: 1: Mandatory; 2: Capable; 3: Disable.") + + + public Integer getPmfMode() { + return pmfMode; + } + + public void setPmfMode(Integer pmfMode) { + this.pmfMode = pmfMode; + } + + public SsidDetailOpenApiVo enable11r(Boolean enable11r) { + this.enable11r = enable11r; + return this; + } + + /** + * SSID 802.11r config status. True: enable, false: disable. + * @return enable11r + */ + @ApiModelProperty(value = "SSID 802.11r config status. True: enable, false: disable.") + + + public Boolean getEnable11r() { + return enable11r; + } + + public void setEnable11r(Boolean enable11r) { + this.enable11r = enable11r; + } + + public SsidDetailOpenApiVo clientRateLimit(Object clientRateLimit) { + this.clientRateLimit = clientRateLimit; + return this; + } + + /** + * Get clientRateLimit + * @return clientRateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getClientRateLimit() { + return clientRateLimit; + } + + public void setClientRateLimit(Object clientRateLimit) { + this.clientRateLimit = clientRateLimit; + } + + public SsidDetailOpenApiVo ssidRateLimit(Object ssidRateLimit) { + this.ssidRateLimit = ssidRateLimit; + return this; + } + + /** + * Get ssidRateLimit + * @return ssidRateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getSsidRateLimit() { + return ssidRateLimit; + } + + public void setSsidRateLimit(Object ssidRateLimit) { + this.ssidRateLimit = ssidRateLimit; + } + + public SsidDetailOpenApiVo wlanSchedule(SsidWlanScheduleOpenApiVo wlanSchedule) { + this.wlanSchedule = wlanSchedule; + return this; + } + + /** + * Get wlanSchedule + * @return wlanSchedule + */ + @ApiModelProperty(value = "") + + @Valid + + public SsidWlanScheduleOpenApiVo getWlanSchedule() { + return wlanSchedule; + } + + public void setWlanSchedule(SsidWlanScheduleOpenApiVo wlanSchedule) { + this.wlanSchedule = wlanSchedule; + } + + public SsidDetailOpenApiVo rateControl(SsidRateControlOpenApiVo rateControl) { + this.rateControl = rateControl; + return this; + } + + /** + * Get rateControl + * @return rateControl + */ + @ApiModelProperty(value = "") + + @Valid + + public SsidRateControlOpenApiVo getRateControl() { + return rateControl; + } + + public void setRateControl(SsidRateControlOpenApiVo rateControl) { + this.rateControl = rateControl; + } + + public SsidDetailOpenApiVo macFilter(SsidMacFilterOpenApiVo macFilter) { + this.macFilter = macFilter; + return this; + } + + /** + * Get macFilter + * @return macFilter + */ + @ApiModelProperty(value = "") + + @Valid + + public SsidMacFilterOpenApiVo getMacFilter() { + return macFilter; + } + + public void setMacFilter(SsidMacFilterOpenApiVo macFilter) { + this.macFilter = macFilter; + } + + public SsidDetailOpenApiVo multiCast(SsidMultiCastOpenApiVo multiCast) { + this.multiCast = multiCast; + return this; + } + + /** + * Get multiCast + * @return multiCast + */ + @ApiModelProperty(value = "") + + @Valid + + public SsidMultiCastOpenApiVo getMultiCast() { + return multiCast; + } + + public void setMultiCast(SsidMultiCastOpenApiVo multiCast) { + this.multiCast = multiCast; + } + + public SsidDetailOpenApiVo dhcpOption82(SsidDhcpOptionOpenApiVo dhcpOption82) { + this.dhcpOption82 = dhcpOption82; + return this; + } + + /** + * Get dhcpOption82 + * @return dhcpOption82 + */ + @ApiModelProperty(value = "") + + @Valid + + public SsidDhcpOptionOpenApiVo getDhcpOption82() { + return dhcpOption82; + } + + public void setDhcpOption82(SsidDhcpOptionOpenApiVo dhcpOption82) { + this.dhcpOption82 = dhcpOption82; + } + + public SsidDetailOpenApiVo deviceType(Integer deviceType) { + this.deviceType = deviceType; + return this; + } + + /** + * SSID device type, identify which devices this SSID will take effect. The lowest bit indicates whether [EAP] is included, the second low bit indicates whether [Gateway] is included, 1 means included while 0 means not included; For example, 3(11) means that EAP/Gateway is enabled, 1(01) means that EAP is enabled. + * @return deviceType + */ + @ApiModelProperty(value = "SSID device type, identify which devices this SSID will take effect. The lowest bit indicates whether [EAP] is included, the second low bit indicates whether [Gateway] is included, 1 means included while 0 means not included; For example, 3(11) means that EAP/Gateway is enabled, 1(01) means that EAP is enabled.") + + + public Integer getDeviceType() { + return deviceType; + } + + public void setDeviceType(Integer deviceType) { + this.deviceType = deviceType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidDetailOpenApiVo ssidDetailOpenApiVo = (SsidDetailOpenApiVo) o; + return Objects.equals(this.ssidId, ssidDetailOpenApiVo.ssidId) && + Objects.equals(this.name, ssidDetailOpenApiVo.name) && + Objects.equals(this.band, ssidDetailOpenApiVo.band) && + Objects.equals(this.guestNetEnable, ssidDetailOpenApiVo.guestNetEnable) && + Objects.equals(this.security, ssidDetailOpenApiVo.security) && + Objects.equals(this.broadcast, ssidDetailOpenApiVo.broadcast) && + Objects.equals(this.vlanEnable, ssidDetailOpenApiVo.vlanEnable) && + Objects.equals(this.vlanId, ssidDetailOpenApiVo.vlanId) && + Objects.equals(this.pskSetting, ssidDetailOpenApiVo.pskSetting) && + Objects.equals(this.entSetting, ssidDetailOpenApiVo.entSetting) && + Objects.equals(this.ppskSetting, ssidDetailOpenApiVo.ppskSetting) && + Objects.equals(this.mloEnable, ssidDetailOpenApiVo.mloEnable) && + Objects.equals(this.pmfMode, ssidDetailOpenApiVo.pmfMode) && + Objects.equals(this.enable11r, ssidDetailOpenApiVo.enable11r) && + Objects.equals(this.clientRateLimit, ssidDetailOpenApiVo.clientRateLimit) && + Objects.equals(this.ssidRateLimit, ssidDetailOpenApiVo.ssidRateLimit) && + Objects.equals(this.wlanSchedule, ssidDetailOpenApiVo.wlanSchedule) && + Objects.equals(this.rateControl, ssidDetailOpenApiVo.rateControl) && + Objects.equals(this.macFilter, ssidDetailOpenApiVo.macFilter) && + Objects.equals(this.multiCast, ssidDetailOpenApiVo.multiCast) && + Objects.equals(this.dhcpOption82, ssidDetailOpenApiVo.dhcpOption82) && + Objects.equals(this.deviceType, ssidDetailOpenApiVo.deviceType); + } + + @Override + public int hashCode() { + return Objects.hash(ssidId, name, band, guestNetEnable, security, broadcast, vlanEnable, vlanId, pskSetting, entSetting, ppskSetting, mloEnable, pmfMode, enable11r, clientRateLimit, ssidRateLimit, wlanSchedule, rateControl, macFilter, multiCast, dhcpOption82, deviceType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidDetailOpenApiVo {\n"); + + sb.append(" ssidId: ").append(toIndentedString(ssidId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" band: ").append(toIndentedString(band)).append("\n"); + sb.append(" guestNetEnable: ").append(toIndentedString(guestNetEnable)).append("\n"); + sb.append(" security: ").append(toIndentedString(security)).append("\n"); + sb.append(" broadcast: ").append(toIndentedString(broadcast)).append("\n"); + sb.append(" vlanEnable: ").append(toIndentedString(vlanEnable)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" pskSetting: ").append(toIndentedString(pskSetting)).append("\n"); + sb.append(" entSetting: ").append(toIndentedString(entSetting)).append("\n"); + sb.append(" ppskSetting: ").append(toIndentedString(ppskSetting)).append("\n"); + sb.append(" mloEnable: ").append(toIndentedString(mloEnable)).append("\n"); + sb.append(" pmfMode: ").append(toIndentedString(pmfMode)).append("\n"); + sb.append(" enable11r: ").append(toIndentedString(enable11r)).append("\n"); + sb.append(" clientRateLimit: ").append(toIndentedString(clientRateLimit)).append("\n"); + sb.append(" ssidRateLimit: ").append(toIndentedString(ssidRateLimit)).append("\n"); + sb.append(" wlanSchedule: ").append(toIndentedString(wlanSchedule)).append("\n"); + sb.append(" rateControl: ").append(toIndentedString(rateControl)).append("\n"); + sb.append(" macFilter: ").append(toIndentedString(macFilter)).append("\n"); + sb.append(" multiCast: ").append(toIndentedString(multiCast)).append("\n"); + sb.append(" dhcpOption82: ").append(toIndentedString(dhcpOption82)).append("\n"); + sb.append(" deviceType: ").append(toIndentedString(deviceType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidDhcpOptionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidDhcpOptionOpenApiVo.java new file mode 100644 index 0000000..7cf34d6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidDhcpOptionOpenApiVo.java @@ -0,0 +1,199 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SSID DHCP Option 82 config. + */ +@ApiModel(description = "SSID DHCP Option 82 config.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidDhcpOptionOpenApiVo { + @JsonProperty("dhcpEnable") + private Boolean dhcpEnable; + + @JsonProperty("format") + private Integer format; + + @JsonProperty("delimiter") + private String delimiter; + + @JsonProperty("circuitId") + @Valid + private List circuitId = null; + + @JsonProperty("remoteId") + @Valid + private List remoteId = null; + + public SsidDhcpOptionOpenApiVo dhcpEnable(Boolean dhcpEnable) { + this.dhcpEnable = dhcpEnable; + return this; + } + + /** + * SSID DHCP Option 82 global config status. True: enable, false: disable. + * @return dhcpEnable + */ + @ApiModelProperty(value = "SSID DHCP Option 82 global config status. True: enable, false: disable.") + + + public Boolean getDhcpEnable() { + return dhcpEnable; + } + + public void setDhcpEnable(Boolean dhcpEnable) { + this.dhcpEnable = dhcpEnable; + } + + public SsidDhcpOptionOpenApiVo format(Integer format) { + this.format = format; + return this; + } + + /** + * SSID DHCP Option 82 format config; It should be a value as follows: 0: ASCII; 1: Binary. + * @return format + */ + @ApiModelProperty(value = "SSID DHCP Option 82 format config; It should be a value as follows: 0: ASCII; 1: Binary.") + + + public Integer getFormat() { + return format; + } + + public void setFormat(Integer format) { + this.format = format; + } + + public SsidDhcpOptionOpenApiVo delimiter(String delimiter) { + this.delimiter = delimiter; + return this; + } + + /** + * SSID DHCP Option 82 delimiter config (A single arbitrary ASCII character is acceptable). + * @return delimiter + */ + @ApiModelProperty(value = "SSID DHCP Option 82 delimiter config (A single arbitrary ASCII character is acceptable).") + + + public String getDelimiter() { + return delimiter; + } + + public void setDelimiter(String delimiter) { + this.delimiter = delimiter; + } + + public SsidDhcpOptionOpenApiVo circuitId(List circuitId) { + this.circuitId = circuitId; + return this; + } + + public SsidDhcpOptionOpenApiVo addCircuitIdItem(Integer circuitIdItem) { + if (this.circuitId == null) { + this.circuitId = new ArrayList<>(); + } + this.circuitId.add(circuitIdItem); + return this; + } + + /** + * SSID DHCP Option 82 Circuit-ID config. Circuit-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name. + * @return circuitId + */ + @ApiModelProperty(value = "SSID DHCP Option 82 Circuit-ID config. Circuit-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name.") + + + public List getCircuitId() { + return circuitId; + } + + public void setCircuitId(List circuitId) { + this.circuitId = circuitId; + } + + public SsidDhcpOptionOpenApiVo remoteId(List remoteId) { + this.remoteId = remoteId; + return this; + } + + public SsidDhcpOptionOpenApiVo addRemoteIdItem(Integer remoteIdItem) { + if (this.remoteId == null) { + this.remoteId = new ArrayList<>(); + } + this.remoteId.add(remoteIdItem); + return this; + } + + /** + * SSID DHCP Option 82 Remote-ID config. Remote-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name. + * @return remoteId + */ + @ApiModelProperty(value = "SSID DHCP Option 82 Remote-ID config. Remote-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name.") + + + public List getRemoteId() { + return remoteId; + } + + public void setRemoteId(List remoteId) { + this.remoteId = remoteId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidDhcpOptionOpenApiVo ssidDhcpOptionOpenApiVo = (SsidDhcpOptionOpenApiVo) o; + return Objects.equals(this.dhcpEnable, ssidDhcpOptionOpenApiVo.dhcpEnable) && + Objects.equals(this.format, ssidDhcpOptionOpenApiVo.format) && + Objects.equals(this.delimiter, ssidDhcpOptionOpenApiVo.delimiter) && + Objects.equals(this.circuitId, ssidDhcpOptionOpenApiVo.circuitId) && + Objects.equals(this.remoteId, ssidDhcpOptionOpenApiVo.remoteId); + } + + @Override + public int hashCode() { + return Objects.hash(dhcpEnable, format, delimiter, circuitId, remoteId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidDhcpOptionOpenApiVo {\n"); + + sb.append(" dhcpEnable: ").append(toIndentedString(dhcpEnable)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" delimiter: ").append(toIndentedString(delimiter)).append("\n"); + sb.append(" circuitId: ").append(toIndentedString(circuitId)).append("\n"); + sb.append(" remoteId: ").append(toIndentedString(remoteId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidEnterpriseSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidEnterpriseSettingOpenApiVo.java new file mode 100644 index 0000000..a8f5842 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidEnterpriseSettingOpenApiVo.java @@ -0,0 +1,258 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * WPA-Enterprise SSID config. This is necessary when the value of security is 2(WPA-Enterprise). + */ +@ApiModel(description = "WPA-Enterprise SSID config. This is necessary when the value of security is 2(WPA-Enterprise).") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidEnterpriseSettingOpenApiVo { + @JsonProperty("radiusProfileId") + private String radiusProfileId; + + @JsonProperty("versionEnt") + private Integer versionEnt; + + @JsonProperty("encryptionEnt") + private Integer encryptionEnt; + + @JsonProperty("gikRekeyEntEnable") + private Boolean gikRekeyEntEnable; + + @JsonProperty("rekeyEntInterval") + private Integer rekeyEntInterval; + + @JsonProperty("intervalEntType") + private Integer intervalEntType; + + @JsonProperty("nasIdMode") + private Integer nasIdMode; + + @JsonProperty("nasId") + private String nasId; + + public SsidEnterpriseSettingOpenApiVo radiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + return this; + } + + /** + * This field represents RADIUS Profile ID. RADIUS Profile(RADIUS Profile Template) can be created using Create a new Radius profile(Create a new Radius profile template) interface, and RADIUS Profile ID(RADIUS Profile Template ID) can be obtained from Get Radius profile list(Get Radius profile template list) interface. + * @return radiusProfileId + */ + @ApiModelProperty(required = true, value = "This field represents RADIUS Profile ID. RADIUS Profile(RADIUS Profile Template) can be created using Create a new Radius profile(Create a new Radius profile template) interface, and RADIUS Profile ID(RADIUS Profile Template ID) can be obtained from Get Radius profile list(Get Radius profile template list) interface.") + @NotNull + + + public String getRadiusProfileId() { + return radiusProfileId; + } + + public void setRadiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + } + + public SsidEnterpriseSettingOpenApiVo versionEnt(Integer versionEnt) { + this.versionEnt = versionEnt; + return this; + } + + /** + * WPA-Enterprise version. This is necessary when the value of security is 2(WPA-Enterprise); It should be a value as follows: 1: WPA-Enterprise; 2: WPA2-Enterprise; 3: WPA/WPA2-Enterprise; 4.WPA3-Enterprise. + * @return versionEnt + */ + @ApiModelProperty(required = true, value = "WPA-Enterprise version. This is necessary when the value of security is 2(WPA-Enterprise); It should be a value as follows: 1: WPA-Enterprise; 2: WPA2-Enterprise; 3: WPA/WPA2-Enterprise; 4.WPA3-Enterprise.") + @NotNull + + + public Integer getVersionEnt() { + return versionEnt; + } + + public void setVersionEnt(Integer versionEnt) { + this.versionEnt = versionEnt; + } + + public SsidEnterpriseSettingOpenApiVo encryptionEnt(Integer encryptionEnt) { + this.encryptionEnt = encryptionEnt; + return this; + } + + /** + * WPA-Enterprise encryption. This is necessary when the value of security is 2(WPA-Enterprise); It should be a value as follows: 1: Auto; 3: AES; 4: AES-GCM 256; 5:AES-CNSA; When versionEnt is WPA3-Enterprise, Parameter [encryptionEnt] must be AES. + * @return encryptionEnt + */ + @ApiModelProperty(required = true, value = "WPA-Enterprise encryption. This is necessary when the value of security is 2(WPA-Enterprise); It should be a value as follows: 1: Auto; 3: AES; 4: AES-GCM 256; 5:AES-CNSA; When versionEnt is WPA3-Enterprise, Parameter [encryptionEnt] must be AES.") + @NotNull + + + public Integer getEncryptionEnt() { + return encryptionEnt; + } + + public void setEncryptionEnt(Integer encryptionEnt) { + this.encryptionEnt = encryptionEnt; + } + + public SsidEnterpriseSettingOpenApiVo gikRekeyEntEnable(Boolean gikRekeyEntEnable) { + this.gikRekeyEntEnable = gikRekeyEntEnable; + return this; + } + + /** + * WPA-Enterprise SSID group key update period config status. True: enable, false: disable. + * @return gikRekeyEntEnable + */ + @ApiModelProperty(required = true, value = "WPA-Enterprise SSID group key update period config status. True: enable, false: disable.") + @NotNull + + + public Boolean getGikRekeyEntEnable() { + return gikRekeyEntEnable; + } + + public void setGikRekeyEntEnable(Boolean gikRekeyEntEnable) { + this.gikRekeyEntEnable = gikRekeyEntEnable; + } + + public SsidEnterpriseSettingOpenApiVo rekeyEntInterval(Integer rekeyEntInterval) { + this.rekeyEntInterval = rekeyEntInterval; + return this; + } + + /** + * WPA-Enterprise SSID group key update period interval config. When the value of Parameter [intervalEntType] is 0(Seconds), it should be within the range of 30-86400; when the value of Parameter [intervalEntType] is 1(Minutes), it should be within the range of 1-1440; when the value of Parameter [intervalEntType] is 2(Hours), it should be within the range of 1-24. + * @return rekeyEntInterval + */ + @ApiModelProperty(value = "WPA-Enterprise SSID group key update period interval config. When the value of Parameter [intervalEntType] is 0(Seconds), it should be within the range of 30-86400; when the value of Parameter [intervalEntType] is 1(Minutes), it should be within the range of 1-1440; when the value of Parameter [intervalEntType] is 2(Hours), it should be within the range of 1-24.") + + + public Integer getRekeyEntInterval() { + return rekeyEntInterval; + } + + public void setRekeyEntInterval(Integer rekeyEntInterval) { + this.rekeyEntInterval = rekeyEntInterval; + } + + public SsidEnterpriseSettingOpenApiVo intervalEntType(Integer intervalEntType) { + this.intervalEntType = intervalEntType; + return this; + } + + /** + * WPA-Enterprise SSID group key update period interval unit config. It should be a value as follows: 0: Seconds; 1: Minutes; 2: Hours. + * @return intervalEntType + */ + @ApiModelProperty(value = "WPA-Enterprise SSID group key update period interval unit config. It should be a value as follows: 0: Seconds; 1: Minutes; 2: Hours.") + + + public Integer getIntervalEntType() { + return intervalEntType; + } + + public void setIntervalEntType(Integer intervalEntType) { + this.intervalEntType = intervalEntType; + } + + public SsidEnterpriseSettingOpenApiVo nasIdMode(Integer nasIdMode) { + this.nasIdMode = nasIdMode; + return this; + } + + /** + * Indicates the status of nasid under enterprise-level encryption. It should be a value as follows: 0: default (TP LINK: MAC Address), 1: follow device name, 2: custom. + * @return nasIdMode + */ + @ApiModelProperty(value = "Indicates the status of nasid under enterprise-level encryption. It should be a value as follows: 0: default (TP LINK: MAC Address), 1: follow device name, 2: custom.") + + + public Integer getNasIdMode() { + return nasIdMode; + } + + public void setNasIdMode(Integer nasIdMode) { + this.nasIdMode = nasIdMode; + } + + public SsidEnterpriseSettingOpenApiVo nasId(String nasId) { + this.nasId = nasId; + return this; + } + + /** + * This field is necessary when the nasIdMode type is custom. + * @return nasId + */ + @ApiModelProperty(value = "This field is necessary when the nasIdMode type is custom.") + + + public String getNasId() { + return nasId; + } + + public void setNasId(String nasId) { + this.nasId = nasId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidEnterpriseSettingOpenApiVo ssidEnterpriseSettingOpenApiVo = (SsidEnterpriseSettingOpenApiVo) o; + return Objects.equals(this.radiusProfileId, ssidEnterpriseSettingOpenApiVo.radiusProfileId) && + Objects.equals(this.versionEnt, ssidEnterpriseSettingOpenApiVo.versionEnt) && + Objects.equals(this.encryptionEnt, ssidEnterpriseSettingOpenApiVo.encryptionEnt) && + Objects.equals(this.gikRekeyEntEnable, ssidEnterpriseSettingOpenApiVo.gikRekeyEntEnable) && + Objects.equals(this.rekeyEntInterval, ssidEnterpriseSettingOpenApiVo.rekeyEntInterval) && + Objects.equals(this.intervalEntType, ssidEnterpriseSettingOpenApiVo.intervalEntType) && + Objects.equals(this.nasIdMode, ssidEnterpriseSettingOpenApiVo.nasIdMode) && + Objects.equals(this.nasId, ssidEnterpriseSettingOpenApiVo.nasId); + } + + @Override + public int hashCode() { + return Objects.hash(radiusProfileId, versionEnt, encryptionEnt, gikRekeyEntEnable, rekeyEntInterval, intervalEntType, nasIdMode, nasId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidEnterpriseSettingOpenApiVo {\n"); + + sb.append(" radiusProfileId: ").append(toIndentedString(radiusProfileId)).append("\n"); + sb.append(" versionEnt: ").append(toIndentedString(versionEnt)).append("\n"); + sb.append(" encryptionEnt: ").append(toIndentedString(encryptionEnt)).append("\n"); + sb.append(" gikRekeyEntEnable: ").append(toIndentedString(gikRekeyEntEnable)).append("\n"); + sb.append(" rekeyEntInterval: ").append(toIndentedString(rekeyEntInterval)).append("\n"); + sb.append(" intervalEntType: ").append(toIndentedString(intervalEntType)).append("\n"); + sb.append(" nasIdMode: ").append(toIndentedString(nasIdMode)).append("\n"); + sb.append(" nasId: ").append(toIndentedString(nasId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidMacFilterOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidMacFilterOpenApiVo.java new file mode 100644 index 0000000..718a2d6 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidMacFilterOpenApiVo.java @@ -0,0 +1,165 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SSID MAC Filter config. + */ +@ApiModel(description = "SSID MAC Filter config.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidMacFilterOpenApiVo { + @JsonProperty("macFilterEnable") + private Boolean macFilterEnable; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("macFilterId") + private String macFilterId; + + @JsonProperty("ouiProfileIdList") + @Valid + private List ouiProfileIdList = null; + + public SsidMacFilterOpenApiVo macFilterEnable(Boolean macFilterEnable) { + this.macFilterEnable = macFilterEnable; + return this; + } + + /** + * SSID MAC Filter global config status. True: enable, false: disable. + * @return macFilterEnable + */ + @ApiModelProperty(value = "SSID MAC Filter global config status. True: enable, false: disable.") + + + public Boolean getMacFilterEnable() { + return macFilterEnable; + } + + public void setMacFilterEnable(Boolean macFilterEnable) { + this.macFilterEnable = macFilterEnable; + } + + public SsidMacFilterOpenApiVo policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * SSID MAC Filter policy config mode; It should be a value as follows: 0: Deny List, 1: Allow List. + * @return policy + */ + @ApiModelProperty(value = "SSID MAC Filter policy config mode; It should be a value as follows: 0: Deny List, 1: Allow List.") + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public SsidMacFilterOpenApiVo macFilterId(String macFilterId) { + this.macFilterId = macFilterId; + return this; + } + + /** + * This field represents MAC Group Profile ID. MAC Group Profile can be created using Create a new group profile interface, and MAC Group Profile ID can be obtained from Get group profile list by type interface. + * @return macFilterId + */ + @ApiModelProperty(value = "This field represents MAC Group Profile ID. MAC Group Profile can be created using Create a new group profile interface, and MAC Group Profile ID can be obtained from Get group profile list by type interface.") + + + public String getMacFilterId() { + return macFilterId; + } + + public void setMacFilterId(String macFilterId) { + this.macFilterId = macFilterId; + } + + public SsidMacFilterOpenApiVo ouiProfileIdList(List ouiProfileIdList) { + this.ouiProfileIdList = ouiProfileIdList; + return this; + } + + public SsidMacFilterOpenApiVo addOuiProfileIdListItem(String ouiProfileIdListItem) { + if (this.ouiProfileIdList == null) { + this.ouiProfileIdList = new ArrayList<>(); + } + this.ouiProfileIdList.add(ouiProfileIdListItem); + return this; + } + + /** + * This field represents OUI Profile ID list. OUI Profile can be created using Create OUI profile interface, and OUI Profile ID can be obtained from Get OUI profile summary list interface. + * @return ouiProfileIdList + */ + @ApiModelProperty(value = "This field represents OUI Profile ID list. OUI Profile can be created using Create OUI profile interface, and OUI Profile ID can be obtained from Get OUI profile summary list interface.") + + + public List getOuiProfileIdList() { + return ouiProfileIdList; + } + + public void setOuiProfileIdList(List ouiProfileIdList) { + this.ouiProfileIdList = ouiProfileIdList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidMacFilterOpenApiVo ssidMacFilterOpenApiVo = (SsidMacFilterOpenApiVo) o; + return Objects.equals(this.macFilterEnable, ssidMacFilterOpenApiVo.macFilterEnable) && + Objects.equals(this.policy, ssidMacFilterOpenApiVo.policy) && + Objects.equals(this.macFilterId, ssidMacFilterOpenApiVo.macFilterId) && + Objects.equals(this.ouiProfileIdList, ssidMacFilterOpenApiVo.ouiProfileIdList); + } + + @Override + public int hashCode() { + return Objects.hash(macFilterEnable, policy, macFilterId, ouiProfileIdList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidMacFilterOpenApiVo {\n"); + + sb.append(" macFilterEnable: ").append(toIndentedString(macFilterEnable)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" macFilterId: ").append(toIndentedString(macFilterId)).append("\n"); + sb.append(" ouiProfileIdList: ").append(toIndentedString(ouiProfileIdList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidMultiCastOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidMultiCastOpenApiVo.java new file mode 100644 index 0000000..fb5700f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidMultiCastOpenApiVo.java @@ -0,0 +1,228 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * SSID Multicast/Broadcast Management config. + */ +@ApiModel(description = "SSID Multicast/Broadcast Management config.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidMultiCastOpenApiVo { + @JsonProperty("multiCastEnable") + private Boolean multiCastEnable; + + @JsonProperty("channelUtil") + private Integer channelUtil; + + @JsonProperty("arpCastEnable") + private Boolean arpCastEnable; + + @JsonProperty("ipv6CastEnable") + private Boolean ipv6CastEnable; + + @JsonProperty("filterEnable") + private Boolean filterEnable; + + @JsonProperty("filterMode") + private Integer filterMode; + + @JsonProperty("macGroupId") + private String macGroupId; + + public SsidMultiCastOpenApiVo multiCastEnable(Boolean multiCastEnable) { + this.multiCastEnable = multiCastEnable; + return this; + } + + /** + * Whether to enable multicast to unicast, which is disabled by default. True: enable, false: disable. + * @return multiCastEnable + */ + @ApiModelProperty(value = "Whether to enable multicast to unicast, which is disabled by default. True: enable, false: disable.") + + + public Boolean getMultiCastEnable() { + return multiCastEnable; + } + + public void setMultiCastEnable(Boolean multiCastEnable) { + this.multiCastEnable = multiCastEnable; + } + + public SsidMultiCastOpenApiVo channelUtil(Integer channelUtil) { + this.channelUtil = channelUtil; + return this; + } + + /** + * This item indicates that when the channel utilization reaches the threshold, multicast will no longer be converted to unicast, the default threshold is 100, and the value should be within the range of 0-100. + * @return channelUtil + */ + @ApiModelProperty(value = "This item indicates that when the channel utilization reaches the threshold, multicast will no longer be converted to unicast, the default threshold is 100, and the value should be within the range of 0-100.") + + + public Integer getChannelUtil() { + return channelUtil; + } + + public void setChannelUtil(Integer channelUtil) { + this.channelUtil = channelUtil; + } + + public SsidMultiCastOpenApiVo arpCastEnable(Boolean arpCastEnable) { + this.arpCastEnable = arpCastEnable; + return this; + } + + /** + * Whether to enable ARP cast to unicast, which is disabled by default. True: enable, false: disable. + * @return arpCastEnable + */ + @ApiModelProperty(value = "Whether to enable ARP cast to unicast, which is disabled by default. True: enable, false: disable.") + + + public Boolean getArpCastEnable() { + return arpCastEnable; + } + + public void setArpCastEnable(Boolean arpCastEnable) { + this.arpCastEnable = arpCastEnable; + } + + public SsidMultiCastOpenApiVo ipv6CastEnable(Boolean ipv6CastEnable) { + this.ipv6CastEnable = ipv6CastEnable; + return this; + } + + /** + * Whether to enable IPv6 multicast to unicast, which is enabled by default. True: enable, false: disable. + * @return ipv6CastEnable + */ + @ApiModelProperty(value = "Whether to enable IPv6 multicast to unicast, which is enabled by default. True: enable, false: disable.") + + + public Boolean getIpv6CastEnable() { + return ipv6CastEnable; + } + + public void setIpv6CastEnable(Boolean ipv6CastEnable) { + this.ipv6CastEnable = ipv6CastEnable; + } + + public SsidMultiCastOpenApiVo filterEnable(Boolean filterEnable) { + this.filterEnable = filterEnable; + return this; + } + + /** + * Whether to enable the multicast filter switch, which is disabled by default. True: enable, false: disable. + * @return filterEnable + */ + @ApiModelProperty(value = "Whether to enable the multicast filter switch, which is disabled by default. True: enable, false: disable.") + + + public Boolean getFilterEnable() { + return filterEnable; + } + + public void setFilterEnable(Boolean filterEnable) { + this.filterEnable = filterEnable; + } + + public SsidMultiCastOpenApiVo filterMode(Integer filterMode) { + this.filterMode = filterMode; + return this; + } + + /** + * This item indicates the status of the filtering protocol. The lowest bit indicates whether IGMP is enabled; the second lowest bit indicates whether MDNS is enabled; and the third lowest bit indicates whether Others is enabled. 1 means enable while 0 means disable. For example, 7(111) means that all are enabled; 1(001) means that only IGMP is enabled. + * @return filterMode + */ + @ApiModelProperty(value = "This item indicates the status of the filtering protocol. The lowest bit indicates whether IGMP is enabled; the second lowest bit indicates whether MDNS is enabled; and the third lowest bit indicates whether Others is enabled. 1 means enable while 0 means disable. For example, 7(111) means that all are enabled; 1(001) means that only IGMP is enabled. ") + + + public Integer getFilterMode() { + return filterMode; + } + + public void setFilterMode(Integer filterMode) { + this.filterMode = filterMode; + } + + public SsidMultiCastOpenApiVo macGroupId(String macGroupId) { + this.macGroupId = macGroupId; + return this; + } + + /** + * This field represents MAC Group Profile ID. MAC Group Profile can be created using Create a new group profile interface, and MAC Group Profile ID can be obtained from Get group profile list by type interface. + * @return macGroupId + */ + @ApiModelProperty(value = "This field represents MAC Group Profile ID. MAC Group Profile can be created using Create a new group profile interface, and MAC Group Profile ID can be obtained from Get group profile list by type interface.") + + + public String getMacGroupId() { + return macGroupId; + } + + public void setMacGroupId(String macGroupId) { + this.macGroupId = macGroupId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidMultiCastOpenApiVo ssidMultiCastOpenApiVo = (SsidMultiCastOpenApiVo) o; + return Objects.equals(this.multiCastEnable, ssidMultiCastOpenApiVo.multiCastEnable) && + Objects.equals(this.channelUtil, ssidMultiCastOpenApiVo.channelUtil) && + Objects.equals(this.arpCastEnable, ssidMultiCastOpenApiVo.arpCastEnable) && + Objects.equals(this.ipv6CastEnable, ssidMultiCastOpenApiVo.ipv6CastEnable) && + Objects.equals(this.filterEnable, ssidMultiCastOpenApiVo.filterEnable) && + Objects.equals(this.filterMode, ssidMultiCastOpenApiVo.filterMode) && + Objects.equals(this.macGroupId, ssidMultiCastOpenApiVo.macGroupId); + } + + @Override + public int hashCode() { + return Objects.hash(multiCastEnable, channelUtil, arpCastEnable, ipv6CastEnable, filterEnable, filterMode, macGroupId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidMultiCastOpenApiVo {\n"); + + sb.append(" multiCastEnable: ").append(toIndentedString(multiCastEnable)).append("\n"); + sb.append(" channelUtil: ").append(toIndentedString(channelUtil)).append("\n"); + sb.append(" arpCastEnable: ").append(toIndentedString(arpCastEnable)).append("\n"); + sb.append(" ipv6CastEnable: ").append(toIndentedString(ipv6CastEnable)).append("\n"); + sb.append(" filterEnable: ").append(toIndentedString(filterEnable)).append("\n"); + sb.append(" filterMode: ").append(toIndentedString(filterMode)).append("\n"); + sb.append(" macGroupId: ").append(toIndentedString(macGroupId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidOpenApiVo.java new file mode 100644 index 0000000..b179762 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidOpenApiVo.java @@ -0,0 +1,251 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * SsidOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidOpenApiVo { + @JsonProperty("ssidId") + private String ssidId; + + @JsonProperty("name") + private String name; + + @JsonProperty("band") + private Integer band; + + @JsonProperty("guestNetEnable") + private Boolean guestNetEnable; + + @JsonProperty("security") + private Integer security; + + @JsonProperty("broadcast") + private Boolean broadcast; + + @JsonProperty("vlanEnable") + private Boolean vlanEnable; + + @JsonProperty("vlanId") + private Integer vlanId; + + public SsidOpenApiVo ssidId(String ssidId) { + this.ssidId = ssidId; + return this; + } + + /** + * SSID ID + * @return ssidId + */ + @ApiModelProperty(value = "SSID ID") + + + public String getSsidId() { + return ssidId; + } + + public void setSsidId(String ssidId) { + this.ssidId = ssidId; + } + + public SsidOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * SSID name. It should contain 1 to 32 UTF-8 characters. + * @return name + */ + @ApiModelProperty(value = "SSID name. It should contain 1 to 32 UTF-8 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SsidOpenApiVo band(Integer band) { + this.band = band; + return this; + } + + /** + * SSID band. The lowest bit indicates whether 2.4G is included; the second lowest bit indicates whether 5G is included; the third lowest bit indicates whether 6G is included; 1 means included while 0 means not included. For example, 7(111) means that 2G/5G/6G are enabled; 1(001) means that 2G is enabled. (When 5G is included,it means 5G/5G1/5G2 are enabled.) + * @return band + */ + @ApiModelProperty(value = "SSID band. The lowest bit indicates whether 2.4G is included; the second lowest bit indicates whether 5G is included; the third lowest bit indicates whether 6G is included; 1 means included while 0 means not included. For example, 7(111) means that 2G/5G/6G are enabled; 1(001) means that 2G is enabled. (When 5G is included,it means 5G/5G1/5G2 are enabled.)") + + + public Integer getBand() { + return band; + } + + public void setBand(Integer band) { + this.band = band; + } + + public SsidOpenApiVo guestNetEnable(Boolean guestNetEnable) { + this.guestNetEnable = guestNetEnable; + return this; + } + + /** + * SSID guest network config status. True: enable, false: disable. + * @return guestNetEnable + */ + @ApiModelProperty(value = "SSID guest network config status. True: enable, false: disable.") + + + public Boolean getGuestNetEnable() { + return guestNetEnable; + } + + public void setGuestNetEnable(Boolean guestNetEnable) { + this.guestNetEnable = guestNetEnable; + } + + public SsidOpenApiVo security(Integer security) { + this.security = security; + return this; + } + + /** + * SSID security mode; Security should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal; 4: PPSK without RADIUS; 5: PPSK with RADIUS. + * @return security + */ + @ApiModelProperty(value = "SSID security mode; Security should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal; 4: PPSK without RADIUS; 5: PPSK with RADIUS.") + + + public Integer getSecurity() { + return security; + } + + public void setSecurity(Integer security) { + this.security = security; + } + + public SsidOpenApiVo broadcast(Boolean broadcast) { + this.broadcast = broadcast; + return this; + } + + /** + * SSID broadcast config status. True: enable, false: disable. + * @return broadcast + */ + @ApiModelProperty(value = "SSID broadcast config status. True: enable, false: disable.") + + + public Boolean getBroadcast() { + return broadcast; + } + + public void setBroadcast(Boolean broadcast) { + this.broadcast = broadcast; + } + + public SsidOpenApiVo vlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + return this; + } + + /** + * SSID VLAN config status. True: enable, false: disable. + * @return vlanEnable + */ + @ApiModelProperty(value = "SSID VLAN config status. True: enable, false: disable.") + + + public Boolean getVlanEnable() { + return vlanEnable; + } + + public void setVlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + } + + public SsidOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * SSID VLAN ID. This field is required when Parameter [vlanEnable] is true; It should be within the range of 1–4094. + * @return vlanId + */ + @ApiModelProperty(value = "SSID VLAN ID. This field is required when Parameter [vlanEnable] is true; It should be within the range of 1–4094.") + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidOpenApiVo ssidOpenApiVo = (SsidOpenApiVo) o; + return Objects.equals(this.ssidId, ssidOpenApiVo.ssidId) && + Objects.equals(this.name, ssidOpenApiVo.name) && + Objects.equals(this.band, ssidOpenApiVo.band) && + Objects.equals(this.guestNetEnable, ssidOpenApiVo.guestNetEnable) && + Objects.equals(this.security, ssidOpenApiVo.security) && + Objects.equals(this.broadcast, ssidOpenApiVo.broadcast) && + Objects.equals(this.vlanEnable, ssidOpenApiVo.vlanEnable) && + Objects.equals(this.vlanId, ssidOpenApiVo.vlanId); + } + + @Override + public int hashCode() { + return Objects.hash(ssidId, name, band, guestNetEnable, security, broadcast, vlanEnable, vlanId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidOpenApiVo {\n"); + + sb.append(" ssidId: ").append(toIndentedString(ssidId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" band: ").append(toIndentedString(band)).append("\n"); + sb.append(" guestNetEnable: ").append(toIndentedString(guestNetEnable)).append("\n"); + sb.append(" security: ").append(toIndentedString(security)).append("\n"); + sb.append(" broadcast: ").append(toIndentedString(broadcast)).append("\n"); + sb.append(" vlanEnable: ").append(toIndentedString(vlanEnable)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidOuiModeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidOuiModeOpenApiVo.java new file mode 100644 index 0000000..edd2e3a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidOuiModeOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Configured ssid list. + */ +@ApiModel(description = "Configured ssid list.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidOuiModeOpenApiVo { + @JsonProperty("ssidId") + private String ssidId; + + @JsonProperty("ssidName") + private String ssidName; + + public SsidOuiModeOpenApiVo ssidId(String ssidId) { + this.ssidId = ssidId; + return this; + } + + /** + * Ssid ID. + * @return ssidId + */ + @ApiModelProperty(value = "Ssid ID.") + + + public String getSsidId() { + return ssidId; + } + + public void setSsidId(String ssidId) { + this.ssidId = ssidId; + } + + public SsidOuiModeOpenApiVo ssidName(String ssidName) { + this.ssidName = ssidName; + return this; + } + + /** + * Ssid Name. + * @return ssidName + */ + @ApiModelProperty(value = "Ssid Name.") + + + public String getSsidName() { + return ssidName; + } + + public void setSsidName(String ssidName) { + this.ssidName = ssidName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidOuiModeOpenApiVo ssidOuiModeOpenApiVo = (SsidOuiModeOpenApiVo) o; + return Objects.equals(this.ssidId, ssidOuiModeOpenApiVo.ssidId) && + Objects.equals(this.ssidName, ssidOuiModeOpenApiVo.ssidName); + } + + @Override + public int hashCode() { + return Objects.hash(ssidId, ssidName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidOuiModeOpenApiVo {\n"); + + sb.append(" ssidId: ").append(toIndentedString(ssidId)).append("\n"); + sb.append(" ssidName: ").append(toIndentedString(ssidName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidPpskSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidPpskSettingOpenApiVo.java new file mode 100644 index 0000000..a66f0bb --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidPpskSettingOpenApiVo.java @@ -0,0 +1,179 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * PPSK without RADIUS/PPSK without RADIUS SSID config. This is necessary when the value of security is 4(PPSK without RADIUS), 5(PPSK with RADIUS). + */ +@ApiModel(description = "PPSK without RADIUS/PPSK without RADIUS SSID config. This is necessary when the value of security is 4(PPSK without RADIUS), 5(PPSK with RADIUS).") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidPpskSettingOpenApiVo { + @JsonProperty("ppskProfileId") + private String ppskProfileId; + + @JsonProperty("radiusProfileId") + private String radiusProfileId; + + @JsonProperty("macFormat") + private Integer macFormat; + + @JsonProperty("nasId") + private String nasId; + + @JsonProperty("type") + private Integer type; + + public SsidPpskSettingOpenApiVo ppskProfileId(String ppskProfileId) { + this.ppskProfileId = ppskProfileId; + return this; + } + + /** + * This field represents PPSK Profile ID; This is necessary when the value of security is 4(PPSK without RADIUS); PPSK Profile(PPSK Profile Template) can be created using Create PPSK profile interface(Create PPSK profile template interface), and PPSK Profile ID(PPSK Profile Template ID) can be obtained from Get PPSK profiles list(Get PPSK profile templates list) interface. + * @return ppskProfileId + */ + @ApiModelProperty(value = "This field represents PPSK Profile ID; This is necessary when the value of security is 4(PPSK without RADIUS); PPSK Profile(PPSK Profile Template) can be created using Create PPSK profile interface(Create PPSK profile template interface), and PPSK Profile ID(PPSK Profile Template ID) can be obtained from Get PPSK profiles list(Get PPSK profile templates list) interface.") + + + public String getPpskProfileId() { + return ppskProfileId; + } + + public void setPpskProfileId(String ppskProfileId) { + this.ppskProfileId = ppskProfileId; + } + + public SsidPpskSettingOpenApiVo radiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + return this; + } + + /** + * This field represents RADIUS Profile ID; This is necessary when the value of security is 5(PPSK with RADIUS); RADIUS Profile(RADIUS Profile Template) can be created using Create a new Radius profile(Create a new Radius profile template) interface, and RADIUS Profile ID(RADIUS Profile Template ID) can be obtained from Get Radius profile list(Get Radius profile template list) interface. + * @return radiusProfileId + */ + @ApiModelProperty(value = "This field represents RADIUS Profile ID; This is necessary when the value of security is 5(PPSK with RADIUS); RADIUS Profile(RADIUS Profile Template) can be created using Create a new Radius profile(Create a new Radius profile template) interface, and RADIUS Profile ID(RADIUS Profile Template ID) can be obtained from Get Radius profile list(Get Radius profile template list) interface.") + + + public String getRadiusProfileId() { + return radiusProfileId; + } + + public void setRadiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + } + + public SsidPpskSettingOpenApiVo macFormat(Integer macFormat) { + this.macFormat = macFormat; + return this; + } + + /** + * MAC address format. This is necessary when the value of security is 5(PPSK with RADIUS); It should be a value as follows: 0: aabbccddeeff; 1: aa-bb-cc-dd-ee-ff; 2: aa:bb:cc:dd:ee:ff; 3: AABBCCDDEEFF; 4: AA-BB-CC-DD-EE-FF; 5: AA:BB:CC:DD:EE:FF. + * @return macFormat + */ + @ApiModelProperty(value = "MAC address format. This is necessary when the value of security is 5(PPSK with RADIUS); It should be a value as follows: 0: aabbccddeeff; 1: aa-bb-cc-dd-ee-ff; 2: aa:bb:cc:dd:ee:ff; 3: AABBCCDDEEFF; 4: AA-BB-CC-DD-EE-FF; 5: AA:BB:CC:DD:EE:FF.") + + + public Integer getMacFormat() { + return macFormat; + } + + public void setMacFormat(Integer macFormat) { + this.macFormat = macFormat; + } + + public SsidPpskSettingOpenApiVo nasId(String nasId) { + this.nasId = nasId; + return this; + } + + /** + * NAS ID. This is necessary when the value of security is 5(PPSK with RADIUS); It should contain 1 to 64 characters. + * @return nasId + */ + @ApiModelProperty(value = "NAS ID. This is necessary when the value of security is 5(PPSK with RADIUS); It should contain 1 to 64 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getNasId() { + return nasId; + } + + public void setNasId(String nasId) { + this.nasId = nasId; + } + + public SsidPpskSettingOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Authentication type. This is necessary when the value of security is 5(PPSK with RADIUS); It should be a value as follows: 0: Mac Auth(Generic Radius with bound MAC); 1: EKMS(This configuration applies to the Pro Site of the Omada Pro Controller only); 2: Generic Radius with unbound MAC(This configuration applies to the Pro Site of the Omada Pro Controller only). + * @return type + */ + @ApiModelProperty(value = "Authentication type. This is necessary when the value of security is 5(PPSK with RADIUS); It should be a value as follows: 0: Mac Auth(Generic Radius with bound MAC); 1: EKMS(This configuration applies to the Pro Site of the Omada Pro Controller only); 2: Generic Radius with unbound MAC(This configuration applies to the Pro Site of the Omada Pro Controller only).") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidPpskSettingOpenApiVo ssidPpskSettingOpenApiVo = (SsidPpskSettingOpenApiVo) o; + return Objects.equals(this.ppskProfileId, ssidPpskSettingOpenApiVo.ppskProfileId) && + Objects.equals(this.radiusProfileId, ssidPpskSettingOpenApiVo.radiusProfileId) && + Objects.equals(this.macFormat, ssidPpskSettingOpenApiVo.macFormat) && + Objects.equals(this.nasId, ssidPpskSettingOpenApiVo.nasId) && + Objects.equals(this.type, ssidPpskSettingOpenApiVo.type); + } + + @Override + public int hashCode() { + return Objects.hash(ppskProfileId, radiusProfileId, macFormat, nasId, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidPpskSettingOpenApiVo {\n"); + + sb.append(" ppskProfileId: ").append(toIndentedString(ppskProfileId)).append("\n"); + sb.append(" radiusProfileId: ").append(toIndentedString(radiusProfileId)).append("\n"); + sb.append(" macFormat: ").append(toIndentedString(macFormat)).append("\n"); + sb.append(" nasId: ").append(toIndentedString(nasId)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidPskSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidPskSettingOpenApiVo.java new file mode 100644 index 0000000..03dda8b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidPskSettingOpenApiVo.java @@ -0,0 +1,208 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * WPA-Personal SSID config. This is necessary when the value of security is 3(WPA-Personal), 4(PPSK without RADIUS), 5(PPSK with RADIUS). + */ +@ApiModel(description = "WPA-Personal SSID config. This is necessary when the value of security is 3(WPA-Personal), 4(PPSK without RADIUS), 5(PPSK with RADIUS).") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidPskSettingOpenApiVo { + @JsonProperty("securityKey") + private String securityKey; + + @JsonProperty("versionPsk") + private Integer versionPsk; + + @JsonProperty("encryptionPsk") + private Integer encryptionPsk; + + @JsonProperty("gikRekeyPskEnable") + private Boolean gikRekeyPskEnable; + + @JsonProperty("rekeyPskInterval") + private Integer rekeyPskInterval; + + @JsonProperty("intervalPskType") + private Integer intervalPskType; + + public SsidPskSettingOpenApiVo securityKey(String securityKey) { + this.securityKey = securityKey; + return this; + } + + /** + * WPA-Personal SSID password. This is necessary when the value of security is 3(WPA-Personal);It should contain 8-63 printable ASCII characters or 8-63 hexadecimal digits. + * @return securityKey + */ + @ApiModelProperty(required = true, value = "WPA-Personal SSID password. This is necessary when the value of security is 3(WPA-Personal);It should contain 8-63 printable ASCII characters or 8-63 hexadecimal digits.") + @NotNull + + + public String getSecurityKey() { + return securityKey; + } + + public void setSecurityKey(String securityKey) { + this.securityKey = securityKey; + } + + public SsidPskSettingOpenApiVo versionPsk(Integer versionPsk) { + this.versionPsk = versionPsk; + return this; + } + + /** + * WPA-Personal version. This is necessary when the value of security is 3(WPA-Personal); It should be a value as follows: 1: WPA-PSK; 2: WPA2-PSK; 3: WPA/WPA2-PSK; 4: WPA3-SAE. + * @return versionPsk + */ + @ApiModelProperty(required = true, value = "WPA-Personal version. This is necessary when the value of security is 3(WPA-Personal); It should be a value as follows: 1: WPA-PSK; 2: WPA2-PSK; 3: WPA/WPA2-PSK; 4: WPA3-SAE.") + @NotNull + + + public Integer getVersionPsk() { + return versionPsk; + } + + public void setVersionPsk(Integer versionPsk) { + this.versionPsk = versionPsk; + } + + public SsidPskSettingOpenApiVo encryptionPsk(Integer encryptionPsk) { + this.encryptionPsk = encryptionPsk; + return this; + } + + /** + * WPA-Personal encryption. This is necessary when the value of security is 3(WPA-Personal); It should be a value as follows: 1: Auto; 3: AES; When versionPsk is WPA3-SAE, Parameter [encryptionPsk] must be AES. + * @return encryptionPsk + */ + @ApiModelProperty(required = true, value = "WPA-Personal encryption. This is necessary when the value of security is 3(WPA-Personal); It should be a value as follows: 1: Auto; 3: AES; When versionPsk is WPA3-SAE, Parameter [encryptionPsk] must be AES.") + @NotNull + + + public Integer getEncryptionPsk() { + return encryptionPsk; + } + + public void setEncryptionPsk(Integer encryptionPsk) { + this.encryptionPsk = encryptionPsk; + } + + public SsidPskSettingOpenApiVo gikRekeyPskEnable(Boolean gikRekeyPskEnable) { + this.gikRekeyPskEnable = gikRekeyPskEnable; + return this; + } + + /** + * WPA-Personal SSID group key update period config status. True: enable, false: disable. + * @return gikRekeyPskEnable + */ + @ApiModelProperty(required = true, value = "WPA-Personal SSID group key update period config status. True: enable, false: disable.") + @NotNull + + + public Boolean getGikRekeyPskEnable() { + return gikRekeyPskEnable; + } + + public void setGikRekeyPskEnable(Boolean gikRekeyPskEnable) { + this.gikRekeyPskEnable = gikRekeyPskEnable; + } + + public SsidPskSettingOpenApiVo rekeyPskInterval(Integer rekeyPskInterval) { + this.rekeyPskInterval = rekeyPskInterval; + return this; + } + + /** + * WPA-Personal SSID group key update period interval config. When the value of Parameter [intervalPskType] is 0 (Seconds), it should be within the range of 30-86400; when the value of Parameter [intervalPskType] is 1 (Minutes), it should be within the range of 1-1440; when the value of Parameter [intervalPskType] is 2 (Hours), it should be within the range of 1-24. + * @return rekeyPskInterval + */ + @ApiModelProperty(value = "WPA-Personal SSID group key update period interval config. When the value of Parameter [intervalPskType] is 0 (Seconds), it should be within the range of 30-86400; when the value of Parameter [intervalPskType] is 1 (Minutes), it should be within the range of 1-1440; when the value of Parameter [intervalPskType] is 2 (Hours), it should be within the range of 1-24.") + + + public Integer getRekeyPskInterval() { + return rekeyPskInterval; + } + + public void setRekeyPskInterval(Integer rekeyPskInterval) { + this.rekeyPskInterval = rekeyPskInterval; + } + + public SsidPskSettingOpenApiVo intervalPskType(Integer intervalPskType) { + this.intervalPskType = intervalPskType; + return this; + } + + /** + * WPA-Personal SSID group key update period interval unit config. It should be a value as follows: 0: Seconds; 1: Minutes; 2: Hours. + * @return intervalPskType + */ + @ApiModelProperty(value = "WPA-Personal SSID group key update period interval unit config. It should be a value as follows: 0: Seconds; 1: Minutes; 2: Hours.") + + + public Integer getIntervalPskType() { + return intervalPskType; + } + + public void setIntervalPskType(Integer intervalPskType) { + this.intervalPskType = intervalPskType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidPskSettingOpenApiVo ssidPskSettingOpenApiVo = (SsidPskSettingOpenApiVo) o; + return Objects.equals(this.securityKey, ssidPskSettingOpenApiVo.securityKey) && + Objects.equals(this.versionPsk, ssidPskSettingOpenApiVo.versionPsk) && + Objects.equals(this.encryptionPsk, ssidPskSettingOpenApiVo.encryptionPsk) && + Objects.equals(this.gikRekeyPskEnable, ssidPskSettingOpenApiVo.gikRekeyPskEnable) && + Objects.equals(this.rekeyPskInterval, ssidPskSettingOpenApiVo.rekeyPskInterval) && + Objects.equals(this.intervalPskType, ssidPskSettingOpenApiVo.intervalPskType); + } + + @Override + public int hashCode() { + return Objects.hash(securityKey, versionPsk, encryptionPsk, gikRekeyPskEnable, rekeyPskInterval, intervalPskType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidPskSettingOpenApiVo {\n"); + + sb.append(" securityKey: ").append(toIndentedString(securityKey)).append("\n"); + sb.append(" versionPsk: ").append(toIndentedString(versionPsk)).append("\n"); + sb.append(" encryptionPsk: ").append(toIndentedString(encryptionPsk)).append("\n"); + sb.append(" gikRekeyPskEnable: ").append(toIndentedString(gikRekeyPskEnable)).append("\n"); + sb.append(" rekeyPskInterval: ").append(toIndentedString(rekeyPskInterval)).append("\n"); + sb.append(" intervalPskType: ").append(toIndentedString(intervalPskType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidRateControlOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidRateControlOpenApiVo.java new file mode 100644 index 0000000..f4325df --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidRateControlOpenApiVo.java @@ -0,0 +1,456 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.math.BigDecimal; +import java.util.Objects; + +/** + * SSID 802.11 Rate Control config. + */ +@ApiModel(description = "SSID 802.11 Rate Control config.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidRateControlOpenApiVo { + @JsonProperty("rate2gCtrlEnable") + private Boolean rate2gCtrlEnable; + + @JsonProperty("lowerDensity2g") + private BigDecimal lowerDensity2g; + + @JsonProperty("higherDensity2g") + private Integer higherDensity2g; + + @JsonProperty("cckRatesDisable") + private Boolean cckRatesDisable; + + @JsonProperty("clientRatesRequire2g") + private Boolean clientRatesRequire2g; + + @JsonProperty("sendBeacons2g") + private Boolean sendBeacons2g; + + @JsonProperty("rate5gCtrlEnable") + private Boolean rate5gCtrlEnable; + + @JsonProperty("lowerDensity5g") + private Integer lowerDensity5g; + + @JsonProperty("higherDensity5g") + private Integer higherDensity5g; + + @JsonProperty("clientRatesRequire5g") + private Boolean clientRatesRequire5g; + + @JsonProperty("sendBeacons5g") + private Boolean sendBeacons5g; + + @JsonProperty("rate6gCtrlEnable") + private Boolean rate6gCtrlEnable; + + @JsonProperty("lowerDensity6g") + private Integer lowerDensity6g; + + @JsonProperty("higherDensity6g") + private Integer higherDensity6g; + + @JsonProperty("clientRatesRequire6g") + private Boolean clientRatesRequire6g; + + @JsonProperty("sendBeacons6g") + private Boolean sendBeacons6g; + + public SsidRateControlOpenApiVo rate2gCtrlEnable(Boolean rate2gCtrlEnable) { + this.rate2gCtrlEnable = rate2gCtrlEnable; + return this; + } + + /** + * Whether to enable 2.4GHz Data Rate Control + * @return rate2gCtrlEnable + */ + @ApiModelProperty(value = "Whether to enable 2.4GHz Data Rate Control") + + + public Boolean getRate2gCtrlEnable() { + return rate2gCtrlEnable; + } + + public void setRate2gCtrlEnable(Boolean rate2gCtrlEnable) { + this.rate2gCtrlEnable = rate2gCtrlEnable; + } + + public SsidRateControlOpenApiVo lowerDensity2g(BigDecimal lowerDensity2g) { + this.lowerDensity2g = lowerDensity2g; + return this; + } + + /** + * 2.4GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54]. + * @return lowerDensity2g + */ + @ApiModelProperty(value = "2.4GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54].") + + @Valid + + public BigDecimal getLowerDensity2g() { + return lowerDensity2g; + } + + public void setLowerDensity2g(BigDecimal lowerDensity2g) { + this.lowerDensity2g = lowerDensity2g; + } + + public SsidRateControlOpenApiVo higherDensity2g(Integer higherDensity2g) { + this.higherDensity2g = higherDensity2g; + return this; + } + + /** + * 2.4GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54]. + * @return higherDensity2g + */ + @ApiModelProperty(value = "2.4GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54].") + + + public Integer getHigherDensity2g() { + return higherDensity2g; + } + + public void setHigherDensity2g(Integer higherDensity2g) { + this.higherDensity2g = higherDensity2g; + } + + public SsidRateControlOpenApiVo cckRatesDisable(Boolean cckRatesDisable) { + this.cckRatesDisable = cckRatesDisable; + return this; + } + + /** + * Whether to disable 2G CCK Rates. If this field is true, Parameter [lowerDensity2g] can not enter the following values: [1, 2, 5.5, 11]. + * @return cckRatesDisable + */ + @ApiModelProperty(value = "Whether to disable 2G CCK Rates. If this field is true, Parameter [lowerDensity2g] can not enter the following values: [1, 2, 5.5, 11].") + + + public Boolean getCckRatesDisable() { + return cckRatesDisable; + } + + public void setCckRatesDisable(Boolean cckRatesDisable) { + this.cckRatesDisable = cckRatesDisable; + } + + public SsidRateControlOpenApiVo clientRatesRequire2g(Boolean clientRatesRequire2g) { + this.clientRatesRequire2g = clientRatesRequire2g; + return this; + } + + /** + * Whether to require clients to use rates at or above the specified value of 2.4GHz Data Rate Control. + * @return clientRatesRequire2g + */ + @ApiModelProperty(value = "Whether to require clients to use rates at or above the specified value of 2.4GHz Data Rate Control.") + + + public Boolean getClientRatesRequire2g() { + return clientRatesRequire2g; + } + + public void setClientRatesRequire2g(Boolean clientRatesRequire2g) { + this.clientRatesRequire2g = clientRatesRequire2g; + } + + public SsidRateControlOpenApiVo sendBeacons2g(Boolean sendBeacons2g) { + this.sendBeacons2g = sendBeacons2g; + return this; + } + + /** + * Whether to enable send beacons at 1Mbps of 2.4GHz Data Rate Control. + * @return sendBeacons2g + */ + @ApiModelProperty(value = "Whether to enable send beacons at 1Mbps of 2.4GHz Data Rate Control.") + + + public Boolean getSendBeacons2g() { + return sendBeacons2g; + } + + public void setSendBeacons2g(Boolean sendBeacons2g) { + this.sendBeacons2g = sendBeacons2g; + } + + public SsidRateControlOpenApiVo rate5gCtrlEnable(Boolean rate5gCtrlEnable) { + this.rate5gCtrlEnable = rate5gCtrlEnable; + return this; + } + + /** + * Whether to enable 5GHz Data Rate Control. + * @return rate5gCtrlEnable + */ + @ApiModelProperty(value = "Whether to enable 5GHz Data Rate Control.") + + + public Boolean getRate5gCtrlEnable() { + return rate5gCtrlEnable; + } + + public void setRate5gCtrlEnable(Boolean rate5gCtrlEnable) { + this.rate5gCtrlEnable = rate5gCtrlEnable; + } + + public SsidRateControlOpenApiVo lowerDensity5g(Integer lowerDensity5g) { + this.lowerDensity5g = lowerDensity5g; + return this; + } + + /** + * 5GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [6, 9, 12, 18, 24, 36, 48, 54]. + * @return lowerDensity5g + */ + @ApiModelProperty(value = "5GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [6, 9, 12, 18, 24, 36, 48, 54].") + + + public Integer getLowerDensity5g() { + return lowerDensity5g; + } + + public void setLowerDensity5g(Integer lowerDensity5g) { + this.lowerDensity5g = lowerDensity5g; + } + + public SsidRateControlOpenApiVo higherDensity5g(Integer higherDensity5g) { + this.higherDensity5g = higherDensity5g; + return this; + } + + /** + * 5GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54]. + * @return higherDensity5g + */ + @ApiModelProperty(value = "5GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54].") + + + public Integer getHigherDensity5g() { + return higherDensity5g; + } + + public void setHigherDensity5g(Integer higherDensity5g) { + this.higherDensity5g = higherDensity5g; + } + + public SsidRateControlOpenApiVo clientRatesRequire5g(Boolean clientRatesRequire5g) { + this.clientRatesRequire5g = clientRatesRequire5g; + return this; + } + + /** + * Whether to require clients to use rates at or above the specified value of 5GHz Data Rate Control. + * @return clientRatesRequire5g + */ + @ApiModelProperty(value = "Whether to require clients to use rates at or above the specified value of 5GHz Data Rate Control.") + + + public Boolean getClientRatesRequire5g() { + return clientRatesRequire5g; + } + + public void setClientRatesRequire5g(Boolean clientRatesRequire5g) { + this.clientRatesRequire5g = clientRatesRequire5g; + } + + public SsidRateControlOpenApiVo sendBeacons5g(Boolean sendBeacons5g) { + this.sendBeacons5g = sendBeacons5g; + return this; + } + + /** + * Whether to enable send beacons at 6Mbps of 5GHz Data Rate Control. + * @return sendBeacons5g + */ + @ApiModelProperty(value = "Whether to enable send beacons at 6Mbps of 5GHz Data Rate Control.") + + + public Boolean getSendBeacons5g() { + return sendBeacons5g; + } + + public void setSendBeacons5g(Boolean sendBeacons5g) { + this.sendBeacons5g = sendBeacons5g; + } + + public SsidRateControlOpenApiVo rate6gCtrlEnable(Boolean rate6gCtrlEnable) { + this.rate6gCtrlEnable = rate6gCtrlEnable; + return this; + } + + /** + * Whether to enable 6GHz Data Rate Control. + * @return rate6gCtrlEnable + */ + @ApiModelProperty(value = "Whether to enable 6GHz Data Rate Control.") + + + public Boolean getRate6gCtrlEnable() { + return rate6gCtrlEnable; + } + + public void setRate6gCtrlEnable(Boolean rate6gCtrlEnable) { + this.rate6gCtrlEnable = rate6gCtrlEnable; + } + + public SsidRateControlOpenApiVo lowerDensity6g(Integer lowerDensity6g) { + this.lowerDensity6g = lowerDensity6g; + return this; + } + + /** + * 6GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [6, 9, 12, 18, 24, 36, 48, 54]. + * @return lowerDensity6g + */ + @ApiModelProperty(value = "6GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [6, 9, 12, 18, 24, 36, 48, 54].") + + + public Integer getLowerDensity6g() { + return lowerDensity6g; + } + + public void setLowerDensity6g(Integer lowerDensity6g) { + this.lowerDensity6g = lowerDensity6g; + } + + public SsidRateControlOpenApiVo higherDensity6g(Integer higherDensity6g) { + this.higherDensity6g = higherDensity6g; + return this; + } + + /** + * 6GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54]. + * @return higherDensity6g + */ + @ApiModelProperty(value = "6GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54].") + + + public Integer getHigherDensity6g() { + return higherDensity6g; + } + + public void setHigherDensity6g(Integer higherDensity6g) { + this.higherDensity6g = higherDensity6g; + } + + public SsidRateControlOpenApiVo clientRatesRequire6g(Boolean clientRatesRequire6g) { + this.clientRatesRequire6g = clientRatesRequire6g; + return this; + } + + /** + * Whether to require clients to use rates at or above the specified value of 6GHz Data Rate Control. + * @return clientRatesRequire6g + */ + @ApiModelProperty(value = "Whether to require clients to use rates at or above the specified value of 6GHz Data Rate Control.") + + + public Boolean getClientRatesRequire6g() { + return clientRatesRequire6g; + } + + public void setClientRatesRequire6g(Boolean clientRatesRequire6g) { + this.clientRatesRequire6g = clientRatesRequire6g; + } + + public SsidRateControlOpenApiVo sendBeacons6g(Boolean sendBeacons6g) { + this.sendBeacons6g = sendBeacons6g; + return this; + } + + /** + * Whether to enable send beacons at 6Mbps of 6GHz Data Rate Control. + * @return sendBeacons6g + */ + @ApiModelProperty(value = "Whether to enable send beacons at 6Mbps of 6GHz Data Rate Control.") + + + public Boolean getSendBeacons6g() { + return sendBeacons6g; + } + + public void setSendBeacons6g(Boolean sendBeacons6g) { + this.sendBeacons6g = sendBeacons6g; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidRateControlOpenApiVo ssidRateControlOpenApiVo = (SsidRateControlOpenApiVo) o; + return Objects.equals(this.rate2gCtrlEnable, ssidRateControlOpenApiVo.rate2gCtrlEnable) && + Objects.equals(this.lowerDensity2g, ssidRateControlOpenApiVo.lowerDensity2g) && + Objects.equals(this.higherDensity2g, ssidRateControlOpenApiVo.higherDensity2g) && + Objects.equals(this.cckRatesDisable, ssidRateControlOpenApiVo.cckRatesDisable) && + Objects.equals(this.clientRatesRequire2g, ssidRateControlOpenApiVo.clientRatesRequire2g) && + Objects.equals(this.sendBeacons2g, ssidRateControlOpenApiVo.sendBeacons2g) && + Objects.equals(this.rate5gCtrlEnable, ssidRateControlOpenApiVo.rate5gCtrlEnable) && + Objects.equals(this.lowerDensity5g, ssidRateControlOpenApiVo.lowerDensity5g) && + Objects.equals(this.higherDensity5g, ssidRateControlOpenApiVo.higherDensity5g) && + Objects.equals(this.clientRatesRequire5g, ssidRateControlOpenApiVo.clientRatesRequire5g) && + Objects.equals(this.sendBeacons5g, ssidRateControlOpenApiVo.sendBeacons5g) && + Objects.equals(this.rate6gCtrlEnable, ssidRateControlOpenApiVo.rate6gCtrlEnable) && + Objects.equals(this.lowerDensity6g, ssidRateControlOpenApiVo.lowerDensity6g) && + Objects.equals(this.higherDensity6g, ssidRateControlOpenApiVo.higherDensity6g) && + Objects.equals(this.clientRatesRequire6g, ssidRateControlOpenApiVo.clientRatesRequire6g) && + Objects.equals(this.sendBeacons6g, ssidRateControlOpenApiVo.sendBeacons6g); + } + + @Override + public int hashCode() { + return Objects.hash(rate2gCtrlEnable, lowerDensity2g, higherDensity2g, cckRatesDisable, clientRatesRequire2g, sendBeacons2g, rate5gCtrlEnable, lowerDensity5g, higherDensity5g, clientRatesRequire5g, sendBeacons5g, rate6gCtrlEnable, lowerDensity6g, higherDensity6g, clientRatesRequire6g, sendBeacons6g); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidRateControlOpenApiVo {\n"); + + sb.append(" rate2gCtrlEnable: ").append(toIndentedString(rate2gCtrlEnable)).append("\n"); + sb.append(" lowerDensity2g: ").append(toIndentedString(lowerDensity2g)).append("\n"); + sb.append(" higherDensity2g: ").append(toIndentedString(higherDensity2g)).append("\n"); + sb.append(" cckRatesDisable: ").append(toIndentedString(cckRatesDisable)).append("\n"); + sb.append(" clientRatesRequire2g: ").append(toIndentedString(clientRatesRequire2g)).append("\n"); + sb.append(" sendBeacons2g: ").append(toIndentedString(sendBeacons2g)).append("\n"); + sb.append(" rate5gCtrlEnable: ").append(toIndentedString(rate5gCtrlEnable)).append("\n"); + sb.append(" lowerDensity5g: ").append(toIndentedString(lowerDensity5g)).append("\n"); + sb.append(" higherDensity5g: ").append(toIndentedString(higherDensity5g)).append("\n"); + sb.append(" clientRatesRequire5g: ").append(toIndentedString(clientRatesRequire5g)).append("\n"); + sb.append(" sendBeacons5g: ").append(toIndentedString(sendBeacons5g)).append("\n"); + sb.append(" rate6gCtrlEnable: ").append(toIndentedString(rate6gCtrlEnable)).append("\n"); + sb.append(" lowerDensity6g: ").append(toIndentedString(lowerDensity6g)).append("\n"); + sb.append(" higherDensity6g: ").append(toIndentedString(higherDensity6g)).append("\n"); + sb.append(" clientRatesRequire6g: ").append(toIndentedString(clientRatesRequire6g)).append("\n"); + sb.append(" sendBeacons6g: ").append(toIndentedString(sendBeacons6g)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidSimpleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidSimpleOpenApiVo.java new file mode 100644 index 0000000..6a805f7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidSimpleOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * SSID list with MAC-Based authentication configured + */ +@ApiModel(description = "SSID list with MAC-Based authentication configured") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidSimpleOpenApiVo { + @JsonProperty("ssidId") + private String ssidId; + + @JsonProperty("ssidName") + private String ssidName; + + public SsidSimpleOpenApiVo ssidId(String ssidId) { + this.ssidId = ssidId; + return this; + } + + /** + * This field represents SSID ID. SSID can be created using 'Create new SSID' ('Create new SSID template') interface, and SSID ID can be obtained from 'Get SSID list' ('Get SSID template list') interface + * @return ssidId + */ + @ApiModelProperty(value = "This field represents SSID ID. SSID can be created using 'Create new SSID' ('Create new SSID template') interface, and SSID ID can be obtained from 'Get SSID list' ('Get SSID template list') interface") + + + public String getSsidId() { + return ssidId; + } + + public void setSsidId(String ssidId) { + this.ssidId = ssidId; + } + + public SsidSimpleOpenApiVo ssidName(String ssidName) { + this.ssidName = ssidName; + return this; + } + + /** + * This field represents SSID name + * @return ssidName + */ + @ApiModelProperty(value = "This field represents SSID name") + + + public String getSsidName() { + return ssidName; + } + + public void setSsidName(String ssidName) { + this.ssidName = ssidName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidSimpleOpenApiVo ssidSimpleOpenApiVo = (SsidSimpleOpenApiVo) o; + return Objects.equals(this.ssidId, ssidSimpleOpenApiVo.ssidId) && + Objects.equals(this.ssidName, ssidSimpleOpenApiVo.ssidName); + } + + @Override + public int hashCode() { + return Objects.hash(ssidId, ssidName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidSimpleOpenApiVo {\n"); + + sb.append(" ssidId: ").append(toIndentedString(ssidId)).append("\n"); + sb.append(" ssidName: ").append(toIndentedString(ssidName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidWlanScheduleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidWlanScheduleOpenApiVo.java new file mode 100644 index 0000000..468828f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SsidWlanScheduleOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * SSID WLAN schedule config. + */ +@ApiModel(description = "SSID WLAN schedule config.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SsidWlanScheduleOpenApiVo { + @JsonProperty("wlanScheduleEnable") + private Boolean wlanScheduleEnable; + + @JsonProperty("action") + private Integer action; + + @JsonProperty("scheduleId") + private String scheduleId; + + public SsidWlanScheduleOpenApiVo wlanScheduleEnable(Boolean wlanScheduleEnable) { + this.wlanScheduleEnable = wlanScheduleEnable; + return this; + } + + /** + * SSID WLAN schedule global config status. True: enable, false: disable. + * @return wlanScheduleEnable + */ + @ApiModelProperty(value = "SSID WLAN schedule global config status. True: enable, false: disable.") + + + public Boolean getWlanScheduleEnable() { + return wlanScheduleEnable; + } + + public void setWlanScheduleEnable(Boolean wlanScheduleEnable) { + this.wlanScheduleEnable = wlanScheduleEnable; + } + + public SsidWlanScheduleOpenApiVo action(Integer action) { + this.action = action; + return this; + } + + /** + * 0 means radio off, indicating the Wi-Fi function is off during the selected period; 1 means radio on, indicating the Wi-Fi function is on during the selected period. + * @return action + */ + @ApiModelProperty(value = "0 means radio off, indicating the Wi-Fi function is off during the selected period; 1 means radio on, indicating the Wi-Fi function is on during the selected period.") + + + public Integer getAction() { + return action; + } + + public void setAction(Integer action) { + this.action = action; + } + + public SsidWlanScheduleOpenApiVo scheduleId(String scheduleId) { + this.scheduleId = scheduleId; + return this; + } + + /** + * This field represents Time Range Profile ID. Time Range Profile can be created using Create time range profile interface, and Time Range Profile ID can be obtained from Get time range profile list interface. + * @return scheduleId + */ + @ApiModelProperty(value = "This field represents Time Range Profile ID. Time Range Profile can be created using Create time range profile interface, and Time Range Profile ID can be obtained from Get time range profile list interface.") + + + public String getScheduleId() { + return scheduleId; + } + + public void setScheduleId(String scheduleId) { + this.scheduleId = scheduleId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SsidWlanScheduleOpenApiVo ssidWlanScheduleOpenApiVo = (SsidWlanScheduleOpenApiVo) o; + return Objects.equals(this.wlanScheduleEnable, ssidWlanScheduleOpenApiVo.wlanScheduleEnable) && + Objects.equals(this.action, ssidWlanScheduleOpenApiVo.action) && + Objects.equals(this.scheduleId, ssidWlanScheduleOpenApiVo.scheduleId); + } + + @Override + public int hashCode() { + return Objects.hash(wlanScheduleEnable, action, scheduleId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SsidWlanScheduleOpenApiVo {\n"); + + sb.append(" wlanScheduleEnable: ").append(toIndentedString(wlanScheduleEnable)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" scheduleId: ").append(toIndentedString(scheduleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockConfigOpenApiVo.java new file mode 100644 index 0000000..065a2c5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockConfigOpenApiVo.java @@ -0,0 +1,155 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SslVpnLockConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnLockConfigOpenApiVo { + @JsonProperty("type") + private Integer type; + + @JsonProperty("username") + private String username; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("totalLockTime") + private Integer totalLockTime; + + public SslVpnLockConfigOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of the SSL VPN lock should be a value as follows: 0:username; 1:IP + * @return type + */ + @ApiModelProperty(required = true, value = "Type of the SSL VPN lock should be a value as follows: 0:username; 1:IP") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SslVpnLockConfigOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * Username of the SSL VPN lock. It is required when parameter [type] is 0. + * @return username + */ + @ApiModelProperty(value = "Username of the SSL VPN lock. It is required when parameter [type] is 0.") + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,18}[\\041-\\0176]$") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public SslVpnLockConfigOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP of the SSL VPN lock. It is required when parameter [type] is 1. + * @return ip + */ + @ApiModelProperty(value = "IP of the SSL VPN lock. It is required when parameter [type] is 1.") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public SslVpnLockConfigOpenApiVo totalLockTime(Integer totalLockTime) { + this.totalLockTime = totalLockTime; + return this; + } + + /** + * Total lock time of the SSL VPN lock should be within the range of 1–1080(min). + * @return totalLockTime + */ + @ApiModelProperty(required = true, value = "Total lock time of the SSL VPN lock should be within the range of 1–1080(min).") + @NotNull + + + public Integer getTotalLockTime() { + return totalLockTime; + } + + public void setTotalLockTime(Integer totalLockTime) { + this.totalLockTime = totalLockTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnLockConfigOpenApiVo sslVpnLockConfigOpenApiVo = (SslVpnLockConfigOpenApiVo) o; + return Objects.equals(this.type, sslVpnLockConfigOpenApiVo.type) && + Objects.equals(this.username, sslVpnLockConfigOpenApiVo.username) && + Objects.equals(this.ip, sslVpnLockConfigOpenApiVo.ip) && + Objects.equals(this.totalLockTime, sslVpnLockConfigOpenApiVo.totalLockTime); + } + + @Override + public int hashCode() { + return Objects.hash(type, username, ip, totalLockTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnLockConfigOpenApiVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" totalLockTime: ").append(toIndentedString(totalLockTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockEntity.java new file mode 100644 index 0000000..fac92bf --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockEntity.java @@ -0,0 +1,204 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * SslVpnLockEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnLockEntity { + @JsonProperty("id") + private String id; + + @JsonProperty("username") + private String username; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("totalLockTime") + private Integer totalLockTime; + + @JsonProperty("leftLockTime") + private Integer leftLockTime; + + public SslVpnLockEntity id(String id) { + this.id = id; + return this; + } + + /** + * ID of the SSL VPN lock + * @return id + */ + @ApiModelProperty(value = "ID of the SSL VPN lock") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SslVpnLockEntity username(String username) { + this.username = username; + return this; + } + + /** + * Username of the SSL VPN lock + * @return username + */ + @ApiModelProperty(value = "Username of the SSL VPN lock") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public SslVpnLockEntity ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP of the SSL VPN lock + * @return ip + */ + @ApiModelProperty(value = "IP of the SSL VPN lock") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public SslVpnLockEntity type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of the SSL VPN lock should be a value as follows: 0:username; 1:IP + * @return type + */ + @ApiModelProperty(required = true, value = "Type of the SSL VPN lock should be a value as follows: 0:username; 1:IP") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SslVpnLockEntity totalLockTime(Integer totalLockTime) { + this.totalLockTime = totalLockTime; + return this; + } + + /** + * Total lock time of the SSL VPN lock should be within the range of 1–1080(min). + * @return totalLockTime + */ + @ApiModelProperty(required = true, value = "Total lock time of the SSL VPN lock should be within the range of 1–1080(min).") + @NotNull + + + public Integer getTotalLockTime() { + return totalLockTime; + } + + public void setTotalLockTime(Integer totalLockTime) { + this.totalLockTime = totalLockTime; + } + + public SslVpnLockEntity leftLockTime(Integer leftLockTime) { + this.leftLockTime = leftLockTime; + return this; + } + + /** + * Left lock time(min) of the SSL VPN lock. + * @return leftLockTime + */ + @ApiModelProperty(value = "Left lock time(min) of the SSL VPN lock.") + + + public Integer getLeftLockTime() { + return leftLockTime; + } + + public void setLeftLockTime(Integer leftLockTime) { + this.leftLockTime = leftLockTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnLockEntity sslVpnLockEntity = (SslVpnLockEntity) o; + return Objects.equals(this.id, sslVpnLockEntity.id) && + Objects.equals(this.username, sslVpnLockEntity.username) && + Objects.equals(this.ip, sslVpnLockEntity.ip) && + Objects.equals(this.type, sslVpnLockEntity.type) && + Objects.equals(this.totalLockTime, sslVpnLockEntity.totalLockTime) && + Objects.equals(this.leftLockTime, sslVpnLockEntity.leftLockTime); + } + + @Override + public int hashCode() { + return Objects.hash(id, username, ip, type, totalLockTime, leftLockTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnLockEntity {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" totalLockTime: ").append(toIndentedString(totalLockTime)).append("\n"); + sb.append(" leftLockTime: ").append(toIndentedString(leftLockTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockModifyOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockModifyOpenApiVo.java new file mode 100644 index 0000000..e263d22 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnLockModifyOpenApiVo.java @@ -0,0 +1,155 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SslVpnLockModifyOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnLockModifyOpenApiVo { + @JsonProperty("type") + private Integer type; + + @JsonProperty("username") + private String username; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("totalLockTime") + private Integer totalLockTime; + + public SslVpnLockModifyOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of the SSL VPN lock should be a value as follows: 0:username, 1:IP. It can not be modified. + * @return type + */ + @ApiModelProperty(required = true, value = "Type of the SSL VPN lock should be a value as follows: 0:username, 1:IP. It can not be modified.") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SslVpnLockModifyOpenApiVo username(String username) { + this.username = username; + return this; + } + + /** + * Username of the SSL VPN lock. It is required when parameter [type] is 0. + * @return username + */ + @ApiModelProperty(value = "Username of the SSL VPN lock. It is required when parameter [type] is 0.") + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,18}[\\041-\\0176]$") + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public SslVpnLockModifyOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP of the SSL VPN lock. It is required when parameter [type] is 1. + * @return ip + */ + @ApiModelProperty(value = "IP of the SSL VPN lock. It is required when parameter [type] is 1.") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public SslVpnLockModifyOpenApiVo totalLockTime(Integer totalLockTime) { + this.totalLockTime = totalLockTime; + return this; + } + + /** + * Total lock time of the SSL VPN lock should be within the range of 1–1080(min). + * @return totalLockTime + */ + @ApiModelProperty(required = true, value = "Total lock time of the SSL VPN lock should be within the range of 1–1080(min).") + @NotNull + + + public Integer getTotalLockTime() { + return totalLockTime; + } + + public void setTotalLockTime(Integer totalLockTime) { + this.totalLockTime = totalLockTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnLockModifyOpenApiVo sslVpnLockModifyOpenApiVo = (SslVpnLockModifyOpenApiVo) o; + return Objects.equals(this.type, sslVpnLockModifyOpenApiVo.type) && + Objects.equals(this.username, sslVpnLockModifyOpenApiVo.username) && + Objects.equals(this.ip, sslVpnLockModifyOpenApiVo.ip) && + Objects.equals(this.totalLockTime, sslVpnLockModifyOpenApiVo.totalLockTime); + } + + @Override + public int hashCode() { + return Objects.hash(type, username, ip, totalLockTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnLockModifyOpenApiVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" totalLockTime: ").append(toIndentedString(totalLockTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceBriefInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceBriefInfo.java new file mode 100644 index 0000000..07e6c31 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceBriefInfo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Resources list of the SSL VPN resource group + */ +@ApiModel(description = "Resources list of the SSL VPN resource group") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnResourceBriefInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + public SslVpnResourceBriefInfo id(String id) { + this.id = id; + return this; + } + + /** + * ID of the SSL VPN resource brief + * @return id + */ + @ApiModelProperty(value = "ID of the SSL VPN resource brief") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SslVpnResourceBriefInfo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the SSL VPN resource brief + * @return name + */ + @ApiModelProperty(value = "Name of the SSL VPN resource brief") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnResourceBriefInfo sslVpnResourceBriefInfo = (SslVpnResourceBriefInfo) o; + return Objects.equals(this.id, sslVpnResourceBriefInfo.id) && + Objects.equals(this.name, sslVpnResourceBriefInfo.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnResourceBriefInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceConfigOpenApiVo.java new file mode 100644 index 0000000..b30749a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceConfigOpenApiVo.java @@ -0,0 +1,380 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SslVpnResourceConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnResourceConfigOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("mask") + private String mask; + + @JsonProperty("domain") + private String domain; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("srcPortStart") + private Integer srcPortStart; + + @JsonProperty("srcPortEnd") + private Integer srcPortEnd; + + @JsonProperty("dstPortStart") + private Integer dstPortStart; + + @JsonProperty("dstPortEnd") + private Integer dstPortEnd; + + @JsonProperty("icmpType") + private Integer icmpType; + + @JsonProperty("icmpCode") + private Integer icmpCode; + + @JsonProperty("otherProtocol") + private Integer otherProtocol; + + public SslVpnResourceConfigOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the SSL VPN resource should contain 1 to 20 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the SSL VPN resource should contain 1 to 20 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,18}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SslVpnResourceConfigOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of the SSL VPN resource should be a value as follows: 0: IP; 1: domain. + * @return type + */ + @ApiModelProperty(required = true, value = "Type of the SSL VPN resource should be a value as follows: 0: IP; 1: domain.") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SslVpnResourceConfigOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP of the SSL VPN resource, exists when type is 0. + * @return ip + */ + @ApiModelProperty(value = "IP of the SSL VPN resource, exists when type is 0.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public SslVpnResourceConfigOpenApiVo mask(String mask) { + this.mask = mask; + return this; + } + + /** + * Mask of the SSL VPN resource, exists when type is 0. + * @return mask + */ + @ApiModelProperty(value = "Mask of the SSL VPN resource, exists when type is 0.") + + + public String getMask() { + return mask; + } + + public void setMask(String mask) { + this.mask = mask; + } + + public SslVpnResourceConfigOpenApiVo domain(String domain) { + this.domain = domain; + return this; + } + + /** + * Domain of the SSL VPN resource, exists when type is 1. + * @return domain + */ + @ApiModelProperty(value = "Domain of the SSL VPN resource, exists when type is 1.") + + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public SslVpnResourceConfigOpenApiVo protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * Protocol of the SSL VPN resource should be a value as follows: 0:All; 1:TCP; 2:UDP; 3:TCP/UDP; 4:ICMP; 5:Other + * @return protocol + */ + @ApiModelProperty(value = "Protocol of the SSL VPN resource should be a value as follows: 0:All; 1:TCP; 2:UDP; 3:TCP/UDP; 4:ICMP; 5:Other") + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public SslVpnResourceConfigOpenApiVo srcPortStart(Integer srcPortStart) { + this.srcPortStart = srcPortStart; + return this; + } + + /** + * Start source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return srcPortStart + */ + @ApiModelProperty(value = "Start source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getSrcPortStart() { + return srcPortStart; + } + + public void setSrcPortStart(Integer srcPortStart) { + this.srcPortStart = srcPortStart; + } + + public SslVpnResourceConfigOpenApiVo srcPortEnd(Integer srcPortEnd) { + this.srcPortEnd = srcPortEnd; + return this; + } + + /** + * End source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return srcPortEnd + */ + @ApiModelProperty(value = "End source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getSrcPortEnd() { + return srcPortEnd; + } + + public void setSrcPortEnd(Integer srcPortEnd) { + this.srcPortEnd = srcPortEnd; + } + + public SslVpnResourceConfigOpenApiVo dstPortStart(Integer dstPortStart) { + this.dstPortStart = dstPortStart; + return this; + } + + /** + * Start destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return dstPortStart + */ + @ApiModelProperty(value = "Start destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getDstPortStart() { + return dstPortStart; + } + + public void setDstPortStart(Integer dstPortStart) { + this.dstPortStart = dstPortStart; + } + + public SslVpnResourceConfigOpenApiVo dstPortEnd(Integer dstPortEnd) { + this.dstPortEnd = dstPortEnd; + return this; + } + + /** + * End destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return dstPortEnd + */ + @ApiModelProperty(value = "End destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getDstPortEnd() { + return dstPortEnd; + } + + public void setDstPortEnd(Integer dstPortEnd) { + this.dstPortEnd = dstPortEnd; + } + + public SslVpnResourceConfigOpenApiVo icmpType(Integer icmpType) { + this.icmpType = icmpType; + return this; + } + + /** + * ICMP type of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255 + * @return icmpType + */ + @ApiModelProperty(value = "ICMP type of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255") + + + public Integer getIcmpType() { + return icmpType; + } + + public void setIcmpType(Integer icmpType) { + this.icmpType = icmpType; + } + + public SslVpnResourceConfigOpenApiVo icmpCode(Integer icmpCode) { + this.icmpCode = icmpCode; + return this; + } + + /** + * ICMP code of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255 + * @return icmpCode + */ + @ApiModelProperty(value = "ICMP code of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255") + + + public Integer getIcmpCode() { + return icmpCode; + } + + public void setIcmpCode(Integer icmpCode) { + this.icmpCode = icmpCode; + } + + public SslVpnResourceConfigOpenApiVo otherProtocol(Integer otherProtocol) { + this.otherProtocol = otherProtocol; + return this; + } + + /** + * Other protocol of the SSL VPN resource. It should be within the range of 1–255. + * @return otherProtocol + */ + @ApiModelProperty(value = "Other protocol of the SSL VPN resource. It should be within the range of 1–255.") + + + public Integer getOtherProtocol() { + return otherProtocol; + } + + public void setOtherProtocol(Integer otherProtocol) { + this.otherProtocol = otherProtocol; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnResourceConfigOpenApiVo sslVpnResourceConfigOpenApiVo = (SslVpnResourceConfigOpenApiVo) o; + return Objects.equals(this.name, sslVpnResourceConfigOpenApiVo.name) && + Objects.equals(this.type, sslVpnResourceConfigOpenApiVo.type) && + Objects.equals(this.ip, sslVpnResourceConfigOpenApiVo.ip) && + Objects.equals(this.mask, sslVpnResourceConfigOpenApiVo.mask) && + Objects.equals(this.domain, sslVpnResourceConfigOpenApiVo.domain) && + Objects.equals(this.protocol, sslVpnResourceConfigOpenApiVo.protocol) && + Objects.equals(this.srcPortStart, sslVpnResourceConfigOpenApiVo.srcPortStart) && + Objects.equals(this.srcPortEnd, sslVpnResourceConfigOpenApiVo.srcPortEnd) && + Objects.equals(this.dstPortStart, sslVpnResourceConfigOpenApiVo.dstPortStart) && + Objects.equals(this.dstPortEnd, sslVpnResourceConfigOpenApiVo.dstPortEnd) && + Objects.equals(this.icmpType, sslVpnResourceConfigOpenApiVo.icmpType) && + Objects.equals(this.icmpCode, sslVpnResourceConfigOpenApiVo.icmpCode) && + Objects.equals(this.otherProtocol, sslVpnResourceConfigOpenApiVo.otherProtocol); + } + + @Override + public int hashCode() { + return Objects.hash(name, type, ip, mask, domain, protocol, srcPortStart, srcPortEnd, dstPortStart, dstPortEnd, icmpType, icmpCode, otherProtocol); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnResourceConfigOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" mask: ").append(toIndentedString(mask)).append("\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" srcPortStart: ").append(toIndentedString(srcPortStart)).append("\n"); + sb.append(" srcPortEnd: ").append(toIndentedString(srcPortEnd)).append("\n"); + sb.append(" dstPortStart: ").append(toIndentedString(dstPortStart)).append("\n"); + sb.append(" dstPortEnd: ").append(toIndentedString(dstPortEnd)).append("\n"); + sb.append(" icmpType: ").append(toIndentedString(icmpType)).append("\n"); + sb.append(" icmpCode: ").append(toIndentedString(icmpCode)).append("\n"); + sb.append(" otherProtocol: ").append(toIndentedString(otherProtocol)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceEntity.java new file mode 100644 index 0000000..183e730 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceEntity.java @@ -0,0 +1,443 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SslVpnResourceEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnResourceEntity { + @JsonProperty("id") + private String id; + + @JsonProperty("resourceGroupList") + @Valid + private List resourceGroupList = null; + + @JsonProperty("name") + private String name; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("mask") + private String mask; + + @JsonProperty("domain") + private String domain; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("srcPortStart") + private Integer srcPortStart; + + @JsonProperty("srcPortEnd") + private Integer srcPortEnd; + + @JsonProperty("dstPortStart") + private Integer dstPortStart; + + @JsonProperty("dstPortEnd") + private Integer dstPortEnd; + + @JsonProperty("icmpType") + private Integer icmpType; + + @JsonProperty("icmpCode") + private Integer icmpCode; + + @JsonProperty("otherProtocol") + private Integer otherProtocol; + + public SslVpnResourceEntity id(String id) { + this.id = id; + return this; + } + + /** + * ID of the SSL VPN resource. + * @return id + */ + @ApiModelProperty(value = "ID of the SSL VPN resource.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SslVpnResourceEntity resourceGroupList(List resourceGroupList) { + this.resourceGroupList = resourceGroupList; + return this; + } + + public SslVpnResourceEntity addResourceGroupListItem(SslVpnResourceGroupBriefInfo resourceGroupListItem) { + if (this.resourceGroupList == null) { + this.resourceGroupList = new ArrayList<>(); + } + this.resourceGroupList.add(resourceGroupListItem); + return this; + } + + /** + * Resource group list of the SSL VPN resource. + * @return resourceGroupList + */ + @ApiModelProperty(value = "Resource group list of the SSL VPN resource.") + + @Valid + + public List getResourceGroupList() { + return resourceGroupList; + } + + public void setResourceGroupList(List resourceGroupList) { + this.resourceGroupList = resourceGroupList; + } + + public SslVpnResourceEntity name(String name) { + this.name = name; + return this; + } + + /** + * Name of the SSL VPN resource. + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the SSL VPN resource.") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SslVpnResourceEntity type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of the SSL VPN resource should be a value as follows: 0: IP; 1: domain. + * @return type + */ + @ApiModelProperty(required = true, value = "Type of the SSL VPN resource should be a value as follows: 0: IP; 1: domain.") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SslVpnResourceEntity ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP of the SSL VPN resource, exists when type is 0. + * @return ip + */ + @ApiModelProperty(value = "IP of the SSL VPN resource, exists when type is 0.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public SslVpnResourceEntity mask(String mask) { + this.mask = mask; + return this; + } + + /** + * Mask of the SSL VPN resource, exists when type is 0. + * @return mask + */ + @ApiModelProperty(value = "Mask of the SSL VPN resource, exists when type is 0.") + + + public String getMask() { + return mask; + } + + public void setMask(String mask) { + this.mask = mask; + } + + public SslVpnResourceEntity domain(String domain) { + this.domain = domain; + return this; + } + + /** + * Domain of the SSL VPN resource, exists when type is 1. + * @return domain + */ + @ApiModelProperty(value = "Domain of the SSL VPN resource, exists when type is 1.") + + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public SslVpnResourceEntity protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * Protocol of the SSL VPN resource should be a value as follows: 0:All; 1:TCP; 2:UDP; 3:TCP/UDP; 4:ICMP; 5:Other + * @return protocol + */ + @ApiModelProperty(value = "Protocol of the SSL VPN resource should be a value as follows: 0:All; 1:TCP; 2:UDP; 3:TCP/UDP; 4:ICMP; 5:Other") + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public SslVpnResourceEntity srcPortStart(Integer srcPortStart) { + this.srcPortStart = srcPortStart; + return this; + } + + /** + * Start source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return srcPortStart + */ + @ApiModelProperty(value = "Start source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getSrcPortStart() { + return srcPortStart; + } + + public void setSrcPortStart(Integer srcPortStart) { + this.srcPortStart = srcPortStart; + } + + public SslVpnResourceEntity srcPortEnd(Integer srcPortEnd) { + this.srcPortEnd = srcPortEnd; + return this; + } + + /** + * End source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return srcPortEnd + */ + @ApiModelProperty(value = "End source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getSrcPortEnd() { + return srcPortEnd; + } + + public void setSrcPortEnd(Integer srcPortEnd) { + this.srcPortEnd = srcPortEnd; + } + + public SslVpnResourceEntity dstPortStart(Integer dstPortStart) { + this.dstPortStart = dstPortStart; + return this; + } + + /** + * Start destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return dstPortStart + */ + @ApiModelProperty(value = "Start destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getDstPortStart() { + return dstPortStart; + } + + public void setDstPortStart(Integer dstPortStart) { + this.dstPortStart = dstPortStart; + } + + public SslVpnResourceEntity dstPortEnd(Integer dstPortEnd) { + this.dstPortEnd = dstPortEnd; + return this; + } + + /** + * End destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return dstPortEnd + */ + @ApiModelProperty(value = "End destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getDstPortEnd() { + return dstPortEnd; + } + + public void setDstPortEnd(Integer dstPortEnd) { + this.dstPortEnd = dstPortEnd; + } + + public SslVpnResourceEntity icmpType(Integer icmpType) { + this.icmpType = icmpType; + return this; + } + + /** + * ICMP type of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255 + * @return icmpType + */ + @ApiModelProperty(value = "ICMP type of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255") + + + public Integer getIcmpType() { + return icmpType; + } + + public void setIcmpType(Integer icmpType) { + this.icmpType = icmpType; + } + + public SslVpnResourceEntity icmpCode(Integer icmpCode) { + this.icmpCode = icmpCode; + return this; + } + + /** + * ICMP code of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255 + * @return icmpCode + */ + @ApiModelProperty(value = "ICMP code of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255") + + + public Integer getIcmpCode() { + return icmpCode; + } + + public void setIcmpCode(Integer icmpCode) { + this.icmpCode = icmpCode; + } + + public SslVpnResourceEntity otherProtocol(Integer otherProtocol) { + this.otherProtocol = otherProtocol; + return this; + } + + /** + * Other protocol of the SSL VPN resource. It should be within the range of 1–255 + * @return otherProtocol + */ + @ApiModelProperty(value = "Other protocol of the SSL VPN resource. It should be within the range of 1–255") + + + public Integer getOtherProtocol() { + return otherProtocol; + } + + public void setOtherProtocol(Integer otherProtocol) { + this.otherProtocol = otherProtocol; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnResourceEntity sslVpnResourceEntity = (SslVpnResourceEntity) o; + return Objects.equals(this.id, sslVpnResourceEntity.id) && + Objects.equals(this.resourceGroupList, sslVpnResourceEntity.resourceGroupList) && + Objects.equals(this.name, sslVpnResourceEntity.name) && + Objects.equals(this.type, sslVpnResourceEntity.type) && + Objects.equals(this.ip, sslVpnResourceEntity.ip) && + Objects.equals(this.mask, sslVpnResourceEntity.mask) && + Objects.equals(this.domain, sslVpnResourceEntity.domain) && + Objects.equals(this.protocol, sslVpnResourceEntity.protocol) && + Objects.equals(this.srcPortStart, sslVpnResourceEntity.srcPortStart) && + Objects.equals(this.srcPortEnd, sslVpnResourceEntity.srcPortEnd) && + Objects.equals(this.dstPortStart, sslVpnResourceEntity.dstPortStart) && + Objects.equals(this.dstPortEnd, sslVpnResourceEntity.dstPortEnd) && + Objects.equals(this.icmpType, sslVpnResourceEntity.icmpType) && + Objects.equals(this.icmpCode, sslVpnResourceEntity.icmpCode) && + Objects.equals(this.otherProtocol, sslVpnResourceEntity.otherProtocol); + } + + @Override + public int hashCode() { + return Objects.hash(id, resourceGroupList, name, type, ip, mask, domain, protocol, srcPortStart, srcPortEnd, dstPortStart, dstPortEnd, icmpType, icmpCode, otherProtocol); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnResourceEntity {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" resourceGroupList: ").append(toIndentedString(resourceGroupList)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" mask: ").append(toIndentedString(mask)).append("\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" srcPortStart: ").append(toIndentedString(srcPortStart)).append("\n"); + sb.append(" srcPortEnd: ").append(toIndentedString(srcPortEnd)).append("\n"); + sb.append(" dstPortStart: ").append(toIndentedString(dstPortStart)).append("\n"); + sb.append(" dstPortEnd: ").append(toIndentedString(dstPortEnd)).append("\n"); + sb.append(" icmpType: ").append(toIndentedString(icmpType)).append("\n"); + sb.append(" icmpCode: ").append(toIndentedString(icmpCode)).append("\n"); + sb.append(" otherProtocol: ").append(toIndentedString(otherProtocol)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroup.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroup.java new file mode 100644 index 0000000..e7df0a2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroup.java @@ -0,0 +1,141 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SslVpnResourceGroup + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnResourceGroup { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("resourcesList") + @Valid + private List resourcesList = null; + + public SslVpnResourceGroup id(String id) { + this.id = id; + return this; + } + + /** + * ID of the SSL VPN resource group + * @return id + */ + @ApiModelProperty(value = "ID of the SSL VPN resource group") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SslVpnResourceGroup name(String name) { + this.name = name; + return this; + } + + /** + * Name of the SSL VPN resource group + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the SSL VPN resource group") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SslVpnResourceGroup resourcesList(List resourcesList) { + this.resourcesList = resourcesList; + return this; + } + + public SslVpnResourceGroup addResourcesListItem(SslVpnResourceBriefInfo resourcesListItem) { + if (this.resourcesList == null) { + this.resourcesList = new ArrayList<>(); + } + this.resourcesList.add(resourcesListItem); + return this; + } + + /** + * Resources list of the SSL VPN resource group + * @return resourcesList + */ + @ApiModelProperty(value = "Resources list of the SSL VPN resource group") + + @Valid + + public List getResourcesList() { + return resourcesList; + } + + public void setResourcesList(List resourcesList) { + this.resourcesList = resourcesList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnResourceGroup sslVpnResourceGroup = (SslVpnResourceGroup) o; + return Objects.equals(this.id, sslVpnResourceGroup.id) && + Objects.equals(this.name, sslVpnResourceGroup.name) && + Objects.equals(this.resourcesList, sslVpnResourceGroup.resourcesList); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, resourcesList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnResourceGroup {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" resourcesList: ").append(toIndentedString(resourcesList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupBriefInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupBriefInfo.java new file mode 100644 index 0000000..4769fd0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupBriefInfo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Resource group list of the SSL VPN user group + */ +@ApiModel(description = "Resource group list of the SSL VPN user group") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnResourceGroupBriefInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + public SslVpnResourceGroupBriefInfo id(String id) { + this.id = id; + return this; + } + + /** + * ID of the SSL VPN resource group brief + * @return id + */ + @ApiModelProperty(value = "ID of the SSL VPN resource group brief") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SslVpnResourceGroupBriefInfo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the SSL VPN resource group brief + * @return name + */ + @ApiModelProperty(value = "Name of the SSL VPN resource group brief") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnResourceGroupBriefInfo sslVpnResourceGroupBriefInfo = (SslVpnResourceGroupBriefInfo) o; + return Objects.equals(this.id, sslVpnResourceGroupBriefInfo.id) && + Objects.equals(this.name, sslVpnResourceGroupBriefInfo.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnResourceGroupBriefInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupConfigOpenApiVo.java new file mode 100644 index 0000000..fe1193c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupConfigOpenApiVo.java @@ -0,0 +1,116 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SslVpnResourceGroupConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnResourceGroupConfigOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("resourcesList") + @Valid + private List resourcesList = null; + + public SslVpnResourceGroupConfigOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the SSL VPN resource group should contain 1 to 20 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the SSL VPN resource group should contain 1 to 20 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,18}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SslVpnResourceGroupConfigOpenApiVo resourcesList(List resourcesList) { + this.resourcesList = resourcesList; + return this; + } + + public SslVpnResourceGroupConfigOpenApiVo addResourcesListItem(String resourcesListItem) { + if (this.resourcesList == null) { + this.resourcesList = new ArrayList<>(); + } + this.resourcesList.add(resourcesListItem); + return this; + } + + /** + * Resources ID list of the SSL VPN resource group + * @return resourcesList + */ + @ApiModelProperty(value = "Resources ID list of the SSL VPN resource group") + + + public List getResourcesList() { + return resourcesList; + } + + public void setResourcesList(List resourcesList) { + this.resourcesList = resourcesList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnResourceGroupConfigOpenApiVo sslVpnResourceGroupConfigOpenApiVo = (SslVpnResourceGroupConfigOpenApiVo) o; + return Objects.equals(this.name, sslVpnResourceGroupConfigOpenApiVo.name) && + Objects.equals(this.resourcesList, sslVpnResourceGroupConfigOpenApiVo.resourcesList); + } + + @Override + public int hashCode() { + return Objects.hash(name, resourcesList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnResourceGroupConfigOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" resourcesList: ").append(toIndentedString(resourcesList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupModifyOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupModifyOpenApiVo.java new file mode 100644 index 0000000..bf9ae49 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceGroupModifyOpenApiVo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SslVpnResourceGroupModifyOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnResourceGroupModifyOpenApiVo { + @JsonProperty("resourcesList") + @Valid + private List resourcesList = null; + + public SslVpnResourceGroupModifyOpenApiVo resourcesList(List resourcesList) { + this.resourcesList = resourcesList; + return this; + } + + public SslVpnResourceGroupModifyOpenApiVo addResourcesListItem(String resourcesListItem) { + if (this.resourcesList == null) { + this.resourcesList = new ArrayList<>(); + } + this.resourcesList.add(resourcesListItem); + return this; + } + + /** + * Resources ID list of the SSL VPN resource group. Resource can be created using 'Create SSL VPN resource' interface, and resource ID can be obtained from 'Get resource list for SSL VPN server' interface. + * @return resourcesList + */ + @ApiModelProperty(value = "Resources ID list of the SSL VPN resource group. Resource can be created using 'Create SSL VPN resource' interface, and resource ID can be obtained from 'Get resource list for SSL VPN server' interface.") + + + public List getResourcesList() { + return resourcesList; + } + + public void setResourcesList(List resourcesList) { + this.resourcesList = resourcesList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnResourceGroupModifyOpenApiVo sslVpnResourceGroupModifyOpenApiVo = (SslVpnResourceGroupModifyOpenApiVo) o; + return Objects.equals(this.resourcesList, sslVpnResourceGroupModifyOpenApiVo.resourcesList); + } + + @Override + public int hashCode() { + return Objects.hash(resourcesList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnResourceGroupModifyOpenApiVo {\n"); + + sb.append(" resourcesList: ").append(toIndentedString(resourcesList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceModifyOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceModifyOpenApiVo.java new file mode 100644 index 0000000..46a15c1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnResourceModifyOpenApiVo.java @@ -0,0 +1,354 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SslVpnResourceModifyOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnResourceModifyOpenApiVo { + @JsonProperty("type") + private Integer type; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("mask") + private String mask; + + @JsonProperty("domain") + private String domain; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("srcPortStart") + private Integer srcPortStart; + + @JsonProperty("srcPortEnd") + private Integer srcPortEnd; + + @JsonProperty("dstPortStart") + private Integer dstPortStart; + + @JsonProperty("dstPortEnd") + private Integer dstPortEnd; + + @JsonProperty("icmpType") + private Integer icmpType; + + @JsonProperty("icmpCode") + private Integer icmpCode; + + @JsonProperty("otherProtocol") + private Integer otherProtocol; + + public SslVpnResourceModifyOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type of the SSL VPN resource should be a value as follows: 0: IP; 1: domain, and it can not be modified. + * @return type + */ + @ApiModelProperty(required = true, value = "Type of the SSL VPN resource should be a value as follows: 0: IP; 1: domain, and it can not be modified.") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public SslVpnResourceModifyOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * IP of the SSL VPN resource, exists when type is 0. + * @return ip + */ + @ApiModelProperty(value = "IP of the SSL VPN resource, exists when type is 0.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public SslVpnResourceModifyOpenApiVo mask(String mask) { + this.mask = mask; + return this; + } + + /** + * Mask of the SSL VPN resource, exists when type is 0. + * @return mask + */ + @ApiModelProperty(value = "Mask of the SSL VPN resource, exists when type is 0.") + + + public String getMask() { + return mask; + } + + public void setMask(String mask) { + this.mask = mask; + } + + public SslVpnResourceModifyOpenApiVo domain(String domain) { + this.domain = domain; + return this; + } + + /** + * Domain of the SSL VPN resource, exists when type is 1. + * @return domain + */ + @ApiModelProperty(value = "Domain of the SSL VPN resource, exists when type is 1.") + + + public String getDomain() { + return domain; + } + + public void setDomain(String domain) { + this.domain = domain; + } + + public SslVpnResourceModifyOpenApiVo protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * Protocol of the SSL VPN resource should be a value as follows: 0:All; 1:TCP; 2:UDP; 3:TCP/UDP; 4:ICMP; 5:Other + * @return protocol + */ + @ApiModelProperty(value = "Protocol of the SSL VPN resource should be a value as follows: 0:All; 1:TCP; 2:UDP; 3:TCP/UDP; 4:ICMP; 5:Other") + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public SslVpnResourceModifyOpenApiVo srcPortStart(Integer srcPortStart) { + this.srcPortStart = srcPortStart; + return this; + } + + /** + * Start source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return srcPortStart + */ + @ApiModelProperty(value = "Start source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getSrcPortStart() { + return srcPortStart; + } + + public void setSrcPortStart(Integer srcPortStart) { + this.srcPortStart = srcPortStart; + } + + public SslVpnResourceModifyOpenApiVo srcPortEnd(Integer srcPortEnd) { + this.srcPortEnd = srcPortEnd; + return this; + } + + /** + * End source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return srcPortEnd + */ + @ApiModelProperty(value = "End source port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getSrcPortEnd() { + return srcPortEnd; + } + + public void setSrcPortEnd(Integer srcPortEnd) { + this.srcPortEnd = srcPortEnd; + } + + public SslVpnResourceModifyOpenApiVo dstPortStart(Integer dstPortStart) { + this.dstPortStart = dstPortStart; + return this; + } + + /** + * Start destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return dstPortStart + */ + @ApiModelProperty(value = "Start destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getDstPortStart() { + return dstPortStart; + } + + public void setDstPortStart(Integer dstPortStart) { + this.dstPortStart = dstPortStart; + } + + public SslVpnResourceModifyOpenApiVo dstPortEnd(Integer dstPortEnd) { + this.dstPortEnd = dstPortEnd; + return this; + } + + /** + * End destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535 + * @return dstPortEnd + */ + @ApiModelProperty(value = "End destination port of the SSL VPN resource, exists when protocol is TCP or UDP. It should be within the range of 0–65535") + + + public Integer getDstPortEnd() { + return dstPortEnd; + } + + public void setDstPortEnd(Integer dstPortEnd) { + this.dstPortEnd = dstPortEnd; + } + + public SslVpnResourceModifyOpenApiVo icmpType(Integer icmpType) { + this.icmpType = icmpType; + return this; + } + + /** + * ICMP type of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255 + * @return icmpType + */ + @ApiModelProperty(value = "ICMP type of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255") + + + public Integer getIcmpType() { + return icmpType; + } + + public void setIcmpType(Integer icmpType) { + this.icmpType = icmpType; + } + + public SslVpnResourceModifyOpenApiVo icmpCode(Integer icmpCode) { + this.icmpCode = icmpCode; + return this; + } + + /** + * ICMP code of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255 + * @return icmpCode + */ + @ApiModelProperty(value = "ICMP code of the SSL VPN resource, exists when protocol is ICMP. It should be within the range of 0–255") + + + public Integer getIcmpCode() { + return icmpCode; + } + + public void setIcmpCode(Integer icmpCode) { + this.icmpCode = icmpCode; + } + + public SslVpnResourceModifyOpenApiVo otherProtocol(Integer otherProtocol) { + this.otherProtocol = otherProtocol; + return this; + } + + /** + * Other protocol of the SSL VPN resource. It should be within the range of 1–255 + * @return otherProtocol + */ + @ApiModelProperty(value = "Other protocol of the SSL VPN resource. It should be within the range of 1–255") + + + public Integer getOtherProtocol() { + return otherProtocol; + } + + public void setOtherProtocol(Integer otherProtocol) { + this.otherProtocol = otherProtocol; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnResourceModifyOpenApiVo sslVpnResourceModifyOpenApiVo = (SslVpnResourceModifyOpenApiVo) o; + return Objects.equals(this.type, sslVpnResourceModifyOpenApiVo.type) && + Objects.equals(this.ip, sslVpnResourceModifyOpenApiVo.ip) && + Objects.equals(this.mask, sslVpnResourceModifyOpenApiVo.mask) && + Objects.equals(this.domain, sslVpnResourceModifyOpenApiVo.domain) && + Objects.equals(this.protocol, sslVpnResourceModifyOpenApiVo.protocol) && + Objects.equals(this.srcPortStart, sslVpnResourceModifyOpenApiVo.srcPortStart) && + Objects.equals(this.srcPortEnd, sslVpnResourceModifyOpenApiVo.srcPortEnd) && + Objects.equals(this.dstPortStart, sslVpnResourceModifyOpenApiVo.dstPortStart) && + Objects.equals(this.dstPortEnd, sslVpnResourceModifyOpenApiVo.dstPortEnd) && + Objects.equals(this.icmpType, sslVpnResourceModifyOpenApiVo.icmpType) && + Objects.equals(this.icmpCode, sslVpnResourceModifyOpenApiVo.icmpCode) && + Objects.equals(this.otherProtocol, sslVpnResourceModifyOpenApiVo.otherProtocol); + } + + @Override + public int hashCode() { + return Objects.hash(type, ip, mask, domain, protocol, srcPortStart, srcPortEnd, dstPortStart, dstPortEnd, icmpType, icmpCode, otherProtocol); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnResourceModifyOpenApiVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" mask: ").append(toIndentedString(mask)).append("\n"); + sb.append(" domain: ").append(toIndentedString(domain)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" srcPortStart: ").append(toIndentedString(srcPortStart)).append("\n"); + sb.append(" srcPortEnd: ").append(toIndentedString(srcPortEnd)).append("\n"); + sb.append(" dstPortStart: ").append(toIndentedString(dstPortStart)).append("\n"); + sb.append(" dstPortEnd: ").append(toIndentedString(dstPortEnd)).append("\n"); + sb.append(" icmpType: ").append(toIndentedString(icmpType)).append("\n"); + sb.append(" icmpCode: ").append(toIndentedString(icmpCode)).append("\n"); + sb.append(" otherProtocol: ").append(toIndentedString(otherProtocol)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnServerConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnServerConfigOpenApiVo.java new file mode 100644 index 0000000..dfabd6b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnServerConfigOpenApiVo.java @@ -0,0 +1,434 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SslVpnServerConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnServerConfigOpenApiVo { + @JsonProperty("status") + private Boolean status; + + @JsonProperty("wanPort") + private String wanPort; + + @JsonProperty("ipPoolStart") + private String ipPoolStart; + + @JsonProperty("ipPoolEnd") + private String ipPoolEnd; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + @JsonProperty("servicePort") + private Integer servicePort; + + @JsonProperty("authType") + private Integer authType; + + @JsonProperty("radiusSetting") + private RadiusSettingOpenApiVo radiusSetting; + + @JsonProperty("LDAPSetting") + private LdapSettingOpenApiVo ldAPSetting; + + @JsonProperty("nameLockSetting") + private LockSettingOpenApiVo nameLockSetting; + + @JsonProperty("ipLockSetting") + private LockSettingOpenApiVo ipLockSetting; + + @JsonProperty("exitAtIdle") + private Boolean exitAtIdle; + + @JsonProperty("exitTime") + private Integer exitTime; + + @JsonProperty("totalTraffic") + private Boolean totalTraffic; + + public SslVpnServerConfigOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the SSL VPN server. + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the SSL VPN server.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public SslVpnServerConfigOpenApiVo wanPort(String wanPort) { + this.wanPort = wanPort; + return this; + } + + /** + * WAN port ID of the SSL VPN server. It is required when parameter [status] is true. WAN port ID can be obtained from 'Get internet basic info' interface + * @return wanPort + */ + @ApiModelProperty(value = "WAN port ID of the SSL VPN server. It is required when parameter [status] is true. WAN port ID can be obtained from 'Get internet basic info' interface") + + + public String getWanPort() { + return wanPort; + } + + public void setWanPort(String wanPort) { + this.wanPort = wanPort; + } + + public SslVpnServerConfigOpenApiVo ipPoolStart(String ipPoolStart) { + this.ipPoolStart = ipPoolStart; + return this; + } + + /** + * The start IP of the IP pool. It is required when parameter [status] is true. + * @return ipPoolStart + */ + @ApiModelProperty(value = "The start IP of the IP pool. It is required when parameter [status] is true.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpPoolStart() { + return ipPoolStart; + } + + public void setIpPoolStart(String ipPoolStart) { + this.ipPoolStart = ipPoolStart; + } + + public SslVpnServerConfigOpenApiVo ipPoolEnd(String ipPoolEnd) { + this.ipPoolEnd = ipPoolEnd; + return this; + } + + /** + * The end IP of the IP pool. It is required when parameter [status] is true. + * @return ipPoolEnd + */ + @ApiModelProperty(value = "The end IP of the IP pool. It is required when parameter [status] is true.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpPoolEnd() { + return ipPoolEnd; + } + + public void setIpPoolEnd(String ipPoolEnd) { + this.ipPoolEnd = ipPoolEnd; + } + + public SslVpnServerConfigOpenApiVo primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * Primary DNS Server of the SSL VPN server. It is required when parameter [status] is true. + * @return primaryDns + */ + @ApiModelProperty(value = "Primary DNS Server of the SSL VPN server. It is required when parameter [status] is true.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public SslVpnServerConfigOpenApiVo secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * Secondary DNS Server of the SSL VPN server. + * @return secondaryDns + */ + @ApiModelProperty(value = "Secondary DNS Server of the SSL VPN server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + public SslVpnServerConfigOpenApiVo servicePort(Integer servicePort) { + this.servicePort = servicePort; + return this; + } + + /** + * Service port of the SSL VPN server. Default value is 1194. It is required when parameter [status] is true, and it should be within the range of 1–65535 + * @return servicePort + */ + @ApiModelProperty(value = "Service port of the SSL VPN server. Default value is 1194. It is required when parameter [status] is true, and it should be within the range of 1–65535") + + + public Integer getServicePort() { + return servicePort; + } + + public void setServicePort(Integer servicePort) { + this.servicePort = servicePort; + } + + public SslVpnServerConfigOpenApiVo authType(Integer authType) { + this.authType = authType; + return this; + } + + /** + * Authentication type of the SSL VPN server should be a value as follows: 0: local; 1: radius; 2: LDAP. It is required when parameter [status] is true. + * @return authType + */ + @ApiModelProperty(value = "Authentication type of the SSL VPN server should be a value as follows: 0: local; 1: radius; 2: LDAP. It is required when parameter [status] is true.") + + + public Integer getAuthType() { + return authType; + } + + public void setAuthType(Integer authType) { + this.authType = authType; + } + + public SslVpnServerConfigOpenApiVo radiusSetting(RadiusSettingOpenApiVo radiusSetting) { + this.radiusSetting = radiusSetting; + return this; + } + + /** + * Get radiusSetting + * @return radiusSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public RadiusSettingOpenApiVo getRadiusSetting() { + return radiusSetting; + } + + public void setRadiusSetting(RadiusSettingOpenApiVo radiusSetting) { + this.radiusSetting = radiusSetting; + } + + public SslVpnServerConfigOpenApiVo ldAPSetting(LdapSettingOpenApiVo ldAPSetting) { + this.ldAPSetting = ldAPSetting; + return this; + } + + /** + * Get ldAPSetting + * @return ldAPSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LdapSettingOpenApiVo getLdAPSetting() { + return ldAPSetting; + } + + public void setLdAPSetting(LdapSettingOpenApiVo ldAPSetting) { + this.ldAPSetting = ldAPSetting; + } + + public SslVpnServerConfigOpenApiVo nameLockSetting(LockSettingOpenApiVo nameLockSetting) { + this.nameLockSetting = nameLockSetting; + return this; + } + + /** + * Get nameLockSetting + * @return nameLockSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LockSettingOpenApiVo getNameLockSetting() { + return nameLockSetting; + } + + public void setNameLockSetting(LockSettingOpenApiVo nameLockSetting) { + this.nameLockSetting = nameLockSetting; + } + + public SslVpnServerConfigOpenApiVo ipLockSetting(LockSettingOpenApiVo ipLockSetting) { + this.ipLockSetting = ipLockSetting; + return this; + } + + /** + * Get ipLockSetting + * @return ipLockSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LockSettingOpenApiVo getIpLockSetting() { + return ipLockSetting; + } + + public void setIpLockSetting(LockSettingOpenApiVo ipLockSetting) { + this.ipLockSetting = ipLockSetting; + } + + public SslVpnServerConfigOpenApiVo exitAtIdle(Boolean exitAtIdle) { + this.exitAtIdle = exitAtIdle; + return this; + } + + /** + * Whether to exit when idle. It is required when parameter [status] is true. + * @return exitAtIdle + */ + @ApiModelProperty(value = "Whether to exit when idle. It is required when parameter [status] is true.") + + + public Boolean getExitAtIdle() { + return exitAtIdle; + } + + public void setExitAtIdle(Boolean exitAtIdle) { + this.exitAtIdle = exitAtIdle; + } + + public SslVpnServerConfigOpenApiVo exitTime(Integer exitTime) { + this.exitTime = exitTime; + return this; + } + + /** + * Exit time should be within the range of 5–3600(s). It is required when parameter [exitAtIdle] is true. + * @return exitTime + */ + @ApiModelProperty(value = "Exit time should be within the range of 5–3600(s). It is required when parameter [exitAtIdle] is true.") + + + public Integer getExitTime() { + return exitTime; + } + + public void setExitTime(Integer exitTime) { + this.exitTime = exitTime; + } + + public SslVpnServerConfigOpenApiVo totalTraffic(Boolean totalTraffic) { + this.totalTraffic = totalTraffic; + return this; + } + + /** + * Whether to proxy all traffic. It is required when parameter [status] is true. + * @return totalTraffic + */ + @ApiModelProperty(value = "Whether to proxy all traffic. It is required when parameter [status] is true.") + + + public Boolean getTotalTraffic() { + return totalTraffic; + } + + public void setTotalTraffic(Boolean totalTraffic) { + this.totalTraffic = totalTraffic; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnServerConfigOpenApiVo sslVpnServerConfigOpenApiVo = (SslVpnServerConfigOpenApiVo) o; + return Objects.equals(this.status, sslVpnServerConfigOpenApiVo.status) && + Objects.equals(this.wanPort, sslVpnServerConfigOpenApiVo.wanPort) && + Objects.equals(this.ipPoolStart, sslVpnServerConfigOpenApiVo.ipPoolStart) && + Objects.equals(this.ipPoolEnd, sslVpnServerConfigOpenApiVo.ipPoolEnd) && + Objects.equals(this.primaryDns, sslVpnServerConfigOpenApiVo.primaryDns) && + Objects.equals(this.secondaryDns, sslVpnServerConfigOpenApiVo.secondaryDns) && + Objects.equals(this.servicePort, sslVpnServerConfigOpenApiVo.servicePort) && + Objects.equals(this.authType, sslVpnServerConfigOpenApiVo.authType) && + Objects.equals(this.radiusSetting, sslVpnServerConfigOpenApiVo.radiusSetting) && + Objects.equals(this.ldAPSetting, sslVpnServerConfigOpenApiVo.ldAPSetting) && + Objects.equals(this.nameLockSetting, sslVpnServerConfigOpenApiVo.nameLockSetting) && + Objects.equals(this.ipLockSetting, sslVpnServerConfigOpenApiVo.ipLockSetting) && + Objects.equals(this.exitAtIdle, sslVpnServerConfigOpenApiVo.exitAtIdle) && + Objects.equals(this.exitTime, sslVpnServerConfigOpenApiVo.exitTime) && + Objects.equals(this.totalTraffic, sslVpnServerConfigOpenApiVo.totalTraffic); + } + + @Override + public int hashCode() { + return Objects.hash(status, wanPort, ipPoolStart, ipPoolEnd, primaryDns, secondaryDns, servicePort, authType, radiusSetting, ldAPSetting, nameLockSetting, ipLockSetting, exitAtIdle, exitTime, totalTraffic); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnServerConfigOpenApiVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" wanPort: ").append(toIndentedString(wanPort)).append("\n"); + sb.append(" ipPoolStart: ").append(toIndentedString(ipPoolStart)).append("\n"); + sb.append(" ipPoolEnd: ").append(toIndentedString(ipPoolEnd)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append(" servicePort: ").append(toIndentedString(servicePort)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" radiusSetting: ").append(toIndentedString(radiusSetting)).append("\n"); + sb.append(" ldAPSetting: ").append(toIndentedString(ldAPSetting)).append("\n"); + sb.append(" nameLockSetting: ").append(toIndentedString(nameLockSetting)).append("\n"); + sb.append(" ipLockSetting: ").append(toIndentedString(ipLockSetting)).append("\n"); + sb.append(" exitAtIdle: ").append(toIndentedString(exitAtIdle)).append("\n"); + sb.append(" exitTime: ").append(toIndentedString(exitTime)).append("\n"); + sb.append(" totalTraffic: ").append(toIndentedString(totalTraffic)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnServerSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnServerSetting.java new file mode 100644 index 0000000..51800db --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnServerSetting.java @@ -0,0 +1,534 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SslVpnServerSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnServerSetting { + @JsonProperty("id") + private String id; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("wanPort") + private String wanPort; + + @JsonProperty("wanIp") + private String wanIp; + + @JsonProperty("ipPoolStart") + private String ipPoolStart; + + @JsonProperty("ipPoolEnd") + private String ipPoolEnd; + + @JsonProperty("primaryDns") + private String primaryDns; + + @JsonProperty("secondaryDns") + private String secondaryDns; + + @JsonProperty("servicePort") + private Integer servicePort; + + @JsonProperty("authType") + private Integer authType; + + @JsonProperty("radiusSetting") + private RadiusSettingOpenApiVo radiusSetting; + + @JsonProperty("LDAPSetting") + private LdapSettingOpenApiVo ldAPSetting; + + @JsonProperty("nameLockSetting") + private LockSettingOpenApiVo nameLockSetting; + + @JsonProperty("ipLockSetting") + private LockSettingOpenApiVo ipLockSetting; + + @JsonProperty("exitAtIdle") + private Boolean exitAtIdle; + + @JsonProperty("exitTime") + private Integer exitTime; + + @JsonProperty("totalTraffic") + private Boolean totalTraffic; + + @JsonProperty("supportRadius") + private Boolean supportRadius; + + @JsonProperty("supportLDAP") + private Boolean supportLDAP; + + public SslVpnServerSetting id(String id) { + this.id = id; + return this; + } + + /** + * ID of the SSL VPN server. + * @return id + */ + @ApiModelProperty(value = "ID of the SSL VPN server.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SslVpnServerSetting status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the SSL VPN server. + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the SSL VPN server.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public SslVpnServerSetting wanPort(String wanPort) { + this.wanPort = wanPort; + return this; + } + + /** + * WAN port of the SSL VPN server. WAN port ID can be obtained from 'Get internet basic info' interface + * @return wanPort + */ + @ApiModelProperty(value = "WAN port of the SSL VPN server. WAN port ID can be obtained from 'Get internet basic info' interface") + + + public String getWanPort() { + return wanPort; + } + + public void setWanPort(String wanPort) { + this.wanPort = wanPort; + } + + public SslVpnServerSetting wanIp(String wanIp) { + this.wanIp = wanIp; + return this; + } + + /** + * WAP IP of the SSL VPN server. + * @return wanIp + */ + @ApiModelProperty(value = "WAP IP of the SSL VPN server.") + +@Pattern(regexp="((\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])(\\.(\\d{1,2}|1\\d\\d|2[0-4]\\d|25[0-5])){3}|([a-zA-Z0-9]([a-zA-Z0-9\\-]{0,61}[a-zA-Z0-9])?\\.)+[a-zA-Z]{2,6})") + public String getWanIp() { + return wanIp; + } + + public void setWanIp(String wanIp) { + this.wanIp = wanIp; + } + + public SslVpnServerSetting ipPoolStart(String ipPoolStart) { + this.ipPoolStart = ipPoolStart; + return this; + } + + /** + * The start IP of the IP pool. + * @return ipPoolStart + */ + @ApiModelProperty(value = "The start IP of the IP pool.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpPoolStart() { + return ipPoolStart; + } + + public void setIpPoolStart(String ipPoolStart) { + this.ipPoolStart = ipPoolStart; + } + + public SslVpnServerSetting ipPoolEnd(String ipPoolEnd) { + this.ipPoolEnd = ipPoolEnd; + return this; + } + + /** + * The end IP of the IP pool. + * @return ipPoolEnd + */ + @ApiModelProperty(value = "The end IP of the IP pool.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpPoolEnd() { + return ipPoolEnd; + } + + public void setIpPoolEnd(String ipPoolEnd) { + this.ipPoolEnd = ipPoolEnd; + } + + public SslVpnServerSetting primaryDns(String primaryDns) { + this.primaryDns = primaryDns; + return this; + } + + /** + * Primary DNS Server of the SSL VPN server. + * @return primaryDns + */ + @ApiModelProperty(value = "Primary DNS Server of the SSL VPN server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getPrimaryDns() { + return primaryDns; + } + + public void setPrimaryDns(String primaryDns) { + this.primaryDns = primaryDns; + } + + public SslVpnServerSetting secondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + return this; + } + + /** + * Secondary DNS Server of the SSL VPN server. + * @return secondaryDns + */ + @ApiModelProperty(value = "Secondary DNS Server of the SSL VPN server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getSecondaryDns() { + return secondaryDns; + } + + public void setSecondaryDns(String secondaryDns) { + this.secondaryDns = secondaryDns; + } + + public SslVpnServerSetting servicePort(Integer servicePort) { + this.servicePort = servicePort; + return this; + } + + /** + * Service port of the SSL VPN server should be within the range of 1–65535 + * @return servicePort + */ + @ApiModelProperty(value = "Service port of the SSL VPN server should be within the range of 1–65535") + + + public Integer getServicePort() { + return servicePort; + } + + public void setServicePort(Integer servicePort) { + this.servicePort = servicePort; + } + + public SslVpnServerSetting authType(Integer authType) { + this.authType = authType; + return this; + } + + /** + * Authentication type of the SSL VPN server should be a value as follows: 0: local; 1: radius; 2: LDAP. + * @return authType + */ + @ApiModelProperty(value = "Authentication type of the SSL VPN server should be a value as follows: 0: local; 1: radius; 2: LDAP.") + + + public Integer getAuthType() { + return authType; + } + + public void setAuthType(Integer authType) { + this.authType = authType; + } + + public SslVpnServerSetting radiusSetting(RadiusSettingOpenApiVo radiusSetting) { + this.radiusSetting = radiusSetting; + return this; + } + + /** + * Get radiusSetting + * @return radiusSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public RadiusSettingOpenApiVo getRadiusSetting() { + return radiusSetting; + } + + public void setRadiusSetting(RadiusSettingOpenApiVo radiusSetting) { + this.radiusSetting = radiusSetting; + } + + public SslVpnServerSetting ldAPSetting(LdapSettingOpenApiVo ldAPSetting) { + this.ldAPSetting = ldAPSetting; + return this; + } + + /** + * Get ldAPSetting + * @return ldAPSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LdapSettingOpenApiVo getLdAPSetting() { + return ldAPSetting; + } + + public void setLdAPSetting(LdapSettingOpenApiVo ldAPSetting) { + this.ldAPSetting = ldAPSetting; + } + + public SslVpnServerSetting nameLockSetting(LockSettingOpenApiVo nameLockSetting) { + this.nameLockSetting = nameLockSetting; + return this; + } + + /** + * Get nameLockSetting + * @return nameLockSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LockSettingOpenApiVo getNameLockSetting() { + return nameLockSetting; + } + + public void setNameLockSetting(LockSettingOpenApiVo nameLockSetting) { + this.nameLockSetting = nameLockSetting; + } + + public SslVpnServerSetting ipLockSetting(LockSettingOpenApiVo ipLockSetting) { + this.ipLockSetting = ipLockSetting; + return this; + } + + /** + * Get ipLockSetting + * @return ipLockSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public LockSettingOpenApiVo getIpLockSetting() { + return ipLockSetting; + } + + public void setIpLockSetting(LockSettingOpenApiVo ipLockSetting) { + this.ipLockSetting = ipLockSetting; + } + + public SslVpnServerSetting exitAtIdle(Boolean exitAtIdle) { + this.exitAtIdle = exitAtIdle; + return this; + } + + /** + * Whether to exit when idle + * @return exitAtIdle + */ + @ApiModelProperty(value = "Whether to exit when idle") + + + public Boolean getExitAtIdle() { + return exitAtIdle; + } + + public void setExitAtIdle(Boolean exitAtIdle) { + this.exitAtIdle = exitAtIdle; + } + + public SslVpnServerSetting exitTime(Integer exitTime) { + this.exitTime = exitTime; + return this; + } + + /** + * Exit time should be within the range of 5–3600(s). It is required when parameter [exitAtIdle] is true. + * @return exitTime + */ + @ApiModelProperty(value = "Exit time should be within the range of 5–3600(s). It is required when parameter [exitAtIdle] is true.") + + + public Integer getExitTime() { + return exitTime; + } + + public void setExitTime(Integer exitTime) { + this.exitTime = exitTime; + } + + public SslVpnServerSetting totalTraffic(Boolean totalTraffic) { + this.totalTraffic = totalTraffic; + return this; + } + + /** + * Whether to proxy all traffic. + * @return totalTraffic + */ + @ApiModelProperty(value = "Whether to proxy all traffic.") + + + public Boolean getTotalTraffic() { + return totalTraffic; + } + + public void setTotalTraffic(Boolean totalTraffic) { + this.totalTraffic = totalTraffic; + } + + public SslVpnServerSetting supportRadius(Boolean supportRadius) { + this.supportRadius = supportRadius; + return this; + } + + /** + * Whether the adopted gateway support radius. + * @return supportRadius + */ + @ApiModelProperty(value = "Whether the adopted gateway support radius.") + + + public Boolean getSupportRadius() { + return supportRadius; + } + + public void setSupportRadius(Boolean supportRadius) { + this.supportRadius = supportRadius; + } + + public SslVpnServerSetting supportLDAP(Boolean supportLDAP) { + this.supportLDAP = supportLDAP; + return this; + } + + /** + * Whether the adopted gateway support LDAP. + * @return supportLDAP + */ + @ApiModelProperty(value = "Whether the adopted gateway support LDAP.") + + + public Boolean getSupportLDAP() { + return supportLDAP; + } + + public void setSupportLDAP(Boolean supportLDAP) { + this.supportLDAP = supportLDAP; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnServerSetting sslVpnServerSetting = (SslVpnServerSetting) o; + return Objects.equals(this.id, sslVpnServerSetting.id) && + Objects.equals(this.status, sslVpnServerSetting.status) && + Objects.equals(this.wanPort, sslVpnServerSetting.wanPort) && + Objects.equals(this.wanIp, sslVpnServerSetting.wanIp) && + Objects.equals(this.ipPoolStart, sslVpnServerSetting.ipPoolStart) && + Objects.equals(this.ipPoolEnd, sslVpnServerSetting.ipPoolEnd) && + Objects.equals(this.primaryDns, sslVpnServerSetting.primaryDns) && + Objects.equals(this.secondaryDns, sslVpnServerSetting.secondaryDns) && + Objects.equals(this.servicePort, sslVpnServerSetting.servicePort) && + Objects.equals(this.authType, sslVpnServerSetting.authType) && + Objects.equals(this.radiusSetting, sslVpnServerSetting.radiusSetting) && + Objects.equals(this.ldAPSetting, sslVpnServerSetting.ldAPSetting) && + Objects.equals(this.nameLockSetting, sslVpnServerSetting.nameLockSetting) && + Objects.equals(this.ipLockSetting, sslVpnServerSetting.ipLockSetting) && + Objects.equals(this.exitAtIdle, sslVpnServerSetting.exitAtIdle) && + Objects.equals(this.exitTime, sslVpnServerSetting.exitTime) && + Objects.equals(this.totalTraffic, sslVpnServerSetting.totalTraffic) && + Objects.equals(this.supportRadius, sslVpnServerSetting.supportRadius) && + Objects.equals(this.supportLDAP, sslVpnServerSetting.supportLDAP); + } + + @Override + public int hashCode() { + return Objects.hash(id, status, wanPort, wanIp, ipPoolStart, ipPoolEnd, primaryDns, secondaryDns, servicePort, authType, radiusSetting, ldAPSetting, nameLockSetting, ipLockSetting, exitAtIdle, exitTime, totalTraffic, supportRadius, supportLDAP); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnServerSetting {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" wanPort: ").append(toIndentedString(wanPort)).append("\n"); + sb.append(" wanIp: ").append(toIndentedString(wanIp)).append("\n"); + sb.append(" ipPoolStart: ").append(toIndentedString(ipPoolStart)).append("\n"); + sb.append(" ipPoolEnd: ").append(toIndentedString(ipPoolEnd)).append("\n"); + sb.append(" primaryDns: ").append(toIndentedString(primaryDns)).append("\n"); + sb.append(" secondaryDns: ").append(toIndentedString(secondaryDns)).append("\n"); + sb.append(" servicePort: ").append(toIndentedString(servicePort)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" radiusSetting: ").append(toIndentedString(radiusSetting)).append("\n"); + sb.append(" ldAPSetting: ").append(toIndentedString(ldAPSetting)).append("\n"); + sb.append(" nameLockSetting: ").append(toIndentedString(nameLockSetting)).append("\n"); + sb.append(" ipLockSetting: ").append(toIndentedString(ipLockSetting)).append("\n"); + sb.append(" exitAtIdle: ").append(toIndentedString(exitAtIdle)).append("\n"); + sb.append(" exitTime: ").append(toIndentedString(exitTime)).append("\n"); + sb.append(" totalTraffic: ").append(toIndentedString(totalTraffic)).append("\n"); + sb.append(" supportRadius: ").append(toIndentedString(supportRadius)).append("\n"); + sb.append(" supportLDAP: ").append(toIndentedString(supportLDAP)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserConfigOpenApiVo.java new file mode 100644 index 0000000..4648e7a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserConfigOpenApiVo.java @@ -0,0 +1,208 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SslVpnUserConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnUserConfigOpenApiVo { + @JsonProperty("groupId") + private String groupId; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("password") + private String password; + + @JsonProperty("validity") + private String validity; + + @JsonProperty("concurrentNumber") + private Integer concurrentNumber; + + public SslVpnUserConfigOpenApiVo groupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * Group ID of the SSL VPN user. User group can be created using 'Create SSL VPN user group' interface, and User Group ID can be obtained from 'Get user group list for SSL VPN server' interface. + * @return groupId + */ + @ApiModelProperty(value = "Group ID of the SSL VPN user. User group can be created using 'Create SSL VPN user group' interface, and User Group ID can be obtained from 'Get user group list for SSL VPN server' interface.") + + + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public SslVpnUserConfigOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the SSL VPN user should contain 1 to 20 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the SSL VPN user should contain 1 to 20 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,18}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SslVpnUserConfigOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the SSL VPN user + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the SSL VPN user") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public SslVpnUserConfigOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Password of the SSL VPN user should contain 1 to 64 characters. + * @return password + */ + @ApiModelProperty(required = true, value = "Password of the SSL VPN user should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,62}[\\041-\\0176]$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public SslVpnUserConfigOpenApiVo validity(String validity) { + this.validity = validity; + return this; + } + + /** + * Validity of the SSL VPN user. The format is Month/Day/Year, for example 08/20/2022 + * @return validity + */ + @ApiModelProperty(required = true, value = "Validity of the SSL VPN user. The format is Month/Day/Year, for example 08/20/2022") + @NotNull + + + public String getValidity() { + return validity; + } + + public void setValidity(String validity) { + this.validity = validity; + } + + public SslVpnUserConfigOpenApiVo concurrentNumber(Integer concurrentNumber) { + this.concurrentNumber = concurrentNumber; + return this; + } + + /** + * Concurrent number of the SSL VPN user should be within the range of 1–100 + * @return concurrentNumber + */ + @ApiModelProperty(required = true, value = "Concurrent number of the SSL VPN user should be within the range of 1–100") + @NotNull + + + public Integer getConcurrentNumber() { + return concurrentNumber; + } + + public void setConcurrentNumber(Integer concurrentNumber) { + this.concurrentNumber = concurrentNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnUserConfigOpenApiVo sslVpnUserConfigOpenApiVo = (SslVpnUserConfigOpenApiVo) o; + return Objects.equals(this.groupId, sslVpnUserConfigOpenApiVo.groupId) && + Objects.equals(this.name, sslVpnUserConfigOpenApiVo.name) && + Objects.equals(this.status, sslVpnUserConfigOpenApiVo.status) && + Objects.equals(this.password, sslVpnUserConfigOpenApiVo.password) && + Objects.equals(this.validity, sslVpnUserConfigOpenApiVo.validity) && + Objects.equals(this.concurrentNumber, sslVpnUserConfigOpenApiVo.concurrentNumber); + } + + @Override + public int hashCode() { + return Objects.hash(groupId, name, status, password, validity, concurrentNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnUserConfigOpenApiVo {\n"); + + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" validity: ").append(toIndentedString(validity)).append("\n"); + sb.append(" concurrentNumber: ").append(toIndentedString(concurrentNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserEntity.java new file mode 100644 index 0000000..5667bda --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserEntity.java @@ -0,0 +1,283 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SslVpnUserEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnUserEntity { + @JsonProperty("id") + private String id; + + @JsonProperty("groupId") + private String groupId; + + @JsonProperty("groupName") + private String groupName; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("available") + private Boolean available; + + @JsonProperty("password") + private String password; + + @JsonProperty("validity") + private String validity; + + @JsonProperty("concurrentNumber") + private Integer concurrentNumber; + + public SslVpnUserEntity id(String id) { + this.id = id; + return this; + } + + /** + * ID of the SSL VPN user + * @return id + */ + @ApiModelProperty(value = "ID of the SSL VPN user") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SslVpnUserEntity groupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * Group ID of the SSL VPN user. User group can be created using 'Create SSL VPN user group' interface, and User Group ID can be obtained from 'Get user group list for SSL VPN server' interface. + * @return groupId + */ + @ApiModelProperty(value = "Group ID of the SSL VPN user. User group can be created using 'Create SSL VPN user group' interface, and User Group ID can be obtained from 'Get user group list for SSL VPN server' interface.") + + + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public SslVpnUserEntity groupName(String groupName) { + this.groupName = groupName; + return this; + } + + /** + * Group name of the SSL VPN user + * @return groupName + */ + @ApiModelProperty(value = "Group name of the SSL VPN user") + + + public String getGroupName() { + return groupName; + } + + public void setGroupName(String groupName) { + this.groupName = groupName; + } + + public SslVpnUserEntity name(String name) { + this.name = name; + return this; + } + + /** + * Name of the SSL VPN user + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the SSL VPN user") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,18}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SslVpnUserEntity status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the SSL VPN user + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the SSL VPN user") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public SslVpnUserEntity available(Boolean available) { + this.available = available; + return this; + } + + /** + * Available of the SSL VPN user + * @return available + */ + @ApiModelProperty(value = "Available of the SSL VPN user") + + + public Boolean getAvailable() { + return available; + } + + public void setAvailable(Boolean available) { + this.available = available; + } + + public SslVpnUserEntity password(String password) { + this.password = password; + return this; + } + + /** + * Password of the SSL VPN user + * @return password + */ + @ApiModelProperty(required = true, value = "Password of the SSL VPN user") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,62}[\\041-\\0176]$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public SslVpnUserEntity validity(String validity) { + this.validity = validity; + return this; + } + + /** + * Validity of the SSL VPN user + * @return validity + */ + @ApiModelProperty(required = true, value = "Validity of the SSL VPN user") + @NotNull + + + public String getValidity() { + return validity; + } + + public void setValidity(String validity) { + this.validity = validity; + } + + public SslVpnUserEntity concurrentNumber(Integer concurrentNumber) { + this.concurrentNumber = concurrentNumber; + return this; + } + + /** + * Concurrent number of the SSL VPN user + * @return concurrentNumber + */ + @ApiModelProperty(required = true, value = "Concurrent number of the SSL VPN user") + @NotNull + + + public Integer getConcurrentNumber() { + return concurrentNumber; + } + + public void setConcurrentNumber(Integer concurrentNumber) { + this.concurrentNumber = concurrentNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnUserEntity sslVpnUserEntity = (SslVpnUserEntity) o; + return Objects.equals(this.id, sslVpnUserEntity.id) && + Objects.equals(this.groupId, sslVpnUserEntity.groupId) && + Objects.equals(this.groupName, sslVpnUserEntity.groupName) && + Objects.equals(this.name, sslVpnUserEntity.name) && + Objects.equals(this.status, sslVpnUserEntity.status) && + Objects.equals(this.available, sslVpnUserEntity.available) && + Objects.equals(this.password, sslVpnUserEntity.password) && + Objects.equals(this.validity, sslVpnUserEntity.validity) && + Objects.equals(this.concurrentNumber, sslVpnUserEntity.concurrentNumber); + } + + @Override + public int hashCode() { + return Objects.hash(id, groupId, groupName, name, status, available, password, validity, concurrentNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnUserEntity {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" groupName: ").append(toIndentedString(groupName)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" available: ").append(toIndentedString(available)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" validity: ").append(toIndentedString(validity)).append("\n"); + sb.append(" concurrentNumber: ").append(toIndentedString(concurrentNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupConfigOpenApiVo.java new file mode 100644 index 0000000..c5f1b61 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupConfigOpenApiVo.java @@ -0,0 +1,166 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SslVpnUserGroupConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnUserGroupConfigOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("radiusAttribute") + private String radiusAttribute; + + @JsonProperty("LDAPAttribute") + private String ldAPAttribute; + + @JsonProperty("resourceGroupList") + @Valid + private List resourceGroupList = null; + + public SslVpnUserGroupConfigOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name of the SSL VPN user group should contain 1 to 20 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the SSL VPN user group should contain 1 to 20 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,18}[\\041-\\0176]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SslVpnUserGroupConfigOpenApiVo radiusAttribute(String radiusAttribute) { + this.radiusAttribute = radiusAttribute; + return this; + } + + /** + * Attribute value used for radius authentication. It should contain 1 to 20 characters. + * @return radiusAttribute + */ + @ApiModelProperty(value = "Attribute value used for radius authentication. It should contain 1 to 20 characters.") + + + public String getRadiusAttribute() { + return radiusAttribute; + } + + public void setRadiusAttribute(String radiusAttribute) { + this.radiusAttribute = radiusAttribute; + } + + public SslVpnUserGroupConfigOpenApiVo ldAPAttribute(String ldAPAttribute) { + this.ldAPAttribute = ldAPAttribute; + return this; + } + + /** + * Attribute value used for LDAP authentication. It should contain 1 to 20 characters. + * @return ldAPAttribute + */ + @ApiModelProperty(value = "Attribute value used for LDAP authentication. It should contain 1 to 20 characters.") + + + public String getLdAPAttribute() { + return ldAPAttribute; + } + + public void setLdAPAttribute(String ldAPAttribute) { + this.ldAPAttribute = ldAPAttribute; + } + + public SslVpnUserGroupConfigOpenApiVo resourceGroupList(List resourceGroupList) { + this.resourceGroupList = resourceGroupList; + return this; + } + + public SslVpnUserGroupConfigOpenApiVo addResourceGroupListItem(String resourceGroupListItem) { + if (this.resourceGroupList == null) { + this.resourceGroupList = new ArrayList<>(); + } + this.resourceGroupList.add(resourceGroupListItem); + return this; + } + + /** + * Resource group ID list of the SSL VPN user group. Resource group can be created using 'Create SSL VPN resource group' interface, and Resource group ID can be obtained from 'Get resource group list for SSL VPN server' interface. + * @return resourceGroupList + */ + @ApiModelProperty(value = "Resource group ID list of the SSL VPN user group. Resource group can be created using 'Create SSL VPN resource group' interface, and Resource group ID can be obtained from 'Get resource group list for SSL VPN server' interface.") + + + public List getResourceGroupList() { + return resourceGroupList; + } + + public void setResourceGroupList(List resourceGroupList) { + this.resourceGroupList = resourceGroupList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnUserGroupConfigOpenApiVo sslVpnUserGroupConfigOpenApiVo = (SslVpnUserGroupConfigOpenApiVo) o; + return Objects.equals(this.name, sslVpnUserGroupConfigOpenApiVo.name) && + Objects.equals(this.radiusAttribute, sslVpnUserGroupConfigOpenApiVo.radiusAttribute) && + Objects.equals(this.ldAPAttribute, sslVpnUserGroupConfigOpenApiVo.ldAPAttribute) && + Objects.equals(this.resourceGroupList, sslVpnUserGroupConfigOpenApiVo.resourceGroupList); + } + + @Override + public int hashCode() { + return Objects.hash(name, radiusAttribute, ldAPAttribute, resourceGroupList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnUserGroupConfigOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" radiusAttribute: ").append(toIndentedString(radiusAttribute)).append("\n"); + sb.append(" ldAPAttribute: ").append(toIndentedString(ldAPAttribute)).append("\n"); + sb.append(" resourceGroupList: ").append(toIndentedString(resourceGroupList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupEntity.java new file mode 100644 index 0000000..fc4991c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupEntity.java @@ -0,0 +1,250 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SslVpnUserGroupEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnUserGroupEntity { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("radiusAttribute") + private String radiusAttribute; + + @JsonProperty("LDAPAttribute") + private String ldAPAttribute; + + @JsonProperty("resourceGroupList") + @Valid + private List resourceGroupList = null; + + @JsonProperty("userList") + @Valid + private List userList = null; + + @JsonProperty("userNumber") + private Integer userNumber; + + public SslVpnUserGroupEntity id(String id) { + this.id = id; + return this; + } + + /** + * ID of the SSL VPN user group + * @return id + */ + @ApiModelProperty(value = "ID of the SSL VPN user group") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SslVpnUserGroupEntity name(String name) { + this.name = name; + return this; + } + + /** + * Name of the SSL VPN user group + * @return name + */ + @ApiModelProperty(required = true, value = "Name of the SSL VPN user group") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public SslVpnUserGroupEntity radiusAttribute(String radiusAttribute) { + this.radiusAttribute = radiusAttribute; + return this; + } + + /** + * Attribute value used for radius authentication + * @return radiusAttribute + */ + @ApiModelProperty(value = "Attribute value used for radius authentication") + + + public String getRadiusAttribute() { + return radiusAttribute; + } + + public void setRadiusAttribute(String radiusAttribute) { + this.radiusAttribute = radiusAttribute; + } + + public SslVpnUserGroupEntity ldAPAttribute(String ldAPAttribute) { + this.ldAPAttribute = ldAPAttribute; + return this; + } + + /** + * Attribute value used for LDAP authentication + * @return ldAPAttribute + */ + @ApiModelProperty(value = "Attribute value used for LDAP authentication") + + + public String getLdAPAttribute() { + return ldAPAttribute; + } + + public void setLdAPAttribute(String ldAPAttribute) { + this.ldAPAttribute = ldAPAttribute; + } + + public SslVpnUserGroupEntity resourceGroupList(List resourceGroupList) { + this.resourceGroupList = resourceGroupList; + return this; + } + + public SslVpnUserGroupEntity addResourceGroupListItem(SslVpnResourceGroupBriefInfo resourceGroupListItem) { + if (this.resourceGroupList == null) { + this.resourceGroupList = new ArrayList<>(); + } + this.resourceGroupList.add(resourceGroupListItem); + return this; + } + + /** + * Resource group list of the SSL VPN user group + * @return resourceGroupList + */ + @ApiModelProperty(value = "Resource group list of the SSL VPN user group") + + @Valid + + public List getResourceGroupList() { + return resourceGroupList; + } + + public void setResourceGroupList(List resourceGroupList) { + this.resourceGroupList = resourceGroupList; + } + + public SslVpnUserGroupEntity userList(List userList) { + this.userList = userList; + return this; + } + + public SslVpnUserGroupEntity addUserListItem(String userListItem) { + if (this.userList == null) { + this.userList = new ArrayList<>(); + } + this.userList.add(userListItem); + return this; + } + + /** + * User list of the SSL VPN user group + * @return userList + */ + @ApiModelProperty(value = "User list of the SSL VPN user group") + + + public List getUserList() { + return userList; + } + + public void setUserList(List userList) { + this.userList = userList; + } + + public SslVpnUserGroupEntity userNumber(Integer userNumber) { + this.userNumber = userNumber; + return this; + } + + /** + * User number of the SSL VPN user group + * @return userNumber + */ + @ApiModelProperty(value = "User number of the SSL VPN user group") + + + public Integer getUserNumber() { + return userNumber; + } + + public void setUserNumber(Integer userNumber) { + this.userNumber = userNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnUserGroupEntity sslVpnUserGroupEntity = (SslVpnUserGroupEntity) o; + return Objects.equals(this.id, sslVpnUserGroupEntity.id) && + Objects.equals(this.name, sslVpnUserGroupEntity.name) && + Objects.equals(this.radiusAttribute, sslVpnUserGroupEntity.radiusAttribute) && + Objects.equals(this.ldAPAttribute, sslVpnUserGroupEntity.ldAPAttribute) && + Objects.equals(this.resourceGroupList, sslVpnUserGroupEntity.resourceGroupList) && + Objects.equals(this.userList, sslVpnUserGroupEntity.userList) && + Objects.equals(this.userNumber, sslVpnUserGroupEntity.userNumber); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, radiusAttribute, ldAPAttribute, resourceGroupList, userList, userNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnUserGroupEntity {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" radiusAttribute: ").append(toIndentedString(radiusAttribute)).append("\n"); + sb.append(" ldAPAttribute: ").append(toIndentedString(ldAPAttribute)).append("\n"); + sb.append(" resourceGroupList: ").append(toIndentedString(resourceGroupList)).append("\n"); + sb.append(" userList: ").append(toIndentedString(userList)).append("\n"); + sb.append(" userNumber: ").append(toIndentedString(userNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupModifyOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupModifyOpenApiVo.java new file mode 100644 index 0000000..c588fd2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserGroupModifyOpenApiVo.java @@ -0,0 +1,138 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SslVpnUserGroupModifyOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnUserGroupModifyOpenApiVo { + @JsonProperty("radiusAttribute") + private String radiusAttribute; + + @JsonProperty("LDAPAttribute") + private String ldAPAttribute; + + @JsonProperty("resourceGroupList") + @Valid + private List resourceGroupList = null; + + public SslVpnUserGroupModifyOpenApiVo radiusAttribute(String radiusAttribute) { + this.radiusAttribute = radiusAttribute; + return this; + } + + /** + * Attribute value used for radius authentication. It should contain 1 to 20 characters. + * @return radiusAttribute + */ + @ApiModelProperty(value = "Attribute value used for radius authentication. It should contain 1 to 20 characters.") + + + public String getRadiusAttribute() { + return radiusAttribute; + } + + public void setRadiusAttribute(String radiusAttribute) { + this.radiusAttribute = radiusAttribute; + } + + public SslVpnUserGroupModifyOpenApiVo ldAPAttribute(String ldAPAttribute) { + this.ldAPAttribute = ldAPAttribute; + return this; + } + + /** + * Attribute value used for LDAP authentication. It should contain 1 to 20 characters. + * @return ldAPAttribute + */ + @ApiModelProperty(value = "Attribute value used for LDAP authentication. It should contain 1 to 20 characters.") + + + public String getLdAPAttribute() { + return ldAPAttribute; + } + + public void setLdAPAttribute(String ldAPAttribute) { + this.ldAPAttribute = ldAPAttribute; + } + + public SslVpnUserGroupModifyOpenApiVo resourceGroupList(List resourceGroupList) { + this.resourceGroupList = resourceGroupList; + return this; + } + + public SslVpnUserGroupModifyOpenApiVo addResourceGroupListItem(String resourceGroupListItem) { + if (this.resourceGroupList == null) { + this.resourceGroupList = new ArrayList<>(); + } + this.resourceGroupList.add(resourceGroupListItem); + return this; + } + + /** + * Resource group ID list of the SSL VPN user group. Resource group can be created using 'Create SSL VPN resource group' interface, and Resource group ID can be obtained from 'Get resource group list for SSL VPN server' interface. + * @return resourceGroupList + */ + @ApiModelProperty(value = "Resource group ID list of the SSL VPN user group. Resource group can be created using 'Create SSL VPN resource group' interface, and Resource group ID can be obtained from 'Get resource group list for SSL VPN server' interface.") + + + public List getResourceGroupList() { + return resourceGroupList; + } + + public void setResourceGroupList(List resourceGroupList) { + this.resourceGroupList = resourceGroupList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnUserGroupModifyOpenApiVo sslVpnUserGroupModifyOpenApiVo = (SslVpnUserGroupModifyOpenApiVo) o; + return Objects.equals(this.radiusAttribute, sslVpnUserGroupModifyOpenApiVo.radiusAttribute) && + Objects.equals(this.ldAPAttribute, sslVpnUserGroupModifyOpenApiVo.ldAPAttribute) && + Objects.equals(this.resourceGroupList, sslVpnUserGroupModifyOpenApiVo.resourceGroupList); + } + + @Override + public int hashCode() { + return Objects.hash(radiusAttribute, ldAPAttribute, resourceGroupList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnUserGroupModifyOpenApiVo {\n"); + + sb.append(" radiusAttribute: ").append(toIndentedString(radiusAttribute)).append("\n"); + sb.append(" ldAPAttribute: ").append(toIndentedString(ldAPAttribute)).append("\n"); + sb.append(" resourceGroupList: ").append(toIndentedString(resourceGroupList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserModifyOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserModifyOpenApiVo.java new file mode 100644 index 0000000..ba5122b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserModifyOpenApiVo.java @@ -0,0 +1,182 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * SslVpnUserModifyOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnUserModifyOpenApiVo { + @JsonProperty("groupId") + private String groupId; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("password") + private String password; + + @JsonProperty("validity") + private String validity; + + @JsonProperty("concurrentNumber") + private Integer concurrentNumber; + + public SslVpnUserModifyOpenApiVo groupId(String groupId) { + this.groupId = groupId; + return this; + } + + /** + * Group ID of the SSL VPN user. User group can be created using 'Create SSL VPN user group' interface, and User Group ID can be obtained from 'Get user group list for SSL VPN server' interface. + * @return groupId + */ + @ApiModelProperty(value = "Group ID of the SSL VPN user. User group can be created using 'Create SSL VPN user group' interface, and User Group ID can be obtained from 'Get user group list for SSL VPN server' interface.") + + + public String getGroupId() { + return groupId; + } + + public void setGroupId(String groupId) { + this.groupId = groupId; + } + + public SslVpnUserModifyOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the SSL VPN user + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the SSL VPN user") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public SslVpnUserModifyOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Password of the SSL VPN user should contain 1 to 64 characters. + * @return password + */ + @ApiModelProperty(required = true, value = "Password of the SSL VPN user should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[\\041-\\0176]$|^[\\041-\\0176][\\040-\\0176]{0,62}[\\041-\\0176]$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public SslVpnUserModifyOpenApiVo validity(String validity) { + this.validity = validity; + return this; + } + + /** + * Validity of the SSL VPN user. The format is Month/Day/Year, for example 08/20/2022 + * @return validity + */ + @ApiModelProperty(required = true, value = "Validity of the SSL VPN user. The format is Month/Day/Year, for example 08/20/2022") + @NotNull + + + public String getValidity() { + return validity; + } + + public void setValidity(String validity) { + this.validity = validity; + } + + public SslVpnUserModifyOpenApiVo concurrentNumber(Integer concurrentNumber) { + this.concurrentNumber = concurrentNumber; + return this; + } + + /** + * Concurrent number of the SSL VPN user. It should be within the range of 1–100. + * @return concurrentNumber + */ + @ApiModelProperty(required = true, value = "Concurrent number of the SSL VPN user. It should be within the range of 1–100.") + @NotNull + + + public Integer getConcurrentNumber() { + return concurrentNumber; + } + + public void setConcurrentNumber(Integer concurrentNumber) { + this.concurrentNumber = concurrentNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnUserModifyOpenApiVo sslVpnUserModifyOpenApiVo = (SslVpnUserModifyOpenApiVo) o; + return Objects.equals(this.groupId, sslVpnUserModifyOpenApiVo.groupId) && + Objects.equals(this.status, sslVpnUserModifyOpenApiVo.status) && + Objects.equals(this.password, sslVpnUserModifyOpenApiVo.password) && + Objects.equals(this.validity, sslVpnUserModifyOpenApiVo.validity) && + Objects.equals(this.concurrentNumber, sslVpnUserModifyOpenApiVo.concurrentNumber); + } + + @Override + public int hashCode() { + return Objects.hash(groupId, status, password, validity, concurrentNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnUserModifyOpenApiVo {\n"); + + sb.append(" groupId: ").append(toIndentedString(groupId)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" validity: ").append(toIndentedString(validity)).append("\n"); + sb.append(" concurrentNumber: ").append(toIndentedString(concurrentNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserOpenApiGridVoSslVpnUserEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserOpenApiGridVoSslVpnUserEntity.java new file mode 100644 index 0000000..fac1802 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SslVpnUserOpenApiGridVoSslVpnUserEntity.java @@ -0,0 +1,239 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SslVpnUserOpenApiGridVoSslVpnUserEntity + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SslVpnUserOpenApiGridVoSslVpnUserEntity { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + @JsonProperty("total") + private Integer total; + + @JsonProperty("available") + private Integer available; + + @JsonProperty("expired") + private Integer expired; + + public SslVpnUserOpenApiGridVoSslVpnUserEntity totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public SslVpnUserOpenApiGridVoSslVpnUserEntity currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public SslVpnUserOpenApiGridVoSslVpnUserEntity currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public SslVpnUserOpenApiGridVoSslVpnUserEntity data(List data) { + this.data = data; + return this; + } + + public SslVpnUserOpenApiGridVoSslVpnUserEntity addDataItem(SslVpnUserEntity dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public SslVpnUserOpenApiGridVoSslVpnUserEntity total(Integer total) { + this.total = total; + return this; + } + + /** + * Total number of the SSL VPN user + * @return total + */ + @ApiModelProperty(value = "Total number of the SSL VPN user") + + + public Integer getTotal() { + return total; + } + + public void setTotal(Integer total) { + this.total = total; + } + + public SslVpnUserOpenApiGridVoSslVpnUserEntity available(Integer available) { + this.available = available; + return this; + } + + /** + * Available number of the SSL VPN user + * @return available + */ + @ApiModelProperty(value = "Available number of the SSL VPN user") + + + public Integer getAvailable() { + return available; + } + + public void setAvailable(Integer available) { + this.available = available; + } + + public SslVpnUserOpenApiGridVoSslVpnUserEntity expired(Integer expired) { + this.expired = expired; + return this; + } + + /** + * Expired number of the SSL VPN user + * @return expired + */ + @ApiModelProperty(value = "Expired number of the SSL VPN user") + + + public Integer getExpired() { + return expired; + } + + public void setExpired(Integer expired) { + this.expired = expired; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SslVpnUserOpenApiGridVoSslVpnUserEntity sslVpnUserOpenApiGridVoSslVpnUserEntity = (SslVpnUserOpenApiGridVoSslVpnUserEntity) o; + return Objects.equals(this.totalRows, sslVpnUserOpenApiGridVoSslVpnUserEntity.totalRows) && + Objects.equals(this.currentPage, sslVpnUserOpenApiGridVoSslVpnUserEntity.currentPage) && + Objects.equals(this.currentSize, sslVpnUserOpenApiGridVoSslVpnUserEntity.currentSize) && + Objects.equals(this.data, sslVpnUserOpenApiGridVoSslVpnUserEntity.data) && + Objects.equals(this.total, sslVpnUserOpenApiGridVoSslVpnUserEntity.total) && + Objects.equals(this.available, sslVpnUserOpenApiGridVoSslVpnUserEntity.available) && + Objects.equals(this.expired, sslVpnUserOpenApiGridVoSslVpnUserEntity.expired); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data, total, available, expired); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SslVpnUserOpenApiGridVoSslVpnUserEntity {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" total: ").append(toIndentedString(total)).append("\n"); + sb.append(" available: ").append(toIndentedString(available)).append("\n"); + sb.append(" expired: ").append(toIndentedString(expired)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingConfig.java new file mode 100644 index 0000000..0d749d5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingConfig.java @@ -0,0 +1,267 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * StaticRoutingConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class StaticRoutingConfig { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("destinations") + @Valid + private List destinations = new ArrayList<>(); + + @JsonProperty("routeType") + private Integer routeType; + + @JsonProperty("nextHopIp") + private String nextHopIp; + + @JsonProperty("interfaceType") + private Integer interfaceType; + + @JsonProperty("interfaceId") + private String interfaceId; + + @JsonProperty("metric") + private Integer metric; + + public StaticRoutingConfig name(String name) { + this.name = name; + return this; + } + + /** + * Name, name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name, name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public StaticRoutingConfig status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status + * @return status + */ + @ApiModelProperty(required = true, value = "Status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public StaticRoutingConfig destinations(List destinations) { + this.destinations = destinations; + return this; + } + + public StaticRoutingConfig addDestinationsItem(String destinationsItem) { + this.destinations.add(destinationsItem); + return this; + } + + /** + * IP address/SubNet + * @return destinations + */ + @ApiModelProperty(required = true, value = "IP address/SubNet") + @NotNull + + + public List getDestinations() { + return destinations; + } + + public void setDestinations(List destinations) { + this.destinations = destinations; + } + + public StaticRoutingConfig routeType(Integer routeType) { + this.routeType = routeType; + return this; + } + + /** + * RouteType should be a value as follows: 0: NextHop; 1: Interface + * @return routeType + */ + @ApiModelProperty(required = true, value = "RouteType should be a value as follows: 0: NextHop; 1: Interface") + @NotNull + + + public Integer getRouteType() { + return routeType; + } + + public void setRouteType(Integer routeType) { + this.routeType = routeType; + } + + public StaticRoutingConfig nextHopIp(String nextHopIp) { + this.nextHopIp = nextHopIp; + return this; + } + + /** + * Only for routeType:0 or routeType:1 and selected WAN is Static IP/Dynamic IP mode + * @return nextHopIp + */ + @ApiModelProperty(value = "Only for routeType:0 or routeType:1 and selected WAN is Static IP/Dynamic IP mode") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getNextHopIp() { + return nextHopIp; + } + + public void setNextHopIp(String nextHopIp) { + this.nextHopIp = nextHopIp; + } + + public StaticRoutingConfig interfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + return this; + } + + /** + * Only for routeType:1, interfaceType should be a value as follows: 0: Internet(WAN); 1: Network(LAN); 2: L2TP, 3: PPTP, 5: Virtual WAN. + * @return interfaceType + */ + @ApiModelProperty(value = "Only for routeType:1, interfaceType should be a value as follows: 0: Internet(WAN); 1: Network(LAN); 2: L2TP, 3: PPTP, 5: Virtual WAN.") + + + public Integer getInterfaceType() { + return interfaceType; + } + + public void setInterfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + } + + public StaticRoutingConfig interfaceId(String interfaceId) { + this.interfaceId = interfaceId; + return this; + } + + /** + * Interface ID, for example: if interfaceType is network, interfaceId should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return interfaceId + */ + @ApiModelProperty(value = "Interface ID, for example: if interfaceType is network, interfaceId should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + + + public String getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public StaticRoutingConfig metric(Integer metric) { + this.metric = metric; + return this; + } + + /** + * Metric should be within the range of 0–15. + * @return metric + */ + @ApiModelProperty(required = true, value = "Metric should be within the range of 0–15.") + @NotNull + + + public Integer getMetric() { + return metric; + } + + public void setMetric(Integer metric) { + this.metric = metric; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StaticRoutingConfig staticRoutingConfig = (StaticRoutingConfig) o; + return Objects.equals(this.name, staticRoutingConfig.name) && + Objects.equals(this.status, staticRoutingConfig.status) && + Objects.equals(this.destinations, staticRoutingConfig.destinations) && + Objects.equals(this.routeType, staticRoutingConfig.routeType) && + Objects.equals(this.nextHopIp, staticRoutingConfig.nextHopIp) && + Objects.equals(this.interfaceType, staticRoutingConfig.interfaceType) && + Objects.equals(this.interfaceId, staticRoutingConfig.interfaceId) && + Objects.equals(this.metric, staticRoutingConfig.metric); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, destinations, routeType, nextHopIp, interfaceType, interfaceId, metric); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StaticRoutingConfig {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" destinations: ").append(toIndentedString(destinations)).append("\n"); + sb.append(" routeType: ").append(toIndentedString(routeType)).append("\n"); + sb.append(" nextHopIp: ").append(toIndentedString(nextHopIp)).append("\n"); + sb.append(" interfaceType: ").append(toIndentedString(interfaceType)).append("\n"); + sb.append(" interfaceId: ").append(toIndentedString(interfaceId)).append("\n"); + sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInfo.java new file mode 100644 index 0000000..ad1cf25 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInfo.java @@ -0,0 +1,292 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * StaticRoutingInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class StaticRoutingInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("destinations") + @Valid + private List destinations = new ArrayList<>(); + + @JsonProperty("routeType") + private Integer routeType; + + @JsonProperty("nextHopIp") + private String nextHopIp; + + @JsonProperty("interfaceType") + private Integer interfaceType; + + @JsonProperty("interfaceId") + private String interfaceId; + + @JsonProperty("metric") + private Integer metric; + + public StaticRoutingInfo id(String id) { + this.id = id; + return this; + } + + /** + * ID + * @return id + */ + @ApiModelProperty(value = "ID") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public StaticRoutingInfo name(String name) { + this.name = name; + return this; + } + + /** + * Name, name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name, name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public StaticRoutingInfo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status + * @return status + */ + @ApiModelProperty(required = true, value = "Status") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public StaticRoutingInfo destinations(List destinations) { + this.destinations = destinations; + return this; + } + + public StaticRoutingInfo addDestinationsItem(String destinationsItem) { + this.destinations.add(destinationsItem); + return this; + } + + /** + * IP address/SubNet, up to 16 entries are allowed for the destinations list. + * @return destinations + */ + @ApiModelProperty(required = true, value = "IP address/SubNet, up to 16 entries are allowed for the destinations list.") + @NotNull + + + public List getDestinations() { + return destinations; + } + + public void setDestinations(List destinations) { + this.destinations = destinations; + } + + public StaticRoutingInfo routeType(Integer routeType) { + this.routeType = routeType; + return this; + } + + /** + * RouteType should be a value as follows: 0: NextHop; 1: Interface + * @return routeType + */ + @ApiModelProperty(required = true, value = "RouteType should be a value as follows: 0: NextHop; 1: Interface") + @NotNull + + + public Integer getRouteType() { + return routeType; + } + + public void setRouteType(Integer routeType) { + this.routeType = routeType; + } + + public StaticRoutingInfo nextHopIp(String nextHopIp) { + this.nextHopIp = nextHopIp; + return this; + } + + /** + * Only for routeType:0 or routeType:1 and selected WAN is Static IP/Dynamic IP mode + * @return nextHopIp + */ + @ApiModelProperty(value = "Only for routeType:0 or routeType:1 and selected WAN is Static IP/Dynamic IP mode") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getNextHopIp() { + return nextHopIp; + } + + public void setNextHopIp(String nextHopIp) { + this.nextHopIp = nextHopIp; + } + + public StaticRoutingInfo interfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + return this; + } + + /** + * Only for routeType:1, interfaceType should be a value as follows: 0: Internet(WAN); 1: Network(LAN); 2: L2TP, 3: PPTP, 5: Virtual WAN. + * @return interfaceType + */ + @ApiModelProperty(value = "Only for routeType:1, interfaceType should be a value as follows: 0: Internet(WAN); 1: Network(LAN); 2: L2TP, 3: PPTP, 5: Virtual WAN.") + + + public Integer getInterfaceType() { + return interfaceType; + } + + public void setInterfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + } + + public StaticRoutingInfo interfaceId(String interfaceId) { + this.interfaceId = interfaceId; + return this; + } + + /** + * Interface ID, for example: if interfaceType is network, interfaceId should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return interfaceId + */ + @ApiModelProperty(value = "Interface ID, for example: if interfaceType is network, interfaceId should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + + + public String getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public StaticRoutingInfo metric(Integer metric) { + this.metric = metric; + return this; + } + + /** + * Metric should be within the range of 0–15. + * @return metric + */ + @ApiModelProperty(required = true, value = "Metric should be within the range of 0–15.") + @NotNull + + + public Integer getMetric() { + return metric; + } + + public void setMetric(Integer metric) { + this.metric = metric; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StaticRoutingInfo staticRoutingInfo = (StaticRoutingInfo) o; + return Objects.equals(this.id, staticRoutingInfo.id) && + Objects.equals(this.name, staticRoutingInfo.name) && + Objects.equals(this.status, staticRoutingInfo.status) && + Objects.equals(this.destinations, staticRoutingInfo.destinations) && + Objects.equals(this.routeType, staticRoutingInfo.routeType) && + Objects.equals(this.nextHopIp, staticRoutingInfo.nextHopIp) && + Objects.equals(this.interfaceType, staticRoutingInfo.interfaceType) && + Objects.equals(this.interfaceId, staticRoutingInfo.interfaceId) && + Objects.equals(this.metric, staticRoutingInfo.metric); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, status, destinations, routeType, nextHopIp, interfaceType, interfaceId, metric); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StaticRoutingInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" destinations: ").append(toIndentedString(destinations)).append("\n"); + sb.append(" routeType: ").append(toIndentedString(routeType)).append("\n"); + sb.append(" nextHopIp: ").append(toIndentedString(nextHopIp)).append("\n"); + sb.append(" interfaceType: ").append(toIndentedString(interfaceType)).append("\n"); + sb.append(" interfaceId: ").append(toIndentedString(interfaceId)).append("\n"); + sb.append(" metric: ").append(toIndentedString(metric)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInterfaceInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInterfaceInfo.java new file mode 100644 index 0000000..6992d73 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInterfaceInfo.java @@ -0,0 +1,153 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Interface information list. + */ +@ApiModel(description = "Interface information list.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class StaticRoutingInterfaceInfo { + @JsonProperty("interfaceType") + private Integer interfaceType; + + @JsonProperty("name") + private String name; + + @JsonProperty("id") + private String id; + + @JsonProperty("needNextHop") + private Boolean needNextHop; + + public StaticRoutingInterfaceInfo interfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + return this; + } + + /** + * Enter a value as follows: 0: WAN; 1: LAN; 2: L2TP, 3: PPTP, 5: Virtual WAN + * @return interfaceType + */ + @ApiModelProperty(value = "Enter a value as follows: 0: WAN; 1: LAN; 2: L2TP, 3: PPTP, 5: Virtual WAN") + + + public Integer getInterfaceType() { + return interfaceType; + } + + public void setInterfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + } + + public StaticRoutingInterfaceInfo name(String name) { + this.name = name; + return this; + } + + /** + * Interface name. + * @return name + */ + @ApiModelProperty(value = "Interface name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public StaticRoutingInterfaceInfo id(String id) { + this.id = id; + return this; + } + + /** + * Interface ID. + * @return id + */ + @ApiModelProperty(value = "Interface ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public StaticRoutingInterfaceInfo needNextHop(Boolean needNextHop) { + this.needNextHop = needNextHop; + return this; + } + + /** + * Parameter [needNextHop] will be true when [interfaceType] is WAN or virtual WAN, and proto is DHCP or static. + * @return needNextHop + */ + @ApiModelProperty(value = "Parameter [needNextHop] will be true when [interfaceType] is WAN or virtual WAN, and proto is DHCP or static.") + + + public Boolean getNeedNextHop() { + return needNextHop; + } + + public void setNeedNextHop(Boolean needNextHop) { + this.needNextHop = needNextHop; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StaticRoutingInterfaceInfo staticRoutingInterfaceInfo = (StaticRoutingInterfaceInfo) o; + return Objects.equals(this.interfaceType, staticRoutingInterfaceInfo.interfaceType) && + Objects.equals(this.name, staticRoutingInterfaceInfo.name) && + Objects.equals(this.id, staticRoutingInterfaceInfo.id) && + Objects.equals(this.needNextHop, staticRoutingInterfaceInfo.needNextHop); + } + + @Override + public int hashCode() { + return Objects.hash(interfaceType, name, id, needNextHop); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StaticRoutingInterfaceInfo {\n"); + + sb.append(" interfaceType: ").append(toIndentedString(interfaceType)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" needNextHop: ").append(toIndentedString(needNextHop)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInterfaceResult.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInterfaceResult.java new file mode 100644 index 0000000..42914a3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StaticRoutingInterfaceResult.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * StaticRoutingInterfaceResult + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class StaticRoutingInterfaceResult { + @JsonProperty("interfaceInfoList") + @Valid + private List interfaceInfoList = null; + + @JsonProperty("hasWanEnable") + private Boolean hasWanEnable; + + public StaticRoutingInterfaceResult interfaceInfoList(List interfaceInfoList) { + this.interfaceInfoList = interfaceInfoList; + return this; + } + + public StaticRoutingInterfaceResult addInterfaceInfoListItem(StaticRoutingInterfaceInfo interfaceInfoListItem) { + if (this.interfaceInfoList == null) { + this.interfaceInfoList = new ArrayList<>(); + } + this.interfaceInfoList.add(interfaceInfoListItem); + return this; + } + + /** + * Interface information list. + * @return interfaceInfoList + */ + @ApiModelProperty(value = "Interface information list.") + + @Valid + + public List getInterfaceInfoList() { + return interfaceInfoList; + } + + public void setInterfaceInfoList(List interfaceInfoList) { + this.interfaceInfoList = interfaceInfoList; + } + + public StaticRoutingInterfaceResult hasWanEnable(Boolean hasWanEnable) { + this.hasWanEnable = hasWanEnable; + return this; + } + + /** + * Internet has enable WAN port(s). + * @return hasWanEnable + */ + @ApiModelProperty(value = "Internet has enable WAN port(s).") + + + public Boolean getHasWanEnable() { + return hasWanEnable; + } + + public void setHasWanEnable(Boolean hasWanEnable) { + this.hasWanEnable = hasWanEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StaticRoutingInterfaceResult staticRoutingInterfaceResult = (StaticRoutingInterfaceResult) o; + return Objects.equals(this.interfaceInfoList, staticRoutingInterfaceResult.interfaceInfoList) && + Objects.equals(this.hasWanEnable, staticRoutingInterfaceResult.hasWanEnable); + } + + @Override + public int hashCode() { + return Objects.hash(interfaceInfoList, hasWanEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StaticRoutingInterfaceResult {\n"); + + sb.append(" interfaceInfoList: ").append(toIndentedString(interfaceInfoList)).append("\n"); + sb.append(" hasWanEnable: ").append(toIndentedString(hasWanEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StormCtrlEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StormCtrlEntity.java new file mode 100644 index 0000000..99ba068 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/StormCtrlEntity.java @@ -0,0 +1,258 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * StormCtrl + */ +@ApiModel(description = "StormCtrl") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class StormCtrlEntity { + @JsonProperty("unknownUnicastEnable") + private Boolean unknownUnicastEnable; + + @JsonProperty("unknownUnicast") + private Integer unknownUnicast; + + @JsonProperty("multicastEnable") + private Boolean multicastEnable; + + @JsonProperty("multicast") + private Integer multicast; + + @JsonProperty("broadcastEnable") + private Boolean broadcastEnable; + + @JsonProperty("broadcast") + private Integer broadcast; + + @JsonProperty("action") + private Integer action; + + @JsonProperty("recoverTime") + private Integer recoverTime; + + public StormCtrlEntity unknownUnicastEnable(Boolean unknownUnicastEnable) { + this.unknownUnicastEnable = unknownUnicastEnable; + return this; + } + + /** + * Unknown-Unicast enable status + * @return unknownUnicastEnable + */ + @ApiModelProperty(required = true, value = "Unknown-Unicast enable status") + @NotNull + + + public Boolean getUnknownUnicastEnable() { + return unknownUnicastEnable; + } + + public void setUnknownUnicastEnable(Boolean unknownUnicastEnable) { + this.unknownUnicastEnable = unknownUnicastEnable; + } + + public StormCtrlEntity unknownUnicast(Integer unknownUnicast) { + this.unknownUnicast = unknownUnicast; + return this; + } + + /** + * Unknown-Unicast + * @return unknownUnicast + */ + @ApiModelProperty(value = "Unknown-Unicast") + + + public Integer getUnknownUnicast() { + return unknownUnicast; + } + + public void setUnknownUnicast(Integer unknownUnicast) { + this.unknownUnicast = unknownUnicast; + } + + public StormCtrlEntity multicastEnable(Boolean multicastEnable) { + this.multicastEnable = multicastEnable; + return this; + } + + /** + * Multicast enable status + * @return multicastEnable + */ + @ApiModelProperty(required = true, value = "Multicast enable status") + @NotNull + + + public Boolean getMulticastEnable() { + return multicastEnable; + } + + public void setMulticastEnable(Boolean multicastEnable) { + this.multicastEnable = multicastEnable; + } + + public StormCtrlEntity multicast(Integer multicast) { + this.multicast = multicast; + return this; + } + + /** + * Multicast + * @return multicast + */ + @ApiModelProperty(value = "Multicast") + + + public Integer getMulticast() { + return multicast; + } + + public void setMulticast(Integer multicast) { + this.multicast = multicast; + } + + public StormCtrlEntity broadcastEnable(Boolean broadcastEnable) { + this.broadcastEnable = broadcastEnable; + return this; + } + + /** + * Broadcast enable status + * @return broadcastEnable + */ + @ApiModelProperty(required = true, value = "Broadcast enable status") + @NotNull + + + public Boolean getBroadcastEnable() { + return broadcastEnable; + } + + public void setBroadcastEnable(Boolean broadcastEnable) { + this.broadcastEnable = broadcastEnable; + } + + public StormCtrlEntity broadcast(Integer broadcast) { + this.broadcast = broadcast; + return this; + } + + /** + * Broadcast + * @return broadcast + */ + @ApiModelProperty(value = "Broadcast") + + + public Integer getBroadcast() { + return broadcast; + } + + public void setBroadcast(Integer broadcast) { + this.broadcast = broadcast; + } + + public StormCtrlEntity action(Integer action) { + this.action = action; + return this; + } + + /** + * Action should be a value as follows: 0: drop(default), 1: shutdown + * @return action + */ + @ApiModelProperty(required = true, value = "Action should be a value as follows: 0: drop(default), 1: shutdown") + @NotNull + + + public Integer getAction() { + return action; + } + + public void setAction(Integer action) { + this.action = action; + } + + public StormCtrlEntity recoverTime(Integer recoverTime) { + this.recoverTime = recoverTime; + return this; + } + + /** + * Recover Time should be within the range of 1-3600, default 3600 + * @return recoverTime + */ + @ApiModelProperty(value = "Recover Time should be within the range of 1-3600, default 3600") + + + public Integer getRecoverTime() { + return recoverTime; + } + + public void setRecoverTime(Integer recoverTime) { + this.recoverTime = recoverTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + StormCtrlEntity stormCtrlEntity = (StormCtrlEntity) o; + return Objects.equals(this.unknownUnicastEnable, stormCtrlEntity.unknownUnicastEnable) && + Objects.equals(this.unknownUnicast, stormCtrlEntity.unknownUnicast) && + Objects.equals(this.multicastEnable, stormCtrlEntity.multicastEnable) && + Objects.equals(this.multicast, stormCtrlEntity.multicast) && + Objects.equals(this.broadcastEnable, stormCtrlEntity.broadcastEnable) && + Objects.equals(this.broadcast, stormCtrlEntity.broadcast) && + Objects.equals(this.action, stormCtrlEntity.action) && + Objects.equals(this.recoverTime, stormCtrlEntity.recoverTime); + } + + @Override + public int hashCode() { + return Objects.hash(unknownUnicastEnable, unknownUnicast, multicastEnable, multicast, broadcastEnable, broadcast, action, recoverTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class StormCtrlEntity {\n"); + + sb.append(" unknownUnicastEnable: ").append(toIndentedString(unknownUnicastEnable)).append("\n"); + sb.append(" unknownUnicast: ").append(toIndentedString(unknownUnicast)).append("\n"); + sb.append(" multicastEnable: ").append(toIndentedString(multicastEnable)).append("\n"); + sb.append(" multicast: ").append(toIndentedString(multicast)).append("\n"); + sb.append(" broadcastEnable: ").append(toIndentedString(broadcastEnable)).append("\n"); + sb.append(" broadcast: ").append(toIndentedString(broadcast)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" recoverTime: ").append(toIndentedString(recoverTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SupportOsgModelOpenApiAppVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SupportOsgModelOpenApiAppVo.java new file mode 100644 index 0000000..dcfcc90 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SupportOsgModelOpenApiAppVo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SupportOsgModelOpenApiAppVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SupportOsgModelOpenApiAppVo { + @JsonProperty("supportModels") + @Valid + private List supportModels = new ArrayList<>(); + + public SupportOsgModelOpenApiAppVo supportModels(List supportModels) { + this.supportModels = supportModels; + return this; + } + + public SupportOsgModelOpenApiAppVo addSupportModelsItem(OsgModelOpenApiInfoVo supportModelsItem) { + this.supportModels.add(supportModelsItem); + return this; + } + + /** + * Model ID and name + * @return supportModels + */ + @ApiModelProperty(required = true, value = "Model ID and name") + @NotNull + + @Valid + + public List getSupportModels() { + return supportModels; + } + + public void setSupportModels(List supportModels) { + this.supportModels = supportModels; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SupportOsgModelOpenApiAppVo supportOsgModelOpenApiAppVo = (SupportOsgModelOpenApiAppVo) o; + return Objects.equals(this.supportModels, supportOsgModelOpenApiAppVo.supportModels); + } + + @Override + public int hashCode() { + return Objects.hash(supportModels); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SupportOsgModelOpenApiAppVo {\n"); + + sb.append(" supportModels: ").append(toIndentedString(supportModels)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclConfig.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclConfig.java new file mode 100644 index 0000000..76aa14c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclConfig.java @@ -0,0 +1,472 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SwitchAclConfig + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SwitchAclConfig { + @JsonProperty("description") + private String description; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("protocols") + @Valid + private List protocols = new ArrayList<>(); + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = new ArrayList<>(); + + @JsonProperty("destinationIds") + @Valid + private List destinationIds = null; + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("destinationType") + private Integer destinationType; + + @JsonProperty("bindingType") + private Integer bindingType; + + @JsonProperty("customAclPorts") + @Valid + private List customAclPorts = null; + + @JsonProperty("networkId") + private String networkId; + + @JsonProperty("bindingBridgeVlan") + private Integer bindingBridgeVlan; + + @JsonProperty("etherType") + private SwitchAclEtherTypeEntity etherType; + + @JsonProperty("timeRangeId") + private String timeRangeId; + + @JsonProperty("biDirectional") + private Boolean biDirectional; + + public SwitchAclConfig description(String description) { + this.description = description; + return this; + } + + /** + * ACL rule description, description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(required = true, value = "ACL rule description, description should contain 1 to 512 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public SwitchAclConfig status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: disable; 1: enable + * @return status + */ + @ApiModelProperty(required = true, value = "Status should be a value as follows: 0: disable; 1: enable") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public SwitchAclConfig policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * Policy should be a value as follows: 0: drop; 1: allow; + * @return policy + */ + @ApiModelProperty(required = true, value = "Policy should be a value as follows: 0: drop; 1: allow;") + @NotNull + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public SwitchAclConfig protocols(List protocols) { + this.protocols = protocols; + return this; + } + + public SwitchAclConfig addProtocolsItem(Integer protocolsItem) { + this.protocols.add(protocolsItem); + return this; + } + + /** + * For the values of protocols, refer to section 5.5 of the Open API Access Guide. + * @return protocols + */ + @ApiModelProperty(required = true, value = "For the values of protocols, refer to section 5.5 of the Open API Access Guide.") + @NotNull + + + public List getProtocols() { + return protocols; + } + + public void setProtocols(List protocols) { + this.protocols = protocols; + } + + public SwitchAclConfig sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public SwitchAclConfig addSourceIdsItem(String sourceIdsItem) { + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return sourceIds + */ + @ApiModelProperty(required = true, value = "Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public SwitchAclConfig destinationIds(List destinationIds) { + this.destinationIds = destinationIds; + return this; + } + + public SwitchAclConfig addDestinationIdsItem(String destinationIdsItem) { + if (this.destinationIds == null) { + this.destinationIds = new ArrayList<>(); + } + this.destinationIds.add(destinationIdsItem); + return this; + } + + /** + * Source IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return destinationIds + */ + @ApiModelProperty(value = "Source IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + + + public List getDestinationIds() { + return destinationIds; + } + + public void setDestinationIds(List destinationIds) { + this.destinationIds = destinationIds; + } + + public SwitchAclConfig sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group + * @return sourceType + */ + @ApiModelProperty(required = true, value = "SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public SwitchAclConfig destinationType(Integer destinationType) { + this.destinationType = destinationType; + return this; + } + + /** + * DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group + * @return destinationType + */ + @ApiModelProperty(required = true, value = "DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group") + @NotNull + + + public Integer getDestinationType() { + return destinationType; + } + + public void setDestinationType(Integer destinationType) { + this.destinationType = destinationType; + } + + public SwitchAclConfig bindingType(Integer bindingType) { + this.bindingType = bindingType; + return this; + } + + /** + * BindingType should be a value as follows: 0: all ports; 1: custom ports; 2: VLAN + * @return bindingType + */ + @ApiModelProperty(required = true, value = "BindingType should be a value as follows: 0: all ports; 1: custom ports; 2: VLAN") + @NotNull + + + public Integer getBindingType() { + return bindingType; + } + + public void setBindingType(Integer bindingType) { + this.bindingType = bindingType; + } + + public SwitchAclConfig customAclPorts(List customAclPorts) { + this.customAclPorts = customAclPorts; + return this; + } + + public SwitchAclConfig addCustomAclPortsItem(SwitchAclPortEntity customAclPortsItem) { + if (this.customAclPorts == null) { + this.customAclPorts = new ArrayList<>(); + } + this.customAclPorts.add(customAclPortsItem); + return this; + } + + /** + * Only for bindingType is custom ports, select the custom port or LAG of the device + * @return customAclPorts + */ + @ApiModelProperty(value = "Only for bindingType is custom ports, select the custom port or LAG of the device") + + @Valid + + public List getCustomAclPorts() { + return customAclPorts; + } + + public void setCustomAclPorts(List customAclPorts) { + this.customAclPorts = customAclPorts; + } + + public SwitchAclConfig networkId(String networkId) { + this.networkId = networkId; + return this; + } + + /** + * Only for bindingType VLAN + * @return networkId + */ + @ApiModelProperty(value = "Only for bindingType VLAN") + + + public String getNetworkId() { + return networkId; + } + + public void setNetworkId(String networkId) { + this.networkId = networkId; + } + + public SwitchAclConfig bindingBridgeVlan(Integer bindingBridgeVlan) { + this.bindingBridgeVlan = bindingBridgeVlan; + return this; + } + + /** + * Only for bindingType VLAN and network of bridge VLAN + * @return bindingBridgeVlan + */ + @ApiModelProperty(value = "Only for bindingType VLAN and network of bridge VLAN") + + + public Integer getBindingBridgeVlan() { + return bindingBridgeVlan; + } + + public void setBindingBridgeVlan(Integer bindingBridgeVlan) { + this.bindingBridgeVlan = bindingBridgeVlan; + } + + public SwitchAclConfig etherType(SwitchAclEtherTypeEntity etherType) { + this.etherType = etherType; + return this; + } + + /** + * Get etherType + * @return etherType + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public SwitchAclEtherTypeEntity getEtherType() { + return etherType; + } + + public void setEtherType(SwitchAclEtherTypeEntity etherType) { + this.etherType = etherType; + } + + public SwitchAclConfig timeRangeId(String timeRangeId) { + this.timeRangeId = timeRangeId; + return this; + } + + /** + * Time range profile ID + * @return timeRangeId + */ + @ApiModelProperty(value = "Time range profile ID") + + + public String getTimeRangeId() { + return timeRangeId; + } + + public void setTimeRangeId(String timeRangeId) { + this.timeRangeId = timeRangeId; + } + + public SwitchAclConfig biDirectional(Boolean biDirectional) { + this.biDirectional = biDirectional; + return this; + } + + /** + * Whether to enable the bidirectional, this field required only when creating a new entry + * @return biDirectional + */ + @ApiModelProperty(value = "Whether to enable the bidirectional, this field required only when creating a new entry") + + + public Boolean getBiDirectional() { + return biDirectional; + } + + public void setBiDirectional(Boolean biDirectional) { + this.biDirectional = biDirectional; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchAclConfig switchAclConfig = (SwitchAclConfig) o; + return Objects.equals(this.description, switchAclConfig.description) && + Objects.equals(this.status, switchAclConfig.status) && + Objects.equals(this.policy, switchAclConfig.policy) && + Objects.equals(this.protocols, switchAclConfig.protocols) && + Objects.equals(this.sourceIds, switchAclConfig.sourceIds) && + Objects.equals(this.destinationIds, switchAclConfig.destinationIds) && + Objects.equals(this.sourceType, switchAclConfig.sourceType) && + Objects.equals(this.destinationType, switchAclConfig.destinationType) && + Objects.equals(this.bindingType, switchAclConfig.bindingType) && + Objects.equals(this.customAclPorts, switchAclConfig.customAclPorts) && + Objects.equals(this.networkId, switchAclConfig.networkId) && + Objects.equals(this.bindingBridgeVlan, switchAclConfig.bindingBridgeVlan) && + Objects.equals(this.etherType, switchAclConfig.etherType) && + Objects.equals(this.timeRangeId, switchAclConfig.timeRangeId) && + Objects.equals(this.biDirectional, switchAclConfig.biDirectional); + } + + @Override + public int hashCode() { + return Objects.hash(description, status, policy, protocols, sourceIds, destinationIds, sourceType, destinationType, bindingType, customAclPorts, networkId, bindingBridgeVlan, etherType, timeRangeId, biDirectional); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchAclConfig {\n"); + + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" protocols: ").append(toIndentedString(protocols)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" destinationIds: ").append(toIndentedString(destinationIds)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" destinationType: ").append(toIndentedString(destinationType)).append("\n"); + sb.append(" bindingType: ").append(toIndentedString(bindingType)).append("\n"); + sb.append(" customAclPorts: ").append(toIndentedString(customAclPorts)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" bindingBridgeVlan: ").append(toIndentedString(bindingBridgeVlan)).append("\n"); + sb.append(" etherType: ").append(toIndentedString(etherType)).append("\n"); + sb.append(" timeRangeId: ").append(toIndentedString(timeRangeId)).append("\n"); + sb.append(" biDirectional: ").append(toIndentedString(biDirectional)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclEtherTypeEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclEtherTypeEntity.java new file mode 100644 index 0000000..33a42a4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclEtherTypeEntity.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Ethertype(4-hex number; 0-9,A-F) is only editable when the Source Type and Destination Type are both selected as MAC Group in the Rule. + */ +@ApiModel(description = "Ethertype(4-hex number; 0-9,A-F) is only editable when the Source Type and Destination Type are both selected as MAC Group in the Rule.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SwitchAclEtherTypeEntity { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("value") + private String value; + + public SwitchAclEtherTypeEntity enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Default:false + * @return enable + */ + @ApiModelProperty(required = true, value = "Default:false") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public SwitchAclEtherTypeEntity value(String value) { + this.value = value; + return this; + } + + /** + * Value, if enable is true, value must not be null + * @return value + */ + @ApiModelProperty(value = "Value, if enable is true, value must not be null") + +@Pattern(regexp="^[0-9a-fA-F]{4}$") + public String getValue() { + return value; + } + + public void setValue(String value) { + this.value = value; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchAclEtherTypeEntity switchAclEtherTypeEntity = (SwitchAclEtherTypeEntity) o; + return Objects.equals(this.enable, switchAclEtherTypeEntity.enable) && + Objects.equals(this.value, switchAclEtherTypeEntity.value); + } + + @Override + public int hashCode() { + return Objects.hash(enable, value); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchAclEtherTypeEntity {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" value: ").append(toIndentedString(value)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclInfo.java new file mode 100644 index 0000000..a61b574 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclInfo.java @@ -0,0 +1,497 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * SwitchAclInfo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SwitchAclInfo { + @JsonProperty("id") + private String id; + + @JsonProperty("index") + private Integer index; + + @JsonProperty("description") + private String description; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("protocols") + @Valid + private List protocols = new ArrayList<>(); + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = new ArrayList<>(); + + @JsonProperty("destinationIds") + @Valid + private List destinationIds = new ArrayList<>(); + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("destinationType") + private Integer destinationType; + + @JsonProperty("bindingType") + private Integer bindingType; + + @JsonProperty("customAclPorts") + @Valid + private List customAclPorts = null; + + @JsonProperty("networkId") + private String networkId; + + @JsonProperty("bindingBridgeVlan") + private Integer bindingBridgeVlan; + + @JsonProperty("etherType") + private SwitchAclEtherTypeEntity etherType; + + @JsonProperty("timeRangeId") + private String timeRangeId; + + public SwitchAclInfo id(String id) { + this.id = id; + return this; + } + + /** + * ACL ID + * @return id + */ + @ApiModelProperty(required = true, value = "ACL ID") + @NotNull + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public SwitchAclInfo index(Integer index) { + this.index = index; + return this; + } + + /** + * Index + * @return index + */ + @ApiModelProperty(required = true, value = "Index") + @NotNull + + + public Integer getIndex() { + return index; + } + + public void setIndex(Integer index) { + this.index = index; + } + + public SwitchAclInfo description(String description) { + this.description = description; + return this; + } + + /** + * ACL rule description, description should contain 1 to 512 characters. + * @return description + */ + @ApiModelProperty(required = true, value = "ACL rule description, description should contain 1 to 512 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,510}[^ ]$") + public String getDescription() { + return description; + } + + public void setDescription(String description) { + this.description = description; + } + + public SwitchAclInfo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status should be a value as follows: 0: disable; 1: enable + * @return status + */ + @ApiModelProperty(required = true, value = "Status should be a value as follows: 0: disable; 1: enable") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public SwitchAclInfo policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * Policy should be a value as follows: 0: drop; 1: allow; + * @return policy + */ + @ApiModelProperty(required = true, value = "Policy should be a value as follows: 0: drop; 1: allow;") + @NotNull + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public SwitchAclInfo protocols(List protocols) { + this.protocols = protocols; + return this; + } + + public SwitchAclInfo addProtocolsItem(Integer protocolsItem) { + this.protocols.add(protocolsItem); + return this; + } + + /** + * For the values of protocols, refer to section 5.5 of the Open API Access Guide. + * @return protocols + */ + @ApiModelProperty(required = true, value = "For the values of protocols, refer to section 5.5 of the Open API Access Guide.") + @NotNull + + + public List getProtocols() { + return protocols; + } + + public void setProtocols(List protocols) { + this.protocols = protocols; + } + + public SwitchAclInfo sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public SwitchAclInfo addSourceIdsItem(String sourceIdsItem) { + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return sourceIds + */ + @ApiModelProperty(required = true, value = "Source IDs, which depends on sourceType, for example: if sourceType is network, sourceIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public SwitchAclInfo destinationIds(List destinationIds) { + this.destinationIds = destinationIds; + return this; + } + + public SwitchAclInfo addDestinationIdsItem(String destinationIdsItem) { + this.destinationIds.add(destinationIdsItem); + return this; + } + + /** + * Destination IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. + * @return destinationIds + */ + @ApiModelProperty(required = true, value = "Destination IDs, which depends on destinationType, for example: if destinationType is network, destinationIds should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface.") + @NotNull + + + public List getDestinationIds() { + return destinationIds; + } + + public void setDestinationIds(List destinationIds) { + this.destinationIds = destinationIds; + } + + public SwitchAclInfo sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group + * @return sourceType + */ + @ApiModelProperty(required = true, value = "SourceType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 4: SSID; 6: IPv6 Group; 7: IPv6-Port Group") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public SwitchAclInfo destinationType(Integer destinationType) { + this.destinationType = destinationType; + return this; + } + + /** + * DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group + * @return destinationType + */ + @ApiModelProperty(required = true, value = "DestinationType should be a value as follows: 0: network; 1: IP Group; 2: IP-Port Group; 6: IPv6 Group; 7: IPv6-Port Group") + @NotNull + + + public Integer getDestinationType() { + return destinationType; + } + + public void setDestinationType(Integer destinationType) { + this.destinationType = destinationType; + } + + public SwitchAclInfo bindingType(Integer bindingType) { + this.bindingType = bindingType; + return this; + } + + /** + * BindingType should be a value as follows: 0: all ports; 1: custom ports; 2: VLAN + * @return bindingType + */ + @ApiModelProperty(required = true, value = "BindingType should be a value as follows: 0: all ports; 1: custom ports; 2: VLAN") + @NotNull + + + public Integer getBindingType() { + return bindingType; + } + + public void setBindingType(Integer bindingType) { + this.bindingType = bindingType; + } + + public SwitchAclInfo customAclPorts(List customAclPorts) { + this.customAclPorts = customAclPorts; + return this; + } + + public SwitchAclInfo addCustomAclPortsItem(SwitchAclPortEntity customAclPortsItem) { + if (this.customAclPorts == null) { + this.customAclPorts = new ArrayList<>(); + } + this.customAclPorts.add(customAclPortsItem); + return this; + } + + /** + * Only for bindingType is custom ports, select the custom port or LAG of the device + * @return customAclPorts + */ + @ApiModelProperty(value = "Only for bindingType is custom ports, select the custom port or LAG of the device") + + @Valid + + public List getCustomAclPorts() { + return customAclPorts; + } + + public void setCustomAclPorts(List customAclPorts) { + this.customAclPorts = customAclPorts; + } + + public SwitchAclInfo networkId(String networkId) { + this.networkId = networkId; + return this; + } + + /** + * Only for bindingType VLAN + * @return networkId + */ + @ApiModelProperty(value = "Only for bindingType VLAN") + + + public String getNetworkId() { + return networkId; + } + + public void setNetworkId(String networkId) { + this.networkId = networkId; + } + + public SwitchAclInfo bindingBridgeVlan(Integer bindingBridgeVlan) { + this.bindingBridgeVlan = bindingBridgeVlan; + return this; + } + + /** + * Only for bindingType VLAN and network of bridge VLAN + * @return bindingBridgeVlan + */ + @ApiModelProperty(value = "Only for bindingType VLAN and network of bridge VLAN") + + + public Integer getBindingBridgeVlan() { + return bindingBridgeVlan; + } + + public void setBindingBridgeVlan(Integer bindingBridgeVlan) { + this.bindingBridgeVlan = bindingBridgeVlan; + } + + public SwitchAclInfo etherType(SwitchAclEtherTypeEntity etherType) { + this.etherType = etherType; + return this; + } + + /** + * Get etherType + * @return etherType + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public SwitchAclEtherTypeEntity getEtherType() { + return etherType; + } + + public void setEtherType(SwitchAclEtherTypeEntity etherType) { + this.etherType = etherType; + } + + public SwitchAclInfo timeRangeId(String timeRangeId) { + this.timeRangeId = timeRangeId; + return this; + } + + /** + * Time range profile ID + * @return timeRangeId + */ + @ApiModelProperty(value = "Time range profile ID") + + + public String getTimeRangeId() { + return timeRangeId; + } + + public void setTimeRangeId(String timeRangeId) { + this.timeRangeId = timeRangeId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchAclInfo switchAclInfo = (SwitchAclInfo) o; + return Objects.equals(this.id, switchAclInfo.id) && + Objects.equals(this.index, switchAclInfo.index) && + Objects.equals(this.description, switchAclInfo.description) && + Objects.equals(this.status, switchAclInfo.status) && + Objects.equals(this.policy, switchAclInfo.policy) && + Objects.equals(this.protocols, switchAclInfo.protocols) && + Objects.equals(this.sourceIds, switchAclInfo.sourceIds) && + Objects.equals(this.destinationIds, switchAclInfo.destinationIds) && + Objects.equals(this.sourceType, switchAclInfo.sourceType) && + Objects.equals(this.destinationType, switchAclInfo.destinationType) && + Objects.equals(this.bindingType, switchAclInfo.bindingType) && + Objects.equals(this.customAclPorts, switchAclInfo.customAclPorts) && + Objects.equals(this.networkId, switchAclInfo.networkId) && + Objects.equals(this.bindingBridgeVlan, switchAclInfo.bindingBridgeVlan) && + Objects.equals(this.etherType, switchAclInfo.etherType) && + Objects.equals(this.timeRangeId, switchAclInfo.timeRangeId); + } + + @Override + public int hashCode() { + return Objects.hash(id, index, description, status, policy, protocols, sourceIds, destinationIds, sourceType, destinationType, bindingType, customAclPorts, networkId, bindingBridgeVlan, etherType, timeRangeId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchAclInfo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" index: ").append(toIndentedString(index)).append("\n"); + sb.append(" description: ").append(toIndentedString(description)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" protocols: ").append(toIndentedString(protocols)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" destinationIds: ").append(toIndentedString(destinationIds)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" destinationType: ").append(toIndentedString(destinationType)).append("\n"); + sb.append(" bindingType: ").append(toIndentedString(bindingType)).append("\n"); + sb.append(" customAclPorts: ").append(toIndentedString(customAclPorts)).append("\n"); + sb.append(" networkId: ").append(toIndentedString(networkId)).append("\n"); + sb.append(" bindingBridgeVlan: ").append(toIndentedString(bindingBridgeVlan)).append("\n"); + sb.append(" etherType: ").append(toIndentedString(etherType)).append("\n"); + sb.append(" timeRangeId: ").append(toIndentedString(timeRangeId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclPortEntity.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclPortEntity.java new file mode 100644 index 0000000..b68ae01 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/SwitchAclPortEntity.java @@ -0,0 +1,147 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * only for bindingType custom ports + */ +@ApiModel(description = "only for bindingType custom ports") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class SwitchAclPortEntity { + @JsonProperty("mac") + private String mac; + + @JsonProperty("customPortIds") + @Valid + private List customPortIds = new ArrayList<>(); + + @JsonProperty("customLagIds") + @Valid + private List customLagIds = new ArrayList<>(); + + public SwitchAclPortEntity mac(String mac) { + this.mac = mac; + return this; + } + + /** + * MAC + * @return mac + */ + @ApiModelProperty(required = true, value = "MAC") + @NotNull + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public SwitchAclPortEntity customPortIds(List customPortIds) { + this.customPortIds = customPortIds; + return this; + } + + public SwitchAclPortEntity addCustomPortIdsItem(Integer customPortIdsItem) { + this.customPortIds.add(customPortIdsItem); + return this; + } + + /** + * Custom port IDs + * @return customPortIds + */ + @ApiModelProperty(required = true, value = "Custom port IDs") + @NotNull + + + public List getCustomPortIds() { + return customPortIds; + } + + public void setCustomPortIds(List customPortIds) { + this.customPortIds = customPortIds; + } + + public SwitchAclPortEntity customLagIds(List customLagIds) { + this.customLagIds = customLagIds; + return this; + } + + public SwitchAclPortEntity addCustomLagIdsItem(Integer customLagIdsItem) { + this.customLagIds.add(customLagIdsItem); + return this; + } + + /** + * Custom lag IDs + * @return customLagIds + */ + @ApiModelProperty(required = true, value = "Custom lag IDs") + @NotNull + + + public List getCustomLagIds() { + return customLagIds; + } + + public void setCustomLagIds(List customLagIds) { + this.customLagIds = customLagIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + SwitchAclPortEntity switchAclPortEntity = (SwitchAclPortEntity) o; + return Objects.equals(this.mac, switchAclPortEntity.mac) && + Objects.equals(this.customPortIds, switchAclPortEntity.customPortIds) && + Objects.equals(this.customLagIds, switchAclPortEntity.customLagIds); + } + + @Override + public int hashCode() { + return Objects.hash(mac, customPortIds, customLagIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class SwitchAclPortEntity {\n"); + + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" customPortIds: ").append(toIndentedString(customPortIds)).append("\n"); + sb.append(" customLagIds: ").append(toIndentedString(customLagIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TagOutConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TagOutConfigOpenApiVo.java new file mode 100644 index 0000000..4b40ca2 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TagOutConfigOpenApiVo.java @@ -0,0 +1,88 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * TagOutConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class TagOutConfigOpenApiVo { + @JsonProperty("tagConfigList") + @Valid + private List tagConfigList = new ArrayList<>(); + + public TagOutConfigOpenApiVo tagConfigList(List tagConfigList) { + this.tagConfigList = tagConfigList; + return this; + } + + public TagOutConfigOpenApiVo addTagConfigListItem(TagOutItemOpenApiVo tagConfigListItem) { + this.tagConfigList.add(tagConfigListItem); + return this; + } + + /** + * The Tag Outbound configuration of class type, must contains class 1, class 2, class 3 and others. + * @return tagConfigList + */ + @ApiModelProperty(required = true, value = "The Tag Outbound configuration of class type, must contains class 1, class 2, class 3 and others.") + @NotNull + + @Valid + + public List getTagConfigList() { + return tagConfigList; + } + + public void setTagConfigList(List tagConfigList) { + this.tagConfigList = tagConfigList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagOutConfigOpenApiVo tagOutConfigOpenApiVo = (TagOutConfigOpenApiVo) o; + return Objects.equals(this.tagConfigList, tagOutConfigOpenApiVo.tagConfigList); + } + + @Override + public int hashCode() { + return Objects.hash(tagConfigList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagOutConfigOpenApiVo {\n"); + + sb.append(" tagConfigList: ").append(toIndentedString(tagConfigList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TagOutItemOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TagOutItemOpenApiVo.java new file mode 100644 index 0000000..e5eea82 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TagOutItemOpenApiVo.java @@ -0,0 +1,132 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * The Tag Outbound configuration of class type, must contains class 1, class 2, class 3 and others. + */ +@ApiModel(description = "The Tag Outbound configuration of class type, must contains class 1, class 2, class 3 and others.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class TagOutItemOpenApiVo { + @JsonProperty("classType") + private Integer classType; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("dscp") + private String dscp; + + public TagOutItemOpenApiVo classType(Integer classType) { + this.classType = classType; + return this; + } + + /** + * Class type should be a value as follows: 1: class 1, 2: class 2, 3: class 3, 0: others. + * @return classType + */ + @ApiModelProperty(required = true, value = "Class type should be a value as follows: 1: class 1, 2: class 2, 3: class 3, 0: others.") + @NotNull + + + public Integer getClassType() { + return classType; + } + + public void setClassType(Integer classType) { + this.classType = classType; + } + + public TagOutItemOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * The status of Class Type, valid value is true or false. + * @return enable + */ + @ApiModelProperty(required = true, value = "The status of Class Type, valid value is true or false.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public TagOutItemOpenApiVo dscp(String dscp) { + this.dscp = dscp; + return this; + } + + /** + * The DSCP value selected in the Precedence configuration should be a value as follows: 8: IP precedence 1; 16: IP precedence 2; 24: IP precedence 3; 32: IP precedence 4; 40: IP precedence 5; 48: IP precedence 6; 56: IP precedence 7; 10: AF Class 1 (Low Drop); 12: AF Class 1 (Medium Drop); 14: AF Class 1 (High Drop); 18: AF Class 2 (Low Drop); 20: AF Class 2 (Medium Drop); 22: AF Class 2 (High Drop); 26: AF Class 3 (Low Drop); 28: AF Class 3 (Medium Drop); 30: AF Class 3 (High Drop); 34: AF Class 4 (Low Drop); 36: AF Class 4 (Medium Drop); 38: AF Class 4 (High Drop); 46: EF Class. + * @return dscp + */ + @ApiModelProperty(required = true, value = "The DSCP value selected in the Precedence configuration should be a value as follows: 8: IP precedence 1; 16: IP precedence 2; 24: IP precedence 3; 32: IP precedence 4; 40: IP precedence 5; 48: IP precedence 6; 56: IP precedence 7; 10: AF Class 1 (Low Drop); 12: AF Class 1 (Medium Drop); 14: AF Class 1 (High Drop); 18: AF Class 2 (Low Drop); 20: AF Class 2 (Medium Drop); 22: AF Class 2 (High Drop); 26: AF Class 3 (Low Drop); 28: AF Class 3 (Medium Drop); 30: AF Class 3 (High Drop); 34: AF Class 4 (Low Drop); 36: AF Class 4 (Medium Drop); 38: AF Class 4 (High Drop); 46: EF Class.") + @NotNull + + + public String getDscp() { + return dscp; + } + + public void setDscp(String dscp) { + this.dscp = dscp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TagOutItemOpenApiVo tagOutItemOpenApiVo = (TagOutItemOpenApiVo) o; + return Objects.equals(this.classType, tagOutItemOpenApiVo.classType) && + Objects.equals(this.enable, tagOutItemOpenApiVo.enable) && + Objects.equals(this.dscp, tagOutItemOpenApiVo.dscp); + } + + @Override + public int hashCode() { + return Objects.hash(classType, enable, dscp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TagOutItemOpenApiVo {\n"); + + sb.append(" classType: ").append(toIndentedString(classType)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" dscp: ").append(toIndentedString(dscp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberAdvancedSettingApOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberAdvancedSettingApOpenApiVo.java new file mode 100644 index 0000000..f068473 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberAdvancedSettingApOpenApiVo.java @@ -0,0 +1,253 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Advanced settings. + */ +@ApiModel(description = "Advanced settings.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class TelephoneNumberAdvancedSettingApOpenApiVo { + @JsonProperty("locale") + private Integer locale; + + @JsonProperty("dscpForSip") + private Integer dscpForSip; + + @JsonProperty("dscpForRtp") + private Integer dscpForRtp; + + @JsonProperty("dtmfRelaySetting") + private Integer dtmfRelaySetting; + + @JsonProperty("expirationTime") + private Integer expirationTime; + + @JsonProperty("retryInterval") + private Integer retryInterval; + + @JsonProperty("t38Support") + private Boolean t38Support; + + @JsonProperty("endWithNumberSign") + private Boolean endWithNumberSign; + + public TelephoneNumberAdvancedSettingApOpenApiVo locale(Integer locale) { + this.locale = locale; + return this; + } + + /** + * The country code of telephone number. + * @return locale + */ + @ApiModelProperty(value = "The country code of telephone number.") + + + public Integer getLocale() { + return locale; + } + + public void setLocale(Integer locale) { + this.locale = locale; + } + + public TelephoneNumberAdvancedSettingApOpenApiVo dscpForSip(Integer dscpForSip) { + this.dscpForSip = dscpForSip; + return this; + } + + /** + * The dscp For Sip of telephone number. + * @return dscpForSip + */ + @ApiModelProperty(value = "The dscp For Sip of telephone number.") + + + public Integer getDscpForSip() { + return dscpForSip; + } + + public void setDscpForSip(Integer dscpForSip) { + this.dscpForSip = dscpForSip; + } + + public TelephoneNumberAdvancedSettingApOpenApiVo dscpForRtp(Integer dscpForRtp) { + this.dscpForRtp = dscpForRtp; + return this; + } + + /** + * The dscp For Rtp of telephone number. + * @return dscpForRtp + */ + @ApiModelProperty(value = "The dscp For Rtp of telephone number.") + + + public Integer getDscpForRtp() { + return dscpForRtp; + } + + public void setDscpForRtp(Integer dscpForRtp) { + this.dscpForRtp = dscpForRtp; + } + + public TelephoneNumberAdvancedSettingApOpenApiVo dtmfRelaySetting(Integer dtmfRelaySetting) { + this.dtmfRelaySetting = dtmfRelaySetting; + return this; + } + + /** + * The dtmf relay setting of telephone number. + * @return dtmfRelaySetting + */ + @ApiModelProperty(value = "The dtmf relay setting of telephone number.") + + + public Integer getDtmfRelaySetting() { + return dtmfRelaySetting; + } + + public void setDtmfRelaySetting(Integer dtmfRelaySetting) { + this.dtmfRelaySetting = dtmfRelaySetting; + } + + public TelephoneNumberAdvancedSettingApOpenApiVo expirationTime(Integer expirationTime) { + this.expirationTime = expirationTime; + return this; + } + + /** + * The expiration time of telephone number. + * @return expirationTime + */ + @ApiModelProperty(value = "The expiration time of telephone number.") + + + public Integer getExpirationTime() { + return expirationTime; + } + + public void setExpirationTime(Integer expirationTime) { + this.expirationTime = expirationTime; + } + + public TelephoneNumberAdvancedSettingApOpenApiVo retryInterval(Integer retryInterval) { + this.retryInterval = retryInterval; + return this; + } + + /** + * The retry interval of telephone number. + * @return retryInterval + */ + @ApiModelProperty(value = "The retry interval of telephone number.") + + + public Integer getRetryInterval() { + return retryInterval; + } + + public void setRetryInterval(Integer retryInterval) { + this.retryInterval = retryInterval; + } + + public TelephoneNumberAdvancedSettingApOpenApiVo t38Support(Boolean t38Support) { + this.t38Support = t38Support; + return this; + } + + /** + * Whether to enable t38 Support. + * @return t38Support + */ + @ApiModelProperty(value = "Whether to enable t38 Support.") + + + public Boolean getT38Support() { + return t38Support; + } + + public void setT38Support(Boolean t38Support) { + this.t38Support = t38Support; + } + + public TelephoneNumberAdvancedSettingApOpenApiVo endWithNumberSign(Boolean endWithNumberSign) { + this.endWithNumberSign = endWithNumberSign; + return this; + } + + /** + * Whether the telephone number setting end with number sign. + * @return endWithNumberSign + */ + @ApiModelProperty(value = "Whether the telephone number setting end with number sign.") + + + public Boolean getEndWithNumberSign() { + return endWithNumberSign; + } + + public void setEndWithNumberSign(Boolean endWithNumberSign) { + this.endWithNumberSign = endWithNumberSign; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TelephoneNumberAdvancedSettingApOpenApiVo telephoneNumberAdvancedSettingApOpenApiVo = (TelephoneNumberAdvancedSettingApOpenApiVo) o; + return Objects.equals(this.locale, telephoneNumberAdvancedSettingApOpenApiVo.locale) && + Objects.equals(this.dscpForSip, telephoneNumberAdvancedSettingApOpenApiVo.dscpForSip) && + Objects.equals(this.dscpForRtp, telephoneNumberAdvancedSettingApOpenApiVo.dscpForRtp) && + Objects.equals(this.dtmfRelaySetting, telephoneNumberAdvancedSettingApOpenApiVo.dtmfRelaySetting) && + Objects.equals(this.expirationTime, telephoneNumberAdvancedSettingApOpenApiVo.expirationTime) && + Objects.equals(this.retryInterval, telephoneNumberAdvancedSettingApOpenApiVo.retryInterval) && + Objects.equals(this.t38Support, telephoneNumberAdvancedSettingApOpenApiVo.t38Support) && + Objects.equals(this.endWithNumberSign, telephoneNumberAdvancedSettingApOpenApiVo.endWithNumberSign); + } + + @Override + public int hashCode() { + return Objects.hash(locale, dscpForSip, dscpForRtp, dtmfRelaySetting, expirationTime, retryInterval, t38Support, endWithNumberSign); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TelephoneNumberAdvancedSettingApOpenApiVo {\n"); + + sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); + sb.append(" dscpForSip: ").append(toIndentedString(dscpForSip)).append("\n"); + sb.append(" dscpForRtp: ").append(toIndentedString(dscpForRtp)).append("\n"); + sb.append(" dtmfRelaySetting: ").append(toIndentedString(dtmfRelaySetting)).append("\n"); + sb.append(" expirationTime: ").append(toIndentedString(expirationTime)).append("\n"); + sb.append(" retryInterval: ").append(toIndentedString(retryInterval)).append("\n"); + sb.append(" t38Support: ").append(toIndentedString(t38Support)).append("\n"); + sb.append(" endWithNumberSign: ").append(toIndentedString(endWithNumberSign)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberAdvancedSettingOsgOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberAdvancedSettingOsgOpenApiVo.java new file mode 100644 index 0000000..884ec52 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberAdvancedSettingOsgOpenApiVo.java @@ -0,0 +1,205 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Advanced settings. + */ +@ApiModel(description = "Advanced settings.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class TelephoneNumberAdvancedSettingOsgOpenApiVo { + @JsonProperty("locale") + private String locale; + + @JsonProperty("noAnswerTime") + private Integer noAnswerTime; + + @JsonProperty("t38Support") + private Boolean t38Support; + + @JsonProperty("interfaceType") + private Integer interfaceType; + + @JsonProperty("interfaceId") + private String interfaceId; + + @JsonProperty("virtualWanId") + private String virtualWanId; + + public TelephoneNumberAdvancedSettingOsgOpenApiVo locale(String locale) { + this.locale = locale; + return this; + } + + /** + * The country code of telephone number. + * @return locale + */ + @ApiModelProperty(value = "The country code of telephone number.") + + + public String getLocale() { + return locale; + } + + public void setLocale(String locale) { + this.locale = locale; + } + + public TelephoneNumberAdvancedSettingOsgOpenApiVo noAnswerTime(Integer noAnswerTime) { + this.noAnswerTime = noAnswerTime; + return this; + } + + /** + * The no answer time of telephone number. + * @return noAnswerTime + */ + @ApiModelProperty(value = "The no answer time of telephone number.") + + + public Integer getNoAnswerTime() { + return noAnswerTime; + } + + public void setNoAnswerTime(Integer noAnswerTime) { + this.noAnswerTime = noAnswerTime; + } + + public TelephoneNumberAdvancedSettingOsgOpenApiVo t38Support(Boolean t38Support) { + this.t38Support = t38Support; + return this; + } + + /** + * Whether to enable t38 Support. + * @return t38Support + */ + @ApiModelProperty(value = "Whether to enable t38 Support.") + + + public Boolean getT38Support() { + return t38Support; + } + + public void setT38Support(Boolean t38Support) { + this.t38Support = t38Support; + } + + public TelephoneNumberAdvancedSettingOsgOpenApiVo interfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + return this; + } + + /** + * InterfaceType should be a value as follows: 0: WAN; 1: LAN; 2: Virtual WAN. + * @return interfaceType + */ + @ApiModelProperty(required = true, value = "InterfaceType should be a value as follows: 0: WAN; 1: LAN; 2: Virtual WAN.") + @NotNull + + + public Integer getInterfaceType() { + return interfaceType; + } + + public void setInterfaceType(Integer interfaceType) { + this.interfaceType = interfaceType; + } + + public TelephoneNumberAdvancedSettingOsgOpenApiVo interfaceId(String interfaceId) { + this.interfaceId = interfaceId; + return this; + } + + /** + * Interface ID, for example: if interfaceType is LAN network, interfaceId should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. When parameter [interfaceType] is 0 or 1, parameter [interfaceId] should not be empty. + * @return interfaceId + */ + @ApiModelProperty(value = "Interface ID, for example: if interfaceType is LAN network, interfaceId should be LAN network ID. LAN Network can be created using 'Create LAN network' interface, and LAN Network ID can be obtained from 'Get LAN network list' interface. When parameter [interfaceType] is 0 or 1, parameter [interfaceId] should not be empty.") + + + public String getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public TelephoneNumberAdvancedSettingOsgOpenApiVo virtualWanId(String virtualWanId) { + this.virtualWanId = virtualWanId; + return this; + } + + /** + * Virtual WAN ID, can be obtained from 'Query virtual WAN list' interface. When parameter [interfaceType] is 2, parameter [virtualWanId] should not be empty. + * @return virtualWanId + */ + @ApiModelProperty(value = "Virtual WAN ID, can be obtained from 'Query virtual WAN list' interface. When parameter [interfaceType] is 2, parameter [virtualWanId] should not be empty.") + + + public String getVirtualWanId() { + return virtualWanId; + } + + public void setVirtualWanId(String virtualWanId) { + this.virtualWanId = virtualWanId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TelephoneNumberAdvancedSettingOsgOpenApiVo telephoneNumberAdvancedSettingOsgOpenApiVo = (TelephoneNumberAdvancedSettingOsgOpenApiVo) o; + return Objects.equals(this.locale, telephoneNumberAdvancedSettingOsgOpenApiVo.locale) && + Objects.equals(this.noAnswerTime, telephoneNumberAdvancedSettingOsgOpenApiVo.noAnswerTime) && + Objects.equals(this.t38Support, telephoneNumberAdvancedSettingOsgOpenApiVo.t38Support) && + Objects.equals(this.interfaceType, telephoneNumberAdvancedSettingOsgOpenApiVo.interfaceType) && + Objects.equals(this.interfaceId, telephoneNumberAdvancedSettingOsgOpenApiVo.interfaceId) && + Objects.equals(this.virtualWanId, telephoneNumberAdvancedSettingOsgOpenApiVo.virtualWanId); + } + + @Override + public int hashCode() { + return Objects.hash(locale, noAnswerTime, t38Support, interfaceType, interfaceId, virtualWanId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TelephoneNumberAdvancedSettingOsgOpenApiVo {\n"); + + sb.append(" locale: ").append(toIndentedString(locale)).append("\n"); + sb.append(" noAnswerTime: ").append(toIndentedString(noAnswerTime)).append("\n"); + sb.append(" t38Support: ").append(toIndentedString(t38Support)).append("\n"); + sb.append(" interfaceType: ").append(toIndentedString(interfaceType)).append("\n"); + sb.append(" interfaceId: ").append(toIndentedString(interfaceId)).append("\n"); + sb.append(" virtualWanId: ").append(toIndentedString(virtualWanId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithStatusOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithStatusOpenApiVo.java new file mode 100644 index 0000000..b373cf3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithStatusOpenApiVo.java @@ -0,0 +1,203 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * The list of telephone number. + */ +@ApiModel(description = "The list of telephone number.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class TelephoneNumberWithStatusOpenApiVo { + @JsonProperty("phoneNumberId") + private String phoneNumberId; + + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("prefix") + private String prefix; + + @JsonProperty("number") + private String number; + + @JsonProperty("status") + private Integer status; + + public TelephoneNumberWithStatusOpenApiVo phoneNumberId(String phoneNumberId) { + this.phoneNumberId = phoneNumberId; + return this; + } + + /** + * The phoneNumber ID of telephone number. + * @return phoneNumberId + */ + @ApiModelProperty(value = "The phoneNumber ID of telephone number.") + + + public String getPhoneNumberId() { + return phoneNumberId; + } + + public void setPhoneNumberId(String phoneNumberId) { + this.phoneNumberId = phoneNumberId; + } + + public TelephoneNumberWithStatusOpenApiVo profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * The profile ID of telephone number. + * @return profileId + */ + @ApiModelProperty(value = "The profile ID of telephone number.") + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public TelephoneNumberWithStatusOpenApiVo profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * The profile name of telephone number. + * @return profileName + */ + @ApiModelProperty(value = "The profile name of telephone number.") + + + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public TelephoneNumberWithStatusOpenApiVo prefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * The prefix of telephone number. + * @return prefix + */ + @ApiModelProperty(value = "The prefix of telephone number.") + + + public String getPrefix() { + return prefix; + } + + public void setPrefix(String prefix) { + this.prefix = prefix; + } + + public TelephoneNumberWithStatusOpenApiVo number(String number) { + this.number = number; + return this; + } + + /** + * The telephone number. + * @return number + */ + @ApiModelProperty(value = "The telephone number.") + + + public String getNumber() { + return number; + } + + public void setNumber(String number) { + this.number = number; + } + + public TelephoneNumberWithStatusOpenApiVo status(Integer status) { + this.status = status; + return this; + } + + /** + * The status of telephone number. + * @return status + */ + @ApiModelProperty(value = "The status of telephone number.") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TelephoneNumberWithStatusOpenApiVo telephoneNumberWithStatusOpenApiVo = (TelephoneNumberWithStatusOpenApiVo) o; + return Objects.equals(this.phoneNumberId, telephoneNumberWithStatusOpenApiVo.phoneNumberId) && + Objects.equals(this.profileId, telephoneNumberWithStatusOpenApiVo.profileId) && + Objects.equals(this.profileName, telephoneNumberWithStatusOpenApiVo.profileName) && + Objects.equals(this.prefix, telephoneNumberWithStatusOpenApiVo.prefix) && + Objects.equals(this.number, telephoneNumberWithStatusOpenApiVo.number) && + Objects.equals(this.status, telephoneNumberWithStatusOpenApiVo.status); + } + + @Override + public int hashCode() { + return Objects.hash(phoneNumberId, profileId, profileName, prefix, number, status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TelephoneNumberWithStatusOpenApiVo {\n"); + + sb.append(" phoneNumberId: ").append(toIndentedString(phoneNumberId)).append("\n"); + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithStatusVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithStatusVo.java new file mode 100644 index 0000000..5e13f11 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithStatusVo.java @@ -0,0 +1,228 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * The list of registration result. + */ +@ApiModel(description = "The list of registration result.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class TelephoneNumberWithStatusVo { + @JsonProperty("phoneNumberId") + private String phoneNumberId; + + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("profileName") + private String profileName; + + @JsonProperty("prefix") + private String prefix; + + @JsonProperty("number") + private String number; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("port") + private Integer port; + + public TelephoneNumberWithStatusVo phoneNumberId(String phoneNumberId) { + this.phoneNumberId = phoneNumberId; + return this; + } + + /** + * Get phoneNumberId + * @return phoneNumberId + */ + @ApiModelProperty(value = "") + + + public String getPhoneNumberId() { + return phoneNumberId; + } + + public void setPhoneNumberId(String phoneNumberId) { + this.phoneNumberId = phoneNumberId; + } + + public TelephoneNumberWithStatusVo profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Get profileId + * @return profileId + */ + @ApiModelProperty(value = "") + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public TelephoneNumberWithStatusVo profileName(String profileName) { + this.profileName = profileName; + return this; + } + + /** + * Get profileName + * @return profileName + */ + @ApiModelProperty(value = "") + + + public String getProfileName() { + return profileName; + } + + public void setProfileName(String profileName) { + this.profileName = profileName; + } + + public TelephoneNumberWithStatusVo prefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * Get prefix + * @return prefix + */ + @ApiModelProperty(value = "") + + + public String getPrefix() { + return prefix; + } + + public void setPrefix(String prefix) { + this.prefix = prefix; + } + + public TelephoneNumberWithStatusVo number(String number) { + this.number = number; + return this; + } + + /** + * Get number + * @return number + */ + @ApiModelProperty(value = "") + + + public String getNumber() { + return number; + } + + public void setNumber(String number) { + this.number = number; + } + + public TelephoneNumberWithStatusVo status(Integer status) { + this.status = status; + return this; + } + + /** + * Get status + * @return status + */ + @ApiModelProperty(value = "") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public TelephoneNumberWithStatusVo port(Integer port) { + this.port = port; + return this; + } + + /** + * Get port + * @return port + */ + @ApiModelProperty(value = "") + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TelephoneNumberWithStatusVo telephoneNumberWithStatusVo = (TelephoneNumberWithStatusVo) o; + return Objects.equals(this.phoneNumberId, telephoneNumberWithStatusVo.phoneNumberId) && + Objects.equals(this.profileId, telephoneNumberWithStatusVo.profileId) && + Objects.equals(this.profileName, telephoneNumberWithStatusVo.profileName) && + Objects.equals(this.prefix, telephoneNumberWithStatusVo.prefix) && + Objects.equals(this.number, telephoneNumberWithStatusVo.number) && + Objects.equals(this.status, telephoneNumberWithStatusVo.status) && + Objects.equals(this.port, telephoneNumberWithStatusVo.port); + } + + @Override + public int hashCode() { + return Objects.hash(phoneNumberId, profileId, profileName, prefix, number, status, port); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TelephoneNumberWithStatusVo {\n"); + + sb.append(" phoneNumberId: ").append(toIndentedString(phoneNumberId)).append("\n"); + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" profileName: ").append(toIndentedString(profileName)).append("\n"); + sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithoutStatusOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithoutStatusOpenApiVo.java new file mode 100644 index 0000000..671694e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TelephoneNumberWithoutStatusOpenApiVo.java @@ -0,0 +1,131 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * The list of telephone number without status. + */ +@ApiModel(description = "The list of telephone number without status.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class TelephoneNumberWithoutStatusOpenApiVo { + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("prefix") + private String prefix; + + @JsonProperty("number") + private String number; + + public TelephoneNumberWithoutStatusOpenApiVo profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Provider profile ID used to bind phone numbers. + * @return profileId + */ + @ApiModelProperty(required = true, value = "Provider profile ID used to bind phone numbers.") + @NotNull + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public TelephoneNumberWithoutStatusOpenApiVo prefix(String prefix) { + this.prefix = prefix; + return this; + } + + /** + * The prefix of telephone number. When the provider in the provider profile is 1&1 Internet, Vodafone/Arcor, QSC/Q-DSL home, or Telekom, parameter [prefix] is required. When the provider is easybell, parameter [prefix] value is always 0049. In other cases, parameter [prefix] value is always null. + * @return prefix + */ + @ApiModelProperty(value = "The prefix of telephone number. When the provider in the provider profile is 1&1 Internet, Vodafone/Arcor, QSC/Q-DSL home, or Telekom, parameter [prefix] is required. When the provider is easybell, parameter [prefix] value is always 0049. In other cases, parameter [prefix] value is always null.") + + + public String getPrefix() { + return prefix; + } + + public void setPrefix(String prefix) { + this.prefix = prefix; + } + + public TelephoneNumberWithoutStatusOpenApiVo number(String number) { + this.number = number; + return this; + } + + /** + * The number of telephone number. + * @return number + */ + @ApiModelProperty(required = true, value = "The number of telephone number.") + @NotNull + + + public String getNumber() { + return number; + } + + public void setNumber(String number) { + this.number = number; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TelephoneNumberWithoutStatusOpenApiVo telephoneNumberWithoutStatusOpenApiVo = (TelephoneNumberWithoutStatusOpenApiVo) o; + return Objects.equals(this.profileId, telephoneNumberWithoutStatusOpenApiVo.profileId) && + Objects.equals(this.prefix, telephoneNumberWithoutStatusOpenApiVo.prefix) && + Objects.equals(this.number, telephoneNumberWithoutStatusOpenApiVo.number); + } + + @Override + public int hashCode() { + return Objects.hash(profileId, prefix, number); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TelephoneNumberWithoutStatusOpenApiVo {\n"); + + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" prefix: ").append(toIndentedString(prefix)).append("\n"); + sb.append(" number: ").append(toIndentedString(number)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TermsOfServiceUrlVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TermsOfServiceUrlVo.java new file mode 100644 index 0000000..1d15a67 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TermsOfServiceUrlVo.java @@ -0,0 +1,107 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * Terms of service url texts, match the termsOfServiceText and turn the matching characters into an openable link, Up to 3 entries are allowed for the list. + */ +@ApiModel(description = "Terms of service url texts, match the termsOfServiceText and turn the matching characters into an openable link, Up to 3 entries are allowed for the list.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class TermsOfServiceUrlVo { + @JsonProperty("content") + private String content; + + @JsonProperty("text") + private String text; + + public TermsOfServiceUrlVo content(String content) { + this.content = content; + return this; + } + + /** + * Terms of service URL content. + * @return content + */ + @ApiModelProperty(required = true, value = "Terms of service URL content.") + @NotNull + + + public String getContent() { + return content; + } + + public void setContent(String content) { + this.content = content; + } + + public TermsOfServiceUrlVo text(String text) { + this.text = text; + return this; + } + + /** + * Terms of service URL title. + * @return text + */ + @ApiModelProperty(required = true, value = "Terms of service URL title.") + @NotNull + +@Pattern(regexp="^.{1,100}$") + public String getText() { + return text; + } + + public void setText(String text) { + this.text = text; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TermsOfServiceUrlVo termsOfServiceUrlVo = (TermsOfServiceUrlVo) o; + return Objects.equals(this.content, termsOfServiceUrlVo.content) && + Objects.equals(this.text, termsOfServiceUrlVo.text); + } + + @Override + public int hashCode() { + return Objects.hash(content, text); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TermsOfServiceUrlVo {\n"); + + sb.append(" content: ").append(toIndentedString(content)).append("\n"); + sb.append(" text: ").append(toIndentedString(text)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TimeRangeProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TimeRangeProfileOpenApiVo.java new file mode 100644 index 0000000..55624a8 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TimeRangeProfileOpenApiVo.java @@ -0,0 +1,190 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * TimeRangeProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class TimeRangeProfileOpenApiVo { + @JsonProperty("profileId") + private String profileId; + + @JsonProperty("name") + private String name; + + @JsonProperty("dayMode") + private Integer dayMode; + + @JsonProperty("customDayMode") + private CustomDayModeOpenApiVo customDayMode; + + @JsonProperty("timeList") + @Valid + private List timeList = null; + + public TimeRangeProfileOpenApiVo profileId(String profileId) { + this.profileId = profileId; + return this; + } + + /** + * Time range profile ID + * @return profileId + */ + @ApiModelProperty(value = "Time range profile ID") + + + public String getProfileId() { + return profileId; + } + + public void setProfileId(String profileId) { + this.profileId = profileId; + } + + public TimeRangeProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Time range profile name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "Time range profile name should contain 1 to 64 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public TimeRangeProfileOpenApiVo dayMode(Integer dayMode) { + this.dayMode = dayMode; + return this; + } + + /** + * Time range profile day mode; It should be a value as follows: 0: Every Day, 1: Weekday, 2: Weekend, 3: Customized + * @return dayMode + */ + @ApiModelProperty(value = "Time range profile day mode; It should be a value as follows: 0: Every Day, 1: Weekday, 2: Weekend, 3: Customized") + + + public Integer getDayMode() { + return dayMode; + } + + public void setDayMode(Integer dayMode) { + this.dayMode = dayMode; + } + + public TimeRangeProfileOpenApiVo customDayMode(CustomDayModeOpenApiVo customDayMode) { + this.customDayMode = customDayMode; + return this; + } + + /** + * Get customDayMode + * @return customDayMode + */ + @ApiModelProperty(value = "") + + @Valid + + public CustomDayModeOpenApiVo getCustomDayMode() { + return customDayMode; + } + + public void setCustomDayMode(CustomDayModeOpenApiVo customDayMode) { + this.customDayMode = customDayMode; + } + + public TimeRangeProfileOpenApiVo timeList(List timeList) { + this.timeList = timeList; + return this; + } + + public TimeRangeProfileOpenApiVo addTimeListItem(ScheduleTimeOpenApiVo timeListItem) { + if (this.timeList == null) { + this.timeList = new ArrayList<>(); + } + this.timeList.add(timeListItem); + return this; + } + + /** + * Time range profile schedule time config + * @return timeList + */ + @ApiModelProperty(value = "Time range profile schedule time config") + + @Valid + + public List getTimeList() { + return timeList; + } + + public void setTimeList(List timeList) { + this.timeList = timeList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TimeRangeProfileOpenApiVo timeRangeProfileOpenApiVo = (TimeRangeProfileOpenApiVo) o; + return Objects.equals(this.profileId, timeRangeProfileOpenApiVo.profileId) && + Objects.equals(this.name, timeRangeProfileOpenApiVo.name) && + Objects.equals(this.dayMode, timeRangeProfileOpenApiVo.dayMode) && + Objects.equals(this.customDayMode, timeRangeProfileOpenApiVo.customDayMode) && + Objects.equals(this.timeList, timeRangeProfileOpenApiVo.timeList); + } + + @Override + public int hashCode() { + return Objects.hash(profileId, name, dayMode, customDayMode, timeList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TimeRangeProfileOpenApiVo {\n"); + + sb.append(" profileId: ").append(toIndentedString(profileId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" dayMode: ").append(toIndentedString(dayMode)).append("\n"); + sb.append(" customDayMode: ").append(toIndentedString(customDayMode)).append("\n"); + sb.append(" timeList: ").append(toIndentedString(timeList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TransmissionDragSortIndexOpenapiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TransmissionDragSortIndexOpenapiVo.java new file mode 100644 index 0000000..f93938f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/TransmissionDragSortIndexOpenapiVo.java @@ -0,0 +1,87 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * TransmissionDragSortIndexOpenapiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class TransmissionDragSortIndexOpenapiVo { + @JsonProperty("indexes") + @Valid + private Map indexes = new HashMap<>(); + + public TransmissionDragSortIndexOpenapiVo indexes(Map indexes) { + this.indexes = indexes; + return this; + } + + public TransmissionDragSortIndexOpenapiVo putIndexesItem(String key, Integer indexesItem) { + this.indexes.put(key, indexesItem); + return this; + } + + /** + * The order in which items take effect, this object is a Map, the key is item ID and the value is the index you want to set. + * @return indexes + */ + @ApiModelProperty(required = true, value = "The order in which items take effect, this object is a Map, the key is item ID and the value is the index you want to set.") + @NotNull + + + public Map getIndexes() { + return indexes; + } + + public void setIndexes(Map indexes) { + this.indexes = indexes; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + TransmissionDragSortIndexOpenapiVo transmissionDragSortIndexOpenapiVo = (TransmissionDragSortIndexOpenapiVo) o; + return Objects.equals(this.indexes, transmissionDragSortIndexOpenapiVo.indexes); + } + + @Override + public int hashCode() { + return Objects.hash(indexes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class TransmissionDragSortIndexOpenapiVo {\n"); + + sb.append(" indexes: ").append(toIndentedString(indexes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateMacAuthOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateMacAuthOpenApiVo.java new file mode 100644 index 0000000..65ff942 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateMacAuthOpenApiVo.java @@ -0,0 +1,239 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpdateMacAuthOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateMacAuthOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ssids") + @Valid + private List ssids = new ArrayList<>(); + + @JsonProperty("radiusProfileId") + private String radiusProfileId; + + @JsonProperty("mabEnable") + private Boolean mabEnable; + + @JsonProperty("macFormat") + private Integer macFormat; + + @JsonProperty("emptyPwdEnable") + private Boolean emptyPwdEnable; + + @JsonProperty("nasId") + private String nasId; + + public UpdateMacAuthOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * MAC-Based Authentication enable status + * @return enable + */ + @ApiModelProperty(required = true, value = "MAC-Based Authentication enable status") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public UpdateMacAuthOpenApiVo ssids(List ssids) { + this.ssids = ssids; + return this; + } + + public UpdateMacAuthOpenApiVo addSsidsItem(String ssidsItem) { + this.ssids.add(ssidsItem); + return this; + } + + /** + * SSID ID list with MAC-Based authentication configured. SSID can be created using 'Create new SSID' ('Create new SSID template') interface, and SSID ID can be obtained from 'Get SSID list' ('Get SSID template list') interface + * @return ssids + */ + @ApiModelProperty(required = true, value = "SSID ID list with MAC-Based authentication configured. SSID can be created using 'Create new SSID' ('Create new SSID template') interface, and SSID ID can be obtained from 'Get SSID list' ('Get SSID template list') interface") + @NotNull + + + public List getSsids() { + return ssids; + } + + public void setSsids(List ssids) { + this.ssids = ssids; + } + + public UpdateMacAuthOpenApiVo radiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + return this; + } + + /** + * This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface + * @return radiusProfileId + */ + @ApiModelProperty(value = "This field represents radius profile ID. Radius profile can be created using 'Create a new Radius profile' ('Create a new Radius profile template') interface, and radius profile ID can be obtained from 'Get Radius profile list' ('Get Radius profile template list') interface") + + + public String getRadiusProfileId() { + return radiusProfileId; + } + + public void setRadiusProfileId(String radiusProfileId) { + this.radiusProfileId = radiusProfileId; + } + + public UpdateMacAuthOpenApiVo mabEnable(Boolean mabEnable) { + this.mabEnable = mabEnable; + return this; + } + + /** + * MAB enable status + * @return mabEnable + */ + @ApiModelProperty(value = "MAB enable status") + + + public Boolean getMabEnable() { + return mabEnable; + } + + public void setMabEnable(Boolean mabEnable) { + this.mabEnable = mabEnable; + } + + public UpdateMacAuthOpenApiVo macFormat(Integer macFormat) { + this.macFormat = macFormat; + return this; + } + + /** + * Format of the MAC address. MacFormat should be a value as follows: 0: aabbccddeeff, 1: aa-bb-cc-dd-ee-ff, 2: aa:bb:cc:dd:ee:ff, 3: AABBCCDDEEFF, 4: AA-BB-CC-DD-EE-FF, 5: AA:BB:CC:DD:EE:FF + * @return macFormat + */ + @ApiModelProperty(value = "Format of the MAC address. MacFormat should be a value as follows: 0: aabbccddeeff, 1: aa-bb-cc-dd-ee-ff, 2: aa:bb:cc:dd:ee:ff, 3: AABBCCDDEEFF, 4: AA-BB-CC-DD-EE-FF, 5: AA:BB:CC:DD:EE:FF") + + + public Integer getMacFormat() { + return macFormat; + } + + public void setMacFormat(Integer macFormat) { + this.macFormat = macFormat; + } + + public UpdateMacAuthOpenApiVo emptyPwdEnable(Boolean emptyPwdEnable) { + this.emptyPwdEnable = emptyPwdEnable; + return this; + } + + /** + * Whether to enable empty password + * @return emptyPwdEnable + */ + @ApiModelProperty(value = "Whether to enable empty password") + + + public Boolean getEmptyPwdEnable() { + return emptyPwdEnable; + } + + public void setEmptyPwdEnable(Boolean emptyPwdEnable) { + this.emptyPwdEnable = emptyPwdEnable; + } + + public UpdateMacAuthOpenApiVo nasId(String nasId) { + this.nasId = nasId; + return this; + } + + /** + * NAS ID issued to AP. NasId should contain 1 to 64 characters + * @return nasId + */ + @ApiModelProperty(value = "NAS ID issued to AP. NasId should contain 1 to 64 characters") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getNasId() { + return nasId; + } + + public void setNasId(String nasId) { + this.nasId = nasId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateMacAuthOpenApiVo updateMacAuthOpenApiVo = (UpdateMacAuthOpenApiVo) o; + return Objects.equals(this.enable, updateMacAuthOpenApiVo.enable) && + Objects.equals(this.ssids, updateMacAuthOpenApiVo.ssids) && + Objects.equals(this.radiusProfileId, updateMacAuthOpenApiVo.radiusProfileId) && + Objects.equals(this.mabEnable, updateMacAuthOpenApiVo.mabEnable) && + Objects.equals(this.macFormat, updateMacAuthOpenApiVo.macFormat) && + Objects.equals(this.emptyPwdEnable, updateMacAuthOpenApiVo.emptyPwdEnable) && + Objects.equals(this.nasId, updateMacAuthOpenApiVo.nasId); + } + + @Override + public int hashCode() { + return Objects.hash(enable, ssids, radiusProfileId, mabEnable, macFormat, emptyPwdEnable, nasId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateMacAuthOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ssids: ").append(toIndentedString(ssids)).append("\n"); + sb.append(" radiusProfileId: ").append(toIndentedString(radiusProfileId)).append("\n"); + sb.append(" mabEnable: ").append(toIndentedString(mabEnable)).append("\n"); + sb.append(" macFormat: ").append(toIndentedString(macFormat)).append("\n"); + sb.append(" emptyPwdEnable: ").append(toIndentedString(emptyPwdEnable)).append("\n"); + sb.append(" nasId: ").append(toIndentedString(nasId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateRateLimitProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateRateLimitProfileOpenApiVo.java new file mode 100644 index 0000000..9888bde --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateRateLimitProfileOpenApiVo.java @@ -0,0 +1,181 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * UpdateRateLimitProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateRateLimitProfileOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("downLimitEnable") + private Boolean downLimitEnable; + + @JsonProperty("downLimit") + private Long downLimit; + + @JsonProperty("upLimitEnable") + private Boolean upLimitEnable; + + @JsonProperty("upLimit") + private Long upLimit; + + public UpdateRateLimitProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Rate limit profile name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Rate limit profile name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateRateLimitProfileOpenApiVo downLimitEnable(Boolean downLimitEnable) { + this.downLimitEnable = downLimitEnable; + return this; + } + + /** + * Whether to enable download limit + * @return downLimitEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable download limit") + @NotNull + + + public Boolean getDownLimitEnable() { + return downLimitEnable; + } + + public void setDownLimitEnable(Boolean downLimitEnable) { + this.downLimitEnable = downLimitEnable; + } + + public UpdateRateLimitProfileOpenApiVo downLimit(Long downLimit) { + this.downLimit = downLimit; + return this; + } + + /** + * Download limit(Unit: Kbps), this field is required when parameter [downLimitEnable] is true. + * @return downLimit + */ + @ApiModelProperty(value = "Download limit(Unit: Kbps), this field is required when parameter [downLimitEnable] is true.") + + + public Long getDownLimit() { + return downLimit; + } + + public void setDownLimit(Long downLimit) { + this.downLimit = downLimit; + } + + public UpdateRateLimitProfileOpenApiVo upLimitEnable(Boolean upLimitEnable) { + this.upLimitEnable = upLimitEnable; + return this; + } + + /** + * Whether to enable upload limit + * @return upLimitEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable upload limit") + @NotNull + + + public Boolean getUpLimitEnable() { + return upLimitEnable; + } + + public void setUpLimitEnable(Boolean upLimitEnable) { + this.upLimitEnable = upLimitEnable; + } + + public UpdateRateLimitProfileOpenApiVo upLimit(Long upLimit) { + this.upLimit = upLimit; + return this; + } + + /** + * Upload limit(Unit: Kbps), this field is required when parameter [upLimitEnable] is true. + * @return upLimit + */ + @ApiModelProperty(value = "Upload limit(Unit: Kbps), this field is required when parameter [upLimitEnable] is true.") + + + public Long getUpLimit() { + return upLimit; + } + + public void setUpLimit(Long upLimit) { + this.upLimit = upLimit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateRateLimitProfileOpenApiVo updateRateLimitProfileOpenApiVo = (UpdateRateLimitProfileOpenApiVo) o; + return Objects.equals(this.name, updateRateLimitProfileOpenApiVo.name) && + Objects.equals(this.downLimitEnable, updateRateLimitProfileOpenApiVo.downLimitEnable) && + Objects.equals(this.downLimit, updateRateLimitProfileOpenApiVo.downLimit) && + Objects.equals(this.upLimitEnable, updateRateLimitProfileOpenApiVo.upLimitEnable) && + Objects.equals(this.upLimit, updateRateLimitProfileOpenApiVo.upLimit); + } + + @Override + public int hashCode() { + return Objects.hash(name, downLimitEnable, downLimit, upLimitEnable, upLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateRateLimitProfileOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" downLimitEnable: ").append(toIndentedString(downLimitEnable)).append("\n"); + sb.append(" downLimit: ").append(toIndentedString(downLimit)).append("\n"); + sb.append(" upLimitEnable: ").append(toIndentedString(upLimitEnable)).append("\n"); + sb.append(" upLimit: ").append(toIndentedString(upLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidBasicConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidBasicConfigOpenApiVo.java new file mode 100644 index 0000000..6b306d0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidBasicConfigOpenApiVo.java @@ -0,0 +1,442 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * UpdateSsidBasicConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateSsidBasicConfigOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("band") + private Integer band; + + @JsonProperty("guestNetEnable") + private Boolean guestNetEnable; + + @JsonProperty("security") + private Integer security; + + @JsonProperty("broadcast") + private Boolean broadcast; + + @JsonProperty("vlanEnable") + private Boolean vlanEnable; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("pskSetting") + private Object pskSetting; + + @JsonProperty("entSetting") + private Object entSetting; + + @JsonProperty("ppskSetting") + private Object ppskSetting; + + @JsonProperty("mloEnable") + private Boolean mloEnable; + + @JsonProperty("pmfMode") + private Integer pmfMode; + + @JsonProperty("enable11r") + private Boolean enable11r; + + @JsonProperty("hidePwd") + private Boolean hidePwd; + + @JsonProperty("greEnable") + private Boolean greEnable; + + public UpdateSsidBasicConfigOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * SSID name. It should contain 1 to 32 UTF-8 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "SSID name. It should contain 1 to 32 UTF-8 characters.") + @NotNull + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateSsidBasicConfigOpenApiVo band(Integer band) { + this.band = band; + return this; + } + + /** + * SSID band. The lowest bit indicates whether 2.4G is included; the second lowest bit indicates whether 5G is included; the third lowest bit indicates whether 6G is included; 1 means included while 0 means not included. For example, 7(111) means that 2G/5G/6G are enabled; 1(001) means that 2G is enabled. (When 5G is included,it means 5G/5G1/5G2 are enabled.) + * @return band + */ + @ApiModelProperty(required = true, value = "SSID band. The lowest bit indicates whether 2.4G is included; the second lowest bit indicates whether 5G is included; the third lowest bit indicates whether 6G is included; 1 means included while 0 means not included. For example, 7(111) means that 2G/5G/6G are enabled; 1(001) means that 2G is enabled. (When 5G is included,it means 5G/5G1/5G2 are enabled.)") + @NotNull + + + public Integer getBand() { + return band; + } + + public void setBand(Integer band) { + this.band = band; + } + + public UpdateSsidBasicConfigOpenApiVo guestNetEnable(Boolean guestNetEnable) { + this.guestNetEnable = guestNetEnable; + return this; + } + + /** + * SSID guest network config status. True: enable, false: disable. + * @return guestNetEnable + */ + @ApiModelProperty(required = true, value = "SSID guest network config status. True: enable, false: disable.") + @NotNull + + + public Boolean getGuestNetEnable() { + return guestNetEnable; + } + + public void setGuestNetEnable(Boolean guestNetEnable) { + this.guestNetEnable = guestNetEnable; + } + + public UpdateSsidBasicConfigOpenApiVo security(Integer security) { + this.security = security; + return this; + } + + /** + * SSID security mode; Security should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal; 4: PPSK without RADIUS; 5: PPSK with RADIUS. + * @return security + */ + @ApiModelProperty(required = true, value = "SSID security mode; Security should be a value as follows: 0: None; 2: WPA-Enterprise; 3: WPA-Personal; 4: PPSK without RADIUS; 5: PPSK with RADIUS.") + @NotNull + + + public Integer getSecurity() { + return security; + } + + public void setSecurity(Integer security) { + this.security = security; + } + + public UpdateSsidBasicConfigOpenApiVo broadcast(Boolean broadcast) { + this.broadcast = broadcast; + return this; + } + + /** + * SSID broadcast config status. True: enable, false: disable. + * @return broadcast + */ + @ApiModelProperty(required = true, value = "SSID broadcast config status. True: enable, false: disable.") + @NotNull + + + public Boolean getBroadcast() { + return broadcast; + } + + public void setBroadcast(Boolean broadcast) { + this.broadcast = broadcast; + } + + public UpdateSsidBasicConfigOpenApiVo vlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + return this; + } + + /** + * SSID VLAN config status. True: enable, false: disable. + * @return vlanEnable + */ + @ApiModelProperty(required = true, value = "SSID VLAN config status. True: enable, false: disable.") + @NotNull + + + public Boolean getVlanEnable() { + return vlanEnable; + } + + public void setVlanEnable(Boolean vlanEnable) { + this.vlanEnable = vlanEnable; + } + + public UpdateSsidBasicConfigOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * SSID VLAN ID. This field is required when Parameter [vlanEnable] is true; It should be within the range of 1–4094. + * @return vlanId + */ + @ApiModelProperty(value = "SSID VLAN ID. This field is required when Parameter [vlanEnable] is true; It should be within the range of 1–4094.") + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public UpdateSsidBasicConfigOpenApiVo pskSetting(Object pskSetting) { + this.pskSetting = pskSetting; + return this; + } + + /** + * Get pskSetting + * @return pskSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getPskSetting() { + return pskSetting; + } + + public void setPskSetting(Object pskSetting) { + this.pskSetting = pskSetting; + } + + public UpdateSsidBasicConfigOpenApiVo entSetting(Object entSetting) { + this.entSetting = entSetting; + return this; + } + + /** + * Get entSetting + * @return entSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getEntSetting() { + return entSetting; + } + + public void setEntSetting(Object entSetting) { + this.entSetting = entSetting; + } + + public UpdateSsidBasicConfigOpenApiVo ppskSetting(Object ppskSetting) { + this.ppskSetting = ppskSetting; + return this; + } + + /** + * Get ppskSetting + * @return ppskSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getPpskSetting() { + return ppskSetting; + } + + public void setPpskSetting(Object ppskSetting) { + this.ppskSetting = ppskSetting; + } + + public UpdateSsidBasicConfigOpenApiVo mloEnable(Boolean mloEnable) { + this.mloEnable = mloEnable; + return this; + } + + /** + * SSID MLO config status. True: enable, false: disable. + * @return mloEnable + */ + @ApiModelProperty(required = true, value = "SSID MLO config status. True: enable, false: disable.") + @NotNull + + + public Boolean getMloEnable() { + return mloEnable; + } + + public void setMloEnable(Boolean mloEnable) { + this.mloEnable = mloEnable; + } + + public UpdateSsidBasicConfigOpenApiVo pmfMode(Integer pmfMode) { + this.pmfMode = pmfMode; + return this; + } + + /** + * SSID PMF mode. It should be a value as follows: 1: Mandatory; 2: Capable; 3: Disable. + * @return pmfMode + */ + @ApiModelProperty(required = true, value = "SSID PMF mode. It should be a value as follows: 1: Mandatory; 2: Capable; 3: Disable.") + @NotNull + + + public Integer getPmfMode() { + return pmfMode; + } + + public void setPmfMode(Integer pmfMode) { + this.pmfMode = pmfMode; + } + + public UpdateSsidBasicConfigOpenApiVo enable11r(Boolean enable11r) { + this.enable11r = enable11r; + return this; + } + + /** + * SSID 802.11r config status. True: enable, false: disable. + * @return enable11r + */ + @ApiModelProperty(required = true, value = "SSID 802.11r config status. True: enable, false: disable.") + @NotNull + + + public Boolean getEnable11r() { + return enable11r; + } + + public void setEnable11r(Boolean enable11r) { + this.enable11r = enable11r; + } + + public UpdateSsidBasicConfigOpenApiVo hidePwd(Boolean hidePwd) { + this.hidePwd = hidePwd; + return this; + } + + /** + * If this field is true, the SSID password will be hidden. + * @return hidePwd + */ + @ApiModelProperty(required = true, value = "If this field is true, the SSID password will be hidden.") + @NotNull + + + public Boolean getHidePwd() { + return hidePwd; + } + + public void setHidePwd(Boolean hidePwd) { + this.hidePwd = hidePwd; + } + + public UpdateSsidBasicConfigOpenApiVo greEnable(Boolean greEnable) { + this.greEnable = greEnable; + return this; + } + + /** + * SSID EoGre Tunnel config status. True: enable, false: disable; This configuration can be enabled only when the [VPN - EoGre Tunnel] global config is enabled(This configuration applies to the Pro Site of the Omada Pro Controller only). + * @return greEnable + */ + @ApiModelProperty(required = true, value = "SSID EoGre Tunnel config status. True: enable, false: disable; This configuration can be enabled only when the [VPN - EoGre Tunnel] global config is enabled(This configuration applies to the Pro Site of the Omada Pro Controller only).") + @NotNull + + + public Boolean getGreEnable() { + return greEnable; + } + + public void setGreEnable(Boolean greEnable) { + this.greEnable = greEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSsidBasicConfigOpenApiVo updateSsidBasicConfigOpenApiVo = (UpdateSsidBasicConfigOpenApiVo) o; + return Objects.equals(this.name, updateSsidBasicConfigOpenApiVo.name) && + Objects.equals(this.band, updateSsidBasicConfigOpenApiVo.band) && + Objects.equals(this.guestNetEnable, updateSsidBasicConfigOpenApiVo.guestNetEnable) && + Objects.equals(this.security, updateSsidBasicConfigOpenApiVo.security) && + Objects.equals(this.broadcast, updateSsidBasicConfigOpenApiVo.broadcast) && + Objects.equals(this.vlanEnable, updateSsidBasicConfigOpenApiVo.vlanEnable) && + Objects.equals(this.vlanId, updateSsidBasicConfigOpenApiVo.vlanId) && + Objects.equals(this.pskSetting, updateSsidBasicConfigOpenApiVo.pskSetting) && + Objects.equals(this.entSetting, updateSsidBasicConfigOpenApiVo.entSetting) && + Objects.equals(this.ppskSetting, updateSsidBasicConfigOpenApiVo.ppskSetting) && + Objects.equals(this.mloEnable, updateSsidBasicConfigOpenApiVo.mloEnable) && + Objects.equals(this.pmfMode, updateSsidBasicConfigOpenApiVo.pmfMode) && + Objects.equals(this.enable11r, updateSsidBasicConfigOpenApiVo.enable11r) && + Objects.equals(this.hidePwd, updateSsidBasicConfigOpenApiVo.hidePwd) && + Objects.equals(this.greEnable, updateSsidBasicConfigOpenApiVo.greEnable); + } + + @Override + public int hashCode() { + return Objects.hash(name, band, guestNetEnable, security, broadcast, vlanEnable, vlanId, pskSetting, entSetting, ppskSetting, mloEnable, pmfMode, enable11r, hidePwd, greEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSsidBasicConfigOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" band: ").append(toIndentedString(band)).append("\n"); + sb.append(" guestNetEnable: ").append(toIndentedString(guestNetEnable)).append("\n"); + sb.append(" security: ").append(toIndentedString(security)).append("\n"); + sb.append(" broadcast: ").append(toIndentedString(broadcast)).append("\n"); + sb.append(" vlanEnable: ").append(toIndentedString(vlanEnable)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" pskSetting: ").append(toIndentedString(pskSetting)).append("\n"); + sb.append(" entSetting: ").append(toIndentedString(entSetting)).append("\n"); + sb.append(" ppskSetting: ").append(toIndentedString(ppskSetting)).append("\n"); + sb.append(" mloEnable: ").append(toIndentedString(mloEnable)).append("\n"); + sb.append(" pmfMode: ").append(toIndentedString(pmfMode)).append("\n"); + sb.append(" enable11r: ").append(toIndentedString(enable11r)).append("\n"); + sb.append(" hidePwd: ").append(toIndentedString(hidePwd)).append("\n"); + sb.append(" greEnable: ").append(toIndentedString(greEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidDhcpOptionOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidDhcpOptionOpenApiVo.java new file mode 100644 index 0000000..1011b12 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidDhcpOptionOpenApiVo.java @@ -0,0 +1,200 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpdateSsidDhcpOptionOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateSsidDhcpOptionOpenApiVo { + @JsonProperty("dhcpEnable") + private Boolean dhcpEnable; + + @JsonProperty("format") + private Integer format; + + @JsonProperty("delimiter") + private String delimiter; + + @JsonProperty("circuitId") + @Valid + private List circuitId = null; + + @JsonProperty("remoteId") + @Valid + private List remoteId = null; + + public UpdateSsidDhcpOptionOpenApiVo dhcpEnable(Boolean dhcpEnable) { + this.dhcpEnable = dhcpEnable; + return this; + } + + /** + * SSID DHCP Option 82 global config status. True: enable, false: disable. + * @return dhcpEnable + */ + @ApiModelProperty(required = true, value = "SSID DHCP Option 82 global config status. True: enable, false: disable.") + @NotNull + + + public Boolean getDhcpEnable() { + return dhcpEnable; + } + + public void setDhcpEnable(Boolean dhcpEnable) { + this.dhcpEnable = dhcpEnable; + } + + public UpdateSsidDhcpOptionOpenApiVo format(Integer format) { + this.format = format; + return this; + } + + /** + * SSID DHCP Option 82 format config; It should be a value as follows: 0: ASCII; 1: Binary. + * @return format + */ + @ApiModelProperty(value = "SSID DHCP Option 82 format config; It should be a value as follows: 0: ASCII; 1: Binary.") + + + public Integer getFormat() { + return format; + } + + public void setFormat(Integer format) { + this.format = format; + } + + public UpdateSsidDhcpOptionOpenApiVo delimiter(String delimiter) { + this.delimiter = delimiter; + return this; + } + + /** + * SSID DHCP Option 82 delimiter config (A single arbitrary ASCII character is acceptable). + * @return delimiter + */ + @ApiModelProperty(value = "SSID DHCP Option 82 delimiter config (A single arbitrary ASCII character is acceptable).") + +@Pattern(regexp="^[\\040-\\0176]$") + public String getDelimiter() { + return delimiter; + } + + public void setDelimiter(String delimiter) { + this.delimiter = delimiter; + } + + public UpdateSsidDhcpOptionOpenApiVo circuitId(List circuitId) { + this.circuitId = circuitId; + return this; + } + + public UpdateSsidDhcpOptionOpenApiVo addCircuitIdItem(Integer circuitIdItem) { + if (this.circuitId == null) { + this.circuitId = new ArrayList<>(); + } + this.circuitId.add(circuitIdItem); + return this; + } + + /** + * SSID DHCP Option 82 Circuit-ID config. Circuit-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name. + * @return circuitId + */ + @ApiModelProperty(value = "SSID DHCP Option 82 Circuit-ID config. Circuit-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name.") + + + public List getCircuitId() { + return circuitId; + } + + public void setCircuitId(List circuitId) { + this.circuitId = circuitId; + } + + public UpdateSsidDhcpOptionOpenApiVo remoteId(List remoteId) { + this.remoteId = remoteId; + return this; + } + + public UpdateSsidDhcpOptionOpenApiVo addRemoteIdItem(Integer remoteIdItem) { + if (this.remoteId == null) { + this.remoteId = new ArrayList<>(); + } + this.remoteId.add(remoteIdItem); + return this; + } + + /** + * SSID DHCP Option 82 Remote-ID config. Remote-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name. + * @return remoteId + */ + @ApiModelProperty(value = "SSID DHCP Option 82 Remote-ID config. Remote-ID is an array formed in the selected order, with each array element corresponding to the following enumeration values: 1: VLAN-ID; 2: AP Radio Mac-Address; 3: SSID-Type; 4: SSID-Name; 5: AP Ethernet MAC address; 6: Site-Name. As in the example [3,1,2,4], the following enumeration values are selected sequentially on the page: SSID-Type, VLAN-ID, AP Radio Mac-Address and SSID-Name.") + + + public List getRemoteId() { + return remoteId; + } + + public void setRemoteId(List remoteId) { + this.remoteId = remoteId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSsidDhcpOptionOpenApiVo updateSsidDhcpOptionOpenApiVo = (UpdateSsidDhcpOptionOpenApiVo) o; + return Objects.equals(this.dhcpEnable, updateSsidDhcpOptionOpenApiVo.dhcpEnable) && + Objects.equals(this.format, updateSsidDhcpOptionOpenApiVo.format) && + Objects.equals(this.delimiter, updateSsidDhcpOptionOpenApiVo.delimiter) && + Objects.equals(this.circuitId, updateSsidDhcpOptionOpenApiVo.circuitId) && + Objects.equals(this.remoteId, updateSsidDhcpOptionOpenApiVo.remoteId); + } + + @Override + public int hashCode() { + return Objects.hash(dhcpEnable, format, delimiter, circuitId, remoteId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSsidDhcpOptionOpenApiVo {\n"); + + sb.append(" dhcpEnable: ").append(toIndentedString(dhcpEnable)).append("\n"); + sb.append(" format: ").append(toIndentedString(format)).append("\n"); + sb.append(" delimiter: ").append(toIndentedString(delimiter)).append("\n"); + sb.append(" circuitId: ").append(toIndentedString(circuitId)).append("\n"); + sb.append(" remoteId: ").append(toIndentedString(remoteId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidMacFilterOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidMacFilterOpenApiVo.java new file mode 100644 index 0000000..53343c1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidMacFilterOpenApiVo.java @@ -0,0 +1,165 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpdateSsidMacFilterOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateSsidMacFilterOpenApiVo { + @JsonProperty("macFilterEnable") + private Boolean macFilterEnable; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("macFilterId") + private String macFilterId; + + @JsonProperty("ouiProfileIdList") + @Valid + private List ouiProfileIdList = null; + + public UpdateSsidMacFilterOpenApiVo macFilterEnable(Boolean macFilterEnable) { + this.macFilterEnable = macFilterEnable; + return this; + } + + /** + * SSID MAC Filter global config status. True: enable, false: disable. + * @return macFilterEnable + */ + @ApiModelProperty(required = true, value = "SSID MAC Filter global config status. True: enable, false: disable.") + @NotNull + + + public Boolean getMacFilterEnable() { + return macFilterEnable; + } + + public void setMacFilterEnable(Boolean macFilterEnable) { + this.macFilterEnable = macFilterEnable; + } + + public UpdateSsidMacFilterOpenApiVo policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * SSID MAC Filter policy config mode; It should be a value as follows: 0: Deny List, 1: Allow List. + * @return policy + */ + @ApiModelProperty(value = "SSID MAC Filter policy config mode; It should be a value as follows: 0: Deny List, 1: Allow List.") + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public UpdateSsidMacFilterOpenApiVo macFilterId(String macFilterId) { + this.macFilterId = macFilterId; + return this; + } + + /** + * This field represents MAC Group Profile ID. MAC Group Profile can be created using Create a new group profile interface, and MAC Group Profile ID can be obtained from Get group profile list by type interface. + * @return macFilterId + */ + @ApiModelProperty(value = "This field represents MAC Group Profile ID. MAC Group Profile can be created using Create a new group profile interface, and MAC Group Profile ID can be obtained from Get group profile list by type interface.") + + + public String getMacFilterId() { + return macFilterId; + } + + public void setMacFilterId(String macFilterId) { + this.macFilterId = macFilterId; + } + + public UpdateSsidMacFilterOpenApiVo ouiProfileIdList(List ouiProfileIdList) { + this.ouiProfileIdList = ouiProfileIdList; + return this; + } + + public UpdateSsidMacFilterOpenApiVo addOuiProfileIdListItem(String ouiProfileIdListItem) { + if (this.ouiProfileIdList == null) { + this.ouiProfileIdList = new ArrayList<>(); + } + this.ouiProfileIdList.add(ouiProfileIdListItem); + return this; + } + + /** + * This field represents OUI Profile ID list. OUI Profile can be created using Create OUI profile interface, and OUI Profile ID can be obtained from Get OUI profile summary list interface(This configuration applies to the Pro Site of the Omada Pro Controller only). + * @return ouiProfileIdList + */ + @ApiModelProperty(value = "This field represents OUI Profile ID list. OUI Profile can be created using Create OUI profile interface, and OUI Profile ID can be obtained from Get OUI profile summary list interface(This configuration applies to the Pro Site of the Omada Pro Controller only).") + + + public List getOuiProfileIdList() { + return ouiProfileIdList; + } + + public void setOuiProfileIdList(List ouiProfileIdList) { + this.ouiProfileIdList = ouiProfileIdList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSsidMacFilterOpenApiVo updateSsidMacFilterOpenApiVo = (UpdateSsidMacFilterOpenApiVo) o; + return Objects.equals(this.macFilterEnable, updateSsidMacFilterOpenApiVo.macFilterEnable) && + Objects.equals(this.policy, updateSsidMacFilterOpenApiVo.policy) && + Objects.equals(this.macFilterId, updateSsidMacFilterOpenApiVo.macFilterId) && + Objects.equals(this.ouiProfileIdList, updateSsidMacFilterOpenApiVo.ouiProfileIdList); + } + + @Override + public int hashCode() { + return Objects.hash(macFilterEnable, policy, macFilterId, ouiProfileIdList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSsidMacFilterOpenApiVo {\n"); + + sb.append(" macFilterEnable: ").append(toIndentedString(macFilterEnable)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" macFilterId: ").append(toIndentedString(macFilterId)).append("\n"); + sb.append(" ouiProfileIdList: ").append(toIndentedString(ouiProfileIdList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidMultiCastOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidMultiCastOpenApiVo.java new file mode 100644 index 0000000..6f33147 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidMultiCastOpenApiVo.java @@ -0,0 +1,232 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * UpdateSsidMultiCastOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateSsidMultiCastOpenApiVo { + @JsonProperty("multiCastEnable") + private Boolean multiCastEnable; + + @JsonProperty("channelUtil") + private Integer channelUtil; + + @JsonProperty("arpCastEnable") + private Boolean arpCastEnable; + + @JsonProperty("ipv6CastEnable") + private Boolean ipv6CastEnable; + + @JsonProperty("filterEnable") + private Boolean filterEnable; + + @JsonProperty("filterMode") + private Integer filterMode; + + @JsonProperty("macGroupId") + private String macGroupId; + + public UpdateSsidMultiCastOpenApiVo multiCastEnable(Boolean multiCastEnable) { + this.multiCastEnable = multiCastEnable; + return this; + } + + /** + * Whether to enable multicast to unicast, which is disabled by default; true: enable, false: disable + * @return multiCastEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable multicast to unicast, which is disabled by default; true: enable, false: disable") + @NotNull + + + public Boolean getMultiCastEnable() { + return multiCastEnable; + } + + public void setMultiCastEnable(Boolean multiCastEnable) { + this.multiCastEnable = multiCastEnable; + } + + public UpdateSsidMultiCastOpenApiVo channelUtil(Integer channelUtil) { + this.channelUtil = channelUtil; + return this; + } + + /** + * This item indicates that when the channel utilization reaches the threshold, multicast will no longer be converted to unicast, the default threshold is 100, and the value should be within the range of 0-100. + * @return channelUtil + */ + @ApiModelProperty(required = true, value = "This item indicates that when the channel utilization reaches the threshold, multicast will no longer be converted to unicast, the default threshold is 100, and the value should be within the range of 0-100.") + @NotNull + + + public Integer getChannelUtil() { + return channelUtil; + } + + public void setChannelUtil(Integer channelUtil) { + this.channelUtil = channelUtil; + } + + public UpdateSsidMultiCastOpenApiVo arpCastEnable(Boolean arpCastEnable) { + this.arpCastEnable = arpCastEnable; + return this; + } + + /** + * Whether to enable ARP cast to unicast, which is disabled by default; true: enable, false: disable + * @return arpCastEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable ARP cast to unicast, which is disabled by default; true: enable, false: disable") + @NotNull + + + public Boolean getArpCastEnable() { + return arpCastEnable; + } + + public void setArpCastEnable(Boolean arpCastEnable) { + this.arpCastEnable = arpCastEnable; + } + + public UpdateSsidMultiCastOpenApiVo ipv6CastEnable(Boolean ipv6CastEnable) { + this.ipv6CastEnable = ipv6CastEnable; + return this; + } + + /** + * Whether to enable IPv6 multicast to unicast, which is enabled by default; true: enable, false: disable + * @return ipv6CastEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable IPv6 multicast to unicast, which is enabled by default; true: enable, false: disable") + @NotNull + + + public Boolean getIpv6CastEnable() { + return ipv6CastEnable; + } + + public void setIpv6CastEnable(Boolean ipv6CastEnable) { + this.ipv6CastEnable = ipv6CastEnable; + } + + public UpdateSsidMultiCastOpenApiVo filterEnable(Boolean filterEnable) { + this.filterEnable = filterEnable; + return this; + } + + /** + * Whether to enable the multicast filter switch, which is disabled by default; true: enable, false: disable + * @return filterEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable the multicast filter switch, which is disabled by default; true: enable, false: disable") + @NotNull + + + public Boolean getFilterEnable() { + return filterEnable; + } + + public void setFilterEnable(Boolean filterEnable) { + this.filterEnable = filterEnable; + } + + public UpdateSsidMultiCastOpenApiVo filterMode(Integer filterMode) { + this.filterMode = filterMode; + return this; + } + + /** + * This item indicates the status of the filtering protocol, the lowest low bit indicates whether IGMP is enabled, the second low bit indicates whether MDNS is enabled, and the third low bit indicates whether Others is enabled; 1 means enable while 0 means disable. For example, 7(111) means that all are enabled, 1(001) means that only IGMP is enabled. + * @return filterMode + */ + @ApiModelProperty(value = "This item indicates the status of the filtering protocol, the lowest low bit indicates whether IGMP is enabled, the second low bit indicates whether MDNS is enabled, and the third low bit indicates whether Others is enabled; 1 means enable while 0 means disable. For example, 7(111) means that all are enabled, 1(001) means that only IGMP is enabled. ") + + + public Integer getFilterMode() { + return filterMode; + } + + public void setFilterMode(Integer filterMode) { + this.filterMode = filterMode; + } + + public UpdateSsidMultiCastOpenApiVo macGroupId(String macGroupId) { + this.macGroupId = macGroupId; + return this; + } + + /** + * This field represents MAC Group Profile ID. MAC Group Profile can be created using Create a new group profile interface, and MAC Group Profile ID can be obtained from Get group profile list by type interface. + * @return macGroupId + */ + @ApiModelProperty(value = "This field represents MAC Group Profile ID. MAC Group Profile can be created using Create a new group profile interface, and MAC Group Profile ID can be obtained from Get group profile list by type interface.") + + + public String getMacGroupId() { + return macGroupId; + } + + public void setMacGroupId(String macGroupId) { + this.macGroupId = macGroupId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSsidMultiCastOpenApiVo updateSsidMultiCastOpenApiVo = (UpdateSsidMultiCastOpenApiVo) o; + return Objects.equals(this.multiCastEnable, updateSsidMultiCastOpenApiVo.multiCastEnable) && + Objects.equals(this.channelUtil, updateSsidMultiCastOpenApiVo.channelUtil) && + Objects.equals(this.arpCastEnable, updateSsidMultiCastOpenApiVo.arpCastEnable) && + Objects.equals(this.ipv6CastEnable, updateSsidMultiCastOpenApiVo.ipv6CastEnable) && + Objects.equals(this.filterEnable, updateSsidMultiCastOpenApiVo.filterEnable) && + Objects.equals(this.filterMode, updateSsidMultiCastOpenApiVo.filterMode) && + Objects.equals(this.macGroupId, updateSsidMultiCastOpenApiVo.macGroupId); + } + + @Override + public int hashCode() { + return Objects.hash(multiCastEnable, channelUtil, arpCastEnable, ipv6CastEnable, filterEnable, filterMode, macGroupId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSsidMultiCastOpenApiVo {\n"); + + sb.append(" multiCastEnable: ").append(toIndentedString(multiCastEnable)).append("\n"); + sb.append(" channelUtil: ").append(toIndentedString(channelUtil)).append("\n"); + sb.append(" arpCastEnable: ").append(toIndentedString(arpCastEnable)).append("\n"); + sb.append(" ipv6CastEnable: ").append(toIndentedString(ipv6CastEnable)).append("\n"); + sb.append(" filterEnable: ").append(toIndentedString(filterEnable)).append("\n"); + sb.append(" filterMode: ").append(toIndentedString(filterMode)).append("\n"); + sb.append(" macGroupId: ").append(toIndentedString(macGroupId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidRateControlOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidRateControlOpenApiVo.java new file mode 100644 index 0000000..86b7d55 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidRateControlOpenApiVo.java @@ -0,0 +1,457 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.math.BigDecimal; +import java.util.Objects; + +/** + * UpdateSsidRateControlOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateSsidRateControlOpenApiVo { + @JsonProperty("rate2gCtrlEnable") + private Boolean rate2gCtrlEnable; + + @JsonProperty("lowerDensity2g") + private BigDecimal lowerDensity2g; + + @JsonProperty("higherDensity2g") + private Integer higherDensity2g; + + @JsonProperty("cckRatesDisable") + private Boolean cckRatesDisable; + + @JsonProperty("clientRatesRequire2g") + private Boolean clientRatesRequire2g; + + @JsonProperty("sendBeacons2g") + private Boolean sendBeacons2g; + + @JsonProperty("rate5gCtrlEnable") + private Boolean rate5gCtrlEnable; + + @JsonProperty("lowerDensity5g") + private Integer lowerDensity5g; + + @JsonProperty("higherDensity5g") + private Integer higherDensity5g; + + @JsonProperty("clientRatesRequire5g") + private Boolean clientRatesRequire5g; + + @JsonProperty("sendBeacons5g") + private Boolean sendBeacons5g; + + @JsonProperty("rate6gCtrlEnable") + private Boolean rate6gCtrlEnable; + + @JsonProperty("lowerDensity6g") + private Integer lowerDensity6g; + + @JsonProperty("higherDensity6g") + private Integer higherDensity6g; + + @JsonProperty("clientRatesRequire6g") + private Boolean clientRatesRequire6g; + + @JsonProperty("sendBeacons6g") + private Boolean sendBeacons6g; + + public UpdateSsidRateControlOpenApiVo rate2gCtrlEnable(Boolean rate2gCtrlEnable) { + this.rate2gCtrlEnable = rate2gCtrlEnable; + return this; + } + + /** + * Whether to enable 2.4GHz Data Rate Control + * @return rate2gCtrlEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable 2.4GHz Data Rate Control") + @NotNull + + + public Boolean getRate2gCtrlEnable() { + return rate2gCtrlEnable; + } + + public void setRate2gCtrlEnable(Boolean rate2gCtrlEnable) { + this.rate2gCtrlEnable = rate2gCtrlEnable; + } + + public UpdateSsidRateControlOpenApiVo lowerDensity2g(BigDecimal lowerDensity2g) { + this.lowerDensity2g = lowerDensity2g; + return this; + } + + /** + * 2.4GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54]. + * @return lowerDensity2g + */ + @ApiModelProperty(value = "2.4GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [1, 2, 5.5, 6, 9, 11, 12, 18, 24, 36, 48, 54].") + + @Valid + + public BigDecimal getLowerDensity2g() { + return lowerDensity2g; + } + + public void setLowerDensity2g(BigDecimal lowerDensity2g) { + this.lowerDensity2g = lowerDensity2g; + } + + public UpdateSsidRateControlOpenApiVo higherDensity2g(Integer higherDensity2g) { + this.higherDensity2g = higherDensity2g; + return this; + } + + /** + * 2.4GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54]. + * @return higherDensity2g + */ + @ApiModelProperty(value = "2.4GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54].") + + + public Integer getHigherDensity2g() { + return higherDensity2g; + } + + public void setHigherDensity2g(Integer higherDensity2g) { + this.higherDensity2g = higherDensity2g; + } + + public UpdateSsidRateControlOpenApiVo cckRatesDisable(Boolean cckRatesDisable) { + this.cckRatesDisable = cckRatesDisable; + return this; + } + + /** + * Whether to disable 2G CCK Rates. If this field is true, Parameter [lowerDensity2g] can not enter the following values: [1, 2, 5.5, 11]. + * @return cckRatesDisable + */ + @ApiModelProperty(value = "Whether to disable 2G CCK Rates. If this field is true, Parameter [lowerDensity2g] can not enter the following values: [1, 2, 5.5, 11].") + + + public Boolean getCckRatesDisable() { + return cckRatesDisable; + } + + public void setCckRatesDisable(Boolean cckRatesDisable) { + this.cckRatesDisable = cckRatesDisable; + } + + public UpdateSsidRateControlOpenApiVo clientRatesRequire2g(Boolean clientRatesRequire2g) { + this.clientRatesRequire2g = clientRatesRequire2g; + return this; + } + + /** + * Whether to require clients to use rates at or above the specified value of 2.4GHz Data Rate Control. + * @return clientRatesRequire2g + */ + @ApiModelProperty(value = "Whether to require clients to use rates at or above the specified value of 2.4GHz Data Rate Control.") + + + public Boolean getClientRatesRequire2g() { + return clientRatesRequire2g; + } + + public void setClientRatesRequire2g(Boolean clientRatesRequire2g) { + this.clientRatesRequire2g = clientRatesRequire2g; + } + + public UpdateSsidRateControlOpenApiVo sendBeacons2g(Boolean sendBeacons2g) { + this.sendBeacons2g = sendBeacons2g; + return this; + } + + /** + * Whether to enable send beacons at 1Mbps of 2.4GHz Data Rate Control. + * @return sendBeacons2g + */ + @ApiModelProperty(value = "Whether to enable send beacons at 1Mbps of 2.4GHz Data Rate Control.") + + + public Boolean getSendBeacons2g() { + return sendBeacons2g; + } + + public void setSendBeacons2g(Boolean sendBeacons2g) { + this.sendBeacons2g = sendBeacons2g; + } + + public UpdateSsidRateControlOpenApiVo rate5gCtrlEnable(Boolean rate5gCtrlEnable) { + this.rate5gCtrlEnable = rate5gCtrlEnable; + return this; + } + + /** + * Whether to enable 5GHz Data Rate Control. + * @return rate5gCtrlEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable 5GHz Data Rate Control.") + @NotNull + + + public Boolean getRate5gCtrlEnable() { + return rate5gCtrlEnable; + } + + public void setRate5gCtrlEnable(Boolean rate5gCtrlEnable) { + this.rate5gCtrlEnable = rate5gCtrlEnable; + } + + public UpdateSsidRateControlOpenApiVo lowerDensity5g(Integer lowerDensity5g) { + this.lowerDensity5g = lowerDensity5g; + return this; + } + + /** + * 5GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [6, 9, 12, 18, 24, 36, 48, 54]. + * @return lowerDensity5g + */ + @ApiModelProperty(value = "5GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [6, 9, 12, 18, 24, 36, 48, 54].") + + + public Integer getLowerDensity5g() { + return lowerDensity5g; + } + + public void setLowerDensity5g(Integer lowerDensity5g) { + this.lowerDensity5g = lowerDensity5g; + } + + public UpdateSsidRateControlOpenApiVo higherDensity5g(Integer higherDensity5g) { + this.higherDensity5g = higherDensity5g; + return this; + } + + /** + * 5GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54]. + * @return higherDensity5g + */ + @ApiModelProperty(value = "5GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54].") + + + public Integer getHigherDensity5g() { + return higherDensity5g; + } + + public void setHigherDensity5g(Integer higherDensity5g) { + this.higherDensity5g = higherDensity5g; + } + + public UpdateSsidRateControlOpenApiVo clientRatesRequire5g(Boolean clientRatesRequire5g) { + this.clientRatesRequire5g = clientRatesRequire5g; + return this; + } + + /** + * Whether to require clients to use rates at or above the specified value of 5GHz Data Rate Control. + * @return clientRatesRequire5g + */ + @ApiModelProperty(value = "Whether to require clients to use rates at or above the specified value of 5GHz Data Rate Control.") + + + public Boolean getClientRatesRequire5g() { + return clientRatesRequire5g; + } + + public void setClientRatesRequire5g(Boolean clientRatesRequire5g) { + this.clientRatesRequire5g = clientRatesRequire5g; + } + + public UpdateSsidRateControlOpenApiVo sendBeacons5g(Boolean sendBeacons5g) { + this.sendBeacons5g = sendBeacons5g; + return this; + } + + /** + * Whether to enable send beacons at 6Mbps of 5GHz Data Rate Control. + * @return sendBeacons5g + */ + @ApiModelProperty(value = "Whether to enable send beacons at 6Mbps of 5GHz Data Rate Control.") + + + public Boolean getSendBeacons5g() { + return sendBeacons5g; + } + + public void setSendBeacons5g(Boolean sendBeacons5g) { + this.sendBeacons5g = sendBeacons5g; + } + + public UpdateSsidRateControlOpenApiVo rate6gCtrlEnable(Boolean rate6gCtrlEnable) { + this.rate6gCtrlEnable = rate6gCtrlEnable; + return this; + } + + /** + * Whether to enable 6GHz Data Rate Control. Note: This field will no longer be supported since Omada Controller V5.14.30. + * @return rate6gCtrlEnable + */ + @ApiModelProperty(value = "Whether to enable 6GHz Data Rate Control. Note: This field will no longer be supported since Omada Controller V5.14.30.") + + + public Boolean getRate6gCtrlEnable() { + return rate6gCtrlEnable; + } + + public void setRate6gCtrlEnable(Boolean rate6gCtrlEnable) { + this.rate6gCtrlEnable = rate6gCtrlEnable; + } + + public UpdateSsidRateControlOpenApiVo lowerDensity6g(Integer lowerDensity6g) { + this.lowerDensity6g = lowerDensity6g; + return this; + } + + /** + * 6GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [6, 9, 12, 18, 24, 36, 48, 54].Note: This field will no longer be supported since Omada Controller V5.14.30. + * @return lowerDensity6g + */ + @ApiModelProperty(value = "6GHz Data Rate Control lower density value(Unit: Mbps); It should be a value as follows: [6, 9, 12, 18, 24, 36, 48, 54].Note: This field will no longer be supported since Omada Controller V5.14.30.") + + + public Integer getLowerDensity6g() { + return lowerDensity6g; + } + + public void setLowerDensity6g(Integer lowerDensity6g) { + this.lowerDensity6g = lowerDensity6g; + } + + public UpdateSsidRateControlOpenApiVo higherDensity6g(Integer higherDensity6g) { + this.higherDensity6g = higherDensity6g; + return this; + } + + /** + * 6GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54].Note: This field will no longer be supported since Omada Controller V5.14.30. + * @return higherDensity6g + */ + @ApiModelProperty(value = "6GHz Data Rate Control higher density value(Unit: Mbps); It should be a value as follows: [54].Note: This field will no longer be supported since Omada Controller V5.14.30.") + + + public Integer getHigherDensity6g() { + return higherDensity6g; + } + + public void setHigherDensity6g(Integer higherDensity6g) { + this.higherDensity6g = higherDensity6g; + } + + public UpdateSsidRateControlOpenApiVo clientRatesRequire6g(Boolean clientRatesRequire6g) { + this.clientRatesRequire6g = clientRatesRequire6g; + return this; + } + + /** + * Whether to require clients to use rates at or above the specified value of 6GHz Data Rate Control. Note: This field will no longer be supported since Omada Controller V5.14.30. + * @return clientRatesRequire6g + */ + @ApiModelProperty(value = "Whether to require clients to use rates at or above the specified value of 6GHz Data Rate Control. Note: This field will no longer be supported since Omada Controller V5.14.30.") + + + public Boolean getClientRatesRequire6g() { + return clientRatesRequire6g; + } + + public void setClientRatesRequire6g(Boolean clientRatesRequire6g) { + this.clientRatesRequire6g = clientRatesRequire6g; + } + + public UpdateSsidRateControlOpenApiVo sendBeacons6g(Boolean sendBeacons6g) { + this.sendBeacons6g = sendBeacons6g; + return this; + } + + /** + * Whether to enable send beacons at 6Mbps of 6GHz Data Rate Control. Note: This field will no longer be supported since Omada Controller V5.14.30. + * @return sendBeacons6g + */ + @ApiModelProperty(value = "Whether to enable send beacons at 6Mbps of 6GHz Data Rate Control. Note: This field will no longer be supported since Omada Controller V5.14.30.") + + + public Boolean getSendBeacons6g() { + return sendBeacons6g; + } + + public void setSendBeacons6g(Boolean sendBeacons6g) { + this.sendBeacons6g = sendBeacons6g; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSsidRateControlOpenApiVo updateSsidRateControlOpenApiVo = (UpdateSsidRateControlOpenApiVo) o; + return Objects.equals(this.rate2gCtrlEnable, updateSsidRateControlOpenApiVo.rate2gCtrlEnable) && + Objects.equals(this.lowerDensity2g, updateSsidRateControlOpenApiVo.lowerDensity2g) && + Objects.equals(this.higherDensity2g, updateSsidRateControlOpenApiVo.higherDensity2g) && + Objects.equals(this.cckRatesDisable, updateSsidRateControlOpenApiVo.cckRatesDisable) && + Objects.equals(this.clientRatesRequire2g, updateSsidRateControlOpenApiVo.clientRatesRequire2g) && + Objects.equals(this.sendBeacons2g, updateSsidRateControlOpenApiVo.sendBeacons2g) && + Objects.equals(this.rate5gCtrlEnable, updateSsidRateControlOpenApiVo.rate5gCtrlEnable) && + Objects.equals(this.lowerDensity5g, updateSsidRateControlOpenApiVo.lowerDensity5g) && + Objects.equals(this.higherDensity5g, updateSsidRateControlOpenApiVo.higherDensity5g) && + Objects.equals(this.clientRatesRequire5g, updateSsidRateControlOpenApiVo.clientRatesRequire5g) && + Objects.equals(this.sendBeacons5g, updateSsidRateControlOpenApiVo.sendBeacons5g) && + Objects.equals(this.rate6gCtrlEnable, updateSsidRateControlOpenApiVo.rate6gCtrlEnable) && + Objects.equals(this.lowerDensity6g, updateSsidRateControlOpenApiVo.lowerDensity6g) && + Objects.equals(this.higherDensity6g, updateSsidRateControlOpenApiVo.higherDensity6g) && + Objects.equals(this.clientRatesRequire6g, updateSsidRateControlOpenApiVo.clientRatesRequire6g) && + Objects.equals(this.sendBeacons6g, updateSsidRateControlOpenApiVo.sendBeacons6g); + } + + @Override + public int hashCode() { + return Objects.hash(rate2gCtrlEnable, lowerDensity2g, higherDensity2g, cckRatesDisable, clientRatesRequire2g, sendBeacons2g, rate5gCtrlEnable, lowerDensity5g, higherDensity5g, clientRatesRequire5g, sendBeacons5g, rate6gCtrlEnable, lowerDensity6g, higherDensity6g, clientRatesRequire6g, sendBeacons6g); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSsidRateControlOpenApiVo {\n"); + + sb.append(" rate2gCtrlEnable: ").append(toIndentedString(rate2gCtrlEnable)).append("\n"); + sb.append(" lowerDensity2g: ").append(toIndentedString(lowerDensity2g)).append("\n"); + sb.append(" higherDensity2g: ").append(toIndentedString(higherDensity2g)).append("\n"); + sb.append(" cckRatesDisable: ").append(toIndentedString(cckRatesDisable)).append("\n"); + sb.append(" clientRatesRequire2g: ").append(toIndentedString(clientRatesRequire2g)).append("\n"); + sb.append(" sendBeacons2g: ").append(toIndentedString(sendBeacons2g)).append("\n"); + sb.append(" rate5gCtrlEnable: ").append(toIndentedString(rate5gCtrlEnable)).append("\n"); + sb.append(" lowerDensity5g: ").append(toIndentedString(lowerDensity5g)).append("\n"); + sb.append(" higherDensity5g: ").append(toIndentedString(higherDensity5g)).append("\n"); + sb.append(" clientRatesRequire5g: ").append(toIndentedString(clientRatesRequire5g)).append("\n"); + sb.append(" sendBeacons5g: ").append(toIndentedString(sendBeacons5g)).append("\n"); + sb.append(" rate6gCtrlEnable: ").append(toIndentedString(rate6gCtrlEnable)).append("\n"); + sb.append(" lowerDensity6g: ").append(toIndentedString(lowerDensity6g)).append("\n"); + sb.append(" higherDensity6g: ").append(toIndentedString(higherDensity6g)).append("\n"); + sb.append(" clientRatesRequire6g: ").append(toIndentedString(clientRatesRequire6g)).append("\n"); + sb.append(" sendBeacons6g: ").append(toIndentedString(sendBeacons6g)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidRateLimitOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidRateLimitOpenApiVo.java new file mode 100644 index 0000000..182c82c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidRateLimitOpenApiVo.java @@ -0,0 +1,104 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * UpdateSsidRateLimitOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateSsidRateLimitOpenApiVo { + @JsonProperty("clientRateLimit") + private Object clientRateLimit; + + @JsonProperty("ssidRateLimit") + private Object ssidRateLimit; + + public UpdateSsidRateLimitOpenApiVo clientRateLimit(Object clientRateLimit) { + this.clientRateLimit = clientRateLimit; + return this; + } + + /** + * Get clientRateLimit + * @return clientRateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getClientRateLimit() { + return clientRateLimit; + } + + public void setClientRateLimit(Object clientRateLimit) { + this.clientRateLimit = clientRateLimit; + } + + public UpdateSsidRateLimitOpenApiVo ssidRateLimit(Object ssidRateLimit) { + this.ssidRateLimit = ssidRateLimit; + return this; + } + + /** + * Get ssidRateLimit + * @return ssidRateLimit + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getSsidRateLimit() { + return ssidRateLimit; + } + + public void setSsidRateLimit(Object ssidRateLimit) { + this.ssidRateLimit = ssidRateLimit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSsidRateLimitOpenApiVo updateSsidRateLimitOpenApiVo = (UpdateSsidRateLimitOpenApiVo) o; + return Objects.equals(this.clientRateLimit, updateSsidRateLimitOpenApiVo.clientRateLimit) && + Objects.equals(this.ssidRateLimit, updateSsidRateLimitOpenApiVo.ssidRateLimit); + } + + @Override + public int hashCode() { + return Objects.hash(clientRateLimit, ssidRateLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSsidRateLimitOpenApiVo {\n"); + + sb.append(" clientRateLimit: ").append(toIndentedString(clientRateLimit)).append("\n"); + sb.append(" ssidRateLimit: ").append(toIndentedString(ssidRateLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidWlanScheduleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidWlanScheduleOpenApiVo.java new file mode 100644 index 0000000..babdafa --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateSsidWlanScheduleOpenApiVo.java @@ -0,0 +1,128 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * UpdateSsidWlanScheduleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateSsidWlanScheduleOpenApiVo { + @JsonProperty("wlanScheduleEnable") + private Boolean wlanScheduleEnable; + + @JsonProperty("action") + private Integer action; + + @JsonProperty("scheduleId") + private String scheduleId; + + public UpdateSsidWlanScheduleOpenApiVo wlanScheduleEnable(Boolean wlanScheduleEnable) { + this.wlanScheduleEnable = wlanScheduleEnable; + return this; + } + + /** + * SSID WLAN schedule global config status. True: enable, false: disable. + * @return wlanScheduleEnable + */ + @ApiModelProperty(required = true, value = "SSID WLAN schedule global config status. True: enable, false: disable.") + @NotNull + + + public Boolean getWlanScheduleEnable() { + return wlanScheduleEnable; + } + + public void setWlanScheduleEnable(Boolean wlanScheduleEnable) { + this.wlanScheduleEnable = wlanScheduleEnable; + } + + public UpdateSsidWlanScheduleOpenApiVo action(Integer action) { + this.action = action; + return this; + } + + /** + * 0 means radio off, indicating the Wi-Fi function is off during the selected period; 1 means radio on, indicating the Wi-Fi function is on during the selected period. + * @return action + */ + @ApiModelProperty(value = "0 means radio off, indicating the Wi-Fi function is off during the selected period; 1 means radio on, indicating the Wi-Fi function is on during the selected period.") + + + public Integer getAction() { + return action; + } + + public void setAction(Integer action) { + this.action = action; + } + + public UpdateSsidWlanScheduleOpenApiVo scheduleId(String scheduleId) { + this.scheduleId = scheduleId; + return this; + } + + /** + * This field represents Time Range Profile ID. Time Range Profile can be created using Create time range profile interface, and Time Range Profile ID can be obtained from Get time range profile list interface. + * @return scheduleId + */ + @ApiModelProperty(value = "This field represents Time Range Profile ID. Time Range Profile can be created using Create time range profile interface, and Time Range Profile ID can be obtained from Get time range profile list interface.") + + + public String getScheduleId() { + return scheduleId; + } + + public void setScheduleId(String scheduleId) { + this.scheduleId = scheduleId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateSsidWlanScheduleOpenApiVo updateSsidWlanScheduleOpenApiVo = (UpdateSsidWlanScheduleOpenApiVo) o; + return Objects.equals(this.wlanScheduleEnable, updateSsidWlanScheduleOpenApiVo.wlanScheduleEnable) && + Objects.equals(this.action, updateSsidWlanScheduleOpenApiVo.action) && + Objects.equals(this.scheduleId, updateSsidWlanScheduleOpenApiVo.scheduleId); + } + + @Override + public int hashCode() { + return Objects.hash(wlanScheduleEnable, action, scheduleId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateSsidWlanScheduleOpenApiVo {\n"); + + sb.append(" wlanScheduleEnable: ").append(toIndentedString(wlanScheduleEnable)).append("\n"); + sb.append(" action: ").append(toIndentedString(action)).append("\n"); + sb.append(" scheduleId: ").append(toIndentedString(scheduleId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateTimeRangeProfileOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateTimeRangeProfileOpenApiVo.java new file mode 100644 index 0000000..f208977 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateTimeRangeProfileOpenApiVo.java @@ -0,0 +1,167 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpdateTimeRangeProfileOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateTimeRangeProfileOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("dayMode") + private Integer dayMode; + + @JsonProperty("customDayMode") + private CustomDayModeOpenApiVo customDayMode; + + @JsonProperty("timeList") + @Valid + private List timeList = new ArrayList<>(); + + public UpdateTimeRangeProfileOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Time range profile name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Time range profile name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpdateTimeRangeProfileOpenApiVo dayMode(Integer dayMode) { + this.dayMode = dayMode; + return this; + } + + /** + * Time range profile day mode; 0: Every Day, 1: Weekday, 2: Weekend, 3: Customized + * @return dayMode + */ + @ApiModelProperty(required = true, value = "Time range profile day mode; 0: Every Day, 1: Weekday, 2: Weekend, 3: Customized") + @NotNull + + + public Integer getDayMode() { + return dayMode; + } + + public void setDayMode(Integer dayMode) { + this.dayMode = dayMode; + } + + public UpdateTimeRangeProfileOpenApiVo customDayMode(CustomDayModeOpenApiVo customDayMode) { + this.customDayMode = customDayMode; + return this; + } + + /** + * Get customDayMode + * @return customDayMode + */ + @ApiModelProperty(value = "") + + @Valid + + public CustomDayModeOpenApiVo getCustomDayMode() { + return customDayMode; + } + + public void setCustomDayMode(CustomDayModeOpenApiVo customDayMode) { + this.customDayMode = customDayMode; + } + + public UpdateTimeRangeProfileOpenApiVo timeList(List timeList) { + this.timeList = timeList; + return this; + } + + public UpdateTimeRangeProfileOpenApiVo addTimeListItem(ScheduleTimeOpenApiVo timeListItem) { + this.timeList.add(timeListItem); + return this; + } + + /** + * Time range profile schedule time config + * @return timeList + */ + @ApiModelProperty(required = true, value = "Time range profile schedule time config") + @NotNull + + @Valid + + public List getTimeList() { + return timeList; + } + + public void setTimeList(List timeList) { + this.timeList = timeList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateTimeRangeProfileOpenApiVo updateTimeRangeProfileOpenApiVo = (UpdateTimeRangeProfileOpenApiVo) o; + return Objects.equals(this.name, updateTimeRangeProfileOpenApiVo.name) && + Objects.equals(this.dayMode, updateTimeRangeProfileOpenApiVo.dayMode) && + Objects.equals(this.customDayMode, updateTimeRangeProfileOpenApiVo.customDayMode) && + Objects.equals(this.timeList, updateTimeRangeProfileOpenApiVo.timeList); + } + + @Override + public int hashCode() { + return Objects.hash(name, dayMode, customDayMode, timeList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateTimeRangeProfileOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" dayMode: ").append(toIndentedString(dayMode)).append("\n"); + sb.append(" customDayMode: ").append(toIndentedString(customDayMode)).append("\n"); + sb.append(" timeList: ").append(toIndentedString(timeList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWidsConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWidsConfigOpenApiVo.java new file mode 100644 index 0000000..62bcc9d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWidsConfigOpenApiVo.java @@ -0,0 +1,141 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpdateWidsConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateWidsConfigOpenApiVo { + @JsonProperty("status") + private Boolean status; + + @JsonProperty("level") + private Integer level; + + @JsonProperty("detection") + @Valid + private List detection = null; + + public UpdateWidsConfigOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Wireless IDS config status; true:enable, false:disable. + * @return status + */ + @ApiModelProperty(required = true, value = "Wireless IDS config status; true:enable, false:disable.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public UpdateWidsConfigOpenApiVo level(Integer level) { + this.level = level; + return this; + } + + /** + * Wireless IDS detection level; It should be a value as follows: 0:High; 1:Low; 2:Custom. + * @return level + */ + @ApiModelProperty(required = true, value = "Wireless IDS detection level; It should be a value as follows: 0:High; 1:Low; 2:Custom.") + @NotNull + + + public Integer getLevel() { + return level; + } + + public void setLevel(Integer level) { + this.level = level; + } + + public UpdateWidsConfigOpenApiVo detection(List detection) { + this.detection = detection; + return this; + } + + public UpdateWidsConfigOpenApiVo addDetectionItem(Integer detectionItem) { + if (this.detection == null) { + this.detection = new ArrayList<>(); + } + this.detection.add(detectionItem); + return this; + } + + /** + * Wireless IDS detection type, the value is returned only when level is custom(2); It should be a value as follows: 0: Signature_disassociation_broadcast; 1: Signature_deauth_broadcast; 2: Detect_apspoofing; 3: Detect_adhoc_using_valid_ssid; 4: Detect_malformed_large_duration; 5: Detect_overflow_eapol_key; 6: Detect_ap_impersonation; 7: Detect_ht_greenfield; 8: Detect_incomplete_ie; 9: Detect_malformed_htie; 10: Detect_malformed_frame_auth; 11: Detect_malformed_assoc_req; 12: Detect_valid_ssid_misuse; 13: Detect_adhoc_network; 14: Detect_client_flood; 15: Detect_hotspotter_attack; 16: Detect_power_save_dos_flood_attack; 17: Detect_violence_break. + * @return detection + */ + @ApiModelProperty(value = "Wireless IDS detection type, the value is returned only when level is custom(2); It should be a value as follows: 0: Signature_disassociation_broadcast; 1: Signature_deauth_broadcast; 2: Detect_apspoofing; 3: Detect_adhoc_using_valid_ssid; 4: Detect_malformed_large_duration; 5: Detect_overflow_eapol_key; 6: Detect_ap_impersonation; 7: Detect_ht_greenfield; 8: Detect_incomplete_ie; 9: Detect_malformed_htie; 10: Detect_malformed_frame_auth; 11: Detect_malformed_assoc_req; 12: Detect_valid_ssid_misuse; 13: Detect_adhoc_network; 14: Detect_client_flood; 15: Detect_hotspotter_attack; 16: Detect_power_save_dos_flood_attack; 17: Detect_violence_break.") + + + public List getDetection() { + return detection; + } + + public void setDetection(List detection) { + this.detection = detection; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateWidsConfigOpenApiVo updateWidsConfigOpenApiVo = (UpdateWidsConfigOpenApiVo) o; + return Objects.equals(this.status, updateWidsConfigOpenApiVo.status) && + Objects.equals(this.level, updateWidsConfigOpenApiVo.level) && + Objects.equals(this.detection, updateWidsConfigOpenApiVo.detection); + } + + @Override + public int hashCode() { + return Objects.hash(status, level, detection); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWidsConfigOpenApiVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" detection: ").append(toIndentedString(detection)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWipsConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWipsConfigOpenApiVo.java new file mode 100644 index 0000000..b064947 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWipsConfigOpenApiVo.java @@ -0,0 +1,155 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * UpdateWipsConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateWipsConfigOpenApiVo { + @JsonProperty("status") + private Boolean status; + + @JsonProperty("deauthEn") + private Boolean deauthEn; + + @JsonProperty("dynamicEn") + private Boolean dynamicEn; + + @JsonProperty("lockTime") + private Integer lockTime; + + public UpdateWipsConfigOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Wireless IPS config status; true:enable, false:disable. + * @return status + */ + @ApiModelProperty(required = true, value = "Wireless IPS config status; true:enable, false:disable.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public UpdateWipsConfigOpenApiVo deauthEn(Boolean deauthEn) { + this.deauthEn = deauthEn; + return this; + } + + /** + * Wireless IPS deauthenticate config status; true:enable, false:disable. + * @return deauthEn + */ + @ApiModelProperty(required = true, value = "Wireless IPS deauthenticate config status; true:enable, false:disable.") + @NotNull + + + public Boolean getDeauthEn() { + return deauthEn; + } + + public void setDeauthEn(Boolean deauthEn) { + this.deauthEn = deauthEn; + } + + public UpdateWipsConfigOpenApiVo dynamicEn(Boolean dynamicEn) { + this.dynamicEn = dynamicEn; + return this; + } + + /** + * Wireless IPS dynamic block list config status; true:enable, false:disable. + * @return dynamicEn + */ + @ApiModelProperty(required = true, value = "Wireless IPS dynamic block list config status; true:enable, false:disable.") + @NotNull + + + public Boolean getDynamicEn() { + return dynamicEn; + } + + public void setDynamicEn(Boolean dynamicEn) { + this.dynamicEn = dynamicEn; + } + + public UpdateWipsConfigOpenApiVo lockTime(Integer lockTime) { + this.lockTime = lockTime; + return this; + } + + /** + * Wireless IPS device locking duration config status; It should be within the range of 300–36000; this field is required when parameter [dynamicEn] is true. + * @return lockTime + */ + @ApiModelProperty(value = "Wireless IPS device locking duration config status; It should be within the range of 300–36000; this field is required when parameter [dynamicEn] is true.") + + + public Integer getLockTime() { + return lockTime; + } + + public void setLockTime(Integer lockTime) { + this.lockTime = lockTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateWipsConfigOpenApiVo updateWipsConfigOpenApiVo = (UpdateWipsConfigOpenApiVo) o; + return Objects.equals(this.status, updateWipsConfigOpenApiVo.status) && + Objects.equals(this.deauthEn, updateWipsConfigOpenApiVo.deauthEn) && + Objects.equals(this.dynamicEn, updateWipsConfigOpenApiVo.dynamicEn) && + Objects.equals(this.lockTime, updateWipsConfigOpenApiVo.lockTime); + } + + @Override + public int hashCode() { + return Objects.hash(status, deauthEn, dynamicEn, lockTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWipsConfigOpenApiVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" deauthEn: ").append(toIndentedString(deauthEn)).append("\n"); + sb.append(" dynamicEn: ").append(toIndentedString(dynamicEn)).append("\n"); + sb.append(" lockTime: ").append(toIndentedString(lockTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWlanGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWlanGroupOpenApiVo.java new file mode 100644 index 0000000..9da88ac --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpdateWlanGroupOpenApiVo.java @@ -0,0 +1,79 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * UpdateWlanGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpdateWlanGroupOpenApiVo { + @JsonProperty("name") + private String name; + + public UpdateWlanGroupOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * WLAN group name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "WLAN group name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpdateWlanGroupOpenApiVo updateWlanGroupOpenApiVo = (UpdateWlanGroupOpenApiVo) o; + return Objects.equals(this.name, updateWlanGroupOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpdateWlanGroupOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpgradeScheduleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpgradeScheduleOpenApiVo.java new file mode 100644 index 0000000..80b3737 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpgradeScheduleOpenApiVo.java @@ -0,0 +1,217 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpgradeScheduleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpgradeScheduleOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("type") + private Integer type; + + @JsonProperty("nextExecuteTime") + private Long nextExecuteTime; + + @JsonProperty("occurrenceTime") + private BaseScheduleTimeOpenApiVo occurrenceTime; + + @JsonProperty("deviceMacs") + @Valid + private List deviceMacs = new ArrayList<>(); + + public UpgradeScheduleOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Upgrade schedule name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Upgrade schedule name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpgradeScheduleOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Upgrade schedule status. + * @return status + */ + @ApiModelProperty(required = true, value = "Upgrade schedule status.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public UpgradeScheduleOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: 0: execute only once; 1: repeat + * @return type + */ + @ApiModelProperty(required = true, value = "Type should be a value as follows: 0: execute only once; 1: repeat") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public UpgradeScheduleOpenApiVo nextExecuteTime(Long nextExecuteTime) { + this.nextExecuteTime = nextExecuteTime; + return this; + } + + /** + * Execution timeStamp(ms). Required when type is 0. + * @return nextExecuteTime + */ + @ApiModelProperty(value = "Execution timeStamp(ms). Required when type is 0.") + + + public Long getNextExecuteTime() { + return nextExecuteTime; + } + + public void setNextExecuteTime(Long nextExecuteTime) { + this.nextExecuteTime = nextExecuteTime; + } + + public UpgradeScheduleOpenApiVo occurrenceTime(BaseScheduleTimeOpenApiVo occurrenceTime) { + this.occurrenceTime = occurrenceTime; + return this; + } + + /** + * Get occurrenceTime + * @return occurrenceTime + */ + @ApiModelProperty(value = "") + + @Valid + + public BaseScheduleTimeOpenApiVo getOccurrenceTime() { + return occurrenceTime; + } + + public void setOccurrenceTime(BaseScheduleTimeOpenApiVo occurrenceTime) { + this.occurrenceTime = occurrenceTime; + } + + public UpgradeScheduleOpenApiVo deviceMacs(List deviceMacs) { + this.deviceMacs = deviceMacs; + return this; + } + + public UpgradeScheduleOpenApiVo addDeviceMacsItem(String deviceMacsItem) { + this.deviceMacs.add(deviceMacsItem); + return this; + } + + /** + * MAC address of the selected devices. E.g. AA-BB-CC-DD-11-22 + * @return deviceMacs + */ + @ApiModelProperty(required = true, value = "MAC address of the selected devices. E.g. AA-BB-CC-DD-11-22") + @NotNull + + + public List getDeviceMacs() { + return deviceMacs; + } + + public void setDeviceMacs(List deviceMacs) { + this.deviceMacs = deviceMacs; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpgradeScheduleOpenApiVo upgradeScheduleOpenApiVo = (UpgradeScheduleOpenApiVo) o; + return Objects.equals(this.name, upgradeScheduleOpenApiVo.name) && + Objects.equals(this.status, upgradeScheduleOpenApiVo.status) && + Objects.equals(this.type, upgradeScheduleOpenApiVo.type) && + Objects.equals(this.nextExecuteTime, upgradeScheduleOpenApiVo.nextExecuteTime) && + Objects.equals(this.occurrenceTime, upgradeScheduleOpenApiVo.occurrenceTime) && + Objects.equals(this.deviceMacs, upgradeScheduleOpenApiVo.deviceMacs); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, type, nextExecuteTime, occurrenceTime, deviceMacs); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeScheduleOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" nextExecuteTime: ").append(toIndentedString(nextExecuteTime)).append("\n"); + sb.append(" occurrenceTime: ").append(toIndentedString(occurrenceTime)).append("\n"); + sb.append(" deviceMacs: ").append(toIndentedString(deviceMacs)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpgradeScheduleQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpgradeScheduleQueryOpenApiVo.java new file mode 100644 index 0000000..21d0016 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpgradeScheduleQueryOpenApiVo.java @@ -0,0 +1,242 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpgradeScheduleQueryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpgradeScheduleQueryOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("deviceMacs") + @Valid + private List deviceMacs = new ArrayList<>(); + + @JsonProperty("type") + private Integer type; + + @JsonProperty("nextExecuteTime") + private Long nextExecuteTime; + + @JsonProperty("occurrenceTime") + private BaseScheduleTimeOpenApiVo occurrenceTime; + + public UpgradeScheduleQueryOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Reboot Schedule ID. + * @return id + */ + @ApiModelProperty(value = "Reboot Schedule ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public UpgradeScheduleQueryOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Reboot Schedule name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Reboot Schedule name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UpgradeScheduleQueryOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Reboot Schedule status. + * @return status + */ + @ApiModelProperty(required = true, value = "Reboot Schedule status.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public UpgradeScheduleQueryOpenApiVo deviceMacs(List deviceMacs) { + this.deviceMacs = deviceMacs; + return this; + } + + public UpgradeScheduleQueryOpenApiVo addDeviceMacsItem(String deviceMacsItem) { + this.deviceMacs.add(deviceMacsItem); + return this; + } + + /** + * MAC address of the selected devices. + * @return deviceMacs + */ + @ApiModelProperty(required = true, value = "MAC address of the selected devices.") + @NotNull + + + public List getDeviceMacs() { + return deviceMacs; + } + + public void setDeviceMacs(List deviceMacs) { + this.deviceMacs = deviceMacs; + } + + public UpgradeScheduleQueryOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: 0: execute only once; 1: repeat + * @return type + */ + @ApiModelProperty(required = true, value = "Type should be a value as follows: 0: execute only once; 1: repeat") + @NotNull + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + public UpgradeScheduleQueryOpenApiVo nextExecuteTime(Long nextExecuteTime) { + this.nextExecuteTime = nextExecuteTime; + return this; + } + + /** + * Execution timeStamp(ms). Required when type is 0. + * @return nextExecuteTime + */ + @ApiModelProperty(value = "Execution timeStamp(ms). Required when type is 0.") + + + public Long getNextExecuteTime() { + return nextExecuteTime; + } + + public void setNextExecuteTime(Long nextExecuteTime) { + this.nextExecuteTime = nextExecuteTime; + } + + public UpgradeScheduleQueryOpenApiVo occurrenceTime(BaseScheduleTimeOpenApiVo occurrenceTime) { + this.occurrenceTime = occurrenceTime; + return this; + } + + /** + * Get occurrenceTime + * @return occurrenceTime + */ + @ApiModelProperty(value = "") + + @Valid + + public BaseScheduleTimeOpenApiVo getOccurrenceTime() { + return occurrenceTime; + } + + public void setOccurrenceTime(BaseScheduleTimeOpenApiVo occurrenceTime) { + this.occurrenceTime = occurrenceTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpgradeScheduleQueryOpenApiVo upgradeScheduleQueryOpenApiVo = (UpgradeScheduleQueryOpenApiVo) o; + return Objects.equals(this.id, upgradeScheduleQueryOpenApiVo.id) && + Objects.equals(this.name, upgradeScheduleQueryOpenApiVo.name) && + Objects.equals(this.status, upgradeScheduleQueryOpenApiVo.status) && + Objects.equals(this.deviceMacs, upgradeScheduleQueryOpenApiVo.deviceMacs) && + Objects.equals(this.type, upgradeScheduleQueryOpenApiVo.type) && + Objects.equals(this.nextExecuteTime, upgradeScheduleQueryOpenApiVo.nextExecuteTime) && + Objects.equals(this.occurrenceTime, upgradeScheduleQueryOpenApiVo.occurrenceTime); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, status, deviceMacs, type, nextExecuteTime, occurrenceTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpgradeScheduleQueryOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" deviceMacs: ").append(toIndentedString(deviceMacs)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" nextExecuteTime: ").append(toIndentedString(nextExecuteTime)).append("\n"); + sb.append(" occurrenceTime: ").append(toIndentedString(occurrenceTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpnpSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpnpSettingOpenApiVo.java new file mode 100644 index 0000000..0f7b47d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UpnpSettingOpenApiVo.java @@ -0,0 +1,149 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UpnpSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UpnpSettingOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("wanPortIds") + @Valid + private List wanPortIds = null; + + @JsonProperty("networkIds") + @Valid + private List networkIds = null; + + public UpnpSettingOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Whether to enable UPnP + * @return enable + */ + @ApiModelProperty(required = true, value = "Whether to enable UPnP") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public UpnpSettingOpenApiVo wanPortIds(List wanPortIds) { + this.wanPortIds = wanPortIds; + return this; + } + + public UpnpSettingOpenApiVo addWanPortIdsItem(String wanPortIdsItem) { + if (this.wanPortIds == null) { + this.wanPortIds = new ArrayList<>(); + } + this.wanPortIds.add(wanPortIdsItem); + return this; + } + + /** + * This field represents WAN Port ID, WAN Port ID can be obtained from \"Get internet basic info\" interface. + * @return wanPortIds + */ + @ApiModelProperty(value = "This field represents WAN Port ID, WAN Port ID can be obtained from \"Get internet basic info\" interface.") + + + public List getWanPortIds() { + return wanPortIds; + } + + public void setWanPortIds(List wanPortIds) { + this.wanPortIds = wanPortIds; + } + + public UpnpSettingOpenApiVo networkIds(List networkIds) { + this.networkIds = networkIds; + return this; + } + + public UpnpSettingOpenApiVo addNetworkIdsItem(String networkIdsItem) { + if (this.networkIds == null) { + this.networkIds = new ArrayList<>(); + } + this.networkIds.add(networkIdsItem); + return this; + } + + /** + * This field represents LAN Network ID. LAN Network ID can be obtained from \"Get all \"single\"/\"multi\" interface lan network\" interface. + * @return networkIds + */ + @ApiModelProperty(value = "This field represents LAN Network ID. LAN Network ID can be obtained from \"Get all \"single\"/\"multi\" interface lan network\" interface.") + + + public List getNetworkIds() { + return networkIds; + } + + public void setNetworkIds(List networkIds) { + this.networkIds = networkIds; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UpnpSettingOpenApiVo upnpSettingOpenApiVo = (UpnpSettingOpenApiVo) o; + return Objects.equals(this.enable, upnpSettingOpenApiVo.enable) && + Objects.equals(this.wanPortIds, upnpSettingOpenApiVo.wanPortIds) && + Objects.equals(this.networkIds, upnpSettingOpenApiVo.networkIds); + } + + @Override + public int hashCode() { + return Objects.hash(enable, wanPortIds, networkIds); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UpnpSettingOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" wanPortIds: ").append(toIndentedString(wanPortIds)).append("\n"); + sb.append(" networkIds: ").append(toIndentedString(networkIds)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlCategoryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlCategoryOpenApiVo.java new file mode 100644 index 0000000..0d58aae --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlCategoryOpenApiVo.java @@ -0,0 +1,115 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * UrlCategoryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UrlCategoryOpenApiVo { + @JsonProperty("categories") + @Valid + private Map> categories = null; + + @JsonProperty("protocolVer") + private String protocolVer; + + public UrlCategoryOpenApiVo categories(Map> categories) { + this.categories = categories; + return this; + } + + public UrlCategoryOpenApiVo putCategoriesItem(String key, List categoriesItem) { + if (this.categories == null) { + this.categories = new HashMap<>(); + } + this.categories.put(key, categoriesItem); + return this; + } + + /** + * categories of the URL filtering 5.15 + * @return categories + */ + @ApiModelProperty(value = "categories of the URL filtering 5.15") + + @Valid + + public Map> getCategories() { + return categories; + } + + public void setCategories(Map> categories) { + this.categories = categories; + } + + public UrlCategoryOpenApiVo protocolVer(String protocolVer) { + this.protocolVer = protocolVer; + return this; + } + + /** + * protocolVer of the categories. + * @return protocolVer + */ + @ApiModelProperty(value = "protocolVer of the categories.") + + + public String getProtocolVer() { + return protocolVer; + } + + public void setProtocolVer(String protocolVer) { + this.protocolVer = protocolVer; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UrlCategoryOpenApiVo urlCategoryOpenApiVo = (UrlCategoryOpenApiVo) o; + return Objects.equals(this.categories, urlCategoryOpenApiVo.categories) && + Objects.equals(this.protocolVer, urlCategoryOpenApiVo.protocolVer); + } + + @Override + public int hashCode() { + return Objects.hash(categories, protocolVer); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UrlCategoryOpenApiVo {\n"); + + sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); + sb.append(" protocolVer: ").append(toIndentedString(protocolVer)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlDragSortIndexOpenapiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlDragSortIndexOpenapiVo.java new file mode 100644 index 0000000..e74447b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlDragSortIndexOpenapiVo.java @@ -0,0 +1,114 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.HashMap; +import java.util.Map; +import java.util.Objects; + +/** + * UrlDragSortIndexOpenapiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UrlDragSortIndexOpenapiVo { + @JsonProperty("type") + private String type; + + @JsonProperty("indexes") + @Valid + private Map indexes = new HashMap<>(); + + public UrlDragSortIndexOpenapiVo type(String type) { + this.type = type; + return this; + } + + /** + * Type must be gateway or ap + * @return type + */ + @ApiModelProperty(required = true, value = "Type must be gateway or ap") + @NotNull + +@Pattern(regexp="gateway|ap") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public UrlDragSortIndexOpenapiVo indexes(Map indexes) { + this.indexes = indexes; + return this; + } + + public UrlDragSortIndexOpenapiVo putIndexesItem(String key, Integer indexesItem) { + this.indexes.put(key, indexesItem); + return this; + } + + /** + * The order in which items take effect, this object is a Map, the key is item ID and the value is the index you want to set. + * @return indexes + */ + @ApiModelProperty(required = true, value = "The order in which items take effect, this object is a Map, the key is item ID and the value is the index you want to set.") + @NotNull + + + public Map getIndexes() { + return indexes; + } + + public void setIndexes(Map indexes) { + this.indexes = indexes; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UrlDragSortIndexOpenapiVo urlDragSortIndexOpenapiVo = (UrlDragSortIndexOpenapiVo) o; + return Objects.equals(this.type, urlDragSortIndexOpenapiVo.type) && + Objects.equals(this.indexes, urlDragSortIndexOpenapiVo.indexes); + } + + @Override + public int hashCode() { + return Objects.hash(type, indexes); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UrlDragSortIndexOpenapiVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" indexes: ").append(toIndentedString(indexes)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilterGlobalOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilterGlobalOpenApiVo.java new file mode 100644 index 0000000..710aa73 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilterGlobalOpenApiVo.java @@ -0,0 +1,129 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * UrlFilterGlobalOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UrlFilterGlobalOpenApiVo { + @JsonProperty("blockPage") + private Boolean blockPage; + + @JsonProperty("blockPageMessage") + private String blockPageMessage; + + @JsonProperty("safeSearch") + private Boolean safeSearch; + + public UrlFilterGlobalOpenApiVo blockPage(Boolean blockPage) { + this.blockPage = blockPage; + return this; + } + + /** + * blockPage should be a value as follows: false: close; true: open. + * @return blockPage + */ + @ApiModelProperty(required = true, value = "blockPage should be a value as follows: false: close; true: open.") + @NotNull + + + public Boolean getBlockPage() { + return blockPage; + } + + public void setBlockPage(Boolean blockPage) { + this.blockPage = blockPage; + } + + public UrlFilterGlobalOpenApiVo blockPageMessage(String blockPageMessage) { + this.blockPageMessage = blockPageMessage; + return this; + } + + /** + * blockPageMessage of blockPage,when blockPage switch is open. + * @return blockPageMessage + */ + @ApiModelProperty(value = "blockPageMessage of blockPage,when blockPage switch is open.") + + + public String getBlockPageMessage() { + return blockPageMessage; + } + + public void setBlockPageMessage(String blockPageMessage) { + this.blockPageMessage = blockPageMessage; + } + + public UrlFilterGlobalOpenApiVo safeSearch(Boolean safeSearch) { + this.safeSearch = safeSearch; + return this; + } + + /** + * safeSearch should be a value as follows: false: close; true: open. + * @return safeSearch + */ + @ApiModelProperty(required = true, value = "safeSearch should be a value as follows: false: close; true: open.") + @NotNull + + + public Boolean getSafeSearch() { + return safeSearch; + } + + public void setSafeSearch(Boolean safeSearch) { + this.safeSearch = safeSearch; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UrlFilterGlobalOpenApiVo urlFilterGlobalOpenApiVo = (UrlFilterGlobalOpenApiVo) o; + return Objects.equals(this.blockPage, urlFilterGlobalOpenApiVo.blockPage) && + Objects.equals(this.blockPageMessage, urlFilterGlobalOpenApiVo.blockPageMessage) && + Objects.equals(this.safeSearch, urlFilterGlobalOpenApiVo.safeSearch); + } + + @Override + public int hashCode() { + return Objects.hash(blockPage, blockPageMessage, safeSearch); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UrlFilterGlobalOpenApiVo {\n"); + + sb.append(" blockPage: ").append(toIndentedString(blockPage)).append("\n"); + sb.append(" blockPageMessage: ").append(toIndentedString(blockPageMessage)).append("\n"); + sb.append(" safeSearch: ").append(toIndentedString(safeSearch)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.java new file mode 100644 index 0000000..4549a94 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.java @@ -0,0 +1,214 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + @JsonProperty("supportKeyword") + private Boolean supportKeyword; + + @JsonProperty("supportCategory") + private Boolean supportCategory; + + public UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo data(List data) { + this.data = data; + return this; + } + + public UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo addDataItem(QueryUrlFilteringOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo supportKeyword(Boolean supportKeyword) { + this.supportKeyword = supportKeyword; + return this; + } + + /** + * Whether keyword is supported of the URL filtering. + * @return supportKeyword + */ + @ApiModelProperty(value = "Whether keyword is supported of the URL filtering.") + + + public Boolean getSupportKeyword() { + return supportKeyword; + } + + public void setSupportKeyword(Boolean supportKeyword) { + this.supportKeyword = supportKeyword; + } + + public UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo supportCategory(Boolean supportCategory) { + this.supportCategory = supportCategory; + return this; + } + + /** + * Whether category is supported of the URL filtering. + * @return supportCategory + */ + @ApiModelProperty(value = "Whether category is supported of the URL filtering.") + + + public Boolean getSupportCategory() { + return supportCategory; + } + + public void setSupportCategory(Boolean supportCategory) { + this.supportCategory = supportCategory; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo urlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo = (UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo) o; + return Objects.equals(this.totalRows, urlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.totalRows) && + Objects.equals(this.currentPage, urlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.currentPage) && + Objects.equals(this.currentSize, urlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.currentSize) && + Objects.equals(this.data, urlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.data) && + Objects.equals(this.supportKeyword, urlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.supportKeyword) && + Objects.equals(this.supportCategory, urlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo.supportCategory); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data, supportKeyword, supportCategory); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UrlFilteringOpenApiGridVoQueryUrlFilteringOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" supportKeyword: ").append(toIndentedString(supportKeyword)).append("\n"); + sb.append(" supportCategory: ").append(toIndentedString(supportCategory)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilteringOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilteringOpenApiVo.java new file mode 100644 index 0000000..94cda5b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UrlFilteringOpenApiVo.java @@ -0,0 +1,425 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; + +/** + * UrlFilteringOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UrlFilteringOpenApiVo { + @JsonProperty("type") + private String type; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("policy") + private Integer policy; + + @JsonProperty("sourceType") + private Integer sourceType; + + @JsonProperty("sourceIds") + @Valid + private List sourceIds = new ArrayList<>(); + + @JsonProperty("mode") + private Integer mode; + + @JsonProperty("urls") + @Valid + private List urls = null; + + @JsonProperty("keywords") + @Valid + private List keywords = null; + + @JsonProperty("filterMode") + private Integer filterMode; + + @JsonProperty("scenarioMode") + private Integer scenarioMode; + + @JsonProperty("categories") + @Valid + private Map> categories = null; + + @JsonProperty("timeRange") + private String timeRange; + + public UrlFilteringOpenApiVo type(String type) { + this.type = type; + return this; + } + + /** + * Type should be a value as follows: \"gateway\"; \"ap\". + * @return type + */ + @ApiModelProperty(required = true, value = "Type should be a value as follows: \"gateway\"; \"ap\".") + @NotNull + +@Pattern(regexp="gateway|ap") + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public UrlFilteringOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Name should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Name should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UrlFilteringOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Status of the URL filtering. + * @return status + */ + @ApiModelProperty(required = true, value = "Status of the URL filtering.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public UrlFilteringOpenApiVo policy(Integer policy) { + this.policy = policy; + return this; + } + + /** + * Policy should be a value as follows: 0: drop; 1: allow. + * @return policy + */ + @ApiModelProperty(required = true, value = "Policy should be a value as follows: 0: drop; 1: allow.") + @NotNull + + + public Integer getPolicy() { + return policy; + } + + public void setPolicy(Integer policy) { + this.policy = policy; + } + + public UrlFilteringOpenApiVo sourceType(Integer sourceType) { + this.sourceType = sourceType; + return this; + } + + /** + * Source type should be a value as follows: 0: network; 1: IP group; 2: SSID. + * @return sourceType + */ + @ApiModelProperty(required = true, value = "Source type should be a value as follows: 0: network; 1: IP group; 2: SSID.") + @NotNull + + + public Integer getSourceType() { + return sourceType; + } + + public void setSourceType(Integer sourceType) { + this.sourceType = sourceType; + } + + public UrlFilteringOpenApiVo sourceIds(List sourceIds) { + this.sourceIds = sourceIds; + return this; + } + + public UrlFilteringOpenApiVo addSourceIdsItem(String sourceIdsItem) { + this.sourceIds.add(sourceIdsItem); + return this; + } + + /** + * Source IDs of the URL filtering. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. IP group can be created using 'Create a new group profile' interface, and IP group ID can be obtained from 'Get group profile list' interface. SSID can be created using 'Create new SSID' interface, and SSID ID can be obtained from 'Get SSID list' interface. + * @return sourceIds + */ + @ApiModelProperty(required = true, value = "Source IDs of the URL filtering. Network can be created using 'Create LAN network' interface, and network ID can be obtained from 'Get LAN network list' interface. IP group can be created using 'Create a new group profile' interface, and IP group ID can be obtained from 'Get group profile list' interface. SSID can be created using 'Create new SSID' interface, and SSID ID can be obtained from 'Get SSID list' interface.") + @NotNull + + + public List getSourceIds() { + return sourceIds; + } + + public void setSourceIds(List sourceIds) { + this.sourceIds = sourceIds; + } + + public UrlFilteringOpenApiVo mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * Mode should be a value as follows: 0: URL Path; 1: keywords(Only for gateway). + * @return mode + */ + @ApiModelProperty(required = true, value = "Mode should be a value as follows: 0: URL Path; 1: keywords(Only for gateway).") + @NotNull + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + public UrlFilteringOpenApiVo urls(List urls) { + this.urls = urls; + return this; + } + + public UrlFilteringOpenApiVo addUrlsItem(String urlsItem) { + if (this.urls == null) { + this.urls = new ArrayList<>(); + } + this.urls.add(urlsItem); + return this; + } + + /** + * URLs of the URL filtering, eg: www.google.com. + * @return urls + */ + @ApiModelProperty(value = "URLs of the URL filtering, eg: www.google.com.") + + + public List getUrls() { + return urls; + } + + public void setUrls(List urls) { + this.urls = urls; + } + + public UrlFilteringOpenApiVo keywords(List keywords) { + this.keywords = keywords; + return this; + } + + public UrlFilteringOpenApiVo addKeywordsItem(String keywordsItem) { + if (this.keywords == null) { + this.keywords = new ArrayList<>(); + } + this.keywords.add(keywordsItem); + return this; + } + + /** + * Keywords of the URL filtering. + * @return keywords + */ + @ApiModelProperty(value = "Keywords of the URL filtering.") + + + public List getKeywords() { + return keywords; + } + + public void setKeywords(List keywords) { + this.keywords = keywords; + } + + public UrlFilteringOpenApiVo filterMode(Integer filterMode) { + this.filterMode = filterMode; + return this; + } + + /** + * filterMode should be a value as follows: 0: URL; 1: category. + * @return filterMode + */ + @ApiModelProperty(required = true, value = "filterMode should be a value as follows: 0: URL; 1: category.") + @NotNull + + + public Integer getFilterMode() { + return filterMode; + } + + public void setFilterMode(Integer filterMode) { + this.filterMode = filterMode; + } + + public UrlFilteringOpenApiVo scenarioMode(Integer scenarioMode) { + this.scenarioMode = scenarioMode; + return this; + } + + /** + * scenarioMode should be a value as follows:0: Custom 1: Family 2:Work 3:Education 4:Guest. + * @return scenarioMode + */ + @ApiModelProperty(value = "scenarioMode should be a value as follows:0: Custom 1: Family 2:Work 3:Education 4:Guest.") + + + public Integer getScenarioMode() { + return scenarioMode; + } + + public void setScenarioMode(Integer scenarioMode) { + this.scenarioMode = scenarioMode; + } + + public UrlFilteringOpenApiVo categories(Map> categories) { + this.categories = categories; + return this; + } + + public UrlFilteringOpenApiVo putCategoriesItem(String key, List categoriesItem) { + if (this.categories == null) { + this.categories = new HashMap<>(); + } + this.categories.put(key, categoriesItem); + return this; + } + + /** + * categories of the URL filtering, TreeMap> categories + * @return categories + */ + @ApiModelProperty(value = "categories of the URL filtering, TreeMap> categories") + + @Valid + + public Map> getCategories() { + return categories; + } + + public void setCategories(Map> categories) { + this.categories = categories; + } + + public UrlFilteringOpenApiVo timeRange(String timeRange) { + this.timeRange = timeRange; + return this; + } + + /** + * timeRange of the URL filtering, TimeSchedule + * @return timeRange + */ + @ApiModelProperty(value = "timeRange of the URL filtering, TimeSchedule") + + + public String getTimeRange() { + return timeRange; + } + + public void setTimeRange(String timeRange) { + this.timeRange = timeRange; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UrlFilteringOpenApiVo urlFilteringOpenApiVo = (UrlFilteringOpenApiVo) o; + return Objects.equals(this.type, urlFilteringOpenApiVo.type) && + Objects.equals(this.name, urlFilteringOpenApiVo.name) && + Objects.equals(this.status, urlFilteringOpenApiVo.status) && + Objects.equals(this.policy, urlFilteringOpenApiVo.policy) && + Objects.equals(this.sourceType, urlFilteringOpenApiVo.sourceType) && + Objects.equals(this.sourceIds, urlFilteringOpenApiVo.sourceIds) && + Objects.equals(this.mode, urlFilteringOpenApiVo.mode) && + Objects.equals(this.urls, urlFilteringOpenApiVo.urls) && + Objects.equals(this.keywords, urlFilteringOpenApiVo.keywords) && + Objects.equals(this.filterMode, urlFilteringOpenApiVo.filterMode) && + Objects.equals(this.scenarioMode, urlFilteringOpenApiVo.scenarioMode) && + Objects.equals(this.categories, urlFilteringOpenApiVo.categories) && + Objects.equals(this.timeRange, urlFilteringOpenApiVo.timeRange); + } + + @Override + public int hashCode() { + return Objects.hash(type, name, status, policy, sourceType, sourceIds, mode, urls, keywords, filterMode, scenarioMode, categories, timeRange); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UrlFilteringOpenApiVo {\n"); + + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" policy: ").append(toIndentedString(policy)).append("\n"); + sb.append(" sourceType: ").append(toIndentedString(sourceType)).append("\n"); + sb.append(" sourceIds: ").append(toIndentedString(sourceIds)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append(" urls: ").append(toIndentedString(urls)).append("\n"); + sb.append(" keywords: ").append(toIndentedString(keywords)).append("\n"); + sb.append(" filterMode: ").append(toIndentedString(filterMode)).append("\n"); + sb.append(" scenarioMode: ").append(toIndentedString(scenarioMode)).append("\n"); + sb.append(" categories: ").append(toIndentedString(categories)).append("\n"); + sb.append(" timeRange: ").append(toIndentedString(timeRange)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbInfo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbInfo.java new file mode 100644 index 0000000..3faea0b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbInfo.java @@ -0,0 +1,203 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * USB info list. + */ +@ApiModel(description = "USB info list.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UsbInfo { + @JsonProperty("usbUuid") + private String usbUuid; + + @JsonProperty("usbName") + private String usbName; + + @JsonProperty("voiceMailboxCapacity") + private Integer voiceMailboxCapacity; + + @JsonProperty("remainAvailableCapacity") + private Integer remainAvailableCapacity; + + @JsonProperty("selected") + private Boolean selected; + + @JsonProperty("customGreetingName") + private String customGreetingName; + + public UsbInfo usbUuid(String usbUuid) { + this.usbUuid = usbUuid; + return this; + } + + /** + * USB UUID. + * @return usbUuid + */ + @ApiModelProperty(value = "USB UUID.") + + + public String getUsbUuid() { + return usbUuid; + } + + public void setUsbUuid(String usbUuid) { + this.usbUuid = usbUuid; + } + + public UsbInfo usbName(String usbName) { + this.usbName = usbName; + return this; + } + + /** + * USB name. + * @return usbName + */ + @ApiModelProperty(value = "USB name.") + + + public String getUsbName() { + return usbName; + } + + public void setUsbName(String usbName) { + this.usbName = usbName; + } + + public UsbInfo voiceMailboxCapacity(Integer voiceMailboxCapacity) { + this.voiceMailboxCapacity = voiceMailboxCapacity; + return this; + } + + /** + * The capacity of voice mail box. + * @return voiceMailboxCapacity + */ + @ApiModelProperty(value = "The capacity of voice mail box.") + + + public Integer getVoiceMailboxCapacity() { + return voiceMailboxCapacity; + } + + public void setVoiceMailboxCapacity(Integer voiceMailboxCapacity) { + this.voiceMailboxCapacity = voiceMailboxCapacity; + } + + public UsbInfo remainAvailableCapacity(Integer remainAvailableCapacity) { + this.remainAvailableCapacity = remainAvailableCapacity; + return this; + } + + /** + * Remain available capacity of voice mail box. + * @return remainAvailableCapacity + */ + @ApiModelProperty(value = "Remain available capacity of voice mail box.") + + + public Integer getRemainAvailableCapacity() { + return remainAvailableCapacity; + } + + public void setRemainAvailableCapacity(Integer remainAvailableCapacity) { + this.remainAvailableCapacity = remainAvailableCapacity; + } + + public UsbInfo selected(Boolean selected) { + this.selected = selected; + return this; + } + + /** + * Whether selected the USB device. + * @return selected + */ + @ApiModelProperty(value = "Whether selected the USB device.") + + + public Boolean getSelected() { + return selected; + } + + public void setSelected(Boolean selected) { + this.selected = selected; + } + + public UsbInfo customGreetingName(String customGreetingName) { + this.customGreetingName = customGreetingName; + return this; + } + + /** + * Custom greeting name. + * @return customGreetingName + */ + @ApiModelProperty(value = "Custom greeting name.") + + + public String getCustomGreetingName() { + return customGreetingName; + } + + public void setCustomGreetingName(String customGreetingName) { + this.customGreetingName = customGreetingName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsbInfo usbInfo = (UsbInfo) o; + return Objects.equals(this.usbUuid, usbInfo.usbUuid) && + Objects.equals(this.usbName, usbInfo.usbName) && + Objects.equals(this.voiceMailboxCapacity, usbInfo.voiceMailboxCapacity) && + Objects.equals(this.remainAvailableCapacity, usbInfo.remainAvailableCapacity) && + Objects.equals(this.selected, usbInfo.selected) && + Objects.equals(this.customGreetingName, usbInfo.customGreetingName); + } + + @Override + public int hashCode() { + return Objects.hash(usbUuid, usbName, voiceMailboxCapacity, remainAvailableCapacity, selected, customGreetingName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsbInfo {\n"); + + sb.append(" usbUuid: ").append(toIndentedString(usbUuid)).append("\n"); + sb.append(" usbName: ").append(toIndentedString(usbName)).append("\n"); + sb.append(" voiceMailboxCapacity: ").append(toIndentedString(voiceMailboxCapacity)).append("\n"); + sb.append(" remainAvailableCapacity: ").append(toIndentedString(remainAvailableCapacity)).append("\n"); + sb.append(" selected: ").append(toIndentedString(selected)).append("\n"); + sb.append(" customGreetingName: ").append(toIndentedString(customGreetingName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbInfoListResponse.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbInfoListResponse.java new file mode 100644 index 0000000..024ab8f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbInfoListResponse.java @@ -0,0 +1,89 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * UsbInfoListResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UsbInfoListResponse { + @JsonProperty("usbList") + @Valid + private List usbList = null; + + public UsbInfoListResponse usbList(List usbList) { + this.usbList = usbList; + return this; + } + + public UsbInfoListResponse addUsbListItem(UsbInfo usbListItem) { + if (this.usbList == null) { + this.usbList = new ArrayList<>(); + } + this.usbList.add(usbListItem); + return this; + } + + /** + * USB info list. + * @return usbList + */ + @ApiModelProperty(value = "USB info list.") + + @Valid + + public List getUsbList() { + return usbList; + } + + public void setUsbList(List usbList) { + this.usbList = usbList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsbInfoListResponse usbInfoListResponse = (UsbInfoListResponse) o; + return Objects.equals(this.usbList, usbInfoListResponse.usbList); + } + + @Override + public int hashCode() { + return Objects.hash(usbList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsbInfoListResponse {\n"); + + sb.append(" usbList: ").append(toIndentedString(usbList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbLteSettingConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbLteSettingConfigOpenApiVo.java new file mode 100644 index 0000000..146bb57 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbLteSettingConfigOpenApiVo.java @@ -0,0 +1,339 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * USB LTE ports config + */ +@ApiModel(description = "USB LTE ports config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UsbLteSettingConfigOpenApiVo { + @JsonProperty("portId") + private String portId; + + @JsonProperty("portDescription") + private String portDescription; + + @JsonProperty("configType") + private Integer configType; + + @JsonProperty("autoConfig") + private AutoConfigOpenApiVo autoConfig; + + @JsonProperty("manuallyConfig") + private ManuallyConfigOpenApiVo manuallyConfig; + + @JsonProperty("connectionMode") + private Integer connectionMode; + + @JsonProperty("pin") + private String pin; + + @JsonProperty("authType") + private Integer authType; + + @JsonProperty("mtuSize") + private Integer mtuSize; + + @JsonProperty("dnsEnable") + private Boolean dnsEnable; + + @JsonProperty("dnsConfig") + private DnsConfigOpenApiVo dnsConfig; + + public UsbLteSettingConfigOpenApiVo portId(String portId) { + this.portId = portId; + return this; + } + + /** + * Port ID + * @return portId + */ + @ApiModelProperty(required = true, value = "Port ID") + @NotNull + + + public String getPortId() { + return portId; + } + + public void setPortId(String portId) { + this.portId = portId; + } + + public UsbLteSettingConfigOpenApiVo portDescription(String portDescription) { + this.portDescription = portDescription; + return this; + } + + /** + * Port description should contain 1 to 32 characters. + * @return portDescription + */ + @ApiModelProperty(value = "Port description should contain 1 to 32 characters.") + + + public String getPortDescription() { + return portDescription; + } + + public void setPortDescription(String portDescription) { + this.portDescription = portDescription; + } + + public UsbLteSettingConfigOpenApiVo configType(Integer configType) { + this.configType = configType; + return this; + } + + /** + * 0: Auto; 1:Manually + * @return configType + */ + @ApiModelProperty(required = true, value = "0: Auto; 1:Manually") + @NotNull + + + public Integer getConfigType() { + return configType; + } + + public void setConfigType(Integer configType) { + this.configType = configType; + } + + public UsbLteSettingConfigOpenApiVo autoConfig(AutoConfigOpenApiVo autoConfig) { + this.autoConfig = autoConfig; + return this; + } + + /** + * Get autoConfig + * @return autoConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public AutoConfigOpenApiVo getAutoConfig() { + return autoConfig; + } + + public void setAutoConfig(AutoConfigOpenApiVo autoConfig) { + this.autoConfig = autoConfig; + } + + public UsbLteSettingConfigOpenApiVo manuallyConfig(ManuallyConfigOpenApiVo manuallyConfig) { + this.manuallyConfig = manuallyConfig; + return this; + } + + /** + * Get manuallyConfig + * @return manuallyConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public ManuallyConfigOpenApiVo getManuallyConfig() { + return manuallyConfig; + } + + public void setManuallyConfig(ManuallyConfigOpenApiVo manuallyConfig) { + this.manuallyConfig = manuallyConfig; + } + + public UsbLteSettingConfigOpenApiVo connectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + return this; + } + + /** + * 1: Connect Automatically, 2: Connect Manually. + * @return connectionMode + */ + @ApiModelProperty(required = true, value = "1: Connect Automatically, 2: Connect Manually.") + @NotNull + + + public Integer getConnectionMode() { + return connectionMode; + } + + public void setConnectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + } + + public UsbLteSettingConfigOpenApiVo pin(String pin) { + this.pin = pin; + return this; + } + + /** + * It is required when [usbModemMsgId] is 1 or 3. + * @return pin + */ + @ApiModelProperty(value = "It is required when [usbModemMsgId] is 1 or 3.") + + + public String getPin() { + return pin; + } + + public void setPin(String pin) { + this.pin = pin; + } + + public UsbLteSettingConfigOpenApiVo authType(Integer authType) { + this.authType = authType; + return this; + } + + /** + * 0:Auto; 1:PAP; 2:CHAP. + * @return authType + */ + @ApiModelProperty(required = true, value = "0:Auto; 1:PAP; 2:CHAP.") + @NotNull + + + public Integer getAuthType() { + return authType; + } + + public void setAuthType(Integer authType) { + this.authType = authType; + } + + public UsbLteSettingConfigOpenApiVo mtuSize(Integer mtuSize) { + this.mtuSize = mtuSize; + return this; + } + + /** + * MTU ranges from 576 ~ 1500. + * @return mtuSize + */ + @ApiModelProperty(required = true, value = "MTU ranges from 576 ~ 1500.") + @NotNull + + + public Integer getMtuSize() { + return mtuSize; + } + + public void setMtuSize(Integer mtuSize) { + this.mtuSize = mtuSize; + } + + public UsbLteSettingConfigOpenApiVo dnsEnable(Boolean dnsEnable) { + this.dnsEnable = dnsEnable; + return this; + } + + /** + * Get dnsEnable + * @return dnsEnable + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getDnsEnable() { + return dnsEnable; + } + + public void setDnsEnable(Boolean dnsEnable) { + this.dnsEnable = dnsEnable; + } + + public UsbLteSettingConfigOpenApiVo dnsConfig(DnsConfigOpenApiVo dnsConfig) { + this.dnsConfig = dnsConfig; + return this; + } + + /** + * Get dnsConfig + * @return dnsConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public DnsConfigOpenApiVo getDnsConfig() { + return dnsConfig; + } + + public void setDnsConfig(DnsConfigOpenApiVo dnsConfig) { + this.dnsConfig = dnsConfig; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsbLteSettingConfigOpenApiVo usbLteSettingConfigOpenApiVo = (UsbLteSettingConfigOpenApiVo) o; + return Objects.equals(this.portId, usbLteSettingConfigOpenApiVo.portId) && + Objects.equals(this.portDescription, usbLteSettingConfigOpenApiVo.portDescription) && + Objects.equals(this.configType, usbLteSettingConfigOpenApiVo.configType) && + Objects.equals(this.autoConfig, usbLteSettingConfigOpenApiVo.autoConfig) && + Objects.equals(this.manuallyConfig, usbLteSettingConfigOpenApiVo.manuallyConfig) && + Objects.equals(this.connectionMode, usbLteSettingConfigOpenApiVo.connectionMode) && + Objects.equals(this.pin, usbLteSettingConfigOpenApiVo.pin) && + Objects.equals(this.authType, usbLteSettingConfigOpenApiVo.authType) && + Objects.equals(this.mtuSize, usbLteSettingConfigOpenApiVo.mtuSize) && + Objects.equals(this.dnsEnable, usbLteSettingConfigOpenApiVo.dnsEnable) && + Objects.equals(this.dnsConfig, usbLteSettingConfigOpenApiVo.dnsConfig); + } + + @Override + public int hashCode() { + return Objects.hash(portId, portDescription, configType, autoConfig, manuallyConfig, connectionMode, pin, authType, mtuSize, dnsEnable, dnsConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsbLteSettingConfigOpenApiVo {\n"); + + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append(" portDescription: ").append(toIndentedString(portDescription)).append("\n"); + sb.append(" configType: ").append(toIndentedString(configType)).append("\n"); + sb.append(" autoConfig: ").append(toIndentedString(autoConfig)).append("\n"); + sb.append(" manuallyConfig: ").append(toIndentedString(manuallyConfig)).append("\n"); + sb.append(" connectionMode: ").append(toIndentedString(connectionMode)).append("\n"); + sb.append(" pin: ").append(toIndentedString(pin)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" mtuSize: ").append(toIndentedString(mtuSize)).append("\n"); + sb.append(" dnsEnable: ").append(toIndentedString(dnsEnable)).append("\n"); + sb.append(" dnsConfig: ").append(toIndentedString(dnsConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbLteSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbLteSettingOpenApiVo.java new file mode 100644 index 0000000..63c4da3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UsbLteSettingOpenApiVo.java @@ -0,0 +1,389 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * USB lte ports config + */ +@ApiModel(description = "USB lte ports config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UsbLteSettingOpenApiVo { + @JsonProperty("portId") + private String portId; + + @JsonProperty("portDescription") + private String portDescription; + + @JsonProperty("usbModem") + private String usbModem; + + @JsonProperty("configType") + private Integer configType; + + @JsonProperty("autoConfig") + private AutoConfigOpenApiVo autoConfig; + + @JsonProperty("manuallyConfig") + private ManuallyConfigOpenApiVo manuallyConfig; + + @JsonProperty("connectionMode") + private Integer connectionMode; + + @JsonProperty("usbModemMsgId") + private Integer usbModemMsgId; + + @JsonProperty("pin") + private String pin; + + @JsonProperty("authType") + private Integer authType; + + @JsonProperty("mtuSize") + private Integer mtuSize; + + @JsonProperty("dnsEnable") + private Boolean dnsEnable; + + @JsonProperty("dnsConfig") + private DnsConfigOpenApiVo dnsConfig; + + public UsbLteSettingOpenApiVo portId(String portId) { + this.portId = portId; + return this; + } + + /** + * Port ID + * @return portId + */ + @ApiModelProperty(required = true, value = "Port ID") + @NotNull + + + public String getPortId() { + return portId; + } + + public void setPortId(String portId) { + this.portId = portId; + } + + public UsbLteSettingOpenApiVo portDescription(String portDescription) { + this.portDescription = portDescription; + return this; + } + + /** + * Port description + * @return portDescription + */ + @ApiModelProperty(value = "Port description") + + + public String getPortDescription() { + return portDescription; + } + + public void setPortDescription(String portDescription) { + this.portDescription = portDescription; + } + + public UsbLteSettingOpenApiVo usbModem(String usbModem) { + this.usbModem = usbModem; + return this; + } + + /** + * USB modem name + * @return usbModem + */ + @ApiModelProperty(value = "USB modem name") + + + public String getUsbModem() { + return usbModem; + } + + public void setUsbModem(String usbModem) { + this.usbModem = usbModem; + } + + public UsbLteSettingOpenApiVo configType(Integer configType) { + this.configType = configType; + return this; + } + + /** + * 0: Auto; 1:Manually. + * @return configType + */ + @ApiModelProperty(required = true, value = "0: Auto; 1:Manually.") + @NotNull + + + public Integer getConfigType() { + return configType; + } + + public void setConfigType(Integer configType) { + this.configType = configType; + } + + public UsbLteSettingOpenApiVo autoConfig(AutoConfigOpenApiVo autoConfig) { + this.autoConfig = autoConfig; + return this; + } + + /** + * Get autoConfig + * @return autoConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public AutoConfigOpenApiVo getAutoConfig() { + return autoConfig; + } + + public void setAutoConfig(AutoConfigOpenApiVo autoConfig) { + this.autoConfig = autoConfig; + } + + public UsbLteSettingOpenApiVo manuallyConfig(ManuallyConfigOpenApiVo manuallyConfig) { + this.manuallyConfig = manuallyConfig; + return this; + } + + /** + * Get manuallyConfig + * @return manuallyConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public ManuallyConfigOpenApiVo getManuallyConfig() { + return manuallyConfig; + } + + public void setManuallyConfig(ManuallyConfigOpenApiVo manuallyConfig) { + this.manuallyConfig = manuallyConfig; + } + + public UsbLteSettingOpenApiVo connectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + return this; + } + + /** + * 1: Connect Automatically, 2: Connect Manually + * @return connectionMode + */ + @ApiModelProperty(required = true, value = "1: Connect Automatically, 2: Connect Manually") + @NotNull + + + public Integer getConnectionMode() { + return connectionMode; + } + + public void setConnectionMode(Integer connectionMode) { + this.connectionMode = connectionMode; + } + + public UsbLteSettingOpenApiVo usbModemMsgId(Integer usbModemMsgId) { + this.usbModemMsgId = usbModemMsgId; + return this; + } + + /** + * Get usbModemMsgId + * @return usbModemMsgId + */ + @ApiModelProperty(value = "") + + + public Integer getUsbModemMsgId() { + return usbModemMsgId; + } + + public void setUsbModemMsgId(Integer usbModemMsgId) { + this.usbModemMsgId = usbModemMsgId; + } + + public UsbLteSettingOpenApiVo pin(String pin) { + this.pin = pin; + return this; + } + + /** + * It is required when [usbModemMsgId] is 1 or 3 + * @return pin + */ + @ApiModelProperty(value = "It is required when [usbModemMsgId] is 1 or 3") + + + public String getPin() { + return pin; + } + + public void setPin(String pin) { + this.pin = pin; + } + + public UsbLteSettingOpenApiVo authType(Integer authType) { + this.authType = authType; + return this; + } + + /** + * 0:Auto, 1:PAP, 2:CHAP + * @return authType + */ + @ApiModelProperty(required = true, value = "0:Auto, 1:PAP, 2:CHAP") + @NotNull + + + public Integer getAuthType() { + return authType; + } + + public void setAuthType(Integer authType) { + this.authType = authType; + } + + public UsbLteSettingOpenApiVo mtuSize(Integer mtuSize) { + this.mtuSize = mtuSize; + return this; + } + + /** + * MTU range from 576 ~ 1500 + * @return mtuSize + */ + @ApiModelProperty(required = true, value = "MTU range from 576 ~ 1500") + @NotNull + + + public Integer getMtuSize() { + return mtuSize; + } + + public void setMtuSize(Integer mtuSize) { + this.mtuSize = mtuSize; + } + + public UsbLteSettingOpenApiVo dnsEnable(Boolean dnsEnable) { + this.dnsEnable = dnsEnable; + return this; + } + + /** + * Get dnsEnable + * @return dnsEnable + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getDnsEnable() { + return dnsEnable; + } + + public void setDnsEnable(Boolean dnsEnable) { + this.dnsEnable = dnsEnable; + } + + public UsbLteSettingOpenApiVo dnsConfig(DnsConfigOpenApiVo dnsConfig) { + this.dnsConfig = dnsConfig; + return this; + } + + /** + * Get dnsConfig + * @return dnsConfig + */ + @ApiModelProperty(value = "") + + @Valid + + public DnsConfigOpenApiVo getDnsConfig() { + return dnsConfig; + } + + public void setDnsConfig(DnsConfigOpenApiVo dnsConfig) { + this.dnsConfig = dnsConfig; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UsbLteSettingOpenApiVo usbLteSettingOpenApiVo = (UsbLteSettingOpenApiVo) o; + return Objects.equals(this.portId, usbLteSettingOpenApiVo.portId) && + Objects.equals(this.portDescription, usbLteSettingOpenApiVo.portDescription) && + Objects.equals(this.usbModem, usbLteSettingOpenApiVo.usbModem) && + Objects.equals(this.configType, usbLteSettingOpenApiVo.configType) && + Objects.equals(this.autoConfig, usbLteSettingOpenApiVo.autoConfig) && + Objects.equals(this.manuallyConfig, usbLteSettingOpenApiVo.manuallyConfig) && + Objects.equals(this.connectionMode, usbLteSettingOpenApiVo.connectionMode) && + Objects.equals(this.usbModemMsgId, usbLteSettingOpenApiVo.usbModemMsgId) && + Objects.equals(this.pin, usbLteSettingOpenApiVo.pin) && + Objects.equals(this.authType, usbLteSettingOpenApiVo.authType) && + Objects.equals(this.mtuSize, usbLteSettingOpenApiVo.mtuSize) && + Objects.equals(this.dnsEnable, usbLteSettingOpenApiVo.dnsEnable) && + Objects.equals(this.dnsConfig, usbLteSettingOpenApiVo.dnsConfig); + } + + @Override + public int hashCode() { + return Objects.hash(portId, portDescription, usbModem, configType, autoConfig, manuallyConfig, connectionMode, usbModemMsgId, pin, authType, mtuSize, dnsEnable, dnsConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UsbLteSettingOpenApiVo {\n"); + + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append(" portDescription: ").append(toIndentedString(portDescription)).append("\n"); + sb.append(" usbModem: ").append(toIndentedString(usbModem)).append("\n"); + sb.append(" configType: ").append(toIndentedString(configType)).append("\n"); + sb.append(" autoConfig: ").append(toIndentedString(autoConfig)).append("\n"); + sb.append(" manuallyConfig: ").append(toIndentedString(manuallyConfig)).append("\n"); + sb.append(" connectionMode: ").append(toIndentedString(connectionMode)).append("\n"); + sb.append(" usbModemMsgId: ").append(toIndentedString(usbModemMsgId)).append("\n"); + sb.append(" pin: ").append(toIndentedString(pin)).append("\n"); + sb.append(" authType: ").append(toIndentedString(authType)).append("\n"); + sb.append(" mtuSize: ").append(toIndentedString(mtuSize)).append("\n"); + sb.append(" dnsEnable: ").append(toIndentedString(dnsEnable)).append("\n"); + sb.append(" dnsConfig: ").append(toIndentedString(dnsConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UseProfileOswOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UseProfileOswOpenApiVo.java new file mode 100644 index 0000000..5ff6027 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/UseProfileOswOpenApiVo.java @@ -0,0 +1,178 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * UseProfileOswOpenApiVO + */ +@ApiModel(description = "UseProfileOswOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class UseProfileOswOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + @JsonProperty("ip") + private String ip; + + public UseProfileOswOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Switch name + * @return name + */ + @ApiModelProperty(value = "Switch name") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public UseProfileOswOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Switch MAC address, like AA-BB-CC-DD-EE-FF + * @return mac + */ + @ApiModelProperty(value = "Switch MAC address, like AA-BB-CC-DD-EE-FF") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public UseProfileOswOpenApiVo model(String model) { + this.model = model; + return this; + } + + /** + * Device model + * @return model + */ + @ApiModelProperty(value = "Device model") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public UseProfileOswOpenApiVo modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * Device model version + * @return modelVersion + */ + @ApiModelProperty(value = "Device model version") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public UseProfileOswOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Device IP address + * @return ip + */ + @ApiModelProperty(value = "Device IP address") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + UseProfileOswOpenApiVo useProfileOswOpenApiVo = (UseProfileOswOpenApiVo) o; + return Objects.equals(this.name, useProfileOswOpenApiVo.name) && + Objects.equals(this.mac, useProfileOswOpenApiVo.mac) && + Objects.equals(this.model, useProfileOswOpenApiVo.model) && + Objects.equals(this.modelVersion, useProfileOswOpenApiVo.modelVersion) && + Objects.equals(this.ip, useProfileOswOpenApiVo.ip); + } + + @Override + public int hashCode() { + return Objects.hash(name, mac, model, modelVersion, ip); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class UseProfileOswOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanAvailableOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanAvailableOpenApiVo.java new file mode 100644 index 0000000..584ef01 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanAvailableOpenApiVo.java @@ -0,0 +1,178 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * VirtualWanAvailableInfo + */ +@ApiModel(description = "VirtualWanAvailableInfo") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanAvailableOpenApiVo { + @JsonProperty("virtualWanId") + private String virtualWanId; + + @JsonProperty("physicalWanId") + private String physicalWanId; + + @JsonProperty("name") + private String name; + + @JsonProperty("ipv4Proto") + private String ipv4Proto; + + @JsonProperty("type") + private Integer type; + + public VirtualWanAvailableOpenApiVo virtualWanId(String virtualWanId) { + this.virtualWanId = virtualWanId; + return this; + } + + /** + * Virtual WAN ID. + * @return virtualWanId + */ + @ApiModelProperty(value = "Virtual WAN ID.") + + + public String getVirtualWanId() { + return virtualWanId; + } + + public void setVirtualWanId(String virtualWanId) { + this.virtualWanId = virtualWanId; + } + + public VirtualWanAvailableOpenApiVo physicalWanId(String physicalWanId) { + this.physicalWanId = physicalWanId; + return this; + } + + /** + * Physical WAN ID. + * @return physicalWanId + */ + @ApiModelProperty(value = "Physical WAN ID.") + + + public String getPhysicalWanId() { + return physicalWanId; + } + + public void setPhysicalWanId(String physicalWanId) { + this.physicalWanId = physicalWanId; + } + + public VirtualWanAvailableOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Virtual WAN name. + * @return name + */ + @ApiModelProperty(value = "Virtual WAN name.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VirtualWanAvailableOpenApiVo ipv4Proto(String ipv4Proto) { + this.ipv4Proto = ipv4Proto; + return this; + } + + /** + * Virtual WAN IPv4 proto. + * @return ipv4Proto + */ + @ApiModelProperty(value = "Virtual WAN IPv4 proto.") + + + public String getIpv4Proto() { + return ipv4Proto; + } + + public void setIpv4Proto(String ipv4Proto) { + this.ipv4Proto = ipv4Proto; + } + + public VirtualWanAvailableOpenApiVo type(Integer type) { + this.type = type; + return this; + } + + /** + * Physical WAN port type, 0: WAN; 1:WAN/LAN; 2:LAN; 3:SFP WAN; 4:USB LTE WAN; 5: LTE WAN; 6:DSL WAN; + * @return type + */ + @ApiModelProperty(value = "Physical WAN port type, 0: WAN; 1:WAN/LAN; 2:LAN; 3:SFP WAN; 4:USB LTE WAN; 5: LTE WAN; 6:DSL WAN;") + + + public Integer getType() { + return type; + } + + public void setType(Integer type) { + this.type = type; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanAvailableOpenApiVo virtualWanAvailableOpenApiVo = (VirtualWanAvailableOpenApiVo) o; + return Objects.equals(this.virtualWanId, virtualWanAvailableOpenApiVo.virtualWanId) && + Objects.equals(this.physicalWanId, virtualWanAvailableOpenApiVo.physicalWanId) && + Objects.equals(this.name, virtualWanAvailableOpenApiVo.name) && + Objects.equals(this.ipv4Proto, virtualWanAvailableOpenApiVo.ipv4Proto) && + Objects.equals(this.type, virtualWanAvailableOpenApiVo.type); + } + + @Override + public int hashCode() { + return Objects.hash(virtualWanId, physicalWanId, name, ipv4Proto, type); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanAvailableOpenApiVo {\n"); + + sb.append(" virtualWanId: ").append(toIndentedString(virtualWanId)).append("\n"); + sb.append(" physicalWanId: ").append(toIndentedString(physicalWanId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" ipv4Proto: ").append(toIndentedString(ipv4Proto)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanAvailablesOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanAvailablesOpenApiVo.java new file mode 100644 index 0000000..284c2f0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanAvailablesOpenApiVo.java @@ -0,0 +1,91 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VirtualWanAvailablesInfo + */ +@ApiModel(description = "VirtualWanAvailablesInfo") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanAvailablesOpenApiVo { + @JsonProperty("wanPorts") + @Valid + private List wanPorts = null; + + public VirtualWanAvailablesOpenApiVo wanPorts(List wanPorts) { + this.wanPorts = wanPorts; + return this; + } + + public VirtualWanAvailablesOpenApiVo addWanPortsItem(VirtualWanAvailableOpenApiVo wanPortsItem) { + if (this.wanPorts == null) { + this.wanPorts = new ArrayList<>(); + } + this.wanPorts.add(wanPortsItem); + return this; + } + + /** + * Virtual WAN available list. + * @return wanPorts + */ + @ApiModelProperty(value = "Virtual WAN available list.") + + @Valid + + public List getWanPorts() { + return wanPorts; + } + + public void setWanPorts(List wanPorts) { + this.wanPorts = wanPorts; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanAvailablesOpenApiVo virtualWanAvailablesOpenApiVo = (VirtualWanAvailablesOpenApiVo) o; + return Objects.equals(this.wanPorts, virtualWanAvailablesOpenApiVo.wanPorts); + } + + @Override + public int hashCode() { + return Objects.hash(wanPorts); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanAvailablesOpenApiVo {\n"); + + sb.append(" wanPorts: ").append(toIndentedString(wanPorts)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanConfigOpenApiVo.java new file mode 100644 index 0000000..f5c2e9e --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanConfigOpenApiVo.java @@ -0,0 +1,187 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * VirtualWanConfig + */ +@ApiModel(description = "VirtualWanConfig") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanConfigOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("physicalWanId") + private String physicalWanId; + + @JsonProperty("virtualWanIpv4Setting") + private VirtualWanIpv4SettingConfigOpenApiVo virtualWanIpv4Setting; + + @JsonProperty("virtualWanDsl") + private VirtualWanDslOpenApiVo virtualWanDsl; + + @JsonProperty("wanPortMacSetting") + private VirtualWanMacSettingOpenApiVo wanPortMacSetting; + + public VirtualWanConfigOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Virtual WAN name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "Virtual WAN name should contain 1 to 128 characters.") + @NotNull + +@Pattern(regexp="^[^ \\+\\-\\@\\=]$|^[^ \\+\\-\\@\\=].{0,126}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VirtualWanConfigOpenApiVo physicalWanId(String physicalWanId) { + this.physicalWanId = physicalWanId; + return this; + } + + /** + * Physical WAN ID. Physical WAN ID can be obtained from 'Get internet basic info' interface. Only DSL WAN supports configuring virtual WAN. + * @return physicalWanId + */ + @ApiModelProperty(required = true, value = "Physical WAN ID. Physical WAN ID can be obtained from 'Get internet basic info' interface. Only DSL WAN supports configuring virtual WAN. ") + @NotNull + + + public String getPhysicalWanId() { + return physicalWanId; + } + + public void setPhysicalWanId(String physicalWanId) { + this.physicalWanId = physicalWanId; + } + + public VirtualWanConfigOpenApiVo virtualWanIpv4Setting(VirtualWanIpv4SettingConfigOpenApiVo virtualWanIpv4Setting) { + this.virtualWanIpv4Setting = virtualWanIpv4Setting; + return this; + } + + /** + * Get virtualWanIpv4Setting + * @return virtualWanIpv4Setting + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public VirtualWanIpv4SettingConfigOpenApiVo getVirtualWanIpv4Setting() { + return virtualWanIpv4Setting; + } + + public void setVirtualWanIpv4Setting(VirtualWanIpv4SettingConfigOpenApiVo virtualWanIpv4Setting) { + this.virtualWanIpv4Setting = virtualWanIpv4Setting; + } + + public VirtualWanConfigOpenApiVo virtualWanDsl(VirtualWanDslOpenApiVo virtualWanDsl) { + this.virtualWanDsl = virtualWanDsl; + return this; + } + + /** + * Get virtualWanDsl + * @return virtualWanDsl + */ + @ApiModelProperty(value = "") + + @Valid + + public VirtualWanDslOpenApiVo getVirtualWanDsl() { + return virtualWanDsl; + } + + public void setVirtualWanDsl(VirtualWanDslOpenApiVo virtualWanDsl) { + this.virtualWanDsl = virtualWanDsl; + } + + public VirtualWanConfigOpenApiVo wanPortMacSetting(VirtualWanMacSettingOpenApiVo wanPortMacSetting) { + this.wanPortMacSetting = wanPortMacSetting; + return this; + } + + /** + * Get wanPortMacSetting + * @return wanPortMacSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public VirtualWanMacSettingOpenApiVo getWanPortMacSetting() { + return wanPortMacSetting; + } + + public void setWanPortMacSetting(VirtualWanMacSettingOpenApiVo wanPortMacSetting) { + this.wanPortMacSetting = wanPortMacSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanConfigOpenApiVo virtualWanConfigOpenApiVo = (VirtualWanConfigOpenApiVo) o; + return Objects.equals(this.name, virtualWanConfigOpenApiVo.name) && + Objects.equals(this.physicalWanId, virtualWanConfigOpenApiVo.physicalWanId) && + Objects.equals(this.virtualWanIpv4Setting, virtualWanConfigOpenApiVo.virtualWanIpv4Setting) && + Objects.equals(this.virtualWanDsl, virtualWanConfigOpenApiVo.virtualWanDsl) && + Objects.equals(this.wanPortMacSetting, virtualWanConfigOpenApiVo.wanPortMacSetting); + } + + @Override + public int hashCode() { + return Objects.hash(name, physicalWanId, virtualWanIpv4Setting, virtualWanDsl, wanPortMacSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanConfigOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" physicalWanId: ").append(toIndentedString(physicalWanId)).append("\n"); + sb.append(" virtualWanIpv4Setting: ").append(toIndentedString(virtualWanIpv4Setting)).append("\n"); + sb.append(" virtualWanDsl: ").append(toIndentedString(virtualWanDsl)).append("\n"); + sb.append(" wanPortMacSetting: ").append(toIndentedString(wanPortMacSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanDslOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanDslOpenApiVo.java new file mode 100644 index 0000000..7d97104 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanDslOpenApiVo.java @@ -0,0 +1,283 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * VirtualWanDslOpenApiVO + */ +@ApiModel(description = "VirtualWanDslOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanDslOpenApiVo { + @JsonProperty("vpi") + private Integer vpi; + + @JsonProperty("vci") + private Integer vci; + + @JsonProperty("encapMode") + private Integer encapMode; + + @JsonProperty("location") + private String location; + + @JsonProperty("merEnable") + private Boolean merEnable; + + @JsonProperty("merUsername") + private String merUsername; + + @JsonProperty("merPassword") + private String merPassword; + + @JsonProperty("isp") + private Integer isp; + + @JsonProperty("modulationType") + private Integer modulationType; + + public VirtualWanDslOpenApiVo vpi(Integer vpi) { + this.vpi = vpi; + return this; + } + + /** + * The VPI(0~255) assigned by your ISP to specify the virtual path between endpoints in an ATM network. + * @return vpi + */ + @ApiModelProperty(value = "The VPI(0~255) assigned by your ISP to specify the virtual path between endpoints in an ATM network.") + + + public Integer getVpi() { + return vpi; + } + + public void setVpi(Integer vpi) { + this.vpi = vpi; + } + + public VirtualWanDslOpenApiVo vci(Integer vci) { + this.vci = vci; + return this; + } + + /** + * The VCI(1~65535) assigned by your ISP to specify the virtual channel endpoints in an ATM network. + * @return vci + */ + @ApiModelProperty(value = "The VCI(1~65535) assigned by your ISP to specify the virtual channel endpoints in an ATM network.") + + + public Integer getVci() { + return vci; + } + + public void setVci(Integer vci) { + this.vci = vci; + } + + public VirtualWanDslOpenApiVo encapMode(Integer encapMode) { + this.encapMode = encapMode; + return this; + } + + /** + * Encap mode assigned by your ISP. 0: LLC, 1: VC-MUX, 2: VC/MUX, 3: 1483 Bridged IP LLC, 4: 1483 Routed IP LLC. + * @return encapMode + */ + @ApiModelProperty(value = "Encap mode assigned by your ISP. 0: LLC, 1: VC-MUX, 2: VC/MUX, 3: 1483 Bridged IP LLC, 4: 1483 Routed IP LLC.") + + + public Integer getEncapMode() { + return encapMode; + } + + public void setEncapMode(Integer encapMode) { + this.encapMode = encapMode; + } + + public VirtualWanDslOpenApiVo location(String location) { + this.location = location; + return this; + } + + /** + * Your country/region. + * @return location + */ + @ApiModelProperty(required = true, value = "Your country/region.") + @NotNull + + + public String getLocation() { + return location; + } + + public void setLocation(String location) { + this.location = location; + } + + public VirtualWanDslOpenApiVo merEnable(Boolean merEnable) { + this.merEnable = merEnable; + return this; + } + + /** + * If your ISP requires MER for network connection(e.g., Sky VDSL).MER switch configuration, only configurable when in VDSL mode and DHCP dial-up mode. + * @return merEnable + */ + @ApiModelProperty(value = "If your ISP requires MER for network connection(e.g., Sky VDSL).MER switch configuration, only configurable when in VDSL mode and DHCP dial-up mode.") + + + public Boolean getMerEnable() { + return merEnable; + } + + public void setMerEnable(Boolean merEnable) { + this.merEnable = merEnable; + } + + public VirtualWanDslOpenApiVo merUsername(String merUsername) { + this.merUsername = merUsername; + return this; + } + + /** + * MER username configuration, only configurable when in VDSL mode and DHCP dial-up mode. + * @return merUsername + */ + @ApiModelProperty(value = "MER username configuration, only configurable when in VDSL mode and DHCP dial-up mode.") + +@Pattern(regexp="^[^\\s]{1,63}$") + public String getMerUsername() { + return merUsername; + } + + public void setMerUsername(String merUsername) { + this.merUsername = merUsername; + } + + public VirtualWanDslOpenApiVo merPassword(String merPassword) { + this.merPassword = merPassword; + return this; + } + + /** + * MER password configuration, only configurable when in VDSL mode and DHCP dial-up mode. + * @return merPassword + */ + @ApiModelProperty(value = "MER password configuration, only configurable when in VDSL mode and DHCP dial-up mode.") + +@Pattern(regexp="^[^\\s]{1,63}$") + public String getMerPassword() { + return merPassword; + } + + public void setMerPassword(String merPassword) { + this.merPassword = merPassword; + } + + public VirtualWanDslOpenApiVo isp(Integer isp) { + this.isp = isp; + return this; + } + + /** + * Your ISP (Internet Service Provider) from the drop-down list,Select Other to customize the settings. + * @return isp + */ + @ApiModelProperty(required = true, value = "Your ISP (Internet Service Provider) from the drop-down list,Select Other to customize the settings.") + @NotNull + + + public Integer getIsp() { + return isp; + } + + public void setIsp(Integer isp) { + this.isp = isp; + } + + public VirtualWanDslOpenApiVo modulationType(Integer modulationType) { + this.modulationType = modulationType; + return this; + } + + /** + * The modulation type used for your DSL connection. 0: VDSL, 1: ADSL. + * @return modulationType + */ + @ApiModelProperty(required = true, value = "The modulation type used for your DSL connection. 0: VDSL, 1: ADSL.") + @NotNull + + + public Integer getModulationType() { + return modulationType; + } + + public void setModulationType(Integer modulationType) { + this.modulationType = modulationType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanDslOpenApiVo virtualWanDslOpenApiVo = (VirtualWanDslOpenApiVo) o; + return Objects.equals(this.vpi, virtualWanDslOpenApiVo.vpi) && + Objects.equals(this.vci, virtualWanDslOpenApiVo.vci) && + Objects.equals(this.encapMode, virtualWanDslOpenApiVo.encapMode) && + Objects.equals(this.location, virtualWanDslOpenApiVo.location) && + Objects.equals(this.merEnable, virtualWanDslOpenApiVo.merEnable) && + Objects.equals(this.merUsername, virtualWanDslOpenApiVo.merUsername) && + Objects.equals(this.merPassword, virtualWanDslOpenApiVo.merPassword) && + Objects.equals(this.isp, virtualWanDslOpenApiVo.isp) && + Objects.equals(this.modulationType, virtualWanDslOpenApiVo.modulationType); + } + + @Override + public int hashCode() { + return Objects.hash(vpi, vci, encapMode, location, merEnable, merUsername, merPassword, isp, modulationType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanDslOpenApiVo {\n"); + + sb.append(" vpi: ").append(toIndentedString(vpi)).append("\n"); + sb.append(" vci: ").append(toIndentedString(vci)).append("\n"); + sb.append(" encapMode: ").append(toIndentedString(encapMode)).append("\n"); + sb.append(" location: ").append(toIndentedString(location)).append("\n"); + sb.append(" merEnable: ").append(toIndentedString(merEnable)).append("\n"); + sb.append(" merUsername: ").append(toIndentedString(merUsername)).append("\n"); + sb.append(" merPassword: ").append(toIndentedString(merPassword)).append("\n"); + sb.append(" isp: ").append(toIndentedString(isp)).append("\n"); + sb.append(" modulationType: ").append(toIndentedString(modulationType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.java new file mode 100644 index 0000000..08895d0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.java @@ -0,0 +1,239 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo { + @JsonProperty("totalRows") + private Long totalRows; + + @JsonProperty("currentPage") + private Integer currentPage; + + @JsonProperty("currentSize") + private Integer currentSize; + + @JsonProperty("data") + @Valid + private List data = null; + + @JsonProperty("supportMssClamping") + private Boolean supportMssClamping; + + @JsonProperty("supportPppoeMru") + private Boolean supportPppoeMru; + + @JsonProperty("numReachLimit") + private Boolean numReachLimit; + + public VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo totalRows(Long totalRows) { + this.totalRows = totalRows; + return this; + } + + /** + * Total rows of all items. + * @return totalRows + */ + @ApiModelProperty(value = "Total rows of all items.") + + + public Long getTotalRows() { + return totalRows; + } + + public void setTotalRows(Long totalRows) { + this.totalRows = totalRows; + } + + public VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo currentPage(Integer currentPage) { + this.currentPage = currentPage; + return this; + } + + /** + * Current page number. + * @return currentPage + */ + @ApiModelProperty(value = "Current page number.") + + + public Integer getCurrentPage() { + return currentPage; + } + + public void setCurrentPage(Integer currentPage) { + this.currentPage = currentPage; + } + + public VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo currentSize(Integer currentSize) { + this.currentSize = currentSize; + return this; + } + + /** + * Number of entries per page. + * @return currentSize + */ + @ApiModelProperty(value = "Number of entries per page.") + + + public Integer getCurrentSize() { + return currentSize; + } + + public void setCurrentSize(Integer currentSize) { + this.currentSize = currentSize; + } + + public VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo data(List data) { + this.data = data; + return this; + } + + public VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo addDataItem(VirtualWanInfoOpenApiVo dataItem) { + if (this.data == null) { + this.data = new ArrayList<>(); + } + this.data.add(dataItem); + return this; + } + + /** + * Get data + * @return data + */ + @ApiModelProperty(value = "") + + @Valid + + public List getData() { + return data; + } + + public void setData(List data) { + this.data = data; + } + + public VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo supportMssClamping(Boolean supportMssClamping) { + this.supportMssClamping = supportMssClamping; + return this; + } + + /** + * Whether the pppoe supports mss clamping. + * @return supportMssClamping + */ + @ApiModelProperty(value = "Whether the pppoe supports mss clamping.") + + + public Boolean getSupportMssClamping() { + return supportMssClamping; + } + + public void setSupportMssClamping(Boolean supportMssClamping) { + this.supportMssClamping = supportMssClamping; + } + + public VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo supportPppoeMru(Boolean supportPppoeMru) { + this.supportPppoeMru = supportPppoeMru; + return this; + } + + /** + * Whether the virtual WAN supports configuring pppoe mru. + * @return supportPppoeMru + */ + @ApiModelProperty(value = "Whether the virtual WAN supports configuring pppoe mru.") + + + public Boolean getSupportPppoeMru() { + return supportPppoeMru; + } + + public void setSupportPppoeMru(Boolean supportPppoeMru) { + this.supportPppoeMru = supportPppoeMru; + } + + public VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo numReachLimit(Boolean numReachLimit) { + this.numReachLimit = numReachLimit; + return this; + } + + /** + * Whether the virtual WAN reaches number limit. + * @return numReachLimit + */ + @ApiModelProperty(value = "Whether the virtual WAN reaches number limit.") + + + public Boolean getNumReachLimit() { + return numReachLimit; + } + + public void setNumReachLimit(Boolean numReachLimit) { + this.numReachLimit = numReachLimit; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo virtualWanGridOpenApiVoVirtualWanInfoOpenApiVo = (VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo) o; + return Objects.equals(this.totalRows, virtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.totalRows) && + Objects.equals(this.currentPage, virtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.currentPage) && + Objects.equals(this.currentSize, virtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.currentSize) && + Objects.equals(this.data, virtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.data) && + Objects.equals(this.supportMssClamping, virtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.supportMssClamping) && + Objects.equals(this.supportPppoeMru, virtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.supportPppoeMru) && + Objects.equals(this.numReachLimit, virtualWanGridOpenApiVoVirtualWanInfoOpenApiVo.numReachLimit); + } + + @Override + public int hashCode() { + return Objects.hash(totalRows, currentPage, currentSize, data, supportMssClamping, supportPppoeMru, numReachLimit); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanGridOpenApiVoVirtualWanInfoOpenApiVo {\n"); + + sb.append(" totalRows: ").append(toIndentedString(totalRows)).append("\n"); + sb.append(" currentPage: ").append(toIndentedString(currentPage)).append("\n"); + sb.append(" currentSize: ").append(toIndentedString(currentSize)).append("\n"); + sb.append(" data: ").append(toIndentedString(data)).append("\n"); + sb.append(" supportMssClamping: ").append(toIndentedString(supportMssClamping)).append("\n"); + sb.append(" supportPppoeMru: ").append(toIndentedString(supportPppoeMru)).append("\n"); + sb.append(" numReachLimit: ").append(toIndentedString(numReachLimit)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanInfoOpenApiVo.java new file mode 100644 index 0000000..74030a7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanInfoOpenApiVo.java @@ -0,0 +1,256 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * VirtualWanInfo + */ +@ApiModel(description = "VirtualWanInfo") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanInfoOpenApiVo { + @JsonProperty("status") + private Boolean status; + + @JsonProperty("name") + private String name; + + @JsonProperty("physicalWanName") + private String physicalWanName; + + @JsonProperty("physicalWanId") + private String physicalWanId; + + @JsonProperty("physicalWanPortId") + private Integer physicalWanPortId; + + @JsonProperty("id") + private String id; + + @JsonProperty("wanPortIpv4Setting") + private VirtualWanIpv4SettingInfoOpenApiVo wanPortIpv4Setting; + + @JsonProperty("dslSetting") + private VirtualWanDslOpenApiVo dslSetting; + + public VirtualWanInfoOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Virtual WAN status. + * @return status + */ + @ApiModelProperty(value = "Virtual WAN status.") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public VirtualWanInfoOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * Virtual WAN name. + * @return name + */ + @ApiModelProperty(value = "Virtual WAN name. ") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VirtualWanInfoOpenApiVo physicalWanName(String physicalWanName) { + this.physicalWanName = physicalWanName; + return this; + } + + /** + * Physical WAN name. + * @return physicalWanName + */ + @ApiModelProperty(value = "Physical WAN name.") + + + public String getPhysicalWanName() { + return physicalWanName; + } + + public void setPhysicalWanName(String physicalWanName) { + this.physicalWanName = physicalWanName; + } + + public VirtualWanInfoOpenApiVo physicalWanId(String physicalWanId) { + this.physicalWanId = physicalWanId; + return this; + } + + /** + * Physical WAN ID. + * @return physicalWanId + */ + @ApiModelProperty(value = "Physical WAN ID.") + + + public String getPhysicalWanId() { + return physicalWanId; + } + + public void setPhysicalWanId(String physicalWanId) { + this.physicalWanId = physicalWanId; + } + + public VirtualWanInfoOpenApiVo physicalWanPortId(Integer physicalWanPortId) { + this.physicalWanPortId = physicalWanPortId; + return this; + } + + /** + * Physical WAN port ID. + * @return physicalWanPortId + */ + @ApiModelProperty(value = "Physical WAN port ID.") + + + public Integer getPhysicalWanPortId() { + return physicalWanPortId; + } + + public void setPhysicalWanPortId(Integer physicalWanPortId) { + this.physicalWanPortId = physicalWanPortId; + } + + public VirtualWanInfoOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * Virtual WAN ID. + * @return id + */ + @ApiModelProperty(value = "Virtual WAN ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VirtualWanInfoOpenApiVo wanPortIpv4Setting(VirtualWanIpv4SettingInfoOpenApiVo wanPortIpv4Setting) { + this.wanPortIpv4Setting = wanPortIpv4Setting; + return this; + } + + /** + * Get wanPortIpv4Setting + * @return wanPortIpv4Setting + */ + @ApiModelProperty(value = "") + + @Valid + + public VirtualWanIpv4SettingInfoOpenApiVo getWanPortIpv4Setting() { + return wanPortIpv4Setting; + } + + public void setWanPortIpv4Setting(VirtualWanIpv4SettingInfoOpenApiVo wanPortIpv4Setting) { + this.wanPortIpv4Setting = wanPortIpv4Setting; + } + + public VirtualWanInfoOpenApiVo dslSetting(VirtualWanDslOpenApiVo dslSetting) { + this.dslSetting = dslSetting; + return this; + } + + /** + * Get dslSetting + * @return dslSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public VirtualWanDslOpenApiVo getDslSetting() { + return dslSetting; + } + + public void setDslSetting(VirtualWanDslOpenApiVo dslSetting) { + this.dslSetting = dslSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanInfoOpenApiVo virtualWanInfoOpenApiVo = (VirtualWanInfoOpenApiVo) o; + return Objects.equals(this.status, virtualWanInfoOpenApiVo.status) && + Objects.equals(this.name, virtualWanInfoOpenApiVo.name) && + Objects.equals(this.physicalWanName, virtualWanInfoOpenApiVo.physicalWanName) && + Objects.equals(this.physicalWanId, virtualWanInfoOpenApiVo.physicalWanId) && + Objects.equals(this.physicalWanPortId, virtualWanInfoOpenApiVo.physicalWanPortId) && + Objects.equals(this.id, virtualWanInfoOpenApiVo.id) && + Objects.equals(this.wanPortIpv4Setting, virtualWanInfoOpenApiVo.wanPortIpv4Setting) && + Objects.equals(this.dslSetting, virtualWanInfoOpenApiVo.dslSetting); + } + + @Override + public int hashCode() { + return Objects.hash(status, name, physicalWanName, physicalWanId, physicalWanPortId, id, wanPortIpv4Setting, dslSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanInfoOpenApiVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" physicalWanName: ").append(toIndentedString(physicalWanName)).append("\n"); + sb.append(" physicalWanId: ").append(toIndentedString(physicalWanId)).append("\n"); + sb.append(" physicalWanPortId: ").append(toIndentedString(physicalWanPortId)).append("\n"); + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" wanPortIpv4Setting: ").append(toIndentedString(wanPortIpv4Setting)).append("\n"); + sb.append(" dslSetting: ").append(toIndentedString(dslSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4Connection2OpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4Connection2OpenApiVo.java new file mode 100644 index 0000000..c9e4667 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4Connection2OpenApiVo.java @@ -0,0 +1,254 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * VirtualWanIpv4Connection2OpenApiVO + */ +@ApiModel(description = "VirtualWanIpv4Connection2OpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanIpv4Connection2OpenApiVo { + @JsonProperty("mainProto") + private String mainProto; + + @JsonProperty("proto") + private String proto; + + @JsonProperty("server") + private String server; + + @JsonProperty("ipaddr") + private String ipaddr; + + @JsonProperty("netmask") + private String netmask; + + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("dns1") + private String dns1; + + @JsonProperty("dns2") + private String dns2; + + public VirtualWanIpv4Connection2OpenApiVo mainProto(String mainProto) { + this.mainProto = mainProto; + return this; + } + + /** + * The main virtual WAN IPv4 proto type, use static, dhcp, pppoe. + * @return mainProto + */ + @ApiModelProperty(value = "The main virtual WAN IPv4 proto type, use static, dhcp, pppoe.") + + + public String getMainProto() { + return mainProto; + } + + public void setMainProto(String mainProto) { + this.mainProto = mainProto; + } + + public VirtualWanIpv4Connection2OpenApiVo proto(String proto) { + this.proto = proto; + return this; + } + + /** + * The second virtual WAN IPv4 proto type, use static, dhcp, pppoe. + * @return proto + */ + @ApiModelProperty(value = "The second virtual WAN IPv4 proto type, use static, dhcp, pppoe.") + + + public String getProto() { + return proto; + } + + public void setProto(String proto) { + this.proto = proto; + } + + public VirtualWanIpv4Connection2OpenApiVo server(String server) { + this.server = server; + return this; + } + + /** + * VPN server IP/domain. + * @return server + */ + @ApiModelProperty(value = "VPN server IP/domain.") + + + public String getServer() { + return server; + } + + public void setServer(String server) { + this.server = server; + } + + public VirtualWanIpv4Connection2OpenApiVo ipaddr(String ipaddr) { + this.ipaddr = ipaddr; + return this; + } + + /** + * IP address. + * @return ipaddr + */ + @ApiModelProperty(value = "IP address.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpaddr() { + return ipaddr; + } + + public void setIpaddr(String ipaddr) { + this.ipaddr = ipaddr; + } + + public VirtualWanIpv4Connection2OpenApiVo netmask(String netmask) { + this.netmask = netmask; + return this; + } + + /** + * Subnet mask. + * @return netmask + */ + @ApiModelProperty(value = "Subnet mask.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getNetmask() { + return netmask; + } + + public void setNetmask(String netmask) { + this.netmask = netmask; + } + + public VirtualWanIpv4Connection2OpenApiVo gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Gateway IP. + * @return gateway + */ + @ApiModelProperty(value = "Gateway IP.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public VirtualWanIpv4Connection2OpenApiVo dns1(String dns1) { + this.dns1 = dns1; + return this; + } + + /** + * Primary DNS server. + * @return dns1 + */ + @ApiModelProperty(value = "Primary DNS server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns1() { + return dns1; + } + + public void setDns1(String dns1) { + this.dns1 = dns1; + } + + public VirtualWanIpv4Connection2OpenApiVo dns2(String dns2) { + this.dns2 = dns2; + return this; + } + + /** + * Secondary DNS server. + * @return dns2 + */ + @ApiModelProperty(value = "Secondary DNS server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns2() { + return dns2; + } + + public void setDns2(String dns2) { + this.dns2 = dns2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanIpv4Connection2OpenApiVo virtualWanIpv4Connection2OpenApiVo = (VirtualWanIpv4Connection2OpenApiVo) o; + return Objects.equals(this.mainProto, virtualWanIpv4Connection2OpenApiVo.mainProto) && + Objects.equals(this.proto, virtualWanIpv4Connection2OpenApiVo.proto) && + Objects.equals(this.server, virtualWanIpv4Connection2OpenApiVo.server) && + Objects.equals(this.ipaddr, virtualWanIpv4Connection2OpenApiVo.ipaddr) && + Objects.equals(this.netmask, virtualWanIpv4Connection2OpenApiVo.netmask) && + Objects.equals(this.gateway, virtualWanIpv4Connection2OpenApiVo.gateway) && + Objects.equals(this.dns1, virtualWanIpv4Connection2OpenApiVo.dns1) && + Objects.equals(this.dns2, virtualWanIpv4Connection2OpenApiVo.dns2); + } + + @Override + public int hashCode() { + return Objects.hash(mainProto, proto, server, ipaddr, netmask, gateway, dns1, dns2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanIpv4Connection2OpenApiVo {\n"); + + sb.append(" mainProto: ").append(toIndentedString(mainProto)).append("\n"); + sb.append(" proto: ").append(toIndentedString(proto)).append("\n"); + sb.append(" server: ").append(toIndentedString(server)).append("\n"); + sb.append(" ipaddr: ").append(toIndentedString(ipaddr)).append("\n"); + sb.append(" netmask: ").append(toIndentedString(netmask)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" dns1: ").append(toIndentedString(dns1)).append("\n"); + sb.append(" dns2: ").append(toIndentedString(dns2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4DhcpOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4DhcpOpenApiVo.java new file mode 100644 index 0000000..9b97bdc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4DhcpOpenApiVo.java @@ -0,0 +1,217 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VirtualWanIpv4DhcpOpenApiVO + */ +@ApiModel(description = "VirtualWanIpv4DhcpOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanIpv4DhcpOpenApiVo { + @JsonProperty("unicast") + private String unicast; + + @JsonProperty("dns1") + private String dns1; + + @JsonProperty("dns2") + private String dns2; + + @JsonProperty("hostname") + private String hostname; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("dhcpOptions") + @Valid + private List dhcpOptions = null; + + public VirtualWanIpv4DhcpOpenApiVo unicast(String unicast) { + this.unicast = unicast; + return this; + } + + /** + * Subnet mask of virtual WAN. + * @return unicast + */ + @ApiModelProperty(value = "Subnet mask of virtual WAN.") + + + public String getUnicast() { + return unicast; + } + + public void setUnicast(String unicast) { + this.unicast = unicast; + } + + public VirtualWanIpv4DhcpOpenApiVo dns1(String dns1) { + this.dns1 = dns1; + return this; + } + + /** + * Primary DNS server. + * @return dns1 + */ + @ApiModelProperty(value = "Primary DNS server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns1() { + return dns1; + } + + public void setDns1(String dns1) { + this.dns1 = dns1; + } + + public VirtualWanIpv4DhcpOpenApiVo dns2(String dns2) { + this.dns2 = dns2; + return this; + } + + /** + * Secondary DNS server. + * @return dns2 + */ + @ApiModelProperty(value = "Secondary DNS server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns2() { + return dns2; + } + + public void setDns2(String dns2) { + this.dns2 = dns2; + } + + public VirtualWanIpv4DhcpOpenApiVo hostname(String hostname) { + this.hostname = hostname; + return this; + } + + /** + * Host name. Parameter [hostname] should be up to 63 characters long and can only use numbers, letters, and underscores. + * @return hostname + */ + @ApiModelProperty(value = "Host name. Parameter [hostname] should be up to 63 characters long and can only use numbers, letters, and underscores.") + +@Pattern(regexp="^[a-zA-Z0-9_]{0,63}$") + public String getHostname() { + return hostname; + } + + public void setHostname(String hostname) { + this.hostname = hostname; + } + + public VirtualWanIpv4DhcpOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * Parameter [mtu] should be a value between 576 and 1500. + * @return mtu + */ + @ApiModelProperty(value = "Parameter [mtu] should be a value between 576 and 1500.") + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public VirtualWanIpv4DhcpOpenApiVo dhcpOptions(List dhcpOptions) { + this.dhcpOptions = dhcpOptions; + return this; + } + + public VirtualWanIpv4DhcpOpenApiVo addDhcpOptionsItem(CustomDhcpOptions dhcpOptionsItem) { + if (this.dhcpOptions == null) { + this.dhcpOptions = new ArrayList<>(); + } + this.dhcpOptions.add(dhcpOptionsItem); + return this; + } + + /** + * Virtual WAN custom DHCP options. + * @return dhcpOptions + */ + @ApiModelProperty(value = "Virtual WAN custom DHCP options.") + + @Valid + + public List getDhcpOptions() { + return dhcpOptions; + } + + public void setDhcpOptions(List dhcpOptions) { + this.dhcpOptions = dhcpOptions; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanIpv4DhcpOpenApiVo virtualWanIpv4DhcpOpenApiVo = (VirtualWanIpv4DhcpOpenApiVo) o; + return Objects.equals(this.unicast, virtualWanIpv4DhcpOpenApiVo.unicast) && + Objects.equals(this.dns1, virtualWanIpv4DhcpOpenApiVo.dns1) && + Objects.equals(this.dns2, virtualWanIpv4DhcpOpenApiVo.dns2) && + Objects.equals(this.hostname, virtualWanIpv4DhcpOpenApiVo.hostname) && + Objects.equals(this.mtu, virtualWanIpv4DhcpOpenApiVo.mtu) && + Objects.equals(this.dhcpOptions, virtualWanIpv4DhcpOpenApiVo.dhcpOptions); + } + + @Override + public int hashCode() { + return Objects.hash(unicast, dns1, dns2, hostname, mtu, dhcpOptions); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanIpv4DhcpOpenApiVo {\n"); + + sb.append(" unicast: ").append(toIndentedString(unicast)).append("\n"); + sb.append(" dns1: ").append(toIndentedString(dns1)).append("\n"); + sb.append(" dns2: ").append(toIndentedString(dns2)).append("\n"); + sb.append(" hostname: ").append(toIndentedString(hostname)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" dhcpOptions: ").append(toIndentedString(dhcpOptions)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4IpoaOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4IpoaOpenApiVo.java new file mode 100644 index 0000000..21f847f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4IpoaOpenApiVo.java @@ -0,0 +1,242 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VirtualWanIpv4IpoaOpenApiVO + */ +@ApiModel(description = "VirtualWanIpv4IpoaOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanIpv4IpoaOpenApiVo { + @JsonProperty("ipaddr") + private String ipaddr; + + @JsonProperty("netmask") + private String netmask; + + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("dns1") + private String dns1; + + @JsonProperty("dns2") + private String dns2; + + @JsonProperty("wanMultipleIps") + @Valid + private List wanMultipleIps = null; + + public VirtualWanIpv4IpoaOpenApiVo ipaddr(String ipaddr) { + this.ipaddr = ipaddr; + return this; + } + + /** + * IP address. + * @return ipaddr + */ + @ApiModelProperty(value = "IP address.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpaddr() { + return ipaddr; + } + + public void setIpaddr(String ipaddr) { + this.ipaddr = ipaddr; + } + + public VirtualWanIpv4IpoaOpenApiVo netmask(String netmask) { + this.netmask = netmask; + return this; + } + + /** + * Subnet mask. + * @return netmask + */ + @ApiModelProperty(value = "Subnet mask.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getNetmask() { + return netmask; + } + + public void setNetmask(String netmask) { + this.netmask = netmask; + } + + public VirtualWanIpv4IpoaOpenApiVo gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Gateway IP. + * @return gateway + */ + @ApiModelProperty(value = "Gateway IP.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public VirtualWanIpv4IpoaOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * Parameter [mtu] should be a value between 576 and 1500. + * @return mtu + */ + @ApiModelProperty(value = "Parameter [mtu] should be a value between 576 and 1500.") + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public VirtualWanIpv4IpoaOpenApiVo dns1(String dns1) { + this.dns1 = dns1; + return this; + } + + /** + * Primary DNS server. + * @return dns1 + */ + @ApiModelProperty(value = "Primary DNS server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns1() { + return dns1; + } + + public void setDns1(String dns1) { + this.dns1 = dns1; + } + + public VirtualWanIpv4IpoaOpenApiVo dns2(String dns2) { + this.dns2 = dns2; + return this; + } + + /** + * Secondary DNS server. + * @return dns2 + */ + @ApiModelProperty(value = "Secondary DNS server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns2() { + return dns2; + } + + public void setDns2(String dns2) { + this.dns2 = dns2; + } + + public VirtualWanIpv4IpoaOpenApiVo wanMultipleIps(List wanMultipleIps) { + this.wanMultipleIps = wanMultipleIps; + return this; + } + + public VirtualWanIpv4IpoaOpenApiVo addWanMultipleIpsItem(VirtualWanMultipleIpVo wanMultipleIpsItem) { + if (this.wanMultipleIps == null) { + this.wanMultipleIps = new ArrayList<>(); + } + this.wanMultipleIps.add(wanMultipleIpsItem); + return this; + } + + /** + * Get wanMultipleIps + * @return wanMultipleIps + */ + @ApiModelProperty(value = "") + + @Valid + + public List getWanMultipleIps() { + return wanMultipleIps; + } + + public void setWanMultipleIps(List wanMultipleIps) { + this.wanMultipleIps = wanMultipleIps; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanIpv4IpoaOpenApiVo virtualWanIpv4IpoaOpenApiVo = (VirtualWanIpv4IpoaOpenApiVo) o; + return Objects.equals(this.ipaddr, virtualWanIpv4IpoaOpenApiVo.ipaddr) && + Objects.equals(this.netmask, virtualWanIpv4IpoaOpenApiVo.netmask) && + Objects.equals(this.gateway, virtualWanIpv4IpoaOpenApiVo.gateway) && + Objects.equals(this.mtu, virtualWanIpv4IpoaOpenApiVo.mtu) && + Objects.equals(this.dns1, virtualWanIpv4IpoaOpenApiVo.dns1) && + Objects.equals(this.dns2, virtualWanIpv4IpoaOpenApiVo.dns2) && + Objects.equals(this.wanMultipleIps, virtualWanIpv4IpoaOpenApiVo.wanMultipleIps); + } + + @Override + public int hashCode() { + return Objects.hash(ipaddr, netmask, gateway, mtu, dns1, dns2, wanMultipleIps); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanIpv4IpoaOpenApiVo {\n"); + + sb.append(" ipaddr: ").append(toIndentedString(ipaddr)).append("\n"); + sb.append(" netmask: ").append(toIndentedString(netmask)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" dns1: ").append(toIndentedString(dns1)).append("\n"); + sb.append(" dns2: ").append(toIndentedString(dns2)).append("\n"); + sb.append(" wanMultipleIps: ").append(toIndentedString(wanMultipleIps)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4PppoaOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4PppoaOpenApiVo.java new file mode 100644 index 0000000..7c7ca4c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4PppoaOpenApiVo.java @@ -0,0 +1,504 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * VirtualWanIpv4PppoaOpenApiVO + */ +@ApiModel(description = "VirtualWanIpv4PppoaOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanIpv4PppoaOpenApiVo { + @JsonProperty("ipaddr") + private String ipaddr; + + @JsonProperty("userName") + private String userName; + + @JsonProperty("password") + private String password; + + @JsonProperty("ipFromIsp") + private String ipFromIsp; + + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("linkType") + private String linkType; + + @JsonProperty("redialInterval") + private Integer redialInterval; + + @JsonProperty("startTime") + private String startTime; + + @JsonProperty("endTime") + private String endTime; + + @JsonProperty("service") + private String service; + + @JsonProperty("netmask") + private String netmask; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("mru") + private Integer mru; + + @JsonProperty("dns1") + private String dns1; + + @JsonProperty("dns2") + private String dns2; + + @JsonProperty("connect") + private String connect; + + @JsonProperty("mssClampingType") + private Integer mssClampingType; + + @JsonProperty("mssClampingValue") + private Integer mssClampingValue; + + public VirtualWanIpv4PppoaOpenApiVo ipaddr(String ipaddr) { + this.ipaddr = ipaddr; + return this; + } + + /** + * IP address. + * @return ipaddr + */ + @ApiModelProperty(value = "IP address.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpaddr() { + return ipaddr; + } + + public void setIpaddr(String ipaddr) { + this.ipaddr = ipaddr; + } + + public VirtualWanIpv4PppoaOpenApiVo userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Username. Parameter [userName] should contain 1 to 255 ASCII characters. + * @return userName + */ + @ApiModelProperty(value = "Username. Parameter [userName] should contain 1 to 255 ASCII characters.") + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public VirtualWanIpv4PppoaOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Password. Parameter [password] should contain 1 to 255 ASCII characters. + * @return password + */ + @ApiModelProperty(value = "Password. Parameter [password] should contain 1 to 255 ASCII characters.") + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public VirtualWanIpv4PppoaOpenApiVo ipFromIsp(String ipFromIsp) { + this.ipFromIsp = ipFromIsp; + return this; + } + + /** + * Get IP address from ISP. + * @return ipFromIsp + */ + @ApiModelProperty(value = "Get IP address from ISP.") + + + public String getIpFromIsp() { + return ipFromIsp; + } + + public void setIpFromIsp(String ipFromIsp) { + this.ipFromIsp = ipFromIsp; + } + + public VirtualWanIpv4PppoaOpenApiVo gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Gateway IP. + * @return gateway + */ + @ApiModelProperty(value = "Gateway IP.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public VirtualWanIpv4PppoaOpenApiVo linkType(String linkType) { + this.linkType = linkType; + return this; + } + + /** + * Connection Mode. Parameter [linkType] should be as follows: auto: Connect Automatically; demand: Connect Manually; time: Time-based. + * @return linkType + */ + @ApiModelProperty(value = "Connection Mode. Parameter [linkType] should be as follows: auto: Connect Automatically; demand: Connect Manually; time: Time-based.") + + + public String getLinkType() { + return linkType; + } + + public void setLinkType(String linkType) { + this.linkType = linkType; + } + + public VirtualWanIpv4PppoaOpenApiVo redialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + return this; + } + + /** + * It is required when [linkType] is 0. Unit: Second. + * @return redialInterval + */ + @ApiModelProperty(value = "It is required when [linkType] is 0. Unit: Second.") + + + public Integer getRedialInterval() { + return redialInterval; + } + + public void setRedialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + } + + public VirtualWanIpv4PppoaOpenApiVo startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return startTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public VirtualWanIpv4PppoaOpenApiVo endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return endTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public VirtualWanIpv4PppoaOpenApiVo service(String service) { + this.service = service; + return this; + } + + /** + * Parameter [service] should be 1 ~ 128 visible ASCII characters. + * @return service + */ + @ApiModelProperty(value = "Parameter [service] should be 1 ~ 128 visible ASCII characters.") + +@Pattern(regexp="^[\\041-\\0176]{1,128}$") + public String getService() { + return service; + } + + public void setService(String service) { + this.service = service; + } + + public VirtualWanIpv4PppoaOpenApiVo netmask(String netmask) { + this.netmask = netmask; + return this; + } + + /** + * Subnet mask. + * @return netmask + */ + @ApiModelProperty(value = "Subnet mask.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getNetmask() { + return netmask; + } + + public void setNetmask(String netmask) { + this.netmask = netmask; + } + + public VirtualWanIpv4PppoaOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * Parameter [mtu] should be a value between 576 and 1492. + * @return mtu + */ + @ApiModelProperty(value = "Parameter [mtu] should be a value between 576 and 1492.") + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public VirtualWanIpv4PppoaOpenApiVo mru(Integer mru) { + this.mru = mru; + return this; + } + + /** + * Parameter [mru] should be a value between 576 and 1492. + * @return mru + */ + @ApiModelProperty(value = "Parameter [mru] should be a value between 576 and 1492.") + + + public Integer getMru() { + return mru; + } + + public void setMru(Integer mru) { + this.mru = mru; + } + + public VirtualWanIpv4PppoaOpenApiVo dns1(String dns1) { + this.dns1 = dns1; + return this; + } + + /** + * Primary DNS server. + * @return dns1 + */ + @ApiModelProperty(value = "Primary DNS server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns1() { + return dns1; + } + + public void setDns1(String dns1) { + this.dns1 = dns1; + } + + public VirtualWanIpv4PppoaOpenApiVo dns2(String dns2) { + this.dns2 = dns2; + return this; + } + + /** + * Secondary DNS server. + * @return dns2 + */ + @ApiModelProperty(value = "Secondary DNS server.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns2() { + return dns2; + } + + public void setDns2(String dns2) { + this.dns2 = dns2; + } + + public VirtualWanIpv4PppoaOpenApiVo connect(String connect) { + this.connect = connect; + return this; + } + + /** + * Get connect + * @return connect + */ + @ApiModelProperty(value = "") + + + public String getConnect() { + return connect; + } + + public void setConnect(String connect) { + this.connect = connect; + } + + public VirtualWanIpv4PppoaOpenApiVo mssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + return this; + } + + /** + * It should be a value as follows: 0: Disable, 1: Auto, 2: Custom. + * @return mssClampingType + */ + @ApiModelProperty(value = "It should be a value as follows: 0: Disable, 1: Auto, 2: Custom.") + + + public Integer getMssClampingType() { + return mssClampingType; + } + + public void setMssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + } + + public VirtualWanIpv4PppoaOpenApiVo mssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + return this; + } + + /** + * It is required when [mssClampingType] is 2, which ranges 532 ~ 1452. + * @return mssClampingValue + */ + @ApiModelProperty(value = "It is required when [mssClampingType] is 2, which ranges 532 ~ 1452.") + + + public Integer getMssClampingValue() { + return mssClampingValue; + } + + public void setMssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanIpv4PppoaOpenApiVo virtualWanIpv4PppoaOpenApiVo = (VirtualWanIpv4PppoaOpenApiVo) o; + return Objects.equals(this.ipaddr, virtualWanIpv4PppoaOpenApiVo.ipaddr) && + Objects.equals(this.userName, virtualWanIpv4PppoaOpenApiVo.userName) && + Objects.equals(this.password, virtualWanIpv4PppoaOpenApiVo.password) && + Objects.equals(this.ipFromIsp, virtualWanIpv4PppoaOpenApiVo.ipFromIsp) && + Objects.equals(this.gateway, virtualWanIpv4PppoaOpenApiVo.gateway) && + Objects.equals(this.linkType, virtualWanIpv4PppoaOpenApiVo.linkType) && + Objects.equals(this.redialInterval, virtualWanIpv4PppoaOpenApiVo.redialInterval) && + Objects.equals(this.startTime, virtualWanIpv4PppoaOpenApiVo.startTime) && + Objects.equals(this.endTime, virtualWanIpv4PppoaOpenApiVo.endTime) && + Objects.equals(this.service, virtualWanIpv4PppoaOpenApiVo.service) && + Objects.equals(this.netmask, virtualWanIpv4PppoaOpenApiVo.netmask) && + Objects.equals(this.mtu, virtualWanIpv4PppoaOpenApiVo.mtu) && + Objects.equals(this.mru, virtualWanIpv4PppoaOpenApiVo.mru) && + Objects.equals(this.dns1, virtualWanIpv4PppoaOpenApiVo.dns1) && + Objects.equals(this.dns2, virtualWanIpv4PppoaOpenApiVo.dns2) && + Objects.equals(this.connect, virtualWanIpv4PppoaOpenApiVo.connect) && + Objects.equals(this.mssClampingType, virtualWanIpv4PppoaOpenApiVo.mssClampingType) && + Objects.equals(this.mssClampingValue, virtualWanIpv4PppoaOpenApiVo.mssClampingValue); + } + + @Override + public int hashCode() { + return Objects.hash(ipaddr, userName, password, ipFromIsp, gateway, linkType, redialInterval, startTime, endTime, service, netmask, mtu, mru, dns1, dns2, connect, mssClampingType, mssClampingValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanIpv4PppoaOpenApiVo {\n"); + + sb.append(" ipaddr: ").append(toIndentedString(ipaddr)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" ipFromIsp: ").append(toIndentedString(ipFromIsp)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" linkType: ").append(toIndentedString(linkType)).append("\n"); + sb.append(" redialInterval: ").append(toIndentedString(redialInterval)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" netmask: ").append(toIndentedString(netmask)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" mru: ").append(toIndentedString(mru)).append("\n"); + sb.append(" dns1: ").append(toIndentedString(dns1)).append("\n"); + sb.append(" dns2: ").append(toIndentedString(dns2)).append("\n"); + sb.append(" connect: ").append(toIndentedString(connect)).append("\n"); + sb.append(" mssClampingType: ").append(toIndentedString(mssClampingType)).append("\n"); + sb.append(" mssClampingValue: ").append(toIndentedString(mssClampingValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4PppoeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4PppoeOpenApiVo.java new file mode 100644 index 0000000..77cc564 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4PppoeOpenApiVo.java @@ -0,0 +1,506 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * VirtualWanIpv4PppoeOpenApiVO + */ +@ApiModel(description = "VirtualWanIpv4PppoeOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanIpv4PppoeOpenApiVo { + @JsonProperty("ipaddr") + private String ipaddr; + + @JsonProperty("userName") + private String userName; + + @JsonProperty("password") + private String password; + + @JsonProperty("ipFromIsp") + private String ipFromIsp; + + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("linkType") + private String linkType; + + @JsonProperty("redialInterval") + private Integer redialInterval; + + @JsonProperty("startTime") + private String startTime; + + @JsonProperty("endTime") + private String endTime; + + @JsonProperty("service") + private String service; + + @JsonProperty("netmask") + private String netmask; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("mru") + private Integer mru; + + @JsonProperty("dns1") + private String dns1; + + @JsonProperty("dns2") + private String dns2; + + @JsonProperty("ipv4Connection2") + private VirtualWanIpv4Connection2OpenApiVo ipv4Connection2; + + @JsonProperty("mssClampingType") + private Integer mssClampingType; + + @JsonProperty("mssClampingValue") + private Integer mssClampingValue; + + public VirtualWanIpv4PppoeOpenApiVo ipaddr(String ipaddr) { + this.ipaddr = ipaddr; + return this; + } + + /** + * IP address. + * @return ipaddr + */ + @ApiModelProperty(value = "IP address.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpaddr() { + return ipaddr; + } + + public void setIpaddr(String ipaddr) { + this.ipaddr = ipaddr; + } + + public VirtualWanIpv4PppoeOpenApiVo userName(String userName) { + this.userName = userName; + return this; + } + + /** + * Username. Parameter [userName] should contain 1 to 255 ASCII characters. + * @return userName + */ + @ApiModelProperty(value = "Username. Parameter [userName] should contain 1 to 255 ASCII characters.") + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getUserName() { + return userName; + } + + public void setUserName(String userName) { + this.userName = userName; + } + + public VirtualWanIpv4PppoeOpenApiVo password(String password) { + this.password = password; + return this; + } + + /** + * Password. Parameter [password] should contain 1 to 255 ASCII characters. + * @return password + */ + @ApiModelProperty(value = "Password. Parameter [password] should contain 1 to 255 ASCII characters.") + +@Pattern(regexp="^[A-Za-z0-9\\`\\~\\!\\@\\#\\$\\&\\*\\(\\)\\-\\=\\_\\+\\[\\]\\{\\}\\;\\:\\'\\\"\\\\\\|/\\?\\.\\,\\<\\>\\%\\^/]{1,255}$") + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public VirtualWanIpv4PppoeOpenApiVo ipFromIsp(String ipFromIsp) { + this.ipFromIsp = ipFromIsp; + return this; + } + + /** + * Get IP address from ISP. + * @return ipFromIsp + */ + @ApiModelProperty(value = "Get IP address from ISP.") + + + public String getIpFromIsp() { + return ipFromIsp; + } + + public void setIpFromIsp(String ipFromIsp) { + this.ipFromIsp = ipFromIsp; + } + + public VirtualWanIpv4PppoeOpenApiVo gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Gateway IP. + * @return gateway + */ + @ApiModelProperty(value = "Gateway IP.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public VirtualWanIpv4PppoeOpenApiVo linkType(String linkType) { + this.linkType = linkType; + return this; + } + + /** + * Connection Mode. Parameter [linkType] should be as follows: auto: Connect Automatically; demand: Connect Manually; time: Time-based. + * @return linkType + */ + @ApiModelProperty(value = "Connection Mode. Parameter [linkType] should be as follows: auto: Connect Automatically; demand: Connect Manually; time: Time-based.") + + + public String getLinkType() { + return linkType; + } + + public void setLinkType(String linkType) { + this.linkType = linkType; + } + + public VirtualWanIpv4PppoeOpenApiVo redialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + return this; + } + + /** + * It is required when [linkType] is auto. Unit: Second + * @return redialInterval + */ + @ApiModelProperty(value = "It is required when [linkType] is auto. Unit: Second") + + + public Integer getRedialInterval() { + return redialInterval; + } + + public void setRedialInterval(Integer redialInterval) { + this.redialInterval = redialInterval; + } + + public VirtualWanIpv4PppoeOpenApiVo startTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return startTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getStartTime() { + return startTime; + } + + public void setStartTime(String startTime) { + this.startTime = startTime; + } + + public VirtualWanIpv4PppoeOpenApiVo endTime(String endTime) { + this.endTime = endTime; + return this; + } + + /** + * It is required when [linkType] is 2. For example, 12:30. + * @return endTime + */ + @ApiModelProperty(value = "It is required when [linkType] is 2. For example, 12:30.") + + + public String getEndTime() { + return endTime; + } + + public void setEndTime(String endTime) { + this.endTime = endTime; + } + + public VirtualWanIpv4PppoeOpenApiVo service(String service) { + this.service = service; + return this; + } + + /** + * Service name. Keep parameter [service] blank unless your ISP requires you to configure it. + * @return service + */ + @ApiModelProperty(value = "Service name. Keep parameter [service] blank unless your ISP requires you to configure it.") + +@Pattern(regexp="^[\\041-\\0176]{1,128}$") + public String getService() { + return service; + } + + public void setService(String service) { + this.service = service; + } + + public VirtualWanIpv4PppoeOpenApiVo netmask(String netmask) { + this.netmask = netmask; + return this; + } + + /** + * Subnet mask. + * @return netmask + */ + @ApiModelProperty(value = "Subnet mask.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getNetmask() { + return netmask; + } + + public void setNetmask(String netmask) { + this.netmask = netmask; + } + + public VirtualWanIpv4PppoeOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * Parameter [mtu] should be a value between 576 and 1492 + * @return mtu + */ + @ApiModelProperty(value = "Parameter [mtu] should be a value between 576 and 1492") + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public VirtualWanIpv4PppoeOpenApiVo mru(Integer mru) { + this.mru = mru; + return this; + } + + /** + * Parameter [mru] should be a value between 576 and 1492 + * @return mru + */ + @ApiModelProperty(value = "Parameter [mru] should be a value between 576 and 1492") + + + public Integer getMru() { + return mru; + } + + public void setMru(Integer mru) { + this.mru = mru; + } + + public VirtualWanIpv4PppoeOpenApiVo dns1(String dns1) { + this.dns1 = dns1; + return this; + } + + /** + * Primary DNS + * @return dns1 + */ + @ApiModelProperty(value = "Primary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns1() { + return dns1; + } + + public void setDns1(String dns1) { + this.dns1 = dns1; + } + + public VirtualWanIpv4PppoeOpenApiVo dns2(String dns2) { + this.dns2 = dns2; + return this; + } + + /** + * Secondary DNS + * @return dns2 + */ + @ApiModelProperty(value = "Secondary DNS") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns2() { + return dns2; + } + + public void setDns2(String dns2) { + this.dns2 = dns2; + } + + public VirtualWanIpv4PppoeOpenApiVo ipv4Connection2(VirtualWanIpv4Connection2OpenApiVo ipv4Connection2) { + this.ipv4Connection2 = ipv4Connection2; + return this; + } + + /** + * Get ipv4Connection2 + * @return ipv4Connection2 + */ + @ApiModelProperty(value = "") + + @Valid + + public VirtualWanIpv4Connection2OpenApiVo getIpv4Connection2() { + return ipv4Connection2; + } + + public void setIpv4Connection2(VirtualWanIpv4Connection2OpenApiVo ipv4Connection2) { + this.ipv4Connection2 = ipv4Connection2; + } + + public VirtualWanIpv4PppoeOpenApiVo mssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + return this; + } + + /** + * Get mssClampingType + * @return mssClampingType + */ + @ApiModelProperty(value = "") + + + public Integer getMssClampingType() { + return mssClampingType; + } + + public void setMssClampingType(Integer mssClampingType) { + this.mssClampingType = mssClampingType; + } + + public VirtualWanIpv4PppoeOpenApiVo mssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + return this; + } + + /** + * Get mssClampingValue + * @return mssClampingValue + */ + @ApiModelProperty(value = "") + + + public Integer getMssClampingValue() { + return mssClampingValue; + } + + public void setMssClampingValue(Integer mssClampingValue) { + this.mssClampingValue = mssClampingValue; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanIpv4PppoeOpenApiVo virtualWanIpv4PppoeOpenApiVo = (VirtualWanIpv4PppoeOpenApiVo) o; + return Objects.equals(this.ipaddr, virtualWanIpv4PppoeOpenApiVo.ipaddr) && + Objects.equals(this.userName, virtualWanIpv4PppoeOpenApiVo.userName) && + Objects.equals(this.password, virtualWanIpv4PppoeOpenApiVo.password) && + Objects.equals(this.ipFromIsp, virtualWanIpv4PppoeOpenApiVo.ipFromIsp) && + Objects.equals(this.gateway, virtualWanIpv4PppoeOpenApiVo.gateway) && + Objects.equals(this.linkType, virtualWanIpv4PppoeOpenApiVo.linkType) && + Objects.equals(this.redialInterval, virtualWanIpv4PppoeOpenApiVo.redialInterval) && + Objects.equals(this.startTime, virtualWanIpv4PppoeOpenApiVo.startTime) && + Objects.equals(this.endTime, virtualWanIpv4PppoeOpenApiVo.endTime) && + Objects.equals(this.service, virtualWanIpv4PppoeOpenApiVo.service) && + Objects.equals(this.netmask, virtualWanIpv4PppoeOpenApiVo.netmask) && + Objects.equals(this.mtu, virtualWanIpv4PppoeOpenApiVo.mtu) && + Objects.equals(this.mru, virtualWanIpv4PppoeOpenApiVo.mru) && + Objects.equals(this.dns1, virtualWanIpv4PppoeOpenApiVo.dns1) && + Objects.equals(this.dns2, virtualWanIpv4PppoeOpenApiVo.dns2) && + Objects.equals(this.ipv4Connection2, virtualWanIpv4PppoeOpenApiVo.ipv4Connection2) && + Objects.equals(this.mssClampingType, virtualWanIpv4PppoeOpenApiVo.mssClampingType) && + Objects.equals(this.mssClampingValue, virtualWanIpv4PppoeOpenApiVo.mssClampingValue); + } + + @Override + public int hashCode() { + return Objects.hash(ipaddr, userName, password, ipFromIsp, gateway, linkType, redialInterval, startTime, endTime, service, netmask, mtu, mru, dns1, dns2, ipv4Connection2, mssClampingType, mssClampingValue); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanIpv4PppoeOpenApiVo {\n"); + + sb.append(" ipaddr: ").append(toIndentedString(ipaddr)).append("\n"); + sb.append(" userName: ").append(toIndentedString(userName)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" ipFromIsp: ").append(toIndentedString(ipFromIsp)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" linkType: ").append(toIndentedString(linkType)).append("\n"); + sb.append(" redialInterval: ").append(toIndentedString(redialInterval)).append("\n"); + sb.append(" startTime: ").append(toIndentedString(startTime)).append("\n"); + sb.append(" endTime: ").append(toIndentedString(endTime)).append("\n"); + sb.append(" service: ").append(toIndentedString(service)).append("\n"); + sb.append(" netmask: ").append(toIndentedString(netmask)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" mru: ").append(toIndentedString(mru)).append("\n"); + sb.append(" dns1: ").append(toIndentedString(dns1)).append("\n"); + sb.append(" dns2: ").append(toIndentedString(dns2)).append("\n"); + sb.append(" ipv4Connection2: ").append(toIndentedString(ipv4Connection2)).append("\n"); + sb.append(" mssClampingType: ").append(toIndentedString(mssClampingType)).append("\n"); + sb.append(" mssClampingValue: ").append(toIndentedString(mssClampingValue)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4SettingConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4SettingConfigOpenApiVo.java new file mode 100644 index 0000000..64af9ef --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4SettingConfigOpenApiVo.java @@ -0,0 +1,312 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * VirtualWanIpv4SettingConfigOpenApiVO + */ +@ApiModel(description = "VirtualWanIpv4SettingConfigOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanIpv4SettingConfigOpenApiVo { + @JsonProperty("proto") + private String proto; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("vlanPriority") + private Integer vlanPriority; + + @JsonProperty("qosTagEnable") + private Boolean qosTagEnable; + + @JsonProperty("qosTag") + private Integer qosTag; + + @JsonProperty("ipv4Static") + private Object ipv4Static; + + @JsonProperty("ipv4Dhcp") + private Object ipv4Dhcp; + + @JsonProperty("ipv4Pppoe") + private Object ipv4Pppoe; + + @JsonProperty("ipv4Pppoa") + private VirtualWanIpv4PppoaOpenApiVo ipv4Pppoa; + + @JsonProperty("ipv4Ipoa") + private VirtualWanIpv4IpoaOpenApiVo ipv4Ipoa; + + public VirtualWanIpv4SettingConfigOpenApiVo proto(String proto) { + this.proto = proto; + return this; + } + + /** + * Virtual WAN IPv4 proto type, use static, dhcp, pppoe. + * @return proto + */ + @ApiModelProperty(required = true, value = "Virtual WAN IPv4 proto type, use static, dhcp, pppoe.") + @NotNull + + + public String getProto() { + return proto; + } + + public void setProto(String proto) { + this.proto = proto; + } + + public VirtualWanIpv4SettingConfigOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * Vlan ID. Parameter [vlanId] should between 1 and 4094. + * @return vlanId + */ + @ApiModelProperty(required = true, value = "Vlan ID. Parameter [vlanId] should between 1 and 4094.") + @NotNull + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public VirtualWanIpv4SettingConfigOpenApiVo vlanPriority(Integer vlanPriority) { + this.vlanPriority = vlanPriority; + return this; + } + + /** + * Vlan Priority. It takes effect when [vlanId] is not 0, and it should be within the range of 0–7. + * @return vlanPriority + */ + @ApiModelProperty(value = "Vlan Priority. It takes effect when [vlanId] is not 0, and it should be within the range of 0–7.") + + + public Integer getVlanPriority() { + return vlanPriority; + } + + public void setVlanPriority(Integer vlanPriority) { + this.vlanPriority = vlanPriority; + } + + public VirtualWanIpv4SettingConfigOpenApiVo qosTagEnable(Boolean qosTagEnable) { + this.qosTagEnable = qosTagEnable; + return this; + } + + /** + * Whether to enable 802.1Q Tag. + * @return qosTagEnable + */ + @ApiModelProperty(value = "Whether to enable 802.1Q Tag.") + + + public Boolean getQosTagEnable() { + return qosTagEnable; + } + + public void setQosTagEnable(Boolean qosTagEnable) { + this.qosTagEnable = qosTagEnable; + } + + public VirtualWanIpv4SettingConfigOpenApiVo qosTag(Integer qosTag) { + this.qosTag = qosTag; + return this; + } + + /** + * Qos Tag. Parameter [qosTag] should between 0 and 7. + * @return qosTag + */ + @ApiModelProperty(value = "Qos Tag. Parameter [qosTag] should between 0 and 7.") + + + public Integer getQosTag() { + return qosTag; + } + + public void setQosTag(Integer qosTag) { + this.qosTag = qosTag; + } + + public VirtualWanIpv4SettingConfigOpenApiVo ipv4Static(Object ipv4Static) { + this.ipv4Static = ipv4Static; + return this; + } + + /** + * Get ipv4Static + * @return ipv4Static + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getIpv4Static() { + return ipv4Static; + } + + public void setIpv4Static(Object ipv4Static) { + this.ipv4Static = ipv4Static; + } + + public VirtualWanIpv4SettingConfigOpenApiVo ipv4Dhcp(Object ipv4Dhcp) { + this.ipv4Dhcp = ipv4Dhcp; + return this; + } + + /** + * Get ipv4Dhcp + * @return ipv4Dhcp + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getIpv4Dhcp() { + return ipv4Dhcp; + } + + public void setIpv4Dhcp(Object ipv4Dhcp) { + this.ipv4Dhcp = ipv4Dhcp; + } + + public VirtualWanIpv4SettingConfigOpenApiVo ipv4Pppoe(Object ipv4Pppoe) { + this.ipv4Pppoe = ipv4Pppoe; + return this; + } + + /** + * Get ipv4Pppoe + * @return ipv4Pppoe + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getIpv4Pppoe() { + return ipv4Pppoe; + } + + public void setIpv4Pppoe(Object ipv4Pppoe) { + this.ipv4Pppoe = ipv4Pppoe; + } + + public VirtualWanIpv4SettingConfigOpenApiVo ipv4Pppoa(VirtualWanIpv4PppoaOpenApiVo ipv4Pppoa) { + this.ipv4Pppoa = ipv4Pppoa; + return this; + } + + /** + * Get ipv4Pppoa + * @return ipv4Pppoa + */ + @ApiModelProperty(value = "") + + @Valid + + public VirtualWanIpv4PppoaOpenApiVo getIpv4Pppoa() { + return ipv4Pppoa; + } + + public void setIpv4Pppoa(VirtualWanIpv4PppoaOpenApiVo ipv4Pppoa) { + this.ipv4Pppoa = ipv4Pppoa; + } + + public VirtualWanIpv4SettingConfigOpenApiVo ipv4Ipoa(VirtualWanIpv4IpoaOpenApiVo ipv4Ipoa) { + this.ipv4Ipoa = ipv4Ipoa; + return this; + } + + /** + * Get ipv4Ipoa + * @return ipv4Ipoa + */ + @ApiModelProperty(value = "") + + @Valid + + public VirtualWanIpv4IpoaOpenApiVo getIpv4Ipoa() { + return ipv4Ipoa; + } + + public void setIpv4Ipoa(VirtualWanIpv4IpoaOpenApiVo ipv4Ipoa) { + this.ipv4Ipoa = ipv4Ipoa; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanIpv4SettingConfigOpenApiVo virtualWanIpv4SettingConfigOpenApiVo = (VirtualWanIpv4SettingConfigOpenApiVo) o; + return Objects.equals(this.proto, virtualWanIpv4SettingConfigOpenApiVo.proto) && + Objects.equals(this.vlanId, virtualWanIpv4SettingConfigOpenApiVo.vlanId) && + Objects.equals(this.vlanPriority, virtualWanIpv4SettingConfigOpenApiVo.vlanPriority) && + Objects.equals(this.qosTagEnable, virtualWanIpv4SettingConfigOpenApiVo.qosTagEnable) && + Objects.equals(this.qosTag, virtualWanIpv4SettingConfigOpenApiVo.qosTag) && + Objects.equals(this.ipv4Static, virtualWanIpv4SettingConfigOpenApiVo.ipv4Static) && + Objects.equals(this.ipv4Dhcp, virtualWanIpv4SettingConfigOpenApiVo.ipv4Dhcp) && + Objects.equals(this.ipv4Pppoe, virtualWanIpv4SettingConfigOpenApiVo.ipv4Pppoe) && + Objects.equals(this.ipv4Pppoa, virtualWanIpv4SettingConfigOpenApiVo.ipv4Pppoa) && + Objects.equals(this.ipv4Ipoa, virtualWanIpv4SettingConfigOpenApiVo.ipv4Ipoa); + } + + @Override + public int hashCode() { + return Objects.hash(proto, vlanId, vlanPriority, qosTagEnable, qosTag, ipv4Static, ipv4Dhcp, ipv4Pppoe, ipv4Pppoa, ipv4Ipoa); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanIpv4SettingConfigOpenApiVo {\n"); + + sb.append(" proto: ").append(toIndentedString(proto)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" vlanPriority: ").append(toIndentedString(vlanPriority)).append("\n"); + sb.append(" qosTagEnable: ").append(toIndentedString(qosTagEnable)).append("\n"); + sb.append(" qosTag: ").append(toIndentedString(qosTag)).append("\n"); + sb.append(" ipv4Static: ").append(toIndentedString(ipv4Static)).append("\n"); + sb.append(" ipv4Dhcp: ").append(toIndentedString(ipv4Dhcp)).append("\n"); + sb.append(" ipv4Pppoe: ").append(toIndentedString(ipv4Pppoe)).append("\n"); + sb.append(" ipv4Pppoa: ").append(toIndentedString(ipv4Pppoa)).append("\n"); + sb.append(" ipv4Ipoa: ").append(toIndentedString(ipv4Ipoa)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4SettingInfoOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4SettingInfoOpenApiVo.java new file mode 100644 index 0000000..34b9f55 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4SettingInfoOpenApiVo.java @@ -0,0 +1,332 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * VirtualWanIpv4SettingInfo + */ +@ApiModel(description = "VirtualWanIpv4SettingInfo") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanIpv4SettingInfoOpenApiVo { + @JsonProperty("proto") + private String proto; + + @JsonProperty("protoType") + private Integer protoType; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("vlanPriority") + private Integer vlanPriority; + + @JsonProperty("supportInternetVlan") + private Boolean supportInternetVlan; + + @JsonProperty("supportQosTagEnable") + private Boolean supportQosTagEnable; + + @JsonProperty("qosTagEnable") + private Boolean qosTagEnable; + + @JsonProperty("qosTag") + private Integer qosTag; + + @JsonProperty("ipv4Static") + private Object ipv4Static; + + @JsonProperty("ipv4Dhcp") + private Object ipv4Dhcp; + + @JsonProperty("ipv4Pppoe") + private Object ipv4Pppoe; + + public VirtualWanIpv4SettingInfoOpenApiVo proto(String proto) { + this.proto = proto; + return this; + } + + /** + * Virtual WAN IPv4 connection type. + * @return proto + */ + @ApiModelProperty(value = "Virtual WAN IPv4 connection type.") + + + public String getProto() { + return proto; + } + + public void setProto(String proto) { + this.proto = proto; + } + + public VirtualWanIpv4SettingInfoOpenApiVo protoType(Integer protoType) { + this.protoType = protoType; + return this; + } + + /** + * Virtual WAN IPv4 proto type, 0:static; 1:DHCP; 2:PPPoE. + * @return protoType + */ + @ApiModelProperty(value = "Virtual WAN IPv4 proto type, 0:static; 1:DHCP; 2:PPPoE.") + + + public Integer getProtoType() { + return protoType; + } + + public void setProtoType(Integer protoType) { + this.protoType = protoType; + } + + public VirtualWanIpv4SettingInfoOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * Vlan ID. + * @return vlanId + */ + @ApiModelProperty(value = "Vlan ID.") + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public VirtualWanIpv4SettingInfoOpenApiVo vlanPriority(Integer vlanPriority) { + this.vlanPriority = vlanPriority; + return this; + } + + /** + * Vlan Priority. + * @return vlanPriority + */ + @ApiModelProperty(value = "Vlan Priority.") + + + public Integer getVlanPriority() { + return vlanPriority; + } + + public void setVlanPriority(Integer vlanPriority) { + this.vlanPriority = vlanPriority; + } + + public VirtualWanIpv4SettingInfoOpenApiVo supportInternetVlan(Boolean supportInternetVlan) { + this.supportInternetVlan = supportInternetVlan; + return this; + } + + /** + * Whether support internet vlan. + * @return supportInternetVlan + */ + @ApiModelProperty(value = "Whether support internet vlan.") + + + public Boolean getSupportInternetVlan() { + return supportInternetVlan; + } + + public void setSupportInternetVlan(Boolean supportInternetVlan) { + this.supportInternetVlan = supportInternetVlan; + } + + public VirtualWanIpv4SettingInfoOpenApiVo supportQosTagEnable(Boolean supportQosTagEnable) { + this.supportQosTagEnable = supportQosTagEnable; + return this; + } + + /** + * Whether support Qos Tag enable. + * @return supportQosTagEnable + */ + @ApiModelProperty(value = "Whether support Qos Tag enable.") + + + public Boolean getSupportQosTagEnable() { + return supportQosTagEnable; + } + + public void setSupportQosTagEnable(Boolean supportQosTagEnable) { + this.supportQosTagEnable = supportQosTagEnable; + } + + public VirtualWanIpv4SettingInfoOpenApiVo qosTagEnable(Boolean qosTagEnable) { + this.qosTagEnable = qosTagEnable; + return this; + } + + /** + * Whether Qos Tag is enable. + * @return qosTagEnable + */ + @ApiModelProperty(value = "Whether Qos Tag is enable.") + + + public Boolean getQosTagEnable() { + return qosTagEnable; + } + + public void setQosTagEnable(Boolean qosTagEnable) { + this.qosTagEnable = qosTagEnable; + } + + public VirtualWanIpv4SettingInfoOpenApiVo qosTag(Integer qosTag) { + this.qosTag = qosTag; + return this; + } + + /** + * Qos Tag. + * @return qosTag + */ + @ApiModelProperty(value = "Qos Tag.") + + + public Integer getQosTag() { + return qosTag; + } + + public void setQosTag(Integer qosTag) { + this.qosTag = qosTag; + } + + public VirtualWanIpv4SettingInfoOpenApiVo ipv4Static(Object ipv4Static) { + this.ipv4Static = ipv4Static; + return this; + } + + /** + * Get ipv4Static + * @return ipv4Static + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getIpv4Static() { + return ipv4Static; + } + + public void setIpv4Static(Object ipv4Static) { + this.ipv4Static = ipv4Static; + } + + public VirtualWanIpv4SettingInfoOpenApiVo ipv4Dhcp(Object ipv4Dhcp) { + this.ipv4Dhcp = ipv4Dhcp; + return this; + } + + /** + * Get ipv4Dhcp + * @return ipv4Dhcp + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getIpv4Dhcp() { + return ipv4Dhcp; + } + + public void setIpv4Dhcp(Object ipv4Dhcp) { + this.ipv4Dhcp = ipv4Dhcp; + } + + public VirtualWanIpv4SettingInfoOpenApiVo ipv4Pppoe(Object ipv4Pppoe) { + this.ipv4Pppoe = ipv4Pppoe; + return this; + } + + /** + * Get ipv4Pppoe + * @return ipv4Pppoe + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getIpv4Pppoe() { + return ipv4Pppoe; + } + + public void setIpv4Pppoe(Object ipv4Pppoe) { + this.ipv4Pppoe = ipv4Pppoe; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanIpv4SettingInfoOpenApiVo virtualWanIpv4SettingInfoOpenApiVo = (VirtualWanIpv4SettingInfoOpenApiVo) o; + return Objects.equals(this.proto, virtualWanIpv4SettingInfoOpenApiVo.proto) && + Objects.equals(this.protoType, virtualWanIpv4SettingInfoOpenApiVo.protoType) && + Objects.equals(this.vlanId, virtualWanIpv4SettingInfoOpenApiVo.vlanId) && + Objects.equals(this.vlanPriority, virtualWanIpv4SettingInfoOpenApiVo.vlanPriority) && + Objects.equals(this.supportInternetVlan, virtualWanIpv4SettingInfoOpenApiVo.supportInternetVlan) && + Objects.equals(this.supportQosTagEnable, virtualWanIpv4SettingInfoOpenApiVo.supportQosTagEnable) && + Objects.equals(this.qosTagEnable, virtualWanIpv4SettingInfoOpenApiVo.qosTagEnable) && + Objects.equals(this.qosTag, virtualWanIpv4SettingInfoOpenApiVo.qosTag) && + Objects.equals(this.ipv4Static, virtualWanIpv4SettingInfoOpenApiVo.ipv4Static) && + Objects.equals(this.ipv4Dhcp, virtualWanIpv4SettingInfoOpenApiVo.ipv4Dhcp) && + Objects.equals(this.ipv4Pppoe, virtualWanIpv4SettingInfoOpenApiVo.ipv4Pppoe); + } + + @Override + public int hashCode() { + return Objects.hash(proto, protoType, vlanId, vlanPriority, supportInternetVlan, supportQosTagEnable, qosTagEnable, qosTag, ipv4Static, ipv4Dhcp, ipv4Pppoe); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanIpv4SettingInfoOpenApiVo {\n"); + + sb.append(" proto: ").append(toIndentedString(proto)).append("\n"); + sb.append(" protoType: ").append(toIndentedString(protoType)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" vlanPriority: ").append(toIndentedString(vlanPriority)).append("\n"); + sb.append(" supportInternetVlan: ").append(toIndentedString(supportInternetVlan)).append("\n"); + sb.append(" supportQosTagEnable: ").append(toIndentedString(supportQosTagEnable)).append("\n"); + sb.append(" qosTagEnable: ").append(toIndentedString(qosTagEnable)).append("\n"); + sb.append(" qosTag: ").append(toIndentedString(qosTag)).append("\n"); + sb.append(" ipv4Static: ").append(toIndentedString(ipv4Static)).append("\n"); + sb.append(" ipv4Dhcp: ").append(toIndentedString(ipv4Dhcp)).append("\n"); + sb.append(" ipv4Pppoe: ").append(toIndentedString(ipv4Pppoe)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4StaticOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4StaticOpenApiVo.java new file mode 100644 index 0000000..bc3da1f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanIpv4StaticOpenApiVo.java @@ -0,0 +1,204 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * VirtualWanIpv4StaticOpenApiVO + */ +@ApiModel(description = "VirtualWanIpv4StaticOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanIpv4StaticOpenApiVo { + @JsonProperty("ipaddr") + private String ipaddr; + + @JsonProperty("netmask") + private String netmask; + + @JsonProperty("gateway") + private String gateway; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("dns1") + private String dns1; + + @JsonProperty("dns2") + private String dns2; + + public VirtualWanIpv4StaticOpenApiVo ipaddr(String ipaddr) { + this.ipaddr = ipaddr; + return this; + } + + /** + * IP address. + * @return ipaddr + */ + @ApiModelProperty(value = "IP address.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIpaddr() { + return ipaddr; + } + + public void setIpaddr(String ipaddr) { + this.ipaddr = ipaddr; + } + + public VirtualWanIpv4StaticOpenApiVo netmask(String netmask) { + this.netmask = netmask; + return this; + } + + /** + * Subnet mask. + * @return netmask + */ + @ApiModelProperty(value = "Subnet mask.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getNetmask() { + return netmask; + } + + public void setNetmask(String netmask) { + this.netmask = netmask; + } + + public VirtualWanIpv4StaticOpenApiVo gateway(String gateway) { + this.gateway = gateway; + return this; + } + + /** + * Gateway IP. + * @return gateway + */ + @ApiModelProperty(value = "Gateway IP.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getGateway() { + return gateway; + } + + public void setGateway(String gateway) { + this.gateway = gateway; + } + + public VirtualWanIpv4StaticOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * Parameter [mtu] should be a value between 576 and 1500. + * @return mtu + */ + @ApiModelProperty(value = "Parameter [mtu] should be a value between 576 and 1500.") + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public VirtualWanIpv4StaticOpenApiVo dns1(String dns1) { + this.dns1 = dns1; + return this; + } + + /** + * Primary DNS. + * @return dns1 + */ + @ApiModelProperty(value = "Primary DNS.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns1() { + return dns1; + } + + public void setDns1(String dns1) { + this.dns1 = dns1; + } + + public VirtualWanIpv4StaticOpenApiVo dns2(String dns2) { + this.dns2 = dns2; + return this; + } + + /** + * Secondary DNS. + * @return dns2 + */ + @ApiModelProperty(value = "Secondary DNS.") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getDns2() { + return dns2; + } + + public void setDns2(String dns2) { + this.dns2 = dns2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanIpv4StaticOpenApiVo virtualWanIpv4StaticOpenApiVo = (VirtualWanIpv4StaticOpenApiVo) o; + return Objects.equals(this.ipaddr, virtualWanIpv4StaticOpenApiVo.ipaddr) && + Objects.equals(this.netmask, virtualWanIpv4StaticOpenApiVo.netmask) && + Objects.equals(this.gateway, virtualWanIpv4StaticOpenApiVo.gateway) && + Objects.equals(this.mtu, virtualWanIpv4StaticOpenApiVo.mtu) && + Objects.equals(this.dns1, virtualWanIpv4StaticOpenApiVo.dns1) && + Objects.equals(this.dns2, virtualWanIpv4StaticOpenApiVo.dns2); + } + + @Override + public int hashCode() { + return Objects.hash(ipaddr, netmask, gateway, mtu, dns1, dns2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanIpv4StaticOpenApiVo {\n"); + + sb.append(" ipaddr: ").append(toIndentedString(ipaddr)).append("\n"); + sb.append(" netmask: ").append(toIndentedString(netmask)).append("\n"); + sb.append(" gateway: ").append(toIndentedString(gateway)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" dns1: ").append(toIndentedString(dns1)).append("\n"); + sb.append(" dns2: ").append(toIndentedString(dns2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanMacSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanMacSettingOpenApiVo.java new file mode 100644 index 0000000..070de62 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanMacSettingOpenApiVo.java @@ -0,0 +1,106 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * VirtualWanMacSettingOpenApiVO + */ +@ApiModel(description = "VirtualWanMacSettingOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanMacSettingOpenApiVo { + @JsonProperty("method") + private String method; + + @JsonProperty("mac") + private String mac; + + public VirtualWanMacSettingOpenApiVo method(String method) { + this.method = method; + return this; + } + + /** + * Parameter [method] should be set or recover. Set: Customize MAC address; Recover: Use default MAC address. + * @return method + */ + @ApiModelProperty(required = true, value = "Parameter [method] should be set or recover. Set: Customize MAC address; Recover: Use default MAC address.") + @NotNull + + + public String getMethod() { + return method; + } + + public void setMethod(String method) { + this.method = method; + } + + public VirtualWanMacSettingOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * Device MAC. When [method] is set, parameter [mac] should not be empty. + * @return mac + */ + @ApiModelProperty(value = "Device MAC. When [method] is set, parameter [mac] should not be empty.") + +@Pattern(regexp="[A-Fa-f0-9]{1}[02468aceACE]{1}([-:][A-Fa-f0-9]{2}){5}") + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanMacSettingOpenApiVo virtualWanMacSettingOpenApiVo = (VirtualWanMacSettingOpenApiVo) o; + return Objects.equals(this.method, virtualWanMacSettingOpenApiVo.method) && + Objects.equals(this.mac, virtualWanMacSettingOpenApiVo.mac); + } + + @Override + public int hashCode() { + return Objects.hash(method, mac); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanMacSettingOpenApiVo {\n"); + + sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanMultipleIpVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanMultipleIpVo.java new file mode 100644 index 0000000..318bca1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanMultipleIpVo.java @@ -0,0 +1,102 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * VirtualWanMultipleIpVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanMultipleIpVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("IP") + private String IP; + + public VirtualWanMultipleIpVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + */ + @ApiModelProperty(value = "") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public VirtualWanMultipleIpVo IP(String IP) { + this.IP = IP; + return this; + } + + /** + * Get IP + * @return IP + */ + @ApiModelProperty(value = "") + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIP() { + return IP; + } + + public void setIP(String IP) { + this.IP = IP; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanMultipleIpVo virtualWanMultipleIpVo = (VirtualWanMultipleIpVo) o; + return Objects.equals(this.enable, virtualWanMultipleIpVo.enable) && + Objects.equals(this.IP, virtualWanMultipleIpVo.IP); + } + + @Override + public int hashCode() { + return Objects.hash(enable, IP); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanMultipleIpVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" IP: ").append(toIndentedString(IP)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanStatusOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanStatusOpenApiVo.java new file mode 100644 index 0000000..3f21c33 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VirtualWanStatusOpenApiVo.java @@ -0,0 +1,80 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * VirtualWanStatusOpenApiVO + */ +@ApiModel(description = "VirtualWanStatusOpenApiVO") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VirtualWanStatusOpenApiVo { + @JsonProperty("status") + private Boolean status; + + public VirtualWanStatusOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * The status of virtual WAN, valid values are true or false. + * @return status + */ + @ApiModelProperty(required = true, value = "The status of virtual WAN, valid values are true or false.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VirtualWanStatusOpenApiVo virtualWanStatusOpenApiVo = (VirtualWanStatusOpenApiVo) o; + return Objects.equals(this.status, virtualWanStatusOpenApiVo.status); + } + + @Override + public int hashCode() { + return Objects.hash(status); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VirtualWanStatusOpenApiVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VlanOuiModeOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VlanOuiModeOpenApiVo.java new file mode 100644 index 0000000..dfb3309 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VlanOuiModeOpenApiVo.java @@ -0,0 +1,132 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Basic vlan-oui-priority configuration of oui based rule. Cannot be empty. + */ +@ApiModel(description = "Basic vlan-oui-priority configuration of oui based rule. Cannot be empty.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VlanOuiModeOpenApiVo { + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("priority") + private Integer priority; + + @JsonProperty("ouiProfileId") + private String ouiProfileId; + + public VlanOuiModeOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * Selected vlan, valid range is 1 to 4090. + * @return vlanId + */ + @ApiModelProperty(required = true, value = "Selected vlan, valid range is 1 to 4090.") + @NotNull + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public VlanOuiModeOpenApiVo priority(Integer priority) { + this.priority = priority; + return this; + } + + /** + * Selected priority, valid range is 0 to 7. + * @return priority + */ + @ApiModelProperty(required = true, value = "Selected priority, valid range is 0 to 7.") + @NotNull + + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public VlanOuiModeOpenApiVo ouiProfileId(String ouiProfileId) { + this.ouiProfileId = ouiProfileId; + return this; + } + + /** + * Oui profile ID. + * @return ouiProfileId + */ + @ApiModelProperty(required = true, value = "Oui profile ID.") + @NotNull + + + public String getOuiProfileId() { + return ouiProfileId; + } + + public void setOuiProfileId(String ouiProfileId) { + this.ouiProfileId = ouiProfileId; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VlanOuiModeOpenApiVo vlanOuiModeOpenApiVo = (VlanOuiModeOpenApiVo) o; + return Objects.equals(this.vlanId, vlanOuiModeOpenApiVo.vlanId) && + Objects.equals(this.priority, vlanOuiModeOpenApiVo.priority) && + Objects.equals(this.ouiProfileId, vlanOuiModeOpenApiVo.ouiProfileId); + } + + @Override + public int hashCode() { + return Objects.hash(vlanId, priority, ouiProfileId); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VlanOuiModeOpenApiVo {\n"); + + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" ouiProfileId: ").append(toIndentedString(ouiProfileId)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VlanOuiModeQueryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VlanOuiModeQueryOpenApiVo.java new file mode 100644 index 0000000..43f57bd --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VlanOuiModeQueryOpenApiVo.java @@ -0,0 +1,157 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Basic vlan-oui-priority configuration of oui based vlan rule. + */ +@ApiModel(description = "Basic vlan-oui-priority configuration of oui based vlan rule.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VlanOuiModeQueryOpenApiVo { + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("priority") + private Integer priority; + + @JsonProperty("ouiProfileId") + private String ouiProfileId; + + @JsonProperty("ouiProfileName") + private String ouiProfileName; + + public VlanOuiModeQueryOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * Selected vlan should be within the range of 2 or 4090 + * @return vlanId + */ + @ApiModelProperty(required = true, value = "Selected vlan should be within the range of 2 or 4090") + @NotNull + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public VlanOuiModeQueryOpenApiVo priority(Integer priority) { + this.priority = priority; + return this; + } + + /** + * Selected priority should be within the range of 0 or 7. + * @return priority + */ + @ApiModelProperty(required = true, value = "Selected priority should be within the range of 0 or 7.") + @NotNull + + + public Integer getPriority() { + return priority; + } + + public void setPriority(Integer priority) { + this.priority = priority; + } + + public VlanOuiModeQueryOpenApiVo ouiProfileId(String ouiProfileId) { + this.ouiProfileId = ouiProfileId; + return this; + } + + /** + * Oui profile ID. + * @return ouiProfileId + */ + @ApiModelProperty(required = true, value = "Oui profile ID.") + @NotNull + + + public String getOuiProfileId() { + return ouiProfileId; + } + + public void setOuiProfileId(String ouiProfileId) { + this.ouiProfileId = ouiProfileId; + } + + public VlanOuiModeQueryOpenApiVo ouiProfileName(String ouiProfileName) { + this.ouiProfileName = ouiProfileName; + return this; + } + + /** + * Oui profile name. (Used in Get Api.) + * @return ouiProfileName + */ + @ApiModelProperty(value = "Oui profile name. (Used in Get Api.)") + + + public String getOuiProfileName() { + return ouiProfileName; + } + + public void setOuiProfileName(String ouiProfileName) { + this.ouiProfileName = ouiProfileName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VlanOuiModeQueryOpenApiVo vlanOuiModeQueryOpenApiVo = (VlanOuiModeQueryOpenApiVo) o; + return Objects.equals(this.vlanId, vlanOuiModeQueryOpenApiVo.vlanId) && + Objects.equals(this.priority, vlanOuiModeQueryOpenApiVo.priority) && + Objects.equals(this.ouiProfileId, vlanOuiModeQueryOpenApiVo.ouiProfileId) && + Objects.equals(this.ouiProfileName, vlanOuiModeQueryOpenApiVo.ouiProfileName); + } + + @Override + public int hashCode() { + return Objects.hash(vlanId, priority, ouiProfileId, ouiProfileName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VlanOuiModeQueryOpenApiVo {\n"); + + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" priority: ").append(toIndentedString(priority)).append("\n"); + sb.append(" ouiProfileId: ").append(toIndentedString(ouiProfileId)).append("\n"); + sb.append(" ouiProfileName: ").append(toIndentedString(ouiProfileName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMail.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMail.java new file mode 100644 index 0000000..616af5b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMail.java @@ -0,0 +1,201 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * VoiceMail + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoiceMail { + @JsonProperty("id") + private String id; + + @JsonProperty("date") + private Long date; + + @JsonProperty("incomingNumber") + private String incomingNumber; + + @JsonProperty("telephoneNumber") + private String telephoneNumber; + + @JsonProperty("duration") + private Integer duration; + + @JsonProperty("read") + private Boolean read; + + public VoiceMail id(String id) { + this.id = id; + return this; + } + + /** + * Voice mail ID. + * @return id + */ + @ApiModelProperty(value = "Voice mail ID.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VoiceMail date(Long date) { + this.date = date; + return this; + } + + /** + * The date or time of voice mail. + * @return date + */ + @ApiModelProperty(value = "The date or time of voice mail.") + + + public Long getDate() { + return date; + } + + public void setDate(Long date) { + this.date = date; + } + + public VoiceMail incomingNumber(String incomingNumber) { + this.incomingNumber = incomingNumber; + return this; + } + + /** + * The incoming number of voice mail. + * @return incomingNumber + */ + @ApiModelProperty(value = "The incoming number of voice mail.") + + + public String getIncomingNumber() { + return incomingNumber; + } + + public void setIncomingNumber(String incomingNumber) { + this.incomingNumber = incomingNumber; + } + + public VoiceMail telephoneNumber(String telephoneNumber) { + this.telephoneNumber = telephoneNumber; + return this; + } + + /** + * The telephone number of voice mail. + * @return telephoneNumber + */ + @ApiModelProperty(value = "The telephone number of voice mail.") + + + public String getTelephoneNumber() { + return telephoneNumber; + } + + public void setTelephoneNumber(String telephoneNumber) { + this.telephoneNumber = telephoneNumber; + } + + public VoiceMail duration(Integer duration) { + this.duration = duration; + return this; + } + + /** + * The duration of voice mail. + * @return duration + */ + @ApiModelProperty(value = "The duration of voice mail.") + + + public Integer getDuration() { + return duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + public VoiceMail read(Boolean read) { + this.read = read; + return this; + } + + /** + * Whether the voice mail has been read, false-not read, true-read + * @return read + */ + @ApiModelProperty(value = "Whether the voice mail has been read, false-not read, true-read") + + + public Boolean getRead() { + return read; + } + + public void setRead(Boolean read) { + this.read = read; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoiceMail voiceMail = (VoiceMail) o; + return Objects.equals(this.id, voiceMail.id) && + Objects.equals(this.date, voiceMail.date) && + Objects.equals(this.incomingNumber, voiceMail.incomingNumber) && + Objects.equals(this.telephoneNumber, voiceMail.telephoneNumber) && + Objects.equals(this.duration, voiceMail.duration) && + Objects.equals(this.read, voiceMail.read); + } + + @Override + public int hashCode() { + return Objects.hash(id, date, incomingNumber, telephoneNumber, duration, read); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoiceMail {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" date: ").append(toIndentedString(date)).append("\n"); + sb.append(" incomingNumber: ").append(toIndentedString(incomingNumber)).append("\n"); + sb.append(" telephoneNumber: ").append(toIndentedString(telephoneNumber)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" read: ").append(toIndentedString(read)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailBatchDelete.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailBatchDelete.java new file mode 100644 index 0000000..1ea3aee --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailBatchDelete.java @@ -0,0 +1,87 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VoiceMailBatchDelete + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoiceMailBatchDelete { + @JsonProperty("voiceMailList") + @Valid + private List voiceMailList = new ArrayList<>(); + + public VoiceMailBatchDelete voiceMailList(List voiceMailList) { + this.voiceMailList = voiceMailList; + return this; + } + + public VoiceMailBatchDelete addVoiceMailListItem(String voiceMailListItem) { + this.voiceMailList.add(voiceMailListItem); + return this; + } + + /** + * Voice mail list. + * @return voiceMailList + */ + @ApiModelProperty(required = true, value = "Voice mail list.") + @NotNull + + + public List getVoiceMailList() { + return voiceMailList; + } + + public void setVoiceMailList(List voiceMailList) { + this.voiceMailList = voiceMailList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoiceMailBatchDelete voiceMailBatchDelete = (VoiceMailBatchDelete) o; + return Objects.equals(this.voiceMailList, voiceMailBatchDelete.voiceMailList); + } + + @Override + public int hashCode() { + return Objects.hash(voiceMailList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoiceMailBatchDelete {\n"); + + sb.append(" voiceMailList: ").append(toIndentedString(voiceMailList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailSettingRequest.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailSettingRequest.java new file mode 100644 index 0000000..ffa004b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailSettingRequest.java @@ -0,0 +1,354 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * VoiceMailSettingRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoiceMailSettingRequest { + @JsonProperty("omadacId") + private String omadacId; + + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("noAnswerTime") + private Integer noAnswerTime; + + @JsonProperty("remoteAccessPin") + private String remoteAccessPin; + + @JsonProperty("voiceMailInUsb") + private Boolean voiceMailInUsb; + + @JsonProperty("greetingForVoiceMailMode") + private Integer greetingForVoiceMailMode; + + @JsonProperty("greetingName") + private String greetingName; + + @JsonProperty("usbUuid") + private String usbUuid; + + @JsonProperty("voiceMailCapacity") + private Integer voiceMailCapacity; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("remoteAccessEnable") + private Boolean remoteAccessEnable; + + @JsonProperty("duration") + private Integer duration; + + public VoiceMailSettingRequest omadacId(String omadacId) { + this.omadacId = omadacId; + return this; + } + + /** + * Omadac ID. + * @return omadacId + */ + @ApiModelProperty(value = "Omadac ID.") + + + public String getOmadacId() { + return omadacId; + } + + public void setOmadacId(String omadacId) { + this.omadacId = omadacId; + } + + public VoiceMailSettingRequest siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID. + * @return siteId + */ + @ApiModelProperty(value = "Site ID.") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public VoiceMailSettingRequest noAnswerTime(Integer noAnswerTime) { + this.noAnswerTime = noAnswerTime; + return this; + } + + /** + * The no answer time of telephone number. Parameter [noAnswerTime] should be from 5 to 60 + * @return noAnswerTime + */ + @ApiModelProperty(value = "The no answer time of telephone number. Parameter [noAnswerTime] should be from 5 to 60") + + + public Integer getNoAnswerTime() { + return noAnswerTime; + } + + public void setNoAnswerTime(Integer noAnswerTime) { + this.noAnswerTime = noAnswerTime; + } + + public VoiceMailSettingRequest remoteAccessPin(String remoteAccessPin) { + this.remoteAccessPin = remoteAccessPin; + return this; + } + + /** + * Remote access pin. + * @return remoteAccessPin + */ + @ApiModelProperty(value = "Remote access pin.") + +@Pattern(regexp="^\\d{4,8}$") + public String getRemoteAccessPin() { + return remoteAccessPin; + } + + public void setRemoteAccessPin(String remoteAccessPin) { + this.remoteAccessPin = remoteAccessPin; + } + + public VoiceMailSettingRequest voiceMailInUsb(Boolean voiceMailInUsb) { + this.voiceMailInUsb = voiceMailInUsb; + return this; + } + + /** + * Whether voice mail is in USB. + * @return voiceMailInUsb + */ + @ApiModelProperty(value = "Whether voice mail is in USB.") + + + public Boolean getVoiceMailInUsb() { + return voiceMailInUsb; + } + + public void setVoiceMailInUsb(Boolean voiceMailInUsb) { + this.voiceMailInUsb = voiceMailInUsb; + } + + public VoiceMailSettingRequest greetingForVoiceMailMode(Integer greetingForVoiceMailMode) { + this.greetingForVoiceMailMode = greetingForVoiceMailMode; + return this; + } + + /** + * Parameter [greetingForVoiceMailMode] should be 0 or 1. 0: Default, 1: Custom. + * @return greetingForVoiceMailMode + */ + @ApiModelProperty(value = "Parameter [greetingForVoiceMailMode] should be 0 or 1. 0: Default, 1: Custom.") + + + public Integer getGreetingForVoiceMailMode() { + return greetingForVoiceMailMode; + } + + public void setGreetingForVoiceMailMode(Integer greetingForVoiceMailMode) { + this.greetingForVoiceMailMode = greetingForVoiceMailMode; + } + + public VoiceMailSettingRequest greetingName(String greetingName) { + this.greetingName = greetingName; + return this; + } + + /** + * Greeting name. + * @return greetingName + */ + @ApiModelProperty(value = "Greeting name.") + + + public String getGreetingName() { + return greetingName; + } + + public void setGreetingName(String greetingName) { + this.greetingName = greetingName; + } + + public VoiceMailSettingRequest usbUuid(String usbUuid) { + this.usbUuid = usbUuid; + return this; + } + + /** + * USB UUID. + * @return usbUuid + */ + @ApiModelProperty(value = "USB UUID.") + + + public String getUsbUuid() { + return usbUuid; + } + + public void setUsbUuid(String usbUuid) { + this.usbUuid = usbUuid; + } + + public VoiceMailSettingRequest voiceMailCapacity(Integer voiceMailCapacity) { + this.voiceMailCapacity = voiceMailCapacity; + return this; + } + + /** + * The capacity of voice mail. + * @return voiceMailCapacity + */ + @ApiModelProperty(value = "The capacity of voice mail.") + + + public Integer getVoiceMailCapacity() { + return voiceMailCapacity; + } + + public void setVoiceMailCapacity(Integer voiceMailCapacity) { + this.voiceMailCapacity = voiceMailCapacity; + } + + public VoiceMailSettingRequest enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Whether to enable voice mail settings. + * @return enable + */ + @ApiModelProperty(required = true, value = "Whether to enable voice mail settings.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public VoiceMailSettingRequest remoteAccessEnable(Boolean remoteAccessEnable) { + this.remoteAccessEnable = remoteAccessEnable; + return this; + } + + /** + * Whether voice mail allows remote access. + * @return remoteAccessEnable + */ + @ApiModelProperty(value = "Whether voice mail allows remote access.") + + + public Boolean getRemoteAccessEnable() { + return remoteAccessEnable; + } + + public void setRemoteAccessEnable(Boolean remoteAccessEnable) { + this.remoteAccessEnable = remoteAccessEnable; + } + + public VoiceMailSettingRequest duration(Integer duration) { + this.duration = duration; + return this; + } + + /** + * Parameter [duration] should be from 20 to 120. + * @return duration + */ + @ApiModelProperty(value = "Parameter [duration] should be from 20 to 120.") + + + public Integer getDuration() { + return duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoiceMailSettingRequest voiceMailSettingRequest = (VoiceMailSettingRequest) o; + return Objects.equals(this.omadacId, voiceMailSettingRequest.omadacId) && + Objects.equals(this.siteId, voiceMailSettingRequest.siteId) && + Objects.equals(this.noAnswerTime, voiceMailSettingRequest.noAnswerTime) && + Objects.equals(this.remoteAccessPin, voiceMailSettingRequest.remoteAccessPin) && + Objects.equals(this.voiceMailInUsb, voiceMailSettingRequest.voiceMailInUsb) && + Objects.equals(this.greetingForVoiceMailMode, voiceMailSettingRequest.greetingForVoiceMailMode) && + Objects.equals(this.greetingName, voiceMailSettingRequest.greetingName) && + Objects.equals(this.usbUuid, voiceMailSettingRequest.usbUuid) && + Objects.equals(this.voiceMailCapacity, voiceMailSettingRequest.voiceMailCapacity) && + Objects.equals(this.enable, voiceMailSettingRequest.enable) && + Objects.equals(this.remoteAccessEnable, voiceMailSettingRequest.remoteAccessEnable) && + Objects.equals(this.duration, voiceMailSettingRequest.duration); + } + + @Override + public int hashCode() { + return Objects.hash(omadacId, siteId, noAnswerTime, remoteAccessPin, voiceMailInUsb, greetingForVoiceMailMode, greetingName, usbUuid, voiceMailCapacity, enable, remoteAccessEnable, duration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoiceMailSettingRequest {\n"); + + sb.append(" omadacId: ").append(toIndentedString(omadacId)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" noAnswerTime: ").append(toIndentedString(noAnswerTime)).append("\n"); + sb.append(" remoteAccessPin: ").append(toIndentedString(remoteAccessPin)).append("\n"); + sb.append(" voiceMailInUsb: ").append(toIndentedString(voiceMailInUsb)).append("\n"); + sb.append(" greetingForVoiceMailMode: ").append(toIndentedString(greetingForVoiceMailMode)).append("\n"); + sb.append(" greetingName: ").append(toIndentedString(greetingName)).append("\n"); + sb.append(" usbUuid: ").append(toIndentedString(usbUuid)).append("\n"); + sb.append(" voiceMailCapacity: ").append(toIndentedString(voiceMailCapacity)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" remoteAccessEnable: ").append(toIndentedString(remoteAccessEnable)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailSettingResponse.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailSettingResponse.java new file mode 100644 index 0000000..c3ba9f0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoiceMailSettingResponse.java @@ -0,0 +1,339 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VoiceMailSettingResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoiceMailSettingResponse { + @JsonProperty("omadacId") + private String omadacId; + + @JsonProperty("siteId") + private String siteId; + + @JsonProperty("noAnswerTime") + private Integer noAnswerTime; + + @JsonProperty("remoteAccessPin") + private String remoteAccessPin; + + @JsonProperty("voiceMailInUsb") + private Boolean voiceMailInUsb; + + @JsonProperty("greetingForVoiceMailMode") + private Integer greetingForVoiceMailMode; + + @JsonProperty("defaultGreetingName") + private String defaultGreetingName; + + @JsonProperty("usbList") + @Valid + private List usbList = null; + + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("remoteAccessEnable") + private Boolean remoteAccessEnable; + + @JsonProperty("duration") + private Integer duration; + + public VoiceMailSettingResponse omadacId(String omadacId) { + this.omadacId = omadacId; + return this; + } + + /** + * Omadac ID. + * @return omadacId + */ + @ApiModelProperty(value = "Omadac ID.") + + + public String getOmadacId() { + return omadacId; + } + + public void setOmadacId(String omadacId) { + this.omadacId = omadacId; + } + + public VoiceMailSettingResponse siteId(String siteId) { + this.siteId = siteId; + return this; + } + + /** + * Site ID. + * @return siteId + */ + @ApiModelProperty(value = "Site ID.") + + + public String getSiteId() { + return siteId; + } + + public void setSiteId(String siteId) { + this.siteId = siteId; + } + + public VoiceMailSettingResponse noAnswerTime(Integer noAnswerTime) { + this.noAnswerTime = noAnswerTime; + return this; + } + + /** + * The no answer time of telephone number. + * @return noAnswerTime + */ + @ApiModelProperty(value = "The no answer time of telephone number.") + + + public Integer getNoAnswerTime() { + return noAnswerTime; + } + + public void setNoAnswerTime(Integer noAnswerTime) { + this.noAnswerTime = noAnswerTime; + } + + public VoiceMailSettingResponse remoteAccessPin(String remoteAccessPin) { + this.remoteAccessPin = remoteAccessPin; + return this; + } + + /** + * Remote access pin. + * @return remoteAccessPin + */ + @ApiModelProperty(value = "Remote access pin.") + + + public String getRemoteAccessPin() { + return remoteAccessPin; + } + + public void setRemoteAccessPin(String remoteAccessPin) { + this.remoteAccessPin = remoteAccessPin; + } + + public VoiceMailSettingResponse voiceMailInUsb(Boolean voiceMailInUsb) { + this.voiceMailInUsb = voiceMailInUsb; + return this; + } + + /** + * Whether voice mail is in USB. + * @return voiceMailInUsb + */ + @ApiModelProperty(value = "Whether voice mail is in USB.") + + + public Boolean getVoiceMailInUsb() { + return voiceMailInUsb; + } + + public void setVoiceMailInUsb(Boolean voiceMailInUsb) { + this.voiceMailInUsb = voiceMailInUsb; + } + + public VoiceMailSettingResponse greetingForVoiceMailMode(Integer greetingForVoiceMailMode) { + this.greetingForVoiceMailMode = greetingForVoiceMailMode; + return this; + } + + /** + * Parameter [greetingForVoiceMailMode] will be 0 or 1. 0: Default, 1: Custom. + * @return greetingForVoiceMailMode + */ + @ApiModelProperty(value = "Parameter [greetingForVoiceMailMode] will be 0 or 1. 0: Default, 1: Custom.") + + + public Integer getGreetingForVoiceMailMode() { + return greetingForVoiceMailMode; + } + + public void setGreetingForVoiceMailMode(Integer greetingForVoiceMailMode) { + this.greetingForVoiceMailMode = greetingForVoiceMailMode; + } + + public VoiceMailSettingResponse defaultGreetingName(String defaultGreetingName) { + this.defaultGreetingName = defaultGreetingName; + return this; + } + + /** + * Greeting name. + * @return defaultGreetingName + */ + @ApiModelProperty(value = "Greeting name.") + + + public String getDefaultGreetingName() { + return defaultGreetingName; + } + + public void setDefaultGreetingName(String defaultGreetingName) { + this.defaultGreetingName = defaultGreetingName; + } + + public VoiceMailSettingResponse usbList(List usbList) { + this.usbList = usbList; + return this; + } + + public VoiceMailSettingResponse addUsbListItem(UsbInfo usbListItem) { + if (this.usbList == null) { + this.usbList = new ArrayList<>(); + } + this.usbList.add(usbListItem); + return this; + } + + /** + * USB info list. + * @return usbList + */ + @ApiModelProperty(value = "USB info list.") + + @Valid + + public List getUsbList() { + return usbList; + } + + public void setUsbList(List usbList) { + this.usbList = usbList; + } + + public VoiceMailSettingResponse enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Whether voice mail is enable. + * @return enable + */ + @ApiModelProperty(value = "Whether voice mail is enable.") + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public VoiceMailSettingResponse remoteAccessEnable(Boolean remoteAccessEnable) { + this.remoteAccessEnable = remoteAccessEnable; + return this; + } + + /** + * Whether voice mail allows remote access. + * @return remoteAccessEnable + */ + @ApiModelProperty(value = "Whether voice mail allows remote access.") + + + public Boolean getRemoteAccessEnable() { + return remoteAccessEnable; + } + + public void setRemoteAccessEnable(Boolean remoteAccessEnable) { + this.remoteAccessEnable = remoteAccessEnable; + } + + public VoiceMailSettingResponse duration(Integer duration) { + this.duration = duration; + return this; + } + + /** + * Voice mail duration. + * @return duration + */ + @ApiModelProperty(value = "Voice mail duration.") + + + public Integer getDuration() { + return duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoiceMailSettingResponse voiceMailSettingResponse = (VoiceMailSettingResponse) o; + return Objects.equals(this.omadacId, voiceMailSettingResponse.omadacId) && + Objects.equals(this.siteId, voiceMailSettingResponse.siteId) && + Objects.equals(this.noAnswerTime, voiceMailSettingResponse.noAnswerTime) && + Objects.equals(this.remoteAccessPin, voiceMailSettingResponse.remoteAccessPin) && + Objects.equals(this.voiceMailInUsb, voiceMailSettingResponse.voiceMailInUsb) && + Objects.equals(this.greetingForVoiceMailMode, voiceMailSettingResponse.greetingForVoiceMailMode) && + Objects.equals(this.defaultGreetingName, voiceMailSettingResponse.defaultGreetingName) && + Objects.equals(this.usbList, voiceMailSettingResponse.usbList) && + Objects.equals(this.enable, voiceMailSettingResponse.enable) && + Objects.equals(this.remoteAccessEnable, voiceMailSettingResponse.remoteAccessEnable) && + Objects.equals(this.duration, voiceMailSettingResponse.duration); + } + + @Override + public int hashCode() { + return Objects.hash(omadacId, siteId, noAnswerTime, remoteAccessPin, voiceMailInUsb, greetingForVoiceMailMode, defaultGreetingName, usbList, enable, remoteAccessEnable, duration); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoiceMailSettingResponse {\n"); + + sb.append(" omadacId: ").append(toIndentedString(omadacId)).append("\n"); + sb.append(" siteId: ").append(toIndentedString(siteId)).append("\n"); + sb.append(" noAnswerTime: ").append(toIndentedString(noAnswerTime)).append("\n"); + sb.append(" remoteAccessPin: ").append(toIndentedString(remoteAccessPin)).append("\n"); + sb.append(" voiceMailInUsb: ").append(toIndentedString(voiceMailInUsb)).append("\n"); + sb.append(" greetingForVoiceMailMode: ").append(toIndentedString(greetingForVoiceMailMode)).append("\n"); + sb.append(" defaultGreetingName: ").append(toIndentedString(defaultGreetingName)).append("\n"); + sb.append(" usbList: ").append(toIndentedString(usbList)).append("\n"); + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" remoteAccessEnable: ").append(toIndentedString(remoteAccessEnable)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipCallLog.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipCallLog.java new file mode 100644 index 0000000..3fa258b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipCallLog.java @@ -0,0 +1,253 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.Objects; + +/** + * VoipCallLog + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoipCallLog { + @JsonProperty("entryId") + private String entryId; + + @JsonProperty("dateTime") + private Integer dateTime; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("duration") + private Integer duration; + + @JsonProperty("numberOrContact") + private String numberOrContact; + + @JsonProperty("deviceNumber") + private String deviceNumber; + + @JsonProperty("port") + private Integer port; + + @JsonProperty("telephonyDevice") + private CallLogDeviceOpenApiVo telephonyDevice; + + public VoipCallLog entryId(String entryId) { + this.entryId = entryId; + return this; + } + + /** + * The entry ID of callLog. + * @return entryId + */ + @ApiModelProperty(value = "The entry ID of callLog.") + + + public String getEntryId() { + return entryId; + } + + public void setEntryId(String entryId) { + this.entryId = entryId; + } + + public VoipCallLog dateTime(Integer dateTime) { + this.dateTime = dateTime; + return this; + } + + /** + * The dateTime of callLog. + * @return dateTime + */ + @ApiModelProperty(value = "The dateTime of callLog.") + + + public Integer getDateTime() { + return dateTime; + } + + public void setDateTime(Integer dateTime) { + this.dateTime = dateTime; + } + + public VoipCallLog status(Integer status) { + this.status = status; + return this; + } + + /** + * The status of callLog. + * @return status + */ + @ApiModelProperty(value = "The status of callLog.") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public VoipCallLog duration(Integer duration) { + this.duration = duration; + return this; + } + + /** + * The duration of callLog. + * @return duration + */ + @ApiModelProperty(value = "The duration of callLog.") + + + public Integer getDuration() { + return duration; + } + + public void setDuration(Integer duration) { + this.duration = duration; + } + + public VoipCallLog numberOrContact(String numberOrContact) { + this.numberOrContact = numberOrContact; + return this; + } + + /** + * The number or contact person of callLog. + * @return numberOrContact + */ + @ApiModelProperty(value = "The number or contact person of callLog.") + + + public String getNumberOrContact() { + return numberOrContact; + } + + public void setNumberOrContact(String numberOrContact) { + this.numberOrContact = numberOrContact; + } + + public VoipCallLog deviceNumber(String deviceNumber) { + this.deviceNumber = deviceNumber; + return this; + } + + /** + * The deviceNumber of callLog. + * @return deviceNumber + */ + @ApiModelProperty(value = "The deviceNumber of callLog.") + + + public String getDeviceNumber() { + return deviceNumber; + } + + public void setDeviceNumber(String deviceNumber) { + this.deviceNumber = deviceNumber; + } + + public VoipCallLog port(Integer port) { + this.port = port; + return this; + } + + /** + * FXS port id of this call log. + * @return port + */ + @ApiModelProperty(value = "FXS port id of this call log.") + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public VoipCallLog telephonyDevice(CallLogDeviceOpenApiVo telephonyDevice) { + this.telephonyDevice = telephonyDevice; + return this; + } + + /** + * Get telephonyDevice + * @return telephonyDevice + */ + @ApiModelProperty(value = "") + + @Valid + + public CallLogDeviceOpenApiVo getTelephonyDevice() { + return telephonyDevice; + } + + public void setTelephonyDevice(CallLogDeviceOpenApiVo telephonyDevice) { + this.telephonyDevice = telephonyDevice; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoipCallLog voipCallLog = (VoipCallLog) o; + return Objects.equals(this.entryId, voipCallLog.entryId) && + Objects.equals(this.dateTime, voipCallLog.dateTime) && + Objects.equals(this.status, voipCallLog.status) && + Objects.equals(this.duration, voipCallLog.duration) && + Objects.equals(this.numberOrContact, voipCallLog.numberOrContact) && + Objects.equals(this.deviceNumber, voipCallLog.deviceNumber) && + Objects.equals(this.port, voipCallLog.port) && + Objects.equals(this.telephonyDevice, voipCallLog.telephonyDevice); + } + + @Override + public int hashCode() { + return Objects.hash(entryId, dateTime, status, duration, numberOrContact, deviceNumber, port, telephonyDevice); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoipCallLog {\n"); + + sb.append(" entryId: ").append(toIndentedString(entryId)).append("\n"); + sb.append(" dateTime: ").append(toIndentedString(dateTime)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" duration: ").append(toIndentedString(duration)).append("\n"); + sb.append(" numberOrContact: ").append(toIndentedString(numberOrContact)).append("\n"); + sb.append(" deviceNumber: ").append(toIndentedString(deviceNumber)).append("\n"); + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" telephonyDevice: ").append(toIndentedString(telephonyDevice)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipCallLogEnableSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipCallLogEnableSetting.java new file mode 100644 index 0000000..c5496a3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipCallLogEnableSetting.java @@ -0,0 +1,78 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * VoipCallLogEnableSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoipCallLogEnableSetting { + @JsonProperty("callLogEnable") + private Boolean callLogEnable; + + public VoipCallLogEnableSetting callLogEnable(Boolean callLogEnable) { + this.callLogEnable = callLogEnable; + return this; + } + + /** + * Whether to enable the call log. + * @return callLogEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable the call log.") + @NotNull + + + public Boolean getCallLogEnable() { + return callLogEnable; + } + + public void setCallLogEnable(Boolean callLogEnable) { + this.callLogEnable = callLogEnable; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoipCallLogEnableSetting voipCallLogEnableSetting = (VoipCallLogEnableSetting) o; + return Objects.equals(this.callLogEnable, voipCallLogEnableSetting.callLogEnable); + } + + @Override + public int hashCode() { + return Objects.hash(callLogEnable); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoipCallLogEnableSetting {\n"); + + sb.append(" callLogEnable: ").append(toIndentedString(callLogEnable)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipContactPersonSettings.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipContactPersonSettings.java new file mode 100644 index 0000000..db16c4d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipContactPersonSettings.java @@ -0,0 +1,252 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * VoipContactPersonSettings + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoipContactPersonSettings { + @JsonProperty("firstName") + private String firstName; + + @JsonProperty("lastName") + private String lastName; + + @JsonProperty("privatePhoneNumber") + private String privatePhoneNumber; + + @JsonProperty("workPhoneNumber") + private String workPhoneNumber; + + @JsonProperty("mobilePhoneNumber") + private String mobilePhoneNumber; + + @JsonProperty("speedDialEnable") + private Boolean speedDialEnable; + + @JsonProperty("speedDialNumberType") + private Integer speedDialNumberType; + + @JsonProperty("speedDialNumber") + private String speedDialNumber; + + public VoipContactPersonSettings firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * The firstName of contact person. It should contain 0 to 64 characters. + * @return firstName + */ + @ApiModelProperty(value = "The firstName of contact person. It should contain 0 to 64 characters.") + +@Pattern(regexp="^[A-Za-z0-9]{0,64}$") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public VoipContactPersonSettings lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * The lastName of contact person. It should contain 0 to 64 characters. + * @return lastName + */ + @ApiModelProperty(value = "The lastName of contact person. It should contain 0 to 64 characters.") + +@Pattern(regexp="^[A-Za-z0-9]{0,64}$") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public VoipContactPersonSettings privatePhoneNumber(String privatePhoneNumber) { + this.privatePhoneNumber = privatePhoneNumber; + return this; + } + + /** + * The privatePhoneNumber of contact person. + * @return privatePhoneNumber + */ + @ApiModelProperty(value = "The privatePhoneNumber of contact person.") + + + public String getPrivatePhoneNumber() { + return privatePhoneNumber; + } + + public void setPrivatePhoneNumber(String privatePhoneNumber) { + this.privatePhoneNumber = privatePhoneNumber; + } + + public VoipContactPersonSettings workPhoneNumber(String workPhoneNumber) { + this.workPhoneNumber = workPhoneNumber; + return this; + } + + /** + * The workPhoneNumber of contact person. + * @return workPhoneNumber + */ + @ApiModelProperty(value = "The workPhoneNumber of contact person.") + + + public String getWorkPhoneNumber() { + return workPhoneNumber; + } + + public void setWorkPhoneNumber(String workPhoneNumber) { + this.workPhoneNumber = workPhoneNumber; + } + + public VoipContactPersonSettings mobilePhoneNumber(String mobilePhoneNumber) { + this.mobilePhoneNumber = mobilePhoneNumber; + return this; + } + + /** + * The mobilePhoneNumber of contact person. + * @return mobilePhoneNumber + */ + @ApiModelProperty(value = "The mobilePhoneNumber of contact person.") + + + public String getMobilePhoneNumber() { + return mobilePhoneNumber; + } + + public void setMobilePhoneNumber(String mobilePhoneNumber) { + this.mobilePhoneNumber = mobilePhoneNumber; + } + + public VoipContactPersonSettings speedDialEnable(Boolean speedDialEnable) { + this.speedDialEnable = speedDialEnable; + return this; + } + + /** + * Whether to enable the speedDial. + * @return speedDialEnable + */ + @ApiModelProperty(value = "Whether to enable the speedDial.") + + + public Boolean getSpeedDialEnable() { + return speedDialEnable; + } + + public void setSpeedDialEnable(Boolean speedDialEnable) { + this.speedDialEnable = speedDialEnable; + } + + public VoipContactPersonSettings speedDialNumberType(Integer speedDialNumberType) { + this.speedDialNumberType = speedDialNumberType; + return this; + } + + /** + * speedDialNumberType should be a value as follows: 0: Private Phone Number; 1: Work Phone Number; 2: Mobile Phone Number. + * @return speedDialNumberType + */ + @ApiModelProperty(value = "speedDialNumberType should be a value as follows: 0: Private Phone Number; 1: Work Phone Number; 2: Mobile Phone Number.") + + + public Integer getSpeedDialNumberType() { + return speedDialNumberType; + } + + public void setSpeedDialNumberType(Integer speedDialNumberType) { + this.speedDialNumberType = speedDialNumberType; + } + + public VoipContactPersonSettings speedDialNumber(String speedDialNumber) { + this.speedDialNumber = speedDialNumber; + return this; + } + + /** + * The speedDialNumber of contact person. + * @return speedDialNumber + */ + @ApiModelProperty(value = "The speedDialNumber of contact person.") + + + public String getSpeedDialNumber() { + return speedDialNumber; + } + + public void setSpeedDialNumber(String speedDialNumber) { + this.speedDialNumber = speedDialNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoipContactPersonSettings voipContactPersonSettings = (VoipContactPersonSettings) o; + return Objects.equals(this.firstName, voipContactPersonSettings.firstName) && + Objects.equals(this.lastName, voipContactPersonSettings.lastName) && + Objects.equals(this.privatePhoneNumber, voipContactPersonSettings.privatePhoneNumber) && + Objects.equals(this.workPhoneNumber, voipContactPersonSettings.workPhoneNumber) && + Objects.equals(this.mobilePhoneNumber, voipContactPersonSettings.mobilePhoneNumber) && + Objects.equals(this.speedDialEnable, voipContactPersonSettings.speedDialEnable) && + Objects.equals(this.speedDialNumberType, voipContactPersonSettings.speedDialNumberType) && + Objects.equals(this.speedDialNumber, voipContactPersonSettings.speedDialNumber); + } + + @Override + public int hashCode() { + return Objects.hash(firstName, lastName, privatePhoneNumber, workPhoneNumber, mobilePhoneNumber, speedDialEnable, speedDialNumberType, speedDialNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoipContactPersonSettings {\n"); + + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" privatePhoneNumber: ").append(toIndentedString(privatePhoneNumber)).append("\n"); + sb.append(" workPhoneNumber: ").append(toIndentedString(workPhoneNumber)).append("\n"); + sb.append(" mobilePhoneNumber: ").append(toIndentedString(mobilePhoneNumber)).append("\n"); + sb.append(" speedDialEnable: ").append(toIndentedString(speedDialEnable)).append("\n"); + sb.append(" speedDialNumberType: ").append(toIndentedString(speedDialNumberType)).append("\n"); + sb.append(" speedDialNumber: ").append(toIndentedString(speedDialNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDevice.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDevice.java new file mode 100644 index 0000000..12d4878 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDevice.java @@ -0,0 +1,408 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * VoipDevice + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoipDevice { + @JsonProperty("id") + private String id; + + @JsonProperty("mac") + private String mac; + + @JsonProperty("name") + private String name; + + @JsonProperty("model") + private String model; + + @JsonProperty("modelVersion") + private String modelVersion; + + @JsonProperty("type") + private String type; + + @JsonProperty("ip") + private String ip; + + @JsonProperty("statusCategory") + private Integer statusCategory; + + @JsonProperty("status") + private Integer status; + + @JsonProperty("addedInAdvanced") + private Boolean addedInAdvanced; + + @JsonProperty("wirelessLinked") + private Boolean wirelessLinked; + + @JsonProperty("voipDeviceApConfiguration") + private Object voipDeviceApConfiguration; + + @JsonProperty("voipDeviceOsgConfiguration") + private Object voipDeviceOsgConfiguration; + + @JsonProperty("telephoneNumberAdvancedSetting") + private Object telephoneNumberAdvancedSetting; + + public VoipDevice id(String id) { + this.id = id; + return this; + } + + /** + * The ID of voip device. + * @return id + */ + @ApiModelProperty(value = "The ID of voip device.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VoipDevice mac(String mac) { + this.mac = mac; + return this; + } + + /** + * The mac of voip device. + * @return mac + */ + @ApiModelProperty(value = "The mac of voip device.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + public VoipDevice name(String name) { + this.name = name; + return this; + } + + /** + * The name of voip device. + * @return name + */ + @ApiModelProperty(value = "The name of voip device.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public VoipDevice model(String model) { + this.model = model; + return this; + } + + /** + * The model of voip device. + * @return model + */ + @ApiModelProperty(value = "The model of voip device.") + + + public String getModel() { + return model; + } + + public void setModel(String model) { + this.model = model; + } + + public VoipDevice modelVersion(String modelVersion) { + this.modelVersion = modelVersion; + return this; + } + + /** + * The model version of voip device. + * @return modelVersion + */ + @ApiModelProperty(value = "The model version of voip device.") + + + public String getModelVersion() { + return modelVersion; + } + + public void setModelVersion(String modelVersion) { + this.modelVersion = modelVersion; + } + + public VoipDevice type(String type) { + this.type = type; + return this; + } + + /** + * The type of voip device. + * @return type + */ + @ApiModelProperty(value = "The type of voip device.") + + + public String getType() { + return type; + } + + public void setType(String type) { + this.type = type; + } + + public VoipDevice ip(String ip) { + this.ip = ip; + return this; + } + + /** + * The IP of voip device. + * @return ip + */ + @ApiModelProperty(value = "The IP of voip device.") + + + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + public VoipDevice statusCategory(Integer statusCategory) { + this.statusCategory = statusCategory; + return this; + } + + /** + * The status category of voip device. + * @return statusCategory + */ + @ApiModelProperty(value = "The status category of voip device.") + + + public Integer getStatusCategory() { + return statusCategory; + } + + public void setStatusCategory(Integer statusCategory) { + this.statusCategory = statusCategory; + } + + public VoipDevice status(Integer status) { + this.status = status; + return this; + } + + /** + * The status of voip device. + * @return status + */ + @ApiModelProperty(value = "The status of voip device.") + + + public Integer getStatus() { + return status; + } + + public void setStatus(Integer status) { + this.status = status; + } + + public VoipDevice addedInAdvanced(Boolean addedInAdvanced) { + this.addedInAdvanced = addedInAdvanced; + return this; + } + + /** + * Whether the device is added in advanced. + * @return addedInAdvanced + */ + @ApiModelProperty(required = true, value = "Whether the device is added in advanced.") + @NotNull + + + public Boolean getAddedInAdvanced() { + return addedInAdvanced; + } + + public void setAddedInAdvanced(Boolean addedInAdvanced) { + this.addedInAdvanced = addedInAdvanced; + } + + public VoipDevice wirelessLinked(Boolean wirelessLinked) { + this.wirelessLinked = wirelessLinked; + return this; + } + + /** + * Whether to enable wireless linked. + * @return wirelessLinked + */ + @ApiModelProperty(required = true, value = "Whether to enable wireless linked.") + @NotNull + + + public Boolean getWirelessLinked() { + return wirelessLinked; + } + + public void setWirelessLinked(Boolean wirelessLinked) { + this.wirelessLinked = wirelessLinked; + } + + public VoipDevice voipDeviceApConfiguration(Object voipDeviceApConfiguration) { + this.voipDeviceApConfiguration = voipDeviceApConfiguration; + return this; + } + + /** + * Get voipDeviceApConfiguration + * @return voipDeviceApConfiguration + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getVoipDeviceApConfiguration() { + return voipDeviceApConfiguration; + } + + public void setVoipDeviceApConfiguration(Object voipDeviceApConfiguration) { + this.voipDeviceApConfiguration = voipDeviceApConfiguration; + } + + public VoipDevice voipDeviceOsgConfiguration(Object voipDeviceOsgConfiguration) { + this.voipDeviceOsgConfiguration = voipDeviceOsgConfiguration; + return this; + } + + /** + * Get voipDeviceOsgConfiguration + * @return voipDeviceOsgConfiguration + */ + @ApiModelProperty(value = "") + + @Valid + + public Object getVoipDeviceOsgConfiguration() { + return voipDeviceOsgConfiguration; + } + + public void setVoipDeviceOsgConfiguration(Object voipDeviceOsgConfiguration) { + this.voipDeviceOsgConfiguration = voipDeviceOsgConfiguration; + } + + public VoipDevice telephoneNumberAdvancedSetting(Object telephoneNumberAdvancedSetting) { + this.telephoneNumberAdvancedSetting = telephoneNumberAdvancedSetting; + return this; + } + + /** + * The telephone number advanced setting of voip device. + * @return telephoneNumberAdvancedSetting + */ + @ApiModelProperty(value = "The telephone number advanced setting of voip device.") + + @Valid + + public Object getTelephoneNumberAdvancedSetting() { + return telephoneNumberAdvancedSetting; + } + + public void setTelephoneNumberAdvancedSetting(Object telephoneNumberAdvancedSetting) { + this.telephoneNumberAdvancedSetting = telephoneNumberAdvancedSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoipDevice voipDevice = (VoipDevice) o; + return Objects.equals(this.id, voipDevice.id) && + Objects.equals(this.mac, voipDevice.mac) && + Objects.equals(this.name, voipDevice.name) && + Objects.equals(this.model, voipDevice.model) && + Objects.equals(this.modelVersion, voipDevice.modelVersion) && + Objects.equals(this.type, voipDevice.type) && + Objects.equals(this.ip, voipDevice.ip) && + Objects.equals(this.statusCategory, voipDevice.statusCategory) && + Objects.equals(this.status, voipDevice.status) && + Objects.equals(this.addedInAdvanced, voipDevice.addedInAdvanced) && + Objects.equals(this.wirelessLinked, voipDevice.wirelessLinked) && + Objects.equals(this.voipDeviceApConfiguration, voipDevice.voipDeviceApConfiguration) && + Objects.equals(this.voipDeviceOsgConfiguration, voipDevice.voipDeviceOsgConfiguration) && + Objects.equals(this.telephoneNumberAdvancedSetting, voipDevice.telephoneNumberAdvancedSetting); + } + + @Override + public int hashCode() { + return Objects.hash(id, mac, name, model, modelVersion, type, ip, statusCategory, status, addedInAdvanced, wirelessLinked, voipDeviceApConfiguration, voipDeviceOsgConfiguration, telephoneNumberAdvancedSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoipDevice {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" model: ").append(toIndentedString(model)).append("\n"); + sb.append(" modelVersion: ").append(toIndentedString(modelVersion)).append("\n"); + sb.append(" type: ").append(toIndentedString(type)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append(" statusCategory: ").append(toIndentedString(statusCategory)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" addedInAdvanced: ").append(toIndentedString(addedInAdvanced)).append("\n"); + sb.append(" wirelessLinked: ").append(toIndentedString(wirelessLinked)).append("\n"); + sb.append(" voipDeviceApConfiguration: ").append(toIndentedString(voipDeviceApConfiguration)).append("\n"); + sb.append(" voipDeviceOsgConfiguration: ").append(toIndentedString(voipDeviceOsgConfiguration)).append("\n"); + sb.append(" telephoneNumberAdvancedSetting: ").append(toIndentedString(telephoneNumberAdvancedSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDeviceApConfigurationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDeviceApConfigurationOpenApiVo.java new file mode 100644 index 0000000..1aea29f --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDeviceApConfigurationOpenApiVo.java @@ -0,0 +1,315 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Telephony settings. + */ +@ApiModel(description = "Telephony settings.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoipDeviceApConfigurationOpenApiVo { + @JsonProperty("numberIdForOutgoingCalls") + private String numberIdForOutgoingCalls; + + @JsonProperty("numberIdListForIncomingCalls") + @Valid + private List numberIdListForIncomingCalls = null; + + @JsonProperty("vadSupportEnable") + private Boolean vadSupportEnable; + + @JsonProperty("speakerGain") + private Integer speakerGain; + + @JsonProperty("micGain") + private Integer micGain; + + @JsonProperty("callBlockingEnable") + private Boolean callBlockingEnable; + + @JsonProperty("callBlockingProfileId") + private String callBlockingProfileId; + + @JsonProperty("callBlockingProfileName") + private String callBlockingProfileName; + + @JsonProperty("digitMapProfileId") + private String digitMapProfileId; + + @JsonProperty("digitMapProfileName") + private String digitMapProfileName; + + public VoipDeviceApConfigurationOpenApiVo numberIdForOutgoingCalls(String numberIdForOutgoingCalls) { + this.numberIdForOutgoingCalls = numberIdForOutgoingCalls; + return this; + } + + /** + * The outgoing calls number ID of voip device. + * @return numberIdForOutgoingCalls + */ + @ApiModelProperty(value = "The outgoing calls number ID of voip device.") + + + public String getNumberIdForOutgoingCalls() { + return numberIdForOutgoingCalls; + } + + public void setNumberIdForOutgoingCalls(String numberIdForOutgoingCalls) { + this.numberIdForOutgoingCalls = numberIdForOutgoingCalls; + } + + public VoipDeviceApConfigurationOpenApiVo numberIdListForIncomingCalls(List numberIdListForIncomingCalls) { + this.numberIdListForIncomingCalls = numberIdListForIncomingCalls; + return this; + } + + public VoipDeviceApConfigurationOpenApiVo addNumberIdListForIncomingCallsItem(String numberIdListForIncomingCallsItem) { + if (this.numberIdListForIncomingCalls == null) { + this.numberIdListForIncomingCalls = new ArrayList<>(); + } + this.numberIdListForIncomingCalls.add(numberIdListForIncomingCallsItem); + return this; + } + + /** + * The list of incoming calls number ID. + * @return numberIdListForIncomingCalls + */ + @ApiModelProperty(value = "The list of incoming calls number ID.") + + + public List getNumberIdListForIncomingCalls() { + return numberIdListForIncomingCalls; + } + + public void setNumberIdListForIncomingCalls(List numberIdListForIncomingCalls) { + this.numberIdListForIncomingCalls = numberIdListForIncomingCalls; + } + + public VoipDeviceApConfigurationOpenApiVo vadSupportEnable(Boolean vadSupportEnable) { + this.vadSupportEnable = vadSupportEnable; + return this; + } + + /** + * Whether to enable vad support. + * @return vadSupportEnable + */ + @ApiModelProperty(value = "Whether to enable vad support.") + + + public Boolean getVadSupportEnable() { + return vadSupportEnable; + } + + public void setVadSupportEnable(Boolean vadSupportEnable) { + this.vadSupportEnable = vadSupportEnable; + } + + public VoipDeviceApConfigurationOpenApiVo speakerGain(Integer speakerGain) { + this.speakerGain = speakerGain; + return this; + } + + /** + * The speaker gain of voip device. + * @return speakerGain + */ + @ApiModelProperty(value = "The speaker gain of voip device.") + + + public Integer getSpeakerGain() { + return speakerGain; + } + + public void setSpeakerGain(Integer speakerGain) { + this.speakerGain = speakerGain; + } + + public VoipDeviceApConfigurationOpenApiVo micGain(Integer micGain) { + this.micGain = micGain; + return this; + } + + /** + * The mic gain of voip device. + * @return micGain + */ + @ApiModelProperty(value = "The mic gain of voip device.") + + + public Integer getMicGain() { + return micGain; + } + + public void setMicGain(Integer micGain) { + this.micGain = micGain; + } + + public VoipDeviceApConfigurationOpenApiVo callBlockingEnable(Boolean callBlockingEnable) { + this.callBlockingEnable = callBlockingEnable; + return this; + } + + /** + * Whether to enable callBlocking. + * @return callBlockingEnable + */ + @ApiModelProperty(value = "Whether to enable callBlocking.") + + + public Boolean getCallBlockingEnable() { + return callBlockingEnable; + } + + public void setCallBlockingEnable(Boolean callBlockingEnable) { + this.callBlockingEnable = callBlockingEnable; + } + + public VoipDeviceApConfigurationOpenApiVo callBlockingProfileId(String callBlockingProfileId) { + this.callBlockingProfileId = callBlockingProfileId; + return this; + } + + /** + * The call blocking profile ID of voip device.When callBlockingEnable is true, it can not be null. + * @return callBlockingProfileId + */ + @ApiModelProperty(value = "The call blocking profile ID of voip device.When callBlockingEnable is true, it can not be null.") + + + public String getCallBlockingProfileId() { + return callBlockingProfileId; + } + + public void setCallBlockingProfileId(String callBlockingProfileId) { + this.callBlockingProfileId = callBlockingProfileId; + } + + public VoipDeviceApConfigurationOpenApiVo callBlockingProfileName(String callBlockingProfileName) { + this.callBlockingProfileName = callBlockingProfileName; + return this; + } + + /** + * The call blocking profile name of voip device. + * @return callBlockingProfileName + */ + @ApiModelProperty(value = "The call blocking profile name of voip device.") + + + public String getCallBlockingProfileName() { + return callBlockingProfileName; + } + + public void setCallBlockingProfileName(String callBlockingProfileName) { + this.callBlockingProfileName = callBlockingProfileName; + } + + public VoipDeviceApConfigurationOpenApiVo digitMapProfileId(String digitMapProfileId) { + this.digitMapProfileId = digitMapProfileId; + return this; + } + + /** + * The digit map profile ID of voip device. + * @return digitMapProfileId + */ + @ApiModelProperty(value = "The digit map profile ID of voip device.") + + + public String getDigitMapProfileId() { + return digitMapProfileId; + } + + public void setDigitMapProfileId(String digitMapProfileId) { + this.digitMapProfileId = digitMapProfileId; + } + + public VoipDeviceApConfigurationOpenApiVo digitMapProfileName(String digitMapProfileName) { + this.digitMapProfileName = digitMapProfileName; + return this; + } + + /** + * The digit map profile name of voip device. + * @return digitMapProfileName + */ + @ApiModelProperty(value = "The digit map profile name of voip device.") + + + public String getDigitMapProfileName() { + return digitMapProfileName; + } + + public void setDigitMapProfileName(String digitMapProfileName) { + this.digitMapProfileName = digitMapProfileName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoipDeviceApConfigurationOpenApiVo voipDeviceApConfigurationOpenApiVo = (VoipDeviceApConfigurationOpenApiVo) o; + return Objects.equals(this.numberIdForOutgoingCalls, voipDeviceApConfigurationOpenApiVo.numberIdForOutgoingCalls) && + Objects.equals(this.numberIdListForIncomingCalls, voipDeviceApConfigurationOpenApiVo.numberIdListForIncomingCalls) && + Objects.equals(this.vadSupportEnable, voipDeviceApConfigurationOpenApiVo.vadSupportEnable) && + Objects.equals(this.speakerGain, voipDeviceApConfigurationOpenApiVo.speakerGain) && + Objects.equals(this.micGain, voipDeviceApConfigurationOpenApiVo.micGain) && + Objects.equals(this.callBlockingEnable, voipDeviceApConfigurationOpenApiVo.callBlockingEnable) && + Objects.equals(this.callBlockingProfileId, voipDeviceApConfigurationOpenApiVo.callBlockingProfileId) && + Objects.equals(this.callBlockingProfileName, voipDeviceApConfigurationOpenApiVo.callBlockingProfileName) && + Objects.equals(this.digitMapProfileId, voipDeviceApConfigurationOpenApiVo.digitMapProfileId) && + Objects.equals(this.digitMapProfileName, voipDeviceApConfigurationOpenApiVo.digitMapProfileName); + } + + @Override + public int hashCode() { + return Objects.hash(numberIdForOutgoingCalls, numberIdListForIncomingCalls, vadSupportEnable, speakerGain, micGain, callBlockingEnable, callBlockingProfileId, callBlockingProfileName, digitMapProfileId, digitMapProfileName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoipDeviceApConfigurationOpenApiVo {\n"); + + sb.append(" numberIdForOutgoingCalls: ").append(toIndentedString(numberIdForOutgoingCalls)).append("\n"); + sb.append(" numberIdListForIncomingCalls: ").append(toIndentedString(numberIdListForIncomingCalls)).append("\n"); + sb.append(" vadSupportEnable: ").append(toIndentedString(vadSupportEnable)).append("\n"); + sb.append(" speakerGain: ").append(toIndentedString(speakerGain)).append("\n"); + sb.append(" micGain: ").append(toIndentedString(micGain)).append("\n"); + sb.append(" callBlockingEnable: ").append(toIndentedString(callBlockingEnable)).append("\n"); + sb.append(" callBlockingProfileId: ").append(toIndentedString(callBlockingProfileId)).append("\n"); + sb.append(" callBlockingProfileName: ").append(toIndentedString(callBlockingProfileName)).append("\n"); + sb.append(" digitMapProfileId: ").append(toIndentedString(digitMapProfileId)).append("\n"); + sb.append(" digitMapProfileName: ").append(toIndentedString(digitMapProfileName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDeviceOsgConfigurationOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDeviceOsgConfigurationOpenApiVo.java new file mode 100644 index 0000000..5480737 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDeviceOsgConfigurationOpenApiVo.java @@ -0,0 +1,191 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * Telephony settings. + */ +@ApiModel(description = "Telephony settings.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoipDeviceOsgConfigurationOpenApiVo { + @JsonProperty("portSettings") + @Valid + private List portSettings = null; + + @JsonProperty("callBlockingEnable") + private Boolean callBlockingEnable; + + @JsonProperty("callBlockingProfileId") + private String callBlockingProfileId; + + @JsonProperty("callBlockingProfileName") + private String callBlockingProfileName; + + @JsonProperty("viaIpv6") + private Boolean viaIpv6; + + public VoipDeviceOsgConfigurationOpenApiVo portSettings(List portSettings) { + this.portSettings = portSettings; + return this; + } + + public VoipDeviceOsgConfigurationOpenApiVo addPortSettingsItem(VoipDevicePortSettingOpenApiVo portSettingsItem) { + if (this.portSettings == null) { + this.portSettings = new ArrayList<>(); + } + this.portSettings.add(portSettingsItem); + return this; + } + + /** + * VOIP device port setting. + * @return portSettings + */ + @ApiModelProperty(value = "VOIP device port setting.") + + @Valid + + public List getPortSettings() { + return portSettings; + } + + public void setPortSettings(List portSettings) { + this.portSettings = portSettings; + } + + public VoipDeviceOsgConfigurationOpenApiVo callBlockingEnable(Boolean callBlockingEnable) { + this.callBlockingEnable = callBlockingEnable; + return this; + } + + /** + * Whether to enable callBlocking. + * @return callBlockingEnable + */ + @ApiModelProperty(value = "Whether to enable callBlocking.") + + + public Boolean getCallBlockingEnable() { + return callBlockingEnable; + } + + public void setCallBlockingEnable(Boolean callBlockingEnable) { + this.callBlockingEnable = callBlockingEnable; + } + + public VoipDeviceOsgConfigurationOpenApiVo callBlockingProfileId(String callBlockingProfileId) { + this.callBlockingProfileId = callBlockingProfileId; + return this; + } + + /** + * The call blocking profile ID of voip device.When callBlockingEnable is true, it can not be null. + * @return callBlockingProfileId + */ + @ApiModelProperty(value = "The call blocking profile ID of voip device.When callBlockingEnable is true, it can not be null.") + + + public String getCallBlockingProfileId() { + return callBlockingProfileId; + } + + public void setCallBlockingProfileId(String callBlockingProfileId) { + this.callBlockingProfileId = callBlockingProfileId; + } + + public VoipDeviceOsgConfigurationOpenApiVo callBlockingProfileName(String callBlockingProfileName) { + this.callBlockingProfileName = callBlockingProfileName; + return this; + } + + /** + * The call blocking profile name of voip device. + * @return callBlockingProfileName + */ + @ApiModelProperty(value = "The call blocking profile name of voip device.") + + + public String getCallBlockingProfileName() { + return callBlockingProfileName; + } + + public void setCallBlockingProfileName(String callBlockingProfileName) { + this.callBlockingProfileName = callBlockingProfileName; + } + + public VoipDeviceOsgConfigurationOpenApiVo viaIpv6(Boolean viaIpv6) { + this.viaIpv6 = viaIpv6; + return this; + } + + /** + * Whether via IPv6. + * @return viaIpv6 + */ + @ApiModelProperty(value = "Whether via IPv6.") + + + public Boolean getViaIpv6() { + return viaIpv6; + } + + public void setViaIpv6(Boolean viaIpv6) { + this.viaIpv6 = viaIpv6; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoipDeviceOsgConfigurationOpenApiVo voipDeviceOsgConfigurationOpenApiVo = (VoipDeviceOsgConfigurationOpenApiVo) o; + return Objects.equals(this.portSettings, voipDeviceOsgConfigurationOpenApiVo.portSettings) && + Objects.equals(this.callBlockingEnable, voipDeviceOsgConfigurationOpenApiVo.callBlockingEnable) && + Objects.equals(this.callBlockingProfileId, voipDeviceOsgConfigurationOpenApiVo.callBlockingProfileId) && + Objects.equals(this.callBlockingProfileName, voipDeviceOsgConfigurationOpenApiVo.callBlockingProfileName) && + Objects.equals(this.viaIpv6, voipDeviceOsgConfigurationOpenApiVo.viaIpv6); + } + + @Override + public int hashCode() { + return Objects.hash(portSettings, callBlockingEnable, callBlockingProfileId, callBlockingProfileName, viaIpv6); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoipDeviceOsgConfigurationOpenApiVo {\n"); + + sb.append(" portSettings: ").append(toIndentedString(portSettings)).append("\n"); + sb.append(" callBlockingEnable: ").append(toIndentedString(callBlockingEnable)).append("\n"); + sb.append(" callBlockingProfileId: ").append(toIndentedString(callBlockingProfileId)).append("\n"); + sb.append(" callBlockingProfileName: ").append(toIndentedString(callBlockingProfileName)).append("\n"); + sb.append(" viaIpv6: ").append(toIndentedString(viaIpv6)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDevicePortSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDevicePortSettingOpenApiVo.java new file mode 100644 index 0000000..5a61966 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipDevicePortSettingOpenApiVo.java @@ -0,0 +1,240 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VOIP device port setting. + */ +@ApiModel(description = "VOIP device port setting.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoipDevicePortSettingOpenApiVo { + @JsonProperty("port") + private Integer port; + + @JsonProperty("numberIdForOutgoingCalls") + private String numberIdForOutgoingCalls; + + @JsonProperty("auto") + private Boolean auto; + + @JsonProperty("numberIdListForIncomingCalls") + @Valid + private List numberIdListForIncomingCalls = null; + + @JsonProperty("vadSupportEnable") + private Boolean vadSupportEnable; + + @JsonProperty("speakerGain") + private Integer speakerGain; + + @JsonProperty("micGain") + private Integer micGain; + + public VoipDevicePortSettingOpenApiVo port(Integer port) { + this.port = port; + return this; + } + + /** + * Port ID. + * @return port + */ + @ApiModelProperty(value = "Port ID.") + + + public Integer getPort() { + return port; + } + + public void setPort(Integer port) { + this.port = port; + } + + public VoipDevicePortSettingOpenApiVo numberIdForOutgoingCalls(String numberIdForOutgoingCalls) { + this.numberIdForOutgoingCalls = numberIdForOutgoingCalls; + return this; + } + + /** + * The outgoing calls number ID of voip device. + * @return numberIdForOutgoingCalls + */ + @ApiModelProperty(value = "The outgoing calls number ID of voip device.") + + + public String getNumberIdForOutgoingCalls() { + return numberIdForOutgoingCalls; + } + + public void setNumberIdForOutgoingCalls(String numberIdForOutgoingCalls) { + this.numberIdForOutgoingCalls = numberIdForOutgoingCalls; + } + + public VoipDevicePortSettingOpenApiVo auto(Boolean auto) { + this.auto = auto; + return this; + } + + /** + * Whether to enable auto. + * @return auto + */ + @ApiModelProperty(value = "Whether to enable auto.") + + + public Boolean getAuto() { + return auto; + } + + public void setAuto(Boolean auto) { + this.auto = auto; + } + + public VoipDevicePortSettingOpenApiVo numberIdListForIncomingCalls(List numberIdListForIncomingCalls) { + this.numberIdListForIncomingCalls = numberIdListForIncomingCalls; + return this; + } + + public VoipDevicePortSettingOpenApiVo addNumberIdListForIncomingCallsItem(String numberIdListForIncomingCallsItem) { + if (this.numberIdListForIncomingCalls == null) { + this.numberIdListForIncomingCalls = new ArrayList<>(); + } + this.numberIdListForIncomingCalls.add(numberIdListForIncomingCallsItem); + return this; + } + + /** + * The list of incoming calls number ID. + * @return numberIdListForIncomingCalls + */ + @ApiModelProperty(value = "The list of incoming calls number ID.") + + + public List getNumberIdListForIncomingCalls() { + return numberIdListForIncomingCalls; + } + + public void setNumberIdListForIncomingCalls(List numberIdListForIncomingCalls) { + this.numberIdListForIncomingCalls = numberIdListForIncomingCalls; + } + + public VoipDevicePortSettingOpenApiVo vadSupportEnable(Boolean vadSupportEnable) { + this.vadSupportEnable = vadSupportEnable; + return this; + } + + /** + * Whether to enable vad support. + * @return vadSupportEnable + */ + @ApiModelProperty(value = "Whether to enable vad support.") + + + public Boolean getVadSupportEnable() { + return vadSupportEnable; + } + + public void setVadSupportEnable(Boolean vadSupportEnable) { + this.vadSupportEnable = vadSupportEnable; + } + + public VoipDevicePortSettingOpenApiVo speakerGain(Integer speakerGain) { + this.speakerGain = speakerGain; + return this; + } + + /** + * The speaker gain of voip device. + * @return speakerGain + */ + @ApiModelProperty(value = "The speaker gain of voip device.") + + + public Integer getSpeakerGain() { + return speakerGain; + } + + public void setSpeakerGain(Integer speakerGain) { + this.speakerGain = speakerGain; + } + + public VoipDevicePortSettingOpenApiVo micGain(Integer micGain) { + this.micGain = micGain; + return this; + } + + /** + * The mic gain of voip device. + * @return micGain + */ + @ApiModelProperty(value = "The mic gain of voip device.") + + + public Integer getMicGain() { + return micGain; + } + + public void setMicGain(Integer micGain) { + this.micGain = micGain; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoipDevicePortSettingOpenApiVo voipDevicePortSettingOpenApiVo = (VoipDevicePortSettingOpenApiVo) o; + return Objects.equals(this.port, voipDevicePortSettingOpenApiVo.port) && + Objects.equals(this.numberIdForOutgoingCalls, voipDevicePortSettingOpenApiVo.numberIdForOutgoingCalls) && + Objects.equals(this.auto, voipDevicePortSettingOpenApiVo.auto) && + Objects.equals(this.numberIdListForIncomingCalls, voipDevicePortSettingOpenApiVo.numberIdListForIncomingCalls) && + Objects.equals(this.vadSupportEnable, voipDevicePortSettingOpenApiVo.vadSupportEnable) && + Objects.equals(this.speakerGain, voipDevicePortSettingOpenApiVo.speakerGain) && + Objects.equals(this.micGain, voipDevicePortSettingOpenApiVo.micGain); + } + + @Override + public int hashCode() { + return Objects.hash(port, numberIdForOutgoingCalls, auto, numberIdListForIncomingCalls, vadSupportEnable, speakerGain, micGain); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoipDevicePortSettingOpenApiVo {\n"); + + sb.append(" port: ").append(toIndentedString(port)).append("\n"); + sb.append(" numberIdForOutgoingCalls: ").append(toIndentedString(numberIdForOutgoingCalls)).append("\n"); + sb.append(" auto: ").append(toIndentedString(auto)).append("\n"); + sb.append(" numberIdListForIncomingCalls: ").append(toIndentedString(numberIdListForIncomingCalls)).append("\n"); + sb.append(" vadSupportEnable: ").append(toIndentedString(vadSupportEnable)).append("\n"); + sb.append(" speakerGain: ").append(toIndentedString(speakerGain)).append("\n"); + sb.append(" micGain: ").append(toIndentedString(micGain)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipEmergencyNumberSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipEmergencyNumberSetting.java new file mode 100644 index 0000000..23031ed --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipEmergencyNumberSetting.java @@ -0,0 +1,140 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VoipEmergencyNumberSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoipEmergencyNumberSetting { + @JsonProperty("emergencyNumberEnable") + private Boolean emergencyNumberEnable; + + @JsonProperty("noOperationTime") + private Integer noOperationTime; + + @JsonProperty("emergencyNumbers") + @Valid + private List emergencyNumbers = null; + + public VoipEmergencyNumberSetting emergencyNumberEnable(Boolean emergencyNumberEnable) { + this.emergencyNumberEnable = emergencyNumberEnable; + return this; + } + + /** + * Whether to enable the emergency number. + * @return emergencyNumberEnable + */ + @ApiModelProperty(required = true, value = "Whether to enable the emergency number.") + @NotNull + + + public Boolean getEmergencyNumberEnable() { + return emergencyNumberEnable; + } + + public void setEmergencyNumberEnable(Boolean emergencyNumberEnable) { + this.emergencyNumberEnable = emergencyNumberEnable; + } + + public VoipEmergencyNumberSetting noOperationTime(Integer noOperationTime) { + this.noOperationTime = noOperationTime; + return this; + } + + /** + * No operation time should be within the range of 2-8s. + * @return noOperationTime + */ + @ApiModelProperty(value = "No operation time should be within the range of 2-8s.") + + + public Integer getNoOperationTime() { + return noOperationTime; + } + + public void setNoOperationTime(Integer noOperationTime) { + this.noOperationTime = noOperationTime; + } + + public VoipEmergencyNumberSetting emergencyNumbers(List emergencyNumbers) { + this.emergencyNumbers = emergencyNumbers; + return this; + } + + public VoipEmergencyNumberSetting addEmergencyNumbersItem(String emergencyNumbersItem) { + if (this.emergencyNumbers == null) { + this.emergencyNumbers = new ArrayList<>(); + } + this.emergencyNumbers.add(emergencyNumbersItem); + return this; + } + + /** + * Emergency number list. + * @return emergencyNumbers + */ + @ApiModelProperty(value = "Emergency number list.") + + + public List getEmergencyNumbers() { + return emergencyNumbers; + } + + public void setEmergencyNumbers(List emergencyNumbers) { + this.emergencyNumbers = emergencyNumbers; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoipEmergencyNumberSetting voipEmergencyNumberSetting = (VoipEmergencyNumberSetting) o; + return Objects.equals(this.emergencyNumberEnable, voipEmergencyNumberSetting.emergencyNumberEnable) && + Objects.equals(this.noOperationTime, voipEmergencyNumberSetting.noOperationTime) && + Objects.equals(this.emergencyNumbers, voipEmergencyNumberSetting.emergencyNumbers); + } + + @Override + public int hashCode() { + return Objects.hash(emergencyNumberEnable, noOperationTime, emergencyNumbers); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoipEmergencyNumberSetting {\n"); + + sb.append(" emergencyNumberEnable: ").append(toIndentedString(emergencyNumberEnable)).append("\n"); + sb.append(" noOperationTime: ").append(toIndentedString(noOperationTime)).append("\n"); + sb.append(" emergencyNumbers: ").append(toIndentedString(emergencyNumbers)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipOpenApiVo.java new file mode 100644 index 0000000..1ce0c2d --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * VoipOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoipOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("sipUdpPort") + private Integer sipUdpPort; + + public VoipOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * The status of First Priority for VoIP SIP/RTP, valid value is true or false. + * @return enable + */ + @ApiModelProperty(required = true, value = "The status of First Priority for VoIP SIP/RTP, valid value is true or false.") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public VoipOpenApiVo sipUdpPort(Integer sipUdpPort) { + this.sipUdpPort = sipUdpPort; + return this; + } + + /** + * The SIP UDP Port should be within the range of 0-65535 when parameter [enable] is true. + * @return sipUdpPort + */ + @ApiModelProperty(value = "The SIP UDP Port should be within the range of 0-65535 when parameter [enable] is true.") + + + public Integer getSipUdpPort() { + return sipUdpPort; + } + + public void setSipUdpPort(Integer sipUdpPort) { + this.sipUdpPort = sipUdpPort; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoipOpenApiVo voipOpenApiVo = (VoipOpenApiVo) o; + return Objects.equals(this.enable, voipOpenApiVo.enable) && + Objects.equals(this.sipUdpPort, voipOpenApiVo.sipUdpPort); + } + + @Override + public int hashCode() { + return Objects.hash(enable, sipUdpPort); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoipOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" sipUdpPort: ").append(toIndentedString(sipUdpPort)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipTelephoneBookBatchSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipTelephoneBookBatchSetting.java new file mode 100644 index 0000000..a287270 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipTelephoneBookBatchSetting.java @@ -0,0 +1,140 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VoipTelephoneBookBatchSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoipTelephoneBookBatchSetting { + @JsonProperty("contactIds") + @Valid + private List contactIds = new ArrayList<>(); + + @JsonProperty("selectType") + private String selectType; + + @JsonProperty("forceDelete") + private Boolean forceDelete; + + public VoipTelephoneBookBatchSetting contactIds(List contactIds) { + this.contactIds = contactIds; + return this; + } + + public VoipTelephoneBookBatchSetting addContactIdsItem(String contactIdsItem) { + this.contactIds.add(contactIdsItem); + return this; + } + + /** + * Delete the contact ID of contact person. + * @return contactIds + */ + @ApiModelProperty(required = true, value = "Delete the contact ID of contact person.") + @NotNull + + + public List getContactIds() { + return contactIds; + } + + public void setContactIds(List contactIds) { + this.contactIds = contactIds; + } + + public VoipTelephoneBookBatchSetting selectType(String selectType) { + this.selectType = selectType; + return this; + } + + /** + * SpeedDialNumberType should be a value as follows: all, include, exclude. + * @return selectType + */ + @ApiModelProperty(required = true, value = "SpeedDialNumberType should be a value as follows: all, include, exclude.") + @NotNull + +@Pattern(regexp="all|include|exclude") + public String getSelectType() { + return selectType; + } + + public void setSelectType(String selectType) { + this.selectType = selectType; + } + + public VoipTelephoneBookBatchSetting forceDelete(Boolean forceDelete) { + this.forceDelete = forceDelete; + return this; + } + + /** + * Other configurations depending on selected contacts (call forwarding rules for instance) will be deleted together if this field is true. Otherwise, a pre-check will be executed and an error message will be returned when this contact is already used in some other configurations. + * @return forceDelete + */ + @ApiModelProperty(required = true, value = "Other configurations depending on selected contacts (call forwarding rules for instance) will be deleted together if this field is true. Otherwise, a pre-check will be executed and an error message will be returned when this contact is already used in some other configurations.") + @NotNull + + + public Boolean getForceDelete() { + return forceDelete; + } + + public void setForceDelete(Boolean forceDelete) { + this.forceDelete = forceDelete; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoipTelephoneBookBatchSetting voipTelephoneBookBatchSetting = (VoipTelephoneBookBatchSetting) o; + return Objects.equals(this.contactIds, voipTelephoneBookBatchSetting.contactIds) && + Objects.equals(this.selectType, voipTelephoneBookBatchSetting.selectType) && + Objects.equals(this.forceDelete, voipTelephoneBookBatchSetting.forceDelete); + } + + @Override + public int hashCode() { + return Objects.hash(contactIds, selectType, forceDelete); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoipTelephoneBookBatchSetting {\n"); + + sb.append(" contactIds: ").append(toIndentedString(contactIds)).append("\n"); + sb.append(" selectType: ").append(toIndentedString(selectType)).append("\n"); + sb.append(" forceDelete: ").append(toIndentedString(forceDelete)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipTelephoneBookSetting.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipTelephoneBookSetting.java new file mode 100644 index 0000000..dc90844 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VoipTelephoneBookSetting.java @@ -0,0 +1,277 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * VoipTelephoneBookSetting + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VoipTelephoneBookSetting { + @JsonProperty("contactId") + private String contactId; + + @JsonProperty("firstName") + private String firstName; + + @JsonProperty("lastName") + private String lastName; + + @JsonProperty("privatePhoneNumber") + private String privatePhoneNumber; + + @JsonProperty("workPhoneNumber") + private String workPhoneNumber; + + @JsonProperty("mobilePhoneNumber") + private String mobilePhoneNumber; + + @JsonProperty("speedDialEnable") + private Boolean speedDialEnable; + + @JsonProperty("speedDialNumberType") + private Integer speedDialNumberType; + + @JsonProperty("speedDialNumber") + private String speedDialNumber; + + public VoipTelephoneBookSetting contactId(String contactId) { + this.contactId = contactId; + return this; + } + + /** + * The contact ID of contact person. + * @return contactId + */ + @ApiModelProperty(value = "The contact ID of contact person.") + + + public String getContactId() { + return contactId; + } + + public void setContactId(String contactId) { + this.contactId = contactId; + } + + public VoipTelephoneBookSetting firstName(String firstName) { + this.firstName = firstName; + return this; + } + + /** + * The firstName of contact person. It should contain 0 to 64 characters. + * @return firstName + */ + @ApiModelProperty(value = "The firstName of contact person. It should contain 0 to 64 characters.") + +@Pattern(regexp="^[A-Za-z0-9]{0,64}$") + public String getFirstName() { + return firstName; + } + + public void setFirstName(String firstName) { + this.firstName = firstName; + } + + public VoipTelephoneBookSetting lastName(String lastName) { + this.lastName = lastName; + return this; + } + + /** + * The lastName of contact person. It should contain 0 to 64 characters. + * @return lastName + */ + @ApiModelProperty(value = "The lastName of contact person. It should contain 0 to 64 characters.") + +@Pattern(regexp="^[A-Za-z0-9]{0,64}$") + public String getLastName() { + return lastName; + } + + public void setLastName(String lastName) { + this.lastName = lastName; + } + + public VoipTelephoneBookSetting privatePhoneNumber(String privatePhoneNumber) { + this.privatePhoneNumber = privatePhoneNumber; + return this; + } + + /** + * The privatePhoneNumber of contact person. + * @return privatePhoneNumber + */ + @ApiModelProperty(value = "The privatePhoneNumber of contact person.") + + + public String getPrivatePhoneNumber() { + return privatePhoneNumber; + } + + public void setPrivatePhoneNumber(String privatePhoneNumber) { + this.privatePhoneNumber = privatePhoneNumber; + } + + public VoipTelephoneBookSetting workPhoneNumber(String workPhoneNumber) { + this.workPhoneNumber = workPhoneNumber; + return this; + } + + /** + * The workPhoneNumber of contact person. + * @return workPhoneNumber + */ + @ApiModelProperty(value = "The workPhoneNumber of contact person.") + + + public String getWorkPhoneNumber() { + return workPhoneNumber; + } + + public void setWorkPhoneNumber(String workPhoneNumber) { + this.workPhoneNumber = workPhoneNumber; + } + + public VoipTelephoneBookSetting mobilePhoneNumber(String mobilePhoneNumber) { + this.mobilePhoneNumber = mobilePhoneNumber; + return this; + } + + /** + * The mobilePhoneNumber of contact person. + * @return mobilePhoneNumber + */ + @ApiModelProperty(value = "The mobilePhoneNumber of contact person.") + + + public String getMobilePhoneNumber() { + return mobilePhoneNumber; + } + + public void setMobilePhoneNumber(String mobilePhoneNumber) { + this.mobilePhoneNumber = mobilePhoneNumber; + } + + public VoipTelephoneBookSetting speedDialEnable(Boolean speedDialEnable) { + this.speedDialEnable = speedDialEnable; + return this; + } + + /** + * Whether to enable the speedDial. + * @return speedDialEnable + */ + @ApiModelProperty(value = "Whether to enable the speedDial.") + + + public Boolean getSpeedDialEnable() { + return speedDialEnable; + } + + public void setSpeedDialEnable(Boolean speedDialEnable) { + this.speedDialEnable = speedDialEnable; + } + + public VoipTelephoneBookSetting speedDialNumberType(Integer speedDialNumberType) { + this.speedDialNumberType = speedDialNumberType; + return this; + } + + /** + * speedDialNumberType should be a value as follows: 0: Private Phone Number; 1: Work Phone Number; 2: Mobile Phone Number. + * @return speedDialNumberType + */ + @ApiModelProperty(value = "speedDialNumberType should be a value as follows: 0: Private Phone Number; 1: Work Phone Number; 2: Mobile Phone Number.") + + + public Integer getSpeedDialNumberType() { + return speedDialNumberType; + } + + public void setSpeedDialNumberType(Integer speedDialNumberType) { + this.speedDialNumberType = speedDialNumberType; + } + + public VoipTelephoneBookSetting speedDialNumber(String speedDialNumber) { + this.speedDialNumber = speedDialNumber; + return this; + } + + /** + * The speedDialNumber of contact person. + * @return speedDialNumber + */ + @ApiModelProperty(value = "The speedDialNumber of contact person.") + + + public String getSpeedDialNumber() { + return speedDialNumber; + } + + public void setSpeedDialNumber(String speedDialNumber) { + this.speedDialNumber = speedDialNumber; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VoipTelephoneBookSetting voipTelephoneBookSetting = (VoipTelephoneBookSetting) o; + return Objects.equals(this.contactId, voipTelephoneBookSetting.contactId) && + Objects.equals(this.firstName, voipTelephoneBookSetting.firstName) && + Objects.equals(this.lastName, voipTelephoneBookSetting.lastName) && + Objects.equals(this.privatePhoneNumber, voipTelephoneBookSetting.privatePhoneNumber) && + Objects.equals(this.workPhoneNumber, voipTelephoneBookSetting.workPhoneNumber) && + Objects.equals(this.mobilePhoneNumber, voipTelephoneBookSetting.mobilePhoneNumber) && + Objects.equals(this.speedDialEnable, voipTelephoneBookSetting.speedDialEnable) && + Objects.equals(this.speedDialNumberType, voipTelephoneBookSetting.speedDialNumberType) && + Objects.equals(this.speedDialNumber, voipTelephoneBookSetting.speedDialNumber); + } + + @Override + public int hashCode() { + return Objects.hash(contactId, firstName, lastName, privatePhoneNumber, workPhoneNumber, mobilePhoneNumber, speedDialEnable, speedDialNumberType, speedDialNumber); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VoipTelephoneBookSetting {\n"); + + sb.append(" contactId: ").append(toIndentedString(contactId)).append("\n"); + sb.append(" firstName: ").append(toIndentedString(firstName)).append("\n"); + sb.append(" lastName: ").append(toIndentedString(lastName)).append("\n"); + sb.append(" privatePhoneNumber: ").append(toIndentedString(privatePhoneNumber)).append("\n"); + sb.append(" workPhoneNumber: ").append(toIndentedString(workPhoneNumber)).append("\n"); + sb.append(" mobilePhoneNumber: ").append(toIndentedString(mobilePhoneNumber)).append("\n"); + sb.append(" speedDialEnable: ").append(toIndentedString(speedDialEnable)).append("\n"); + sb.append(" speedDialNumberType: ").append(toIndentedString(speedDialNumberType)).append("\n"); + sb.append(" speedDialNumber: ").append(toIndentedString(speedDialNumber)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnAdvancedSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnAdvancedSettingOpenApiVo.java new file mode 100644 index 0000000..9a57a5a --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnAdvancedSettingOpenApiVo.java @@ -0,0 +1,528 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * Advanced setting list of the VPN, only for Manual IPSec type. + */ +@ApiModel(description = "Advanced setting list of the VPN, only for Manual IPSec type.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VpnAdvancedSettingOpenApiVo { + @JsonProperty("keyExchangeVersion") + private Integer keyExchangeVersion; + + @JsonProperty("phase1Proposal1") + private Integer phase1Proposal1; + + @JsonProperty("phase1Proposal2") + private Integer phase1Proposal2; + + @JsonProperty("phase1Proposal3") + private Integer phase1Proposal3; + + @JsonProperty("exchangeMode") + private Integer exchangeMode; + + @JsonProperty("negotiationMode") + private Integer negotiationMode; + + @JsonProperty("localIdType") + private Integer localIdType; + + @JsonProperty("localName") + private String localName; + + @JsonProperty("remoteIdType") + private Integer remoteIdType; + + @JsonProperty("remoteName") + private String remoteName; + + @JsonProperty("saLifetime") + private Integer saLifetime; + + @JsonProperty("dpd") + private Boolean dpd; + + @JsonProperty("dpdInterval") + private Integer dpdInterval; + + @JsonProperty("encapsulationMode") + private Integer encapsulationMode; + + @JsonProperty("phase2Proposal1") + private Integer phase2Proposal1; + + @JsonProperty("phase2Proposal2") + private Integer phase2Proposal2; + + @JsonProperty("phase2Proposal3") + private Integer phase2Proposal3; + + @JsonProperty("pfs") + private Integer pfs; + + @JsonProperty("saLifetime2") + private Integer saLifetime2; + + public VpnAdvancedSettingOpenApiVo keyExchangeVersion(Integer keyExchangeVersion) { + this.keyExchangeVersion = keyExchangeVersion; + return this; + } + + /** + * Key exchange version should be a value as follows: 0: IKEv1; 1: IKEv2. + * @return keyExchangeVersion + */ + @ApiModelProperty(value = "Key exchange version should be a value as follows: 0: IKEv1; 1: IKEv2.") + + + public Integer getKeyExchangeVersion() { + return keyExchangeVersion; + } + + public void setKeyExchangeVersion(Integer keyExchangeVersion) { + this.keyExchangeVersion = keyExchangeVersion; + } + + public VpnAdvancedSettingOpenApiVo phase1Proposal1(Integer phase1Proposal1) { + this.phase1Proposal1 = phase1Proposal1; + return this; + } + + /** + * Phase1 proposal1 should be a value as follows: 0: MD5; 1: SHA1. + * @return phase1Proposal1 + */ + @ApiModelProperty(value = "Phase1 proposal1 should be a value as follows: 0: MD5; 1: SHA1.") + + + public Integer getPhase1Proposal1() { + return phase1Proposal1; + } + + public void setPhase1Proposal1(Integer phase1Proposal1) { + this.phase1Proposal1 = phase1Proposal1; + } + + public VpnAdvancedSettingOpenApiVo phase1Proposal2(Integer phase1Proposal2) { + this.phase1Proposal2 = phase1Proposal2; + return this; + } + + /** + * Phase1 proposal2 should be a value as follows: 0: DES; 1: 3DES; 2: AES128; 3: AES192; 4: AES256. + * @return phase1Proposal2 + */ + @ApiModelProperty(value = "Phase1 proposal2 should be a value as follows: 0: DES; 1: 3DES; 2: AES128; 3: AES192; 4: AES256.") + + + public Integer getPhase1Proposal2() { + return phase1Proposal2; + } + + public void setPhase1Proposal2(Integer phase1Proposal2) { + this.phase1Proposal2 = phase1Proposal2; + } + + public VpnAdvancedSettingOpenApiVo phase1Proposal3(Integer phase1Proposal3) { + this.phase1Proposal3 = phase1Proposal3; + return this; + } + + /** + * Phase1 proposal3 should be a value as follows: 0: DH1; 1: DH2; 2: DH5; 3: DH14; 4: DH15; 5: DH16; 6: DH19; 7: DH20; 8: DH21; 9: DH25; 10: DH26. + * @return phase1Proposal3 + */ + @ApiModelProperty(value = "Phase1 proposal3 should be a value as follows: 0: DH1; 1: DH2; 2: DH5; 3: DH14; 4: DH15; 5: DH16; 6: DH19; 7: DH20; 8: DH21; 9: DH25; 10: DH26.") + + + public Integer getPhase1Proposal3() { + return phase1Proposal3; + } + + public void setPhase1Proposal3(Integer phase1Proposal3) { + this.phase1Proposal3 = phase1Proposal3; + } + + public VpnAdvancedSettingOpenApiVo exchangeMode(Integer exchangeMode) { + this.exchangeMode = exchangeMode; + return this; + } + + /** + * Exchange mode should be a value as follows: 0: Main Mode; 1: Aggressive Mode. + * @return exchangeMode + */ + @ApiModelProperty(value = "Exchange mode should be a value as follows: 0: Main Mode; 1: Aggressive Mode.") + + + public Integer getExchangeMode() { + return exchangeMode; + } + + public void setExchangeMode(Integer exchangeMode) { + this.exchangeMode = exchangeMode; + } + + public VpnAdvancedSettingOpenApiVo negotiationMode(Integer negotiationMode) { + this.negotiationMode = negotiationMode; + return this; + } + + /** + * Negotiation mode should be a value as follows: 0: Initiator; 1: Aggressive Mode. + * @return negotiationMode + */ + @ApiModelProperty(value = "Negotiation mode should be a value as follows: 0: Initiator; 1: Aggressive Mode.") + + + public Integer getNegotiationMode() { + return negotiationMode; + } + + public void setNegotiationMode(Integer negotiationMode) { + this.negotiationMode = negotiationMode; + } + + public VpnAdvancedSettingOpenApiVo localIdType(Integer localIdType) { + this.localIdType = localIdType; + return this; + } + + /** + * Local ID type should be a value as follows: 0: IP Address; 1: Name. + * @return localIdType + */ + @ApiModelProperty(value = "Local ID type should be a value as follows: 0: IP Address; 1: Name.") + + + public Integer getLocalIdType() { + return localIdType; + } + + public void setLocalIdType(Integer localIdType) { + this.localIdType = localIdType; + } + + public VpnAdvancedSettingOpenApiVo localName(String localName) { + this.localName = localName; + return this; + } + + /** + * Local name of the VPN advanced setting. + * @return localName + */ + @ApiModelProperty(value = "Local name of the VPN advanced setting.") + + + public String getLocalName() { + return localName; + } + + public void setLocalName(String localName) { + this.localName = localName; + } + + public VpnAdvancedSettingOpenApiVo remoteIdType(Integer remoteIdType) { + this.remoteIdType = remoteIdType; + return this; + } + + /** + * Remote ID type should be a value as follows: 0: IP Address; 1: Name. + * @return remoteIdType + */ + @ApiModelProperty(value = "Remote ID type should be a value as follows: 0: IP Address; 1: Name.") + + + public Integer getRemoteIdType() { + return remoteIdType; + } + + public void setRemoteIdType(Integer remoteIdType) { + this.remoteIdType = remoteIdType; + } + + public VpnAdvancedSettingOpenApiVo remoteName(String remoteName) { + this.remoteName = remoteName; + return this; + } + + /** + * Remote name of the VPN advanced setting. + * @return remoteName + */ + @ApiModelProperty(value = "Remote name of the VPN advanced setting.") + + + public String getRemoteName() { + return remoteName; + } + + public void setRemoteName(String remoteName) { + this.remoteName = remoteName; + } + + public VpnAdvancedSettingOpenApiVo saLifetime(Integer saLifetime) { + this.saLifetime = saLifetime; + return this; + } + + /** + * SA lifetime of the VPN advanced setting. + * @return saLifetime + */ + @ApiModelProperty(value = "SA lifetime of the VPN advanced setting.") + + + public Integer getSaLifetime() { + return saLifetime; + } + + public void setSaLifetime(Integer saLifetime) { + this.saLifetime = saLifetime; + } + + public VpnAdvancedSettingOpenApiVo dpd(Boolean dpd) { + this.dpd = dpd; + return this; + } + + /** + * DPD of the VPN advanced setting. + * @return dpd + */ + @ApiModelProperty(value = "DPD of the VPN advanced setting.") + + + public Boolean getDpd() { + return dpd; + } + + public void setDpd(Boolean dpd) { + this.dpd = dpd; + } + + public VpnAdvancedSettingOpenApiVo dpdInterval(Integer dpdInterval) { + this.dpdInterval = dpdInterval; + return this; + } + + /** + * DPD interval of the VPN advanced setting. + * @return dpdInterval + */ + @ApiModelProperty(value = "DPD interval of the VPN advanced setting.") + + + public Integer getDpdInterval() { + return dpdInterval; + } + + public void setDpdInterval(Integer dpdInterval) { + this.dpdInterval = dpdInterval; + } + + public VpnAdvancedSettingOpenApiVo encapsulationMode(Integer encapsulationMode) { + this.encapsulationMode = encapsulationMode; + return this; + } + + /** + * Encapsulation mode should be a value as follows: 0: Tunnel Mode; 1: Transport Mode. + * @return encapsulationMode + */ + @ApiModelProperty(value = "Encapsulation mode should be a value as follows: 0: Tunnel Mode; 1: Transport Mode.") + + + public Integer getEncapsulationMode() { + return encapsulationMode; + } + + public void setEncapsulationMode(Integer encapsulationMode) { + this.encapsulationMode = encapsulationMode; + } + + public VpnAdvancedSettingOpenApiVo phase2Proposal1(Integer phase2Proposal1) { + this.phase2Proposal1 = phase2Proposal1; + return this; + } + + /** + * Phase2 proposal1 should be a value as follows: 0: AH; 1: ESP. + * @return phase2Proposal1 + */ + @ApiModelProperty(value = "Phase2 proposal1 should be a value as follows: 0: AH; 1: ESP.") + + + public Integer getPhase2Proposal1() { + return phase2Proposal1; + } + + public void setPhase2Proposal1(Integer phase2Proposal1) { + this.phase2Proposal1 = phase2Proposal1; + } + + public VpnAdvancedSettingOpenApiVo phase2Proposal2(Integer phase2Proposal2) { + this.phase2Proposal2 = phase2Proposal2; + return this; + } + + /** + * Phase2 proposal2 should be a value as follows: 0: MD; 1: SHA1. + * @return phase2Proposal2 + */ + @ApiModelProperty(value = "Phase2 proposal2 should be a value as follows: 0: MD; 1: SHA1.") + + + public Integer getPhase2Proposal2() { + return phase2Proposal2; + } + + public void setPhase2Proposal2(Integer phase2Proposal2) { + this.phase2Proposal2 = phase2Proposal2; + } + + public VpnAdvancedSettingOpenApiVo phase2Proposal3(Integer phase2Proposal3) { + this.phase2Proposal3 = phase2Proposal3; + return this; + } + + /** + * Phase2 proposal3 should be a value as follows: 0: DES; 1: 3DES; 2: AES128; 3: AES192; 4: AES256. + * @return phase2Proposal3 + */ + @ApiModelProperty(value = "Phase2 proposal3 should be a value as follows: 0: DES; 1: 3DES; 2: AES128; 3: AES192; 4: AES256.") + + + public Integer getPhase2Proposal3() { + return phase2Proposal3; + } + + public void setPhase2Proposal3(Integer phase2Proposal3) { + this.phase2Proposal3 = phase2Proposal3; + } + + public VpnAdvancedSettingOpenApiVo pfs(Integer pfs) { + this.pfs = pfs; + return this; + } + + /** + * PFS should be a value as follows: 0: None; 1: dh1; 2: dh2; 3: dh5; 14: dh14; 15: dh15. + * @return pfs + */ + @ApiModelProperty(value = "PFS should be a value as follows: 0: None; 1: dh1; 2: dh2; 3: dh5; 14: dh14; 15: dh15.") + + + public Integer getPfs() { + return pfs; + } + + public void setPfs(Integer pfs) { + this.pfs = pfs; + } + + public VpnAdvancedSettingOpenApiVo saLifetime2(Integer saLifetime2) { + this.saLifetime2 = saLifetime2; + return this; + } + + /** + * SA lifetime2 of the VPN advanced setting. + * @return saLifetime2 + */ + @ApiModelProperty(value = "SA lifetime2 of the VPN advanced setting.") + + + public Integer getSaLifetime2() { + return saLifetime2; + } + + public void setSaLifetime2(Integer saLifetime2) { + this.saLifetime2 = saLifetime2; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VpnAdvancedSettingOpenApiVo vpnAdvancedSettingOpenApiVo = (VpnAdvancedSettingOpenApiVo) o; + return Objects.equals(this.keyExchangeVersion, vpnAdvancedSettingOpenApiVo.keyExchangeVersion) && + Objects.equals(this.phase1Proposal1, vpnAdvancedSettingOpenApiVo.phase1Proposal1) && + Objects.equals(this.phase1Proposal2, vpnAdvancedSettingOpenApiVo.phase1Proposal2) && + Objects.equals(this.phase1Proposal3, vpnAdvancedSettingOpenApiVo.phase1Proposal3) && + Objects.equals(this.exchangeMode, vpnAdvancedSettingOpenApiVo.exchangeMode) && + Objects.equals(this.negotiationMode, vpnAdvancedSettingOpenApiVo.negotiationMode) && + Objects.equals(this.localIdType, vpnAdvancedSettingOpenApiVo.localIdType) && + Objects.equals(this.localName, vpnAdvancedSettingOpenApiVo.localName) && + Objects.equals(this.remoteIdType, vpnAdvancedSettingOpenApiVo.remoteIdType) && + Objects.equals(this.remoteName, vpnAdvancedSettingOpenApiVo.remoteName) && + Objects.equals(this.saLifetime, vpnAdvancedSettingOpenApiVo.saLifetime) && + Objects.equals(this.dpd, vpnAdvancedSettingOpenApiVo.dpd) && + Objects.equals(this.dpdInterval, vpnAdvancedSettingOpenApiVo.dpdInterval) && + Objects.equals(this.encapsulationMode, vpnAdvancedSettingOpenApiVo.encapsulationMode) && + Objects.equals(this.phase2Proposal1, vpnAdvancedSettingOpenApiVo.phase2Proposal1) && + Objects.equals(this.phase2Proposal2, vpnAdvancedSettingOpenApiVo.phase2Proposal2) && + Objects.equals(this.phase2Proposal3, vpnAdvancedSettingOpenApiVo.phase2Proposal3) && + Objects.equals(this.pfs, vpnAdvancedSettingOpenApiVo.pfs) && + Objects.equals(this.saLifetime2, vpnAdvancedSettingOpenApiVo.saLifetime2); + } + + @Override + public int hashCode() { + return Objects.hash(keyExchangeVersion, phase1Proposal1, phase1Proposal2, phase1Proposal3, exchangeMode, negotiationMode, localIdType, localName, remoteIdType, remoteName, saLifetime, dpd, dpdInterval, encapsulationMode, phase2Proposal1, phase2Proposal2, phase2Proposal3, pfs, saLifetime2); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VpnAdvancedSettingOpenApiVo {\n"); + + sb.append(" keyExchangeVersion: ").append(toIndentedString(keyExchangeVersion)).append("\n"); + sb.append(" phase1Proposal1: ").append(toIndentedString(phase1Proposal1)).append("\n"); + sb.append(" phase1Proposal2: ").append(toIndentedString(phase1Proposal2)).append("\n"); + sb.append(" phase1Proposal3: ").append(toIndentedString(phase1Proposal3)).append("\n"); + sb.append(" exchangeMode: ").append(toIndentedString(exchangeMode)).append("\n"); + sb.append(" negotiationMode: ").append(toIndentedString(negotiationMode)).append("\n"); + sb.append(" localIdType: ").append(toIndentedString(localIdType)).append("\n"); + sb.append(" localName: ").append(toIndentedString(localName)).append("\n"); + sb.append(" remoteIdType: ").append(toIndentedString(remoteIdType)).append("\n"); + sb.append(" remoteName: ").append(toIndentedString(remoteName)).append("\n"); + sb.append(" saLifetime: ").append(toIndentedString(saLifetime)).append("\n"); + sb.append(" dpd: ").append(toIndentedString(dpd)).append("\n"); + sb.append(" dpdInterval: ").append(toIndentedString(dpdInterval)).append("\n"); + sb.append(" encapsulationMode: ").append(toIndentedString(encapsulationMode)).append("\n"); + sb.append(" phase2Proposal1: ").append(toIndentedString(phase2Proposal1)).append("\n"); + sb.append(" phase2Proposal2: ").append(toIndentedString(phase2Proposal2)).append("\n"); + sb.append(" phase2Proposal3: ").append(toIndentedString(phase2Proposal3)).append("\n"); + sb.append(" pfs: ").append(toIndentedString(pfs)).append("\n"); + sb.append(" saLifetime2: ").append(toIndentedString(saLifetime2)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnCertificateOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnCertificateOpenApiVo.java new file mode 100644 index 0000000..a270f79 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnCertificateOpenApiVo.java @@ -0,0 +1,103 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * VPN configuration of the VPN + */ +@ApiModel(description = "VPN configuration of the VPN") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VpnCertificateOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("fileName") + private String fileName; + + public VpnCertificateOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * ID of the VPN certificate + * @return id + */ + @ApiModelProperty(value = "ID of the VPN certificate") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VpnCertificateOpenApiVo fileName(String fileName) { + this.fileName = fileName; + return this; + } + + /** + * File name of the VPN certificate + * @return fileName + */ + @ApiModelProperty(value = "File name of the VPN certificate") + + + public String getFileName() { + return fileName; + } + + public void setFileName(String fileName) { + this.fileName = fileName; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VpnCertificateOpenApiVo vpnCertificateOpenApiVo = (VpnCertificateOpenApiVo) o; + return Objects.equals(this.id, vpnCertificateOpenApiVo.id) && + Objects.equals(this.fileName, vpnCertificateOpenApiVo.fileName); + } + + @Override + public int hashCode() { + return Objects.hash(id, fileName); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VpnCertificateOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" fileName: ").append(toIndentedString(fileName)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUser.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUser.java new file mode 100644 index 0000000..56506a3 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUser.java @@ -0,0 +1,323 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VpnUser + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VpnUser { + @JsonProperty("id") + private String id; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("clientMode") + private Integer clientMode; + + @JsonProperty("maxConnections") + private Integer maxConnections; + + @JsonProperty("userRemoteSubnets") + @Valid + private List userRemoteSubnets = null; + + @JsonProperty("servers") + @Valid + private List servers = null; + + @JsonProperty("localIp") + private String localIp; + + @JsonProperty("serverNames") + private String serverNames; + + public VpnUser id(String id) { + this.id = id; + return this; + } + + /** + * ID of the VPN user. + * @return id + */ + @ApiModelProperty(value = "ID of the VPN user.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VpnUser username(String username) { + this.username = username; + return this; + } + + /** + * Username of the VPN user. + * @return username + */ + @ApiModelProperty(value = "Username of the VPN user.") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public VpnUser password(String password) { + this.password = password; + return this; + } + + /** + * Password of the VPN user. + * @return password + */ + @ApiModelProperty(value = "Password of the VPN user.") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public VpnUser protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * Protocol should be a value as follows: 0: L2TP or PPTP; 1: openVPN. + * @return protocol + */ + @ApiModelProperty(value = "Protocol should be a value as follows: 0: L2TP or PPTP; 1: openVPN.") + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public VpnUser clientMode(Integer clientMode) { + this.clientMode = clientMode; + return this; + } + + /** + * Client mode should be a value as follows: 0: Client-To-Site, 1: Site-To-Site. + * @return clientMode + */ + @ApiModelProperty(value = "Client mode should be a value as follows: 0: Client-To-Site, 1: Site-To-Site.") + + + public Integer getClientMode() { + return clientMode; + } + + public void setClientMode(Integer clientMode) { + this.clientMode = clientMode; + } + + public VpnUser maxConnections(Integer maxConnections) { + this.maxConnections = maxConnections; + return this; + } + + /** + * Max connections should be within the range of 1–100. + * @return maxConnections + */ + @ApiModelProperty(value = "Max connections should be within the range of 1–100.") + + + public Integer getMaxConnections() { + return maxConnections; + } + + public void setMaxConnections(Integer maxConnections) { + this.maxConnections = maxConnections; + } + + public VpnUser userRemoteSubnets(List userRemoteSubnets) { + this.userRemoteSubnets = userRemoteSubnets; + return this; + } + + public VpnUser addUserRemoteSubnetsItem(IpSubnetsVo userRemoteSubnetsItem) { + if (this.userRemoteSubnets == null) { + this.userRemoteSubnets = new ArrayList<>(); + } + this.userRemoteSubnets.add(userRemoteSubnetsItem); + return this; + } + + /** + * User remote subnets of the VPN user. + * @return userRemoteSubnets + */ + @ApiModelProperty(value = "User remote subnets of the VPN user.") + + @Valid + + public List getUserRemoteSubnets() { + return userRemoteSubnets; + } + + public void setUserRemoteSubnets(List userRemoteSubnets) { + this.userRemoteSubnets = userRemoteSubnets; + } + + public VpnUser servers(List servers) { + this.servers = servers; + return this; + } + + public VpnUser addServersItem(String serversItem) { + if (this.servers == null) { + this.servers = new ArrayList<>(); + } + this.servers.add(serversItem); + return this; + } + + /** + * Servers of the VPN user. Server can be created using 'Create client-to-site VPN server' interface, and server ID can be obtained from 'Get client-to-site VPN server list' interface. + * @return servers + */ + @ApiModelProperty(value = "Servers of the VPN user. Server can be created using 'Create client-to-site VPN server' interface, and server ID can be obtained from 'Get client-to-site VPN server list' interface.") + + + public List getServers() { + return servers; + } + + public void setServers(List servers) { + this.servers = servers; + } + + public VpnUser localIp(String localIp) { + this.localIp = localIp; + return this; + } + + /** + * Local IP of the VPN user + * @return localIp + */ + @ApiModelProperty(value = "Local IP of the VPN user") + + + public String getLocalIp() { + return localIp; + } + + public void setLocalIp(String localIp) { + this.localIp = localIp; + } + + public VpnUser serverNames(String serverNames) { + this.serverNames = serverNames; + return this; + } + + /** + * Server names of the VPN user. + * @return serverNames + */ + @ApiModelProperty(value = "Server names of the VPN user.") + + + public String getServerNames() { + return serverNames; + } + + public void setServerNames(String serverNames) { + this.serverNames = serverNames; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VpnUser vpnUser = (VpnUser) o; + return Objects.equals(this.id, vpnUser.id) && + Objects.equals(this.username, vpnUser.username) && + Objects.equals(this.password, vpnUser.password) && + Objects.equals(this.protocol, vpnUser.protocol) && + Objects.equals(this.clientMode, vpnUser.clientMode) && + Objects.equals(this.maxConnections, vpnUser.maxConnections) && + Objects.equals(this.userRemoteSubnets, vpnUser.userRemoteSubnets) && + Objects.equals(this.servers, vpnUser.servers) && + Objects.equals(this.localIp, vpnUser.localIp) && + Objects.equals(this.serverNames, vpnUser.serverNames); + } + + @Override + public int hashCode() { + return Objects.hash(id, username, password, protocol, clientMode, maxConnections, userRemoteSubnets, servers, localIp, serverNames); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VpnUser {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" clientMode: ").append(toIndentedString(clientMode)).append("\n"); + sb.append(" maxConnections: ").append(toIndentedString(maxConnections)).append("\n"); + sb.append(" userRemoteSubnets: ").append(toIndentedString(userRemoteSubnets)).append("\n"); + sb.append(" servers: ").append(toIndentedString(servers)).append("\n"); + sb.append(" localIp: ").append(toIndentedString(localIp)).append("\n"); + sb.append(" serverNames: ").append(toIndentedString(serverNames)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUserRequest.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUserRequest.java new file mode 100644 index 0000000..d61a4e9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUserRequest.java @@ -0,0 +1,274 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VpnUserRequest + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VpnUserRequest { + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("clientMode") + private Integer clientMode; + + @JsonProperty("maxConnections") + private Integer maxConnections; + + @JsonProperty("userRemoteSubnets") + @Valid + private List userRemoteSubnets = null; + + @JsonProperty("servers") + @Valid + private List servers = new ArrayList<>(); + + @JsonProperty("localIp") + private String localIp; + + public VpnUserRequest username(String username) { + this.username = username; + return this; + } + + /** + * Username of the VPN user. + * @return username + */ + @ApiModelProperty(required = true, value = "Username of the VPN user.") + @NotNull + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public VpnUserRequest password(String password) { + this.password = password; + return this; + } + + /** + * Password of the VPN user. + * @return password + */ + @ApiModelProperty(required = true, value = "Password of the VPN user.") + @NotNull + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public VpnUserRequest protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * Protocol should be a value as follows: 0: L2TP or PPTP; 1: openVPN. + * @return protocol + */ + @ApiModelProperty(value = "Protocol should be a value as follows: 0: L2TP or PPTP; 1: openVPN.") + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public VpnUserRequest clientMode(Integer clientMode) { + this.clientMode = clientMode; + return this; + } + + /** + * Client mode should be a value as follows: 0: Client-To-Site, 1: Site-To-Site. + * @return clientMode + */ + @ApiModelProperty(value = "Client mode should be a value as follows: 0: Client-To-Site, 1: Site-To-Site.") + + + public Integer getClientMode() { + return clientMode; + } + + public void setClientMode(Integer clientMode) { + this.clientMode = clientMode; + } + + public VpnUserRequest maxConnections(Integer maxConnections) { + this.maxConnections = maxConnections; + return this; + } + + /** + * Max connections should be within the range of 1–100. + * @return maxConnections + */ + @ApiModelProperty(value = "Max connections should be within the range of 1–100.") + + + public Integer getMaxConnections() { + return maxConnections; + } + + public void setMaxConnections(Integer maxConnections) { + this.maxConnections = maxConnections; + } + + public VpnUserRequest userRemoteSubnets(List userRemoteSubnets) { + this.userRemoteSubnets = userRemoteSubnets; + return this; + } + + public VpnUserRequest addUserRemoteSubnetsItem(IpSubnetsVo userRemoteSubnetsItem) { + if (this.userRemoteSubnets == null) { + this.userRemoteSubnets = new ArrayList<>(); + } + this.userRemoteSubnets.add(userRemoteSubnetsItem); + return this; + } + + /** + * User remote subnets of the VPN user. + * @return userRemoteSubnets + */ + @ApiModelProperty(value = "User remote subnets of the VPN user.") + + @Valid + + public List getUserRemoteSubnets() { + return userRemoteSubnets; + } + + public void setUserRemoteSubnets(List userRemoteSubnets) { + this.userRemoteSubnets = userRemoteSubnets; + } + + public VpnUserRequest servers(List servers) { + this.servers = servers; + return this; + } + + public VpnUserRequest addServersItem(String serversItem) { + this.servers.add(serversItem); + return this; + } + + /** + * Servers of the VPN user. Server can be created using 'Create client-to-site VPN server' interface, and server ID can be obtained from 'Get client-to-site VPN server list' interface. + * @return servers + */ + @ApiModelProperty(required = true, value = "Servers of the VPN user. Server can be created using 'Create client-to-site VPN server' interface, and server ID can be obtained from 'Get client-to-site VPN server list' interface.") + @NotNull + + + public List getServers() { + return servers; + } + + public void setServers(List servers) { + this.servers = servers; + } + + public VpnUserRequest localIp(String localIp) { + this.localIp = localIp; + return this; + } + + /** + * Local IP of the VPN user + * @return localIp + */ + @ApiModelProperty(value = "Local IP of the VPN user") + + + public String getLocalIp() { + return localIp; + } + + public void setLocalIp(String localIp) { + this.localIp = localIp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VpnUserRequest vpnUserRequest = (VpnUserRequest) o; + return Objects.equals(this.username, vpnUserRequest.username) && + Objects.equals(this.password, vpnUserRequest.password) && + Objects.equals(this.protocol, vpnUserRequest.protocol) && + Objects.equals(this.clientMode, vpnUserRequest.clientMode) && + Objects.equals(this.maxConnections, vpnUserRequest.maxConnections) && + Objects.equals(this.userRemoteSubnets, vpnUserRequest.userRemoteSubnets) && + Objects.equals(this.servers, vpnUserRequest.servers) && + Objects.equals(this.localIp, vpnUserRequest.localIp); + } + + @Override + public int hashCode() { + return Objects.hash(username, password, protocol, clientMode, maxConnections, userRemoteSubnets, servers, localIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VpnUserRequest {\n"); + + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" clientMode: ").append(toIndentedString(clientMode)).append("\n"); + sb.append(" maxConnections: ").append(toIndentedString(maxConnections)).append("\n"); + sb.append(" userRemoteSubnets: ").append(toIndentedString(userRemoteSubnets)).append("\n"); + sb.append(" servers: ").append(toIndentedString(servers)).append("\n"); + sb.append(" localIp: ").append(toIndentedString(localIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUserResponse.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUserResponse.java new file mode 100644 index 0000000..4ea6ecc --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/VpnUserResponse.java @@ -0,0 +1,323 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * VpnUserResponse + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class VpnUserResponse { + @JsonProperty("id") + private String id; + + @JsonProperty("username") + private String username; + + @JsonProperty("password") + private String password; + + @JsonProperty("protocol") + private Integer protocol; + + @JsonProperty("clientMode") + private Integer clientMode; + + @JsonProperty("maxConnections") + private Integer maxConnections; + + @JsonProperty("userRemoteSubnets") + @Valid + private List userRemoteSubnets = null; + + @JsonProperty("servers") + @Valid + private List servers = null; + + @JsonProperty("localIp") + private String localIp; + + @JsonProperty("serverNames") + private String serverNames; + + public VpnUserResponse id(String id) { + this.id = id; + return this; + } + + /** + * ID of the VPN user. + * @return id + */ + @ApiModelProperty(value = "ID of the VPN user.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public VpnUserResponse username(String username) { + this.username = username; + return this; + } + + /** + * Username of the VPN user. + * @return username + */ + @ApiModelProperty(value = "Username of the VPN user.") + + + public String getUsername() { + return username; + } + + public void setUsername(String username) { + this.username = username; + } + + public VpnUserResponse password(String password) { + this.password = password; + return this; + } + + /** + * Password of the VPN user. + * @return password + */ + @ApiModelProperty(value = "Password of the VPN user.") + + + public String getPassword() { + return password; + } + + public void setPassword(String password) { + this.password = password; + } + + public VpnUserResponse protocol(Integer protocol) { + this.protocol = protocol; + return this; + } + + /** + * Protocol should be a value as follows: 0: L2TP or PPTP; 1: openVPN. + * @return protocol + */ + @ApiModelProperty(value = "Protocol should be a value as follows: 0: L2TP or PPTP; 1: openVPN.") + + + public Integer getProtocol() { + return protocol; + } + + public void setProtocol(Integer protocol) { + this.protocol = protocol; + } + + public VpnUserResponse clientMode(Integer clientMode) { + this.clientMode = clientMode; + return this; + } + + /** + * Client mode should be a value as follows: 0: Client-To-Site, 1: Site-To-Site. + * @return clientMode + */ + @ApiModelProperty(value = "Client mode should be a value as follows: 0: Client-To-Site, 1: Site-To-Site.") + + + public Integer getClientMode() { + return clientMode; + } + + public void setClientMode(Integer clientMode) { + this.clientMode = clientMode; + } + + public VpnUserResponse maxConnections(Integer maxConnections) { + this.maxConnections = maxConnections; + return this; + } + + /** + * Max connections should be within the range of 1–100. + * @return maxConnections + */ + @ApiModelProperty(value = "Max connections should be within the range of 1–100.") + + + public Integer getMaxConnections() { + return maxConnections; + } + + public void setMaxConnections(Integer maxConnections) { + this.maxConnections = maxConnections; + } + + public VpnUserResponse userRemoteSubnets(List userRemoteSubnets) { + this.userRemoteSubnets = userRemoteSubnets; + return this; + } + + public VpnUserResponse addUserRemoteSubnetsItem(IpSubnetsVo userRemoteSubnetsItem) { + if (this.userRemoteSubnets == null) { + this.userRemoteSubnets = new ArrayList<>(); + } + this.userRemoteSubnets.add(userRemoteSubnetsItem); + return this; + } + + /** + * User remote subnets of the VPN user. + * @return userRemoteSubnets + */ + @ApiModelProperty(value = "User remote subnets of the VPN user.") + + @Valid + + public List getUserRemoteSubnets() { + return userRemoteSubnets; + } + + public void setUserRemoteSubnets(List userRemoteSubnets) { + this.userRemoteSubnets = userRemoteSubnets; + } + + public VpnUserResponse servers(List servers) { + this.servers = servers; + return this; + } + + public VpnUserResponse addServersItem(String serversItem) { + if (this.servers == null) { + this.servers = new ArrayList<>(); + } + this.servers.add(serversItem); + return this; + } + + /** + * Servers of the VPN user. Server can be created using 'Create client-to-site VPN server' interface, and server ID can be obtained from 'Get client-to-site VPN server list' interface. + * @return servers + */ + @ApiModelProperty(value = "Servers of the VPN user. Server can be created using 'Create client-to-site VPN server' interface, and server ID can be obtained from 'Get client-to-site VPN server list' interface.") + + + public List getServers() { + return servers; + } + + public void setServers(List servers) { + this.servers = servers; + } + + public VpnUserResponse localIp(String localIp) { + this.localIp = localIp; + return this; + } + + /** + * Local IP of the VPN user + * @return localIp + */ + @ApiModelProperty(value = "Local IP of the VPN user") + + + public String getLocalIp() { + return localIp; + } + + public void setLocalIp(String localIp) { + this.localIp = localIp; + } + + public VpnUserResponse serverNames(String serverNames) { + this.serverNames = serverNames; + return this; + } + + /** + * Server names of the VPN user. + * @return serverNames + */ + @ApiModelProperty(value = "Server names of the VPN user.") + + + public String getServerNames() { + return serverNames; + } + + public void setServerNames(String serverNames) { + this.serverNames = serverNames; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + VpnUserResponse vpnUserResponse = (VpnUserResponse) o; + return Objects.equals(this.id, vpnUserResponse.id) && + Objects.equals(this.username, vpnUserResponse.username) && + Objects.equals(this.password, vpnUserResponse.password) && + Objects.equals(this.protocol, vpnUserResponse.protocol) && + Objects.equals(this.clientMode, vpnUserResponse.clientMode) && + Objects.equals(this.maxConnections, vpnUserResponse.maxConnections) && + Objects.equals(this.userRemoteSubnets, vpnUserResponse.userRemoteSubnets) && + Objects.equals(this.servers, vpnUserResponse.servers) && + Objects.equals(this.localIp, vpnUserResponse.localIp) && + Objects.equals(this.serverNames, vpnUserResponse.serverNames); + } + + @Override + public int hashCode() { + return Objects.hash(id, username, password, protocol, clientMode, maxConnections, userRemoteSubnets, servers, localIp, serverNames); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class VpnUserResponse {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" username: ").append(toIndentedString(username)).append("\n"); + sb.append(" password: ").append(toIndentedString(password)).append("\n"); + sb.append(" protocol: ").append(toIndentedString(protocol)).append("\n"); + sb.append(" clientMode: ").append(toIndentedString(clientMode)).append("\n"); + sb.append(" maxConnections: ").append(toIndentedString(maxConnections)).append("\n"); + sb.append(" userRemoteSubnets: ").append(toIndentedString(userRemoteSubnets)).append("\n"); + sb.append(" servers: ").append(toIndentedString(servers)).append("\n"); + sb.append(" localIp: ").append(toIndentedString(localIp)).append("\n"); + sb.append(" serverNames: ").append(toIndentedString(serverNames)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanLoadBalanceOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanLoadBalanceOpenApiVo.java new file mode 100644 index 0000000..5541d78 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanLoadBalanceOpenApiVo.java @@ -0,0 +1,248 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * WanLoadBalanceOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WanLoadBalanceOpenApiVo { + @JsonProperty("weights") + @Valid + private List weights = new ArrayList<>(); + + @JsonProperty("appOptRouting") + private Boolean appOptRouting; + + @JsonProperty("linkBackup") + private Boolean linkBackup; + + @JsonProperty("primaryWans") + @Valid + private List primaryWans = null; + + @JsonProperty("backupWan") + private String backupWan; + + @JsonProperty("backupMode") + private Integer backupMode; + + @JsonProperty("mode") + private Integer mode; + + public WanLoadBalanceOpenApiVo weights(List weights) { + this.weights = weights; + return this; + } + + public WanLoadBalanceOpenApiVo addWeightsItem(Integer weightsItem) { + this.weights.add(weightsItem); + return this; + } + + /** + * Load Balancing Weights, ranging from 1 to the max int value(2147483647). It is sorted by port ID. + * @return weights + */ + @ApiModelProperty(required = true, value = "Load Balancing Weights, ranging from 1 to the max int value(2147483647). It is sorted by port ID.") + @NotNull + + + public List getWeights() { + return weights; + } + + public void setWeights(List weights) { + this.weights = weights; + } + + public WanLoadBalanceOpenApiVo appOptRouting(Boolean appOptRouting) { + this.appOptRouting = appOptRouting; + return this; + } + + /** + * Application Optimized Routing + * @return appOptRouting + */ + @ApiModelProperty(required = true, value = "Application Optimized Routing") + @NotNull + + + public Boolean getAppOptRouting() { + return appOptRouting; + } + + public void setAppOptRouting(Boolean appOptRouting) { + this.appOptRouting = appOptRouting; + } + + public WanLoadBalanceOpenApiVo linkBackup(Boolean linkBackup) { + this.linkBackup = linkBackup; + return this; + } + + /** + * Link Backup + * @return linkBackup + */ + @ApiModelProperty(required = true, value = "Link Backup") + @NotNull + + + public Boolean getLinkBackup() { + return linkBackup; + } + + public void setLinkBackup(Boolean linkBackup) { + this.linkBackup = linkBackup; + } + + public WanLoadBalanceOpenApiVo primaryWans(List primaryWans) { + this.primaryWans = primaryWans; + return this; + } + + public WanLoadBalanceOpenApiVo addPrimaryWansItem(String primaryWansItem) { + if (this.primaryWans == null) { + this.primaryWans = new ArrayList<>(); + } + this.primaryWans.add(primaryWansItem); + return this; + } + + /** + * Primary WAN port IDs. It is required when [linkBackup] is true. + * @return primaryWans + */ + @ApiModelProperty(value = "Primary WAN port IDs. It is required when [linkBackup] is true.") + + + public List getPrimaryWans() { + return primaryWans; + } + + public void setPrimaryWans(List primaryWans) { + this.primaryWans = primaryWans; + } + + public WanLoadBalanceOpenApiVo backupWan(String backupWan) { + this.backupWan = backupWan; + return this; + } + + /** + * Backup WAN ID. It is required when [linkBackup] is true. + * @return backupWan + */ + @ApiModelProperty(value = "Backup WAN ID. It is required when [linkBackup] is true.") + + + public String getBackupWan() { + return backupWan; + } + + public void setBackupWan(String backupWan) { + this.backupWan = backupWan; + } + + public WanLoadBalanceOpenApiVo backupMode(Integer backupMode) { + this.backupMode = backupMode; + return this; + } + + /** + * It is required when [linkBackup] is true. 0: The system will try to forward the traffic via the backup WAN port when primary WAN fails. Even if the primary WAN is recovered, it will not switch back unless the backup WAN fails; 1: Traffic is always forwarded through the primary WAN port unless it fails. The system will try to forward the traffic via the backup WAN port when it fails, and switch back when it recovers. + * @return backupMode + */ + @ApiModelProperty(value = "It is required when [linkBackup] is true. 0: The system will try to forward the traffic via the backup WAN port when primary WAN fails. Even if the primary WAN is recovered, it will not switch back unless the backup WAN fails; 1: Traffic is always forwarded through the primary WAN port unless it fails. The system will try to forward the traffic via the backup WAN port when it fails, and switch back when it recovers.") + + + public Integer getBackupMode() { + return backupMode; + } + + public void setBackupMode(Integer backupMode) { + this.backupMode = backupMode; + } + + public WanLoadBalanceOpenApiVo mode(Integer mode) { + this.mode = mode; + return this; + } + + /** + * It is required when [linkBackup] is true. 0: Enable backup link when any primary WAN fails. 1: Enable backup link when all primary WANs fail. + * @return mode + */ + @ApiModelProperty(value = "It is required when [linkBackup] is true. 0: Enable backup link when any primary WAN fails. 1: Enable backup link when all primary WANs fail.") + + + public Integer getMode() { + return mode; + } + + public void setMode(Integer mode) { + this.mode = mode; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WanLoadBalanceOpenApiVo wanLoadBalanceOpenApiVo = (WanLoadBalanceOpenApiVo) o; + return Objects.equals(this.weights, wanLoadBalanceOpenApiVo.weights) && + Objects.equals(this.appOptRouting, wanLoadBalanceOpenApiVo.appOptRouting) && + Objects.equals(this.linkBackup, wanLoadBalanceOpenApiVo.linkBackup) && + Objects.equals(this.primaryWans, wanLoadBalanceOpenApiVo.primaryWans) && + Objects.equals(this.backupWan, wanLoadBalanceOpenApiVo.backupWan) && + Objects.equals(this.backupMode, wanLoadBalanceOpenApiVo.backupMode) && + Objects.equals(this.mode, wanLoadBalanceOpenApiVo.mode); + } + + @Override + public int hashCode() { + return Objects.hash(weights, appOptRouting, linkBackup, primaryWans, backupWan, backupMode, mode); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WanLoadBalanceOpenApiVo {\n"); + + sb.append(" weights: ").append(toIndentedString(weights)).append("\n"); + sb.append(" appOptRouting: ").append(toIndentedString(appOptRouting)).append("\n"); + sb.append(" linkBackup: ").append(toIndentedString(linkBackup)).append("\n"); + sb.append(" primaryWans: ").append(toIndentedString(primaryWans)).append("\n"); + sb.append(" backupWan: ").append(toIndentedString(backupWan)).append("\n"); + sb.append(" backupMode: ").append(toIndentedString(backupMode)).append("\n"); + sb.append(" mode: ").append(toIndentedString(mode)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanMultipleIpOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanMultipleIpOpenApiVo.java new file mode 100644 index 0000000..21ae834 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanMultipleIpOpenApiVo.java @@ -0,0 +1,105 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * WanMultipleIpOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WanMultipleIpOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("ip") + private String ip; + + public WanMultipleIpOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public WanMultipleIpOpenApiVo ip(String ip) { + this.ip = ip; + return this; + } + + /** + * Get ip + * @return ip + */ + @ApiModelProperty(required = true, value = "") + @NotNull + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getIp() { + return ip; + } + + public void setIp(String ip) { + this.ip = ip; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WanMultipleIpOpenApiVo wanMultipleIpOpenApiVo = (WanMultipleIpOpenApiVo) o; + return Objects.equals(this.enable, wanMultipleIpOpenApiVo.enable) && + Objects.equals(this.ip, wanMultipleIpOpenApiVo.ip); + } + + @Override + public int hashCode() { + return Objects.hash(enable, ip); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WanMultipleIpOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" ip: ").append(toIndentedString(ip)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortDslSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortDslSettingOpenApiVo.java new file mode 100644 index 0000000..06a0593 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortDslSettingOpenApiVo.java @@ -0,0 +1,359 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * DSL settings. Only for DSL WAN. + */ +@ApiModel(description = "DSL settings. Only for DSL WAN.") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WanPortDslSettingOpenApiVo { + @JsonProperty("portName") + private String portName; + + @JsonProperty("portUuid") + private String portUuid; + + @JsonProperty("portDesc") + private String portDesc; + + @JsonProperty("location") + private String location; + + @JsonProperty("vpi") + private Integer vpi; + + @JsonProperty("vci") + private Integer vci; + + @JsonProperty("encapMode") + private Integer encapMode; + + @JsonProperty("merEnable") + private Boolean merEnable; + + @JsonProperty("merUsername") + private String merUsername; + + @JsonProperty("merPassword") + private String merPassword; + + @JsonProperty("isp") + private Integer isp; + + @JsonProperty("modulationType") + private Integer modulationType; + + public WanPortDslSettingOpenApiVo portName(String portName) { + this.portName = portName; + return this; + } + + /** + * Wan port name. + * @return portName + */ + @ApiModelProperty(value = "Wan port name.") + + + public String getPortName() { + return portName; + } + + public void setPortName(String portName) { + this.portName = portName; + } + + public WanPortDslSettingOpenApiVo portUuid(String portUuid) { + this.portUuid = portUuid; + return this; + } + + /** + * Wan port UUID. + * @return portUuid + */ + @ApiModelProperty(required = true, value = "Wan port UUID.") + @NotNull + + + public String getPortUuid() { + return portUuid; + } + + public void setPortUuid(String portUuid) { + this.portUuid = portUuid; + } + + public WanPortDslSettingOpenApiVo portDesc(String portDesc) { + this.portDesc = portDesc; + return this; + } + + /** + * Wan port description. + * @return portDesc + */ + @ApiModelProperty(value = "Wan port description.") + + + public String getPortDesc() { + return portDesc; + } + + public void setPortDesc(String portDesc) { + this.portDesc = portDesc; + } + + public WanPortDslSettingOpenApiVo location(String location) { + this.location = location; + return this; + } + + /** + * Your country/region. + * @return location + */ + @ApiModelProperty(required = true, value = "Your country/region.") + @NotNull + + + public String getLocation() { + return location; + } + + public void setLocation(String location) { + this.location = location; + } + + public WanPortDslSettingOpenApiVo vpi(Integer vpi) { + this.vpi = vpi; + return this; + } + + /** + * The VPI(0~255) assigned by your ISP to specify the virtual path between endpoints in an ATM network. + * @return vpi + */ + @ApiModelProperty(value = "The VPI(0~255) assigned by your ISP to specify the virtual path between endpoints in an ATM network.") + + + public Integer getVpi() { + return vpi; + } + + public void setVpi(Integer vpi) { + this.vpi = vpi; + } + + public WanPortDslSettingOpenApiVo vci(Integer vci) { + this.vci = vci; + return this; + } + + /** + * The VCI(1~65535) assigned by your ISP to specify the virtual channel endpoints in an ATM network. + * @return vci + */ + @ApiModelProperty(value = "The VCI(1~65535) assigned by your ISP to specify the virtual channel endpoints in an ATM network.") + + + public Integer getVci() { + return vci; + } + + public void setVci(Integer vci) { + this.vci = vci; + } + + public WanPortDslSettingOpenApiVo encapMode(Integer encapMode) { + this.encapMode = encapMode; + return this; + } + + /** + * Encap mode assigned by your ISP. 0: LLC, 1: VC-MUX, 2: VC/MUX, 3: 1483 Bridged IP LLC, 4: 1483 Routed IP LLC + * @return encapMode + */ + @ApiModelProperty(value = "Encap mode assigned by your ISP. 0: LLC, 1: VC-MUX, 2: VC/MUX, 3: 1483 Bridged IP LLC, 4: 1483 Routed IP LLC") + + + public Integer getEncapMode() { + return encapMode; + } + + public void setEncapMode(Integer encapMode) { + this.encapMode = encapMode; + } + + public WanPortDslSettingOpenApiVo merEnable(Boolean merEnable) { + this.merEnable = merEnable; + return this; + } + + /** + * If your ISP requires MER for network connection(e.g., Sky VDSL).MER switch configuration, only configurable when in VDSL mode and DHCP dial-up mode. + * @return merEnable + */ + @ApiModelProperty(value = "If your ISP requires MER for network connection(e.g., Sky VDSL).MER switch configuration, only configurable when in VDSL mode and DHCP dial-up mode.") + + + public Boolean getMerEnable() { + return merEnable; + } + + public void setMerEnable(Boolean merEnable) { + this.merEnable = merEnable; + } + + public WanPortDslSettingOpenApiVo merUsername(String merUsername) { + this.merUsername = merUsername; + return this; + } + + /** + * MER username configuration, only configurable when in VDSL mode and DHCP dial-up mode. + * @return merUsername + */ + @ApiModelProperty(value = "MER username configuration, only configurable when in VDSL mode and DHCP dial-up mode.") + +@Pattern(regexp="^[^\\s]{1,63}$") + public String getMerUsername() { + return merUsername; + } + + public void setMerUsername(String merUsername) { + this.merUsername = merUsername; + } + + public WanPortDslSettingOpenApiVo merPassword(String merPassword) { + this.merPassword = merPassword; + return this; + } + + /** + * MER password configuration, only configurable when in VDSL mode and DHCP dial-up mode. + * @return merPassword + */ + @ApiModelProperty(value = "MER password configuration, only configurable when in VDSL mode and DHCP dial-up mode.") + +@Pattern(regexp="^[^\\s]{1,63}$") + public String getMerPassword() { + return merPassword; + } + + public void setMerPassword(String merPassword) { + this.merPassword = merPassword; + } + + public WanPortDslSettingOpenApiVo isp(Integer isp) { + this.isp = isp; + return this; + } + + /** + * Your ISP (Internet Service Provider) from the drop-down list,Select Other to customize the settings. + * @return isp + */ + @ApiModelProperty(required = true, value = "Your ISP (Internet Service Provider) from the drop-down list,Select Other to customize the settings.") + @NotNull + + + public Integer getIsp() { + return isp; + } + + public void setIsp(Integer isp) { + this.isp = isp; + } + + public WanPortDslSettingOpenApiVo modulationType(Integer modulationType) { + this.modulationType = modulationType; + return this; + } + + /** + * The modulation type used for your DSL connection. 0: VDSL, 1: ADSL. + * @return modulationType + */ + @ApiModelProperty(required = true, value = "The modulation type used for your DSL connection. 0: VDSL, 1: ADSL.") + @NotNull + + + public Integer getModulationType() { + return modulationType; + } + + public void setModulationType(Integer modulationType) { + this.modulationType = modulationType; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WanPortDslSettingOpenApiVo wanPortDslSettingOpenApiVo = (WanPortDslSettingOpenApiVo) o; + return Objects.equals(this.portName, wanPortDslSettingOpenApiVo.portName) && + Objects.equals(this.portUuid, wanPortDslSettingOpenApiVo.portUuid) && + Objects.equals(this.portDesc, wanPortDslSettingOpenApiVo.portDesc) && + Objects.equals(this.location, wanPortDslSettingOpenApiVo.location) && + Objects.equals(this.vpi, wanPortDslSettingOpenApiVo.vpi) && + Objects.equals(this.vci, wanPortDslSettingOpenApiVo.vci) && + Objects.equals(this.encapMode, wanPortDslSettingOpenApiVo.encapMode) && + Objects.equals(this.merEnable, wanPortDslSettingOpenApiVo.merEnable) && + Objects.equals(this.merUsername, wanPortDslSettingOpenApiVo.merUsername) && + Objects.equals(this.merPassword, wanPortDslSettingOpenApiVo.merPassword) && + Objects.equals(this.isp, wanPortDslSettingOpenApiVo.isp) && + Objects.equals(this.modulationType, wanPortDslSettingOpenApiVo.modulationType); + } + + @Override + public int hashCode() { + return Objects.hash(portName, portUuid, portDesc, location, vpi, vci, encapMode, merEnable, merUsername, merPassword, isp, modulationType); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WanPortDslSettingOpenApiVo {\n"); + + sb.append(" portName: ").append(toIndentedString(portName)).append("\n"); + sb.append(" portUuid: ").append(toIndentedString(portUuid)).append("\n"); + sb.append(" portDesc: ").append(toIndentedString(portDesc)).append("\n"); + sb.append(" location: ").append(toIndentedString(location)).append("\n"); + sb.append(" vpi: ").append(toIndentedString(vpi)).append("\n"); + sb.append(" vci: ").append(toIndentedString(vci)).append("\n"); + sb.append(" encapMode: ").append(toIndentedString(encapMode)).append("\n"); + sb.append(" merEnable: ").append(toIndentedString(merEnable)).append("\n"); + sb.append(" merUsername: ").append(toIndentedString(merUsername)).append("\n"); + sb.append(" merPassword: ").append(toIndentedString(merPassword)).append("\n"); + sb.append(" isp: ").append(toIndentedString(isp)).append("\n"); + sb.append(" modulationType: ").append(toIndentedString(modulationType)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortIpv4SettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortIpv4SettingOpenApiVo.java new file mode 100644 index 0000000..f777eca --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortIpv4SettingOpenApiVo.java @@ -0,0 +1,339 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Port IPv4 setting + */ +@ApiModel(description = "Port IPv4 setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WanPortIpv4SettingOpenApiVo { + @JsonProperty("protoType") + private Integer protoType; + + @JsonProperty("vlanId") + private Integer vlanId; + + @JsonProperty("qosTag") + private Boolean qosTag; + + @JsonProperty("vlanPriority") + private Integer vlanPriority; + + @JsonProperty("ipv4Static") + private Ipv4StaticOpenApiVo ipv4Static; + + @JsonProperty("ipv4Dhcp") + private Ipv4DhcpOpenApiVo ipv4Dhcp; + + @JsonProperty("ipv4Pppoe") + private Ipv4PppoeOpenApiVo ipv4Pppoe; + + @JsonProperty("ipv4L2tp") + private Ipv4L2tpOpenApiVo ipv4L2tp; + + @JsonProperty("ipv4Pptp") + private Ipv4PptpOpenApiVo ipv4Pptp; + + @JsonProperty("ipv4Pppoa") + private Ipv4PppoaOpenApiVo ipv4Pppoa; + + @JsonProperty("ipv4Ipoa") + private Ipv4IpoaOpenApiVo ipv4Ipoa; + + public WanPortIpv4SettingOpenApiVo protoType(Integer protoType) { + this.protoType = protoType; + return this; + } + + /** + * IPv4 connection type should be a value as follows: 0:static; 1:DHCP; 2:PPPoE; 3:L2TP; 4:PPTP. + * @return protoType + */ + @ApiModelProperty(required = true, value = "IPv4 connection type should be a value as follows: 0:static; 1:DHCP; 2:PPPoE; 3:L2TP; 4:PPTP.") + @NotNull + + + public Integer getProtoType() { + return protoType; + } + + public void setProtoType(Integer protoType) { + this.protoType = protoType; + } + + public WanPortIpv4SettingOpenApiVo vlanId(Integer vlanId) { + this.vlanId = vlanId; + return this; + } + + /** + * VLAN ID should be within the range of 0–4094, 0 means disable. + * @return vlanId + */ + @ApiModelProperty(required = true, value = "VLAN ID should be within the range of 0–4094, 0 means disable.") + @NotNull + + + public Integer getVlanId() { + return vlanId; + } + + public void setVlanId(Integer vlanId) { + this.vlanId = vlanId; + } + + public WanPortIpv4SettingOpenApiVo qosTag(Boolean qosTag) { + this.qosTag = qosTag; + return this; + } + + /** + * 802.1Q Tag. It takes effect when [vlanId] is not 0. + * @return qosTag + */ + @ApiModelProperty(value = "802.1Q Tag. It takes effect when [vlanId] is not 0.") + + + public Boolean getQosTag() { + return qosTag; + } + + public void setQosTag(Boolean qosTag) { + this.qosTag = qosTag; + } + + public WanPortIpv4SettingOpenApiVo vlanPriority(Integer vlanPriority) { + this.vlanPriority = vlanPriority; + return this; + } + + /** + * Vlan Priority. It takes effect when [vlanId] is not 0, and it should be within the range of 0–7. + * @return vlanPriority + */ + @ApiModelProperty(value = "Vlan Priority. It takes effect when [vlanId] is not 0, and it should be within the range of 0–7.") + + + public Integer getVlanPriority() { + return vlanPriority; + } + + public void setVlanPriority(Integer vlanPriority) { + this.vlanPriority = vlanPriority; + } + + public WanPortIpv4SettingOpenApiVo ipv4Static(Ipv4StaticOpenApiVo ipv4Static) { + this.ipv4Static = ipv4Static; + return this; + } + + /** + * Get ipv4Static + * @return ipv4Static + */ + @ApiModelProperty(value = "") + + @Valid + + public Ipv4StaticOpenApiVo getIpv4Static() { + return ipv4Static; + } + + public void setIpv4Static(Ipv4StaticOpenApiVo ipv4Static) { + this.ipv4Static = ipv4Static; + } + + public WanPortIpv4SettingOpenApiVo ipv4Dhcp(Ipv4DhcpOpenApiVo ipv4Dhcp) { + this.ipv4Dhcp = ipv4Dhcp; + return this; + } + + /** + * Get ipv4Dhcp + * @return ipv4Dhcp + */ + @ApiModelProperty(value = "") + + @Valid + + public Ipv4DhcpOpenApiVo getIpv4Dhcp() { + return ipv4Dhcp; + } + + public void setIpv4Dhcp(Ipv4DhcpOpenApiVo ipv4Dhcp) { + this.ipv4Dhcp = ipv4Dhcp; + } + + public WanPortIpv4SettingOpenApiVo ipv4Pppoe(Ipv4PppoeOpenApiVo ipv4Pppoe) { + this.ipv4Pppoe = ipv4Pppoe; + return this; + } + + /** + * Get ipv4Pppoe + * @return ipv4Pppoe + */ + @ApiModelProperty(value = "") + + @Valid + + public Ipv4PppoeOpenApiVo getIpv4Pppoe() { + return ipv4Pppoe; + } + + public void setIpv4Pppoe(Ipv4PppoeOpenApiVo ipv4Pppoe) { + this.ipv4Pppoe = ipv4Pppoe; + } + + public WanPortIpv4SettingOpenApiVo ipv4L2tp(Ipv4L2tpOpenApiVo ipv4L2tp) { + this.ipv4L2tp = ipv4L2tp; + return this; + } + + /** + * Get ipv4L2tp + * @return ipv4L2tp + */ + @ApiModelProperty(value = "") + + @Valid + + public Ipv4L2tpOpenApiVo getIpv4L2tp() { + return ipv4L2tp; + } + + public void setIpv4L2tp(Ipv4L2tpOpenApiVo ipv4L2tp) { + this.ipv4L2tp = ipv4L2tp; + } + + public WanPortIpv4SettingOpenApiVo ipv4Pptp(Ipv4PptpOpenApiVo ipv4Pptp) { + this.ipv4Pptp = ipv4Pptp; + return this; + } + + /** + * Get ipv4Pptp + * @return ipv4Pptp + */ + @ApiModelProperty(value = "") + + @Valid + + public Ipv4PptpOpenApiVo getIpv4Pptp() { + return ipv4Pptp; + } + + public void setIpv4Pptp(Ipv4PptpOpenApiVo ipv4Pptp) { + this.ipv4Pptp = ipv4Pptp; + } + + public WanPortIpv4SettingOpenApiVo ipv4Pppoa(Ipv4PppoaOpenApiVo ipv4Pppoa) { + this.ipv4Pppoa = ipv4Pppoa; + return this; + } + + /** + * Get ipv4Pppoa + * @return ipv4Pppoa + */ + @ApiModelProperty(value = "") + + @Valid + + public Ipv4PppoaOpenApiVo getIpv4Pppoa() { + return ipv4Pppoa; + } + + public void setIpv4Pppoa(Ipv4PppoaOpenApiVo ipv4Pppoa) { + this.ipv4Pppoa = ipv4Pppoa; + } + + public WanPortIpv4SettingOpenApiVo ipv4Ipoa(Ipv4IpoaOpenApiVo ipv4Ipoa) { + this.ipv4Ipoa = ipv4Ipoa; + return this; + } + + /** + * Get ipv4Ipoa + * @return ipv4Ipoa + */ + @ApiModelProperty(value = "") + + @Valid + + public Ipv4IpoaOpenApiVo getIpv4Ipoa() { + return ipv4Ipoa; + } + + public void setIpv4Ipoa(Ipv4IpoaOpenApiVo ipv4Ipoa) { + this.ipv4Ipoa = ipv4Ipoa; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WanPortIpv4SettingOpenApiVo wanPortIpv4SettingOpenApiVo = (WanPortIpv4SettingOpenApiVo) o; + return Objects.equals(this.protoType, wanPortIpv4SettingOpenApiVo.protoType) && + Objects.equals(this.vlanId, wanPortIpv4SettingOpenApiVo.vlanId) && + Objects.equals(this.qosTag, wanPortIpv4SettingOpenApiVo.qosTag) && + Objects.equals(this.vlanPriority, wanPortIpv4SettingOpenApiVo.vlanPriority) && + Objects.equals(this.ipv4Static, wanPortIpv4SettingOpenApiVo.ipv4Static) && + Objects.equals(this.ipv4Dhcp, wanPortIpv4SettingOpenApiVo.ipv4Dhcp) && + Objects.equals(this.ipv4Pppoe, wanPortIpv4SettingOpenApiVo.ipv4Pppoe) && + Objects.equals(this.ipv4L2tp, wanPortIpv4SettingOpenApiVo.ipv4L2tp) && + Objects.equals(this.ipv4Pptp, wanPortIpv4SettingOpenApiVo.ipv4Pptp) && + Objects.equals(this.ipv4Pppoa, wanPortIpv4SettingOpenApiVo.ipv4Pppoa) && + Objects.equals(this.ipv4Ipoa, wanPortIpv4SettingOpenApiVo.ipv4Ipoa); + } + + @Override + public int hashCode() { + return Objects.hash(protoType, vlanId, qosTag, vlanPriority, ipv4Static, ipv4Dhcp, ipv4Pppoe, ipv4L2tp, ipv4Pptp, ipv4Pppoa, ipv4Ipoa); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WanPortIpv4SettingOpenApiVo {\n"); + + sb.append(" protoType: ").append(toIndentedString(protoType)).append("\n"); + sb.append(" vlanId: ").append(toIndentedString(vlanId)).append("\n"); + sb.append(" qosTag: ").append(toIndentedString(qosTag)).append("\n"); + sb.append(" vlanPriority: ").append(toIndentedString(vlanPriority)).append("\n"); + sb.append(" ipv4Static: ").append(toIndentedString(ipv4Static)).append("\n"); + sb.append(" ipv4Dhcp: ").append(toIndentedString(ipv4Dhcp)).append("\n"); + sb.append(" ipv4Pppoe: ").append(toIndentedString(ipv4Pppoe)).append("\n"); + sb.append(" ipv4L2tp: ").append(toIndentedString(ipv4L2tp)).append("\n"); + sb.append(" ipv4Pptp: ").append(toIndentedString(ipv4Pptp)).append("\n"); + sb.append(" ipv4Pppoa: ").append(toIndentedString(ipv4Pppoa)).append("\n"); + sb.append(" ipv4Ipoa: ").append(toIndentedString(ipv4Ipoa)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortIpv6SettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortIpv6SettingOpenApiVo.java new file mode 100644 index 0000000..a499384 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortIpv6SettingOpenApiVo.java @@ -0,0 +1,210 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Port IPv6 setting + */ +@ApiModel(description = "Port IPv6 setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WanPortIpv6SettingOpenApiVo { + @JsonProperty("enable") + private Boolean enable; + + @JsonProperty("protoType") + private Integer protoType; + + @JsonProperty("ipv6Dynamic") + private Ipv6DynamicOpenApiVo ipv6Dynamic; + + @JsonProperty("ipv6Pppoe") + private Ipv6PppoeOpenApiVo ipv6Pppoe; + + @JsonProperty("ipv6Tunnel") + private Ipv6TunnelOpenApiVo ipv6Tunnel; + + @JsonProperty("ipv6Static") + private Ipv6StaticOpenApiVo ipv6Static; + + public WanPortIpv6SettingOpenApiVo enable(Boolean enable) { + this.enable = enable; + return this; + } + + /** + * Get enable + * @return enable + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + + public Boolean getEnable() { + return enable; + } + + public void setEnable(Boolean enable) { + this.enable = enable; + } + + public WanPortIpv6SettingOpenApiVo protoType(Integer protoType) { + this.protoType = protoType; + return this; + } + + /** + * IPv4 connection type should be a value as follows: 0: static; 1: dynamic; 2: PPPoE; 3: 6to4Tunnel; 4: bridge. + * @return protoType + */ + @ApiModelProperty(value = "IPv4 connection type should be a value as follows: 0: static; 1: dynamic; 2: PPPoE; 3: 6to4Tunnel; 4: bridge.") + + + public Integer getProtoType() { + return protoType; + } + + public void setProtoType(Integer protoType) { + this.protoType = protoType; + } + + public WanPortIpv6SettingOpenApiVo ipv6Dynamic(Ipv6DynamicOpenApiVo ipv6Dynamic) { + this.ipv6Dynamic = ipv6Dynamic; + return this; + } + + /** + * Get ipv6Dynamic + * @return ipv6Dynamic + */ + @ApiModelProperty(value = "") + + @Valid + + public Ipv6DynamicOpenApiVo getIpv6Dynamic() { + return ipv6Dynamic; + } + + public void setIpv6Dynamic(Ipv6DynamicOpenApiVo ipv6Dynamic) { + this.ipv6Dynamic = ipv6Dynamic; + } + + public WanPortIpv6SettingOpenApiVo ipv6Pppoe(Ipv6PppoeOpenApiVo ipv6Pppoe) { + this.ipv6Pppoe = ipv6Pppoe; + return this; + } + + /** + * Get ipv6Pppoe + * @return ipv6Pppoe + */ + @ApiModelProperty(value = "") + + @Valid + + public Ipv6PppoeOpenApiVo getIpv6Pppoe() { + return ipv6Pppoe; + } + + public void setIpv6Pppoe(Ipv6PppoeOpenApiVo ipv6Pppoe) { + this.ipv6Pppoe = ipv6Pppoe; + } + + public WanPortIpv6SettingOpenApiVo ipv6Tunnel(Ipv6TunnelOpenApiVo ipv6Tunnel) { + this.ipv6Tunnel = ipv6Tunnel; + return this; + } + + /** + * Get ipv6Tunnel + * @return ipv6Tunnel + */ + @ApiModelProperty(value = "") + + @Valid + + public Ipv6TunnelOpenApiVo getIpv6Tunnel() { + return ipv6Tunnel; + } + + public void setIpv6Tunnel(Ipv6TunnelOpenApiVo ipv6Tunnel) { + this.ipv6Tunnel = ipv6Tunnel; + } + + public WanPortIpv6SettingOpenApiVo ipv6Static(Ipv6StaticOpenApiVo ipv6Static) { + this.ipv6Static = ipv6Static; + return this; + } + + /** + * Get ipv6Static + * @return ipv6Static + */ + @ApiModelProperty(value = "") + + @Valid + + public Ipv6StaticOpenApiVo getIpv6Static() { + return ipv6Static; + } + + public void setIpv6Static(Ipv6StaticOpenApiVo ipv6Static) { + this.ipv6Static = ipv6Static; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WanPortIpv6SettingOpenApiVo wanPortIpv6SettingOpenApiVo = (WanPortIpv6SettingOpenApiVo) o; + return Objects.equals(this.enable, wanPortIpv6SettingOpenApiVo.enable) && + Objects.equals(this.protoType, wanPortIpv6SettingOpenApiVo.protoType) && + Objects.equals(this.ipv6Dynamic, wanPortIpv6SettingOpenApiVo.ipv6Dynamic) && + Objects.equals(this.ipv6Pppoe, wanPortIpv6SettingOpenApiVo.ipv6Pppoe) && + Objects.equals(this.ipv6Tunnel, wanPortIpv6SettingOpenApiVo.ipv6Tunnel) && + Objects.equals(this.ipv6Static, wanPortIpv6SettingOpenApiVo.ipv6Static); + } + + @Override + public int hashCode() { + return Objects.hash(enable, protoType, ipv6Dynamic, ipv6Pppoe, ipv6Tunnel, ipv6Static); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WanPortIpv6SettingOpenApiVo {\n"); + + sb.append(" enable: ").append(toIndentedString(enable)).append("\n"); + sb.append(" protoType: ").append(toIndentedString(protoType)).append("\n"); + sb.append(" ipv6Dynamic: ").append(toIndentedString(ipv6Dynamic)).append("\n"); + sb.append(" ipv6Pppoe: ").append(toIndentedString(ipv6Pppoe)).append("\n"); + sb.append(" ipv6Tunnel: ").append(toIndentedString(ipv6Tunnel)).append("\n"); + sb.append(" ipv6Static: ").append(toIndentedString(ipv6Static)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortMacSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortMacSettingOpenApiVo.java new file mode 100644 index 0000000..2e7f4f7 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortMacSettingOpenApiVo.java @@ -0,0 +1,105 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * Port MAC setting + */ +@ApiModel(description = "Port MAC setting") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WanPortMacSettingOpenApiVo { + @JsonProperty("method") + private Integer method; + + @JsonProperty("mac") + private String mac; + + public WanPortMacSettingOpenApiVo method(Integer method) { + this.method = method; + return this; + } + + /** + * Method of obtaining MAC address. 0:Use Default MAC address; 1: Customize MAC Address. + * @return method + */ + @ApiModelProperty(required = true, value = "Method of obtaining MAC address. 0:Use Default MAC address; 1: Customize MAC Address.") + @NotNull + + + public Integer getMethod() { + return method; + } + + public void setMethod(Integer method) { + this.method = method; + } + + public WanPortMacSettingOpenApiVo mac(String mac) { + this.mac = mac; + return this; + } + + /** + * It is required when [method] is 1. + * @return mac + */ + @ApiModelProperty(value = "It is required when [method] is 1.") + + + public String getMac() { + return mac; + } + + public void setMac(String mac) { + this.mac = mac; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WanPortMacSettingOpenApiVo wanPortMacSettingOpenApiVo = (WanPortMacSettingOpenApiVo) o; + return Objects.equals(this.method, wanPortMacSettingOpenApiVo.method) && + Objects.equals(this.mac, wanPortMacSettingOpenApiVo.mac); + } + + @Override + public int hashCode() { + return Objects.hash(method, mac); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WanPortMacSettingOpenApiVo {\n"); + + sb.append(" method: ").append(toIndentedString(method)).append("\n"); + sb.append(" mac: ").append(toIndentedString(mac)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortSettingOpenApiVo.java new file mode 100644 index 0000000..cea651c --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanPortSettingOpenApiVo.java @@ -0,0 +1,238 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModel; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import java.util.Objects; + +/** + * WAN ports config + */ +@ApiModel(description = "WAN ports config") +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WanPortSettingOpenApiVo { + @JsonProperty("portId") + private String portId; + + @JsonProperty("portName") + private String portName; + + @JsonProperty("portDescription") + private String portDescription; + + @JsonProperty("wanPortIpv4Setting") + private WanPortIpv4SettingOpenApiVo wanPortIpv4Setting; + + @JsonProperty("wanPortIpv6Setting") + private WanPortIpv6SettingOpenApiVo wanPortIpv6Setting; + + @JsonProperty("wanPortMacSetting") + private WanPortMacSettingOpenApiVo wanPortMacSetting; + + @JsonProperty("dslSetting") + private WanPortDslSettingOpenApiVo dslSetting; + + public WanPortSettingOpenApiVo portId(String portId) { + this.portId = portId; + return this; + } + + /** + * Port ID + * @return portId + */ + @ApiModelProperty(required = true, value = "Port ID") + @NotNull + + + public String getPortId() { + return portId; + } + + public void setPortId(String portId) { + this.portId = portId; + } + + public WanPortSettingOpenApiVo portName(String portName) { + this.portName = portName; + return this; + } + + /** + * Port name + * @return portName + */ + @ApiModelProperty(value = "Port name") + + + public String getPortName() { + return portName; + } + + public void setPortName(String portName) { + this.portName = portName; + } + + public WanPortSettingOpenApiVo portDescription(String portDescription) { + this.portDescription = portDescription; + return this; + } + + /** + * Port description should contain 1 to 32 characters. + * @return portDescription + */ + @ApiModelProperty(value = "Port description should contain 1 to 32 characters.") + + + public String getPortDescription() { + return portDescription; + } + + public void setPortDescription(String portDescription) { + this.portDescription = portDescription; + } + + public WanPortSettingOpenApiVo wanPortIpv4Setting(WanPortIpv4SettingOpenApiVo wanPortIpv4Setting) { + this.wanPortIpv4Setting = wanPortIpv4Setting; + return this; + } + + /** + * Get wanPortIpv4Setting + * @return wanPortIpv4Setting + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public WanPortIpv4SettingOpenApiVo getWanPortIpv4Setting() { + return wanPortIpv4Setting; + } + + public void setWanPortIpv4Setting(WanPortIpv4SettingOpenApiVo wanPortIpv4Setting) { + this.wanPortIpv4Setting = wanPortIpv4Setting; + } + + public WanPortSettingOpenApiVo wanPortIpv6Setting(WanPortIpv6SettingOpenApiVo wanPortIpv6Setting) { + this.wanPortIpv6Setting = wanPortIpv6Setting; + return this; + } + + /** + * Get wanPortIpv6Setting + * @return wanPortIpv6Setting + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public WanPortIpv6SettingOpenApiVo getWanPortIpv6Setting() { + return wanPortIpv6Setting; + } + + public void setWanPortIpv6Setting(WanPortIpv6SettingOpenApiVo wanPortIpv6Setting) { + this.wanPortIpv6Setting = wanPortIpv6Setting; + } + + public WanPortSettingOpenApiVo wanPortMacSetting(WanPortMacSettingOpenApiVo wanPortMacSetting) { + this.wanPortMacSetting = wanPortMacSetting; + return this; + } + + /** + * Get wanPortMacSetting + * @return wanPortMacSetting + */ + @ApiModelProperty(required = true, value = "") + @NotNull + + @Valid + + public WanPortMacSettingOpenApiVo getWanPortMacSetting() { + return wanPortMacSetting; + } + + public void setWanPortMacSetting(WanPortMacSettingOpenApiVo wanPortMacSetting) { + this.wanPortMacSetting = wanPortMacSetting; + } + + public WanPortSettingOpenApiVo dslSetting(WanPortDslSettingOpenApiVo dslSetting) { + this.dslSetting = dslSetting; + return this; + } + + /** + * Get dslSetting + * @return dslSetting + */ + @ApiModelProperty(value = "") + + @Valid + + public WanPortDslSettingOpenApiVo getDslSetting() { + return dslSetting; + } + + public void setDslSetting(WanPortDslSettingOpenApiVo dslSetting) { + this.dslSetting = dslSetting; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WanPortSettingOpenApiVo wanPortSettingOpenApiVo = (WanPortSettingOpenApiVo) o; + return Objects.equals(this.portId, wanPortSettingOpenApiVo.portId) && + Objects.equals(this.portName, wanPortSettingOpenApiVo.portName) && + Objects.equals(this.portDescription, wanPortSettingOpenApiVo.portDescription) && + Objects.equals(this.wanPortIpv4Setting, wanPortSettingOpenApiVo.wanPortIpv4Setting) && + Objects.equals(this.wanPortIpv6Setting, wanPortSettingOpenApiVo.wanPortIpv6Setting) && + Objects.equals(this.wanPortMacSetting, wanPortSettingOpenApiVo.wanPortMacSetting) && + Objects.equals(this.dslSetting, wanPortSettingOpenApiVo.dslSetting); + } + + @Override + public int hashCode() { + return Objects.hash(portId, portName, portDescription, wanPortIpv4Setting, wanPortIpv6Setting, wanPortMacSetting, dslSetting); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WanPortSettingOpenApiVo {\n"); + + sb.append(" portId: ").append(toIndentedString(portId)).append("\n"); + sb.append(" portName: ").append(toIndentedString(portName)).append("\n"); + sb.append(" portDescription: ").append(toIndentedString(portDescription)).append("\n"); + sb.append(" wanPortIpv4Setting: ").append(toIndentedString(wanPortIpv4Setting)).append("\n"); + sb.append(" wanPortIpv6Setting: ").append(toIndentedString(wanPortIpv6Setting)).append("\n"); + sb.append(" wanPortMacSetting: ").append(toIndentedString(wanPortMacSetting)).append("\n"); + sb.append(" dslSetting: ").append(toIndentedString(dslSetting)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanSettingConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanSettingConfigOpenApiVo.java new file mode 100644 index 0000000..f831407 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanSettingConfigOpenApiVo.java @@ -0,0 +1,124 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * WanSettingConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WanSettingConfigOpenApiVo { + @JsonProperty("wanPortsConfig") + @Valid + private List wanPortsConfig = null; + + @JsonProperty("UsbPortsConfig") + @Valid + private List usbPortsConfig = null; + + public WanSettingConfigOpenApiVo wanPortsConfig(List wanPortsConfig) { + this.wanPortsConfig = wanPortsConfig; + return this; + } + + public WanSettingConfigOpenApiVo addWanPortsConfigItem(WanPortSettingOpenApiVo wanPortsConfigItem) { + if (this.wanPortsConfig == null) { + this.wanPortsConfig = new ArrayList<>(); + } + this.wanPortsConfig.add(wanPortsConfigItem); + return this; + } + + /** + * WAN ports config + * @return wanPortsConfig + */ + @ApiModelProperty(value = "WAN ports config") + + @Valid + + public List getWanPortsConfig() { + return wanPortsConfig; + } + + public void setWanPortsConfig(List wanPortsConfig) { + this.wanPortsConfig = wanPortsConfig; + } + + public WanSettingConfigOpenApiVo usbPortsConfig(List usbPortsConfig) { + this.usbPortsConfig = usbPortsConfig; + return this; + } + + public WanSettingConfigOpenApiVo addUsbPortsConfigItem(UsbLteSettingConfigOpenApiVo usbPortsConfigItem) { + if (this.usbPortsConfig == null) { + this.usbPortsConfig = new ArrayList<>(); + } + this.usbPortsConfig.add(usbPortsConfigItem); + return this; + } + + /** + * USB LTE ports config + * @return usbPortsConfig + */ + @ApiModelProperty(value = "USB LTE ports config") + + @Valid + + public List getUsbPortsConfig() { + return usbPortsConfig; + } + + public void setUsbPortsConfig(List usbPortsConfig) { + this.usbPortsConfig = usbPortsConfig; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WanSettingConfigOpenApiVo wanSettingConfigOpenApiVo = (WanSettingConfigOpenApiVo) o; + return Objects.equals(this.wanPortsConfig, wanSettingConfigOpenApiVo.wanPortsConfig) && + Objects.equals(this.usbPortsConfig, wanSettingConfigOpenApiVo.usbPortsConfig); + } + + @Override + public int hashCode() { + return Objects.hash(wanPortsConfig, usbPortsConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WanSettingConfigOpenApiVo {\n"); + + sb.append(" wanPortsConfig: ").append(toIndentedString(wanPortsConfig)).append("\n"); + sb.append(" usbPortsConfig: ").append(toIndentedString(usbPortsConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanSettingOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanSettingOpenApiVo.java new file mode 100644 index 0000000..2d2a405 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WanSettingOpenApiVo.java @@ -0,0 +1,124 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * WanSettingOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WanSettingOpenApiVo { + @JsonProperty("wanPortsConfig") + @Valid + private List wanPortsConfig = null; + + @JsonProperty("UsbPortsConfig") + @Valid + private List usbPortsConfig = null; + + public WanSettingOpenApiVo wanPortsConfig(List wanPortsConfig) { + this.wanPortsConfig = wanPortsConfig; + return this; + } + + public WanSettingOpenApiVo addWanPortsConfigItem(WanPortSettingOpenApiVo wanPortsConfigItem) { + if (this.wanPortsConfig == null) { + this.wanPortsConfig = new ArrayList<>(); + } + this.wanPortsConfig.add(wanPortsConfigItem); + return this; + } + + /** + * WAN ports config + * @return wanPortsConfig + */ + @ApiModelProperty(value = "WAN ports config") + + @Valid + + public List getWanPortsConfig() { + return wanPortsConfig; + } + + public void setWanPortsConfig(List wanPortsConfig) { + this.wanPortsConfig = wanPortsConfig; + } + + public WanSettingOpenApiVo usbPortsConfig(List usbPortsConfig) { + this.usbPortsConfig = usbPortsConfig; + return this; + } + + public WanSettingOpenApiVo addUsbPortsConfigItem(UsbLteSettingOpenApiVo usbPortsConfigItem) { + if (this.usbPortsConfig == null) { + this.usbPortsConfig = new ArrayList<>(); + } + this.usbPortsConfig.add(usbPortsConfigItem); + return this; + } + + /** + * USB lte ports config + * @return usbPortsConfig + */ + @ApiModelProperty(value = "USB lte ports config") + + @Valid + + public List getUsbPortsConfig() { + return usbPortsConfig; + } + + public void setUsbPortsConfig(List usbPortsConfig) { + this.usbPortsConfig = usbPortsConfig; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WanSettingOpenApiVo wanSettingOpenApiVo = (WanSettingOpenApiVo) o; + return Objects.equals(this.wanPortsConfig, wanSettingOpenApiVo.wanPortsConfig) && + Objects.equals(this.usbPortsConfig, wanSettingOpenApiVo.usbPortsConfig); + } + + @Override + public int hashCode() { + return Objects.hash(wanPortsConfig, usbPortsConfig); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WanSettingOpenApiVo {\n"); + + sb.append(" wanPortsConfig: ").append(toIndentedString(wanPortsConfig)).append("\n"); + sb.append(" usbPortsConfig: ").append(toIndentedString(usbPortsConfig)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WidsConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WidsConfigOpenApiVo.java new file mode 100644 index 0000000..eff2ca4 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WidsConfigOpenApiVo.java @@ -0,0 +1,138 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * WidsConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WidsConfigOpenApiVo { + @JsonProperty("status") + private Boolean status; + + @JsonProperty("level") + private Integer level; + + @JsonProperty("detection") + @Valid + private List detection = null; + + public WidsConfigOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Wireless IDS config status; true:enable, false:disable. + * @return status + */ + @ApiModelProperty(value = "Wireless IDS config status; true:enable, false:disable.") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public WidsConfigOpenApiVo level(Integer level) { + this.level = level; + return this; + } + + /** + * Wireless IDS detection level; It should be a value as follows: 0:High; 1:Low; 2:Custom. + * @return level + */ + @ApiModelProperty(value = "Wireless IDS detection level; It should be a value as follows: 0:High; 1:Low; 2:Custom.") + + + public Integer getLevel() { + return level; + } + + public void setLevel(Integer level) { + this.level = level; + } + + public WidsConfigOpenApiVo detection(List detection) { + this.detection = detection; + return this; + } + + public WidsConfigOpenApiVo addDetectionItem(Integer detectionItem) { + if (this.detection == null) { + this.detection = new ArrayList<>(); + } + this.detection.add(detectionItem); + return this; + } + + /** + * Wireless IDS detection type, the value is returned only when level is custom(2); It should be a value as follows: 0: Signature_disassociation_broadcast; 1: Signature_deauth_broadcast; 2: Detect_apspoofing; 3: Detect_adhoc_using_valid_ssid; 4: Detect_malformed_large_duration; 5: Detect_overflow_eapol_key; 6: Detect_ap_impersonation; 7: Detect_ht_greenfield; 8: Detect_incomplete_ie; 9: Detect_malformed_htie; 10: Detect_malformed_frame_auth; 11: Detect_malformed_assoc_req; 12: Detect_valid_ssid_misuse; 13: Detect_adhoc_network; 14: Detect_client_flood; 15: Detect_hotspotter_attack; 16: Detect_power_save_dos_flood_attack; 17: Detect_violence_break. + * @return detection + */ + @ApiModelProperty(value = "Wireless IDS detection type, the value is returned only when level is custom(2); It should be a value as follows: 0: Signature_disassociation_broadcast; 1: Signature_deauth_broadcast; 2: Detect_apspoofing; 3: Detect_adhoc_using_valid_ssid; 4: Detect_malformed_large_duration; 5: Detect_overflow_eapol_key; 6: Detect_ap_impersonation; 7: Detect_ht_greenfield; 8: Detect_incomplete_ie; 9: Detect_malformed_htie; 10: Detect_malformed_frame_auth; 11: Detect_malformed_assoc_req; 12: Detect_valid_ssid_misuse; 13: Detect_adhoc_network; 14: Detect_client_flood; 15: Detect_hotspotter_attack; 16: Detect_power_save_dos_flood_attack; 17: Detect_violence_break.") + + + public List getDetection() { + return detection; + } + + public void setDetection(List detection) { + this.detection = detection; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WidsConfigOpenApiVo widsConfigOpenApiVo = (WidsConfigOpenApiVo) o; + return Objects.equals(this.status, widsConfigOpenApiVo.status) && + Objects.equals(this.level, widsConfigOpenApiVo.level) && + Objects.equals(this.detection, widsConfigOpenApiVo.detection); + } + + @Override + public int hashCode() { + return Objects.hash(status, level, detection); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WidsConfigOpenApiVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" level: ").append(toIndentedString(level)).append("\n"); + sb.append(" detection: ").append(toIndentedString(detection)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WipsConfigOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WipsConfigOpenApiVo.java new file mode 100644 index 0000000..6aa7f9b --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WipsConfigOpenApiVo.java @@ -0,0 +1,151 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * WipsConfigOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WipsConfigOpenApiVo { + @JsonProperty("status") + private Boolean status; + + @JsonProperty("deauthEn") + private Boolean deauthEn; + + @JsonProperty("dynamicEn") + private Boolean dynamicEn; + + @JsonProperty("lockTime") + private Integer lockTime; + + public WipsConfigOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * Wireless IPS config status; true:enable, false:disable. + * @return status + */ + @ApiModelProperty(value = "Wireless IPS config status; true:enable, false:disable.") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public WipsConfigOpenApiVo deauthEn(Boolean deauthEn) { + this.deauthEn = deauthEn; + return this; + } + + /** + * Wireless IPS deauthenticate config status; true:enable, false:disable. + * @return deauthEn + */ + @ApiModelProperty(value = "Wireless IPS deauthenticate config status; true:enable, false:disable.") + + + public Boolean getDeauthEn() { + return deauthEn; + } + + public void setDeauthEn(Boolean deauthEn) { + this.deauthEn = deauthEn; + } + + public WipsConfigOpenApiVo dynamicEn(Boolean dynamicEn) { + this.dynamicEn = dynamicEn; + return this; + } + + /** + * Wireless IPS dynamic block list config status; true:enable, false:disable. + * @return dynamicEn + */ + @ApiModelProperty(value = "Wireless IPS dynamic block list config status; true:enable, false:disable.") + + + public Boolean getDynamicEn() { + return dynamicEn; + } + + public void setDynamicEn(Boolean dynamicEn) { + this.dynamicEn = dynamicEn; + } + + public WipsConfigOpenApiVo lockTime(Integer lockTime) { + this.lockTime = lockTime; + return this; + } + + /** + * Wireless IPS device locking duration config status; It should be within the range of 300–36000; this field is required when parameter [dynamicEn] is true. + * @return lockTime + */ + @ApiModelProperty(value = "Wireless IPS device locking duration config status; It should be within the range of 300–36000; this field is required when parameter [dynamicEn] is true.") + + + public Integer getLockTime() { + return lockTime; + } + + public void setLockTime(Integer lockTime) { + this.lockTime = lockTime; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WipsConfigOpenApiVo wipsConfigOpenApiVo = (WipsConfigOpenApiVo) o; + return Objects.equals(this.status, wipsConfigOpenApiVo.status) && + Objects.equals(this.deauthEn, wipsConfigOpenApiVo.deauthEn) && + Objects.equals(this.dynamicEn, wipsConfigOpenApiVo.dynamicEn) && + Objects.equals(this.lockTime, wipsConfigOpenApiVo.lockTime); + } + + @Override + public int hashCode() { + return Objects.hash(status, deauthEn, dynamicEn, lockTime); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WipsConfigOpenApiVo {\n"); + + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" deauthEn: ").append(toIndentedString(deauthEn)).append("\n"); + sb.append(" dynamicEn: ").append(toIndentedString(dynamicEn)).append("\n"); + sb.append(" lockTime: ").append(toIndentedString(lockTime)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardDetailOpenApiVo.java new file mode 100644 index 0000000..25c9ab5 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardDetailOpenApiVo.java @@ -0,0 +1,251 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * WireguardDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WireguardDetailOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("listenPort") + private Integer listenPort; + + @JsonProperty("privateKey") + private String privateKey; + + @JsonProperty("publicKey") + private String publicKey; + + @JsonProperty("localIp") + private String localIp; + + public WireguardDetailOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * The ID of WireGuard VPN. + * @return id + */ + @ApiModelProperty(value = "The ID of WireGuard VPN.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public WireguardDetailOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * The name of WireGuard VPN should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "The name of WireGuard VPN should contain 1 to 64 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public WireguardDetailOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * The status of WireGuard VPN. + * @return status + */ + @ApiModelProperty(value = "The status of WireGuard VPN.") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public WireguardDetailOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * The MTU of WireGuard VPN should be within the range of 576-1440. + * @return mtu + */ + @ApiModelProperty(value = "The MTU of WireGuard VPN should be within the range of 576-1440.") + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public WireguardDetailOpenApiVo listenPort(Integer listenPort) { + this.listenPort = listenPort; + return this; + } + + /** + * The listening port for WireGuard VPN should be within the range of 1-65535. + * @return listenPort + */ + @ApiModelProperty(value = "The listening port for WireGuard VPN should be within the range of 1-65535.") + + + public Integer getListenPort() { + return listenPort; + } + + public void setListenPort(Integer listenPort) { + this.listenPort = listenPort; + } + + public WireguardDetailOpenApiVo privateKey(String privateKey) { + this.privateKey = privateKey; + return this; + } + + /** + * The private key of WireGuard VPN must have 44 character of base64 and end with '='. + * @return privateKey + */ + @ApiModelProperty(value = "The private key of WireGuard VPN must have 44 character of base64 and end with '='.") + + + public String getPrivateKey() { + return privateKey; + } + + public void setPrivateKey(String privateKey) { + this.privateKey = privateKey; + } + + public WireguardDetailOpenApiVo publicKey(String publicKey) { + this.publicKey = publicKey; + return this; + } + + /** + * The publicKey key of WireGuard VPN must have 44 character of base64 and end with '='. + * @return publicKey + */ + @ApiModelProperty(value = "The publicKey key of WireGuard VPN must have 44 character of base64 and end with '='.") + + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public WireguardDetailOpenApiVo localIp(String localIp) { + this.localIp = localIp; + return this; + } + + /** + * The local IP address of WireGuard VPN. + * @return localIp + */ + @ApiModelProperty(value = "The local IP address of WireGuard VPN.") + + + public String getLocalIp() { + return localIp; + } + + public void setLocalIp(String localIp) { + this.localIp = localIp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardDetailOpenApiVo wireguardDetailOpenApiVo = (WireguardDetailOpenApiVo) o; + return Objects.equals(this.id, wireguardDetailOpenApiVo.id) && + Objects.equals(this.name, wireguardDetailOpenApiVo.name) && + Objects.equals(this.status, wireguardDetailOpenApiVo.status) && + Objects.equals(this.mtu, wireguardDetailOpenApiVo.mtu) && + Objects.equals(this.listenPort, wireguardDetailOpenApiVo.listenPort) && + Objects.equals(this.privateKey, wireguardDetailOpenApiVo.privateKey) && + Objects.equals(this.publicKey, wireguardDetailOpenApiVo.publicKey) && + Objects.equals(this.localIp, wireguardDetailOpenApiVo.localIp); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, status, mtu, listenPort, privateKey, publicKey, localIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardDetailOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" listenPort: ").append(toIndentedString(listenPort)).append("\n"); + sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append(" localIp: ").append(toIndentedString(localIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardKeyOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardKeyOpenApiVo.java new file mode 100644 index 0000000..ee36056 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardKeyOpenApiVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * WireguardKeyOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WireguardKeyOpenApiVo { + @JsonProperty("privateKey") + private String privateKey; + + @JsonProperty("publicKey") + private String publicKey; + + public WireguardKeyOpenApiVo privateKey(String privateKey) { + this.privateKey = privateKey; + return this; + } + + /** + * The private key of WireGuard VPN. + * @return privateKey + */ + @ApiModelProperty(value = "The private key of WireGuard VPN.") + + + public String getPrivateKey() { + return privateKey; + } + + public void setPrivateKey(String privateKey) { + this.privateKey = privateKey; + } + + public WireguardKeyOpenApiVo publicKey(String publicKey) { + this.publicKey = publicKey; + return this; + } + + /** + * The public key of WireGuard VPN. + * @return publicKey + */ + @ApiModelProperty(value = "The public key of WireGuard VPN.") + + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardKeyOpenApiVo wireguardKeyOpenApiVo = (WireguardKeyOpenApiVo) o; + return Objects.equals(this.privateKey, wireguardKeyOpenApiVo.privateKey) && + Objects.equals(this.publicKey, wireguardKeyOpenApiVo.publicKey); + } + + @Override + public int hashCode() { + return Objects.hash(privateKey, publicKey); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardKeyOpenApiVo {\n"); + + sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardOpenApiVo.java new file mode 100644 index 0000000..7e874f9 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardOpenApiVo.java @@ -0,0 +1,209 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.Objects; + +/** + * WireguardOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WireguardOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("mtu") + private Integer mtu; + + @JsonProperty("listenPort") + private Integer listenPort; + + @JsonProperty("privateKey") + private String privateKey; + + @JsonProperty("localIp") + private String localIp; + + public WireguardOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * The name of WireGuard VPN should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "The name of WireGuard VPN should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public WireguardOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * The status of WireGuard VPN. Valid value is true or false. + * @return status + */ + @ApiModelProperty(required = true, value = "The status of WireGuard VPN. Valid value is true or false.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public WireguardOpenApiVo mtu(Integer mtu) { + this.mtu = mtu; + return this; + } + + /** + * The MTU of WireGuard VPN should be within the range of 576-1440. + * @return mtu + */ + @ApiModelProperty(required = true, value = "The MTU of WireGuard VPN should be within the range of 576-1440.") + @NotNull + + + public Integer getMtu() { + return mtu; + } + + public void setMtu(Integer mtu) { + this.mtu = mtu; + } + + public WireguardOpenApiVo listenPort(Integer listenPort) { + this.listenPort = listenPort; + return this; + } + + /** + * The listening port for WireGuard VPN should be within the range of 1-65535. + * @return listenPort + */ + @ApiModelProperty(required = true, value = "The listening port for WireGuard VPN should be within the range of 1-65535.") + @NotNull + + + public Integer getListenPort() { + return listenPort; + } + + public void setListenPort(Integer listenPort) { + this.listenPort = listenPort; + } + + public WireguardOpenApiVo privateKey(String privateKey) { + this.privateKey = privateKey; + return this; + } + + /** + * The private key of WireGuard VPN must have 44 character of base64 and end with '='. + * @return privateKey + */ + @ApiModelProperty(required = true, value = "The private key of WireGuard VPN must have 44 character of base64 and end with '='.") + @NotNull + +@Pattern(regexp="^[0-9a-zA-Z+/]{43}=$") + public String getPrivateKey() { + return privateKey; + } + + public void setPrivateKey(String privateKey) { + this.privateKey = privateKey; + } + + public WireguardOpenApiVo localIp(String localIp) { + this.localIp = localIp; + return this; + } + + /** + * The local IP address of WireGuard VPN. + * @return localIp + */ + @ApiModelProperty(required = true, value = "The local IP address of WireGuard VPN.") + @NotNull + +@Pattern(regexp="\\b((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\.((?!\\d\\d\\d)\\d+|1\\d\\d|2[0-4]\\d|25[0-5])\\b") + public String getLocalIp() { + return localIp; + } + + public void setLocalIp(String localIp) { + this.localIp = localIp; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardOpenApiVo wireguardOpenApiVo = (WireguardOpenApiVo) o; + return Objects.equals(this.name, wireguardOpenApiVo.name) && + Objects.equals(this.status, wireguardOpenApiVo.status) && + Objects.equals(this.mtu, wireguardOpenApiVo.mtu) && + Objects.equals(this.listenPort, wireguardOpenApiVo.listenPort) && + Objects.equals(this.privateKey, wireguardOpenApiVo.privateKey) && + Objects.equals(this.localIp, wireguardOpenApiVo.localIp); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, mtu, listenPort, privateKey, localIp); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" mtu: ").append(toIndentedString(mtu)).append("\n"); + sb.append(" listenPort: ").append(toIndentedString(listenPort)).append("\n"); + sb.append(" privateKey: ").append(toIndentedString(privateKey)).append("\n"); + sb.append(" localIp: ").append(toIndentedString(localIp)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardPeerDetailOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardPeerDetailOpenApiVo.java new file mode 100644 index 0000000..a596186 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardPeerDetailOpenApiVo.java @@ -0,0 +1,363 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * WireguardPeerDetailOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WireguardPeerDetailOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("interfaceId") + private String interfaceId; + + @JsonProperty("interfaceName") + private String interfaceName; + + @JsonProperty("publicKey") + private String publicKey; + + @JsonProperty("endPoint") + private String endPoint; + + @JsonProperty("endPointPort") + private Integer endPointPort; + + @JsonProperty("allowAddress") + @Valid + private List allowAddress = null; + + @JsonProperty("presharedKey") + private String presharedKey; + + @JsonProperty("keepAlive") + private Integer keepAlive; + + @JsonProperty("comment") + private String comment; + + public WireguardPeerDetailOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * The ID of WireGuard peer. + * @return id + */ + @ApiModelProperty(value = "The ID of WireGuard peer.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public WireguardPeerDetailOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * The name of WireGuard peer should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(value = "The name of WireGuard peer should contain 1 to 64 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public WireguardPeerDetailOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * The status of WireGuard peer. + * @return status + */ + @ApiModelProperty(value = "The status of WireGuard peer.") + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public WireguardPeerDetailOpenApiVo interfaceId(String interfaceId) { + this.interfaceId = interfaceId; + return this; + } + + /** + * The ID of WireGuard VPN to which this WireGuard peer binds. The ID can be obtained from 'Get all wireguard's id and name info' interface. + * @return interfaceId + */ + @ApiModelProperty(value = "The ID of WireGuard VPN to which this WireGuard peer binds. The ID can be obtained from 'Get all wireguard's id and name info' interface.") + + + public String getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public WireguardPeerDetailOpenApiVo interfaceName(String interfaceName) { + this.interfaceName = interfaceName; + return this; + } + + /** + * The name of WireGuard VPN to which this WireGuard peer binds. + * @return interfaceName + */ + @ApiModelProperty(value = "The name of WireGuard VPN to which this WireGuard peer binds.") + + + public String getInterfaceName() { + return interfaceName; + } + + public void setInterfaceName(String interfaceName) { + this.interfaceName = interfaceName; + } + + public WireguardPeerDetailOpenApiVo publicKey(String publicKey) { + this.publicKey = publicKey; + return this; + } + + /** + * The public key of WireGuard peer must have 44 character of base64 and end with '='. + * @return publicKey + */ + @ApiModelProperty(value = "The public key of WireGuard peer must have 44 character of base64 and end with '='.") + + + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public WireguardPeerDetailOpenApiVo endPoint(String endPoint) { + this.endPoint = endPoint; + return this; + } + + /** + * The end point of WireGuard peer. + * @return endPoint + */ + @ApiModelProperty(value = "The end point of WireGuard peer.") + + + public String getEndPoint() { + return endPoint; + } + + public void setEndPoint(String endPoint) { + this.endPoint = endPoint; + } + + public WireguardPeerDetailOpenApiVo endPointPort(Integer endPointPort) { + this.endPointPort = endPointPort; + return this; + } + + /** + * The end point port of WireGuard peer should be within the range of 1-65535. + * @return endPointPort + */ + @ApiModelProperty(value = "The end point port of WireGuard peer should be within the range of 1-65535.") + + + public Integer getEndPointPort() { + return endPointPort; + } + + public void setEndPointPort(Integer endPointPort) { + this.endPointPort = endPointPort; + } + + public WireguardPeerDetailOpenApiVo allowAddress(List allowAddress) { + this.allowAddress = allowAddress; + return this; + } + + public WireguardPeerDetailOpenApiVo addAllowAddressItem(String allowAddressItem) { + if (this.allowAddress == null) { + this.allowAddress = new ArrayList<>(); + } + this.allowAddress.add(allowAddressItem); + return this; + } + + /** + * IP address list of WireGuard peer allowed. + * @return allowAddress + */ + @ApiModelProperty(value = "IP address list of WireGuard peer allowed.") + + + public List getAllowAddress() { + return allowAddress; + } + + public void setAllowAddress(List allowAddress) { + this.allowAddress = allowAddress; + } + + public WireguardPeerDetailOpenApiVo presharedKey(String presharedKey) { + this.presharedKey = presharedKey; + return this; + } + + /** + * The presharedKey of WireGuard peer must have 44 character of base64 and end with '='. + * @return presharedKey + */ + @ApiModelProperty(value = "The presharedKey of WireGuard peer must have 44 character of base64 and end with '='.") + + + public String getPresharedKey() { + return presharedKey; + } + + public void setPresharedKey(String presharedKey) { + this.presharedKey = presharedKey; + } + + public WireguardPeerDetailOpenApiVo keepAlive(Integer keepAlive) { + this.keepAlive = keepAlive; + return this; + } + + /** + * The keepalive second of WireGuard peer should be within the range of 0-65535. + * @return keepAlive + */ + @ApiModelProperty(value = "The keepalive second of WireGuard peer should be within the range of 0-65535.") + + + public Integer getKeepAlive() { + return keepAlive; + } + + public void setKeepAlive(Integer keepAlive) { + this.keepAlive = keepAlive; + } + + public WireguardPeerDetailOpenApiVo comment(String comment) { + this.comment = comment; + return this; + } + + /** + * The comment of WireGuard peer should contain 0 to 128 characters. + * @return comment + */ + @ApiModelProperty(value = "The comment of WireGuard peer should contain 0 to 128 characters.") + + + public String getComment() { + return comment; + } + + public void setComment(String comment) { + this.comment = comment; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeerDetailOpenApiVo wireguardPeerDetailOpenApiVo = (WireguardPeerDetailOpenApiVo) o; + return Objects.equals(this.id, wireguardPeerDetailOpenApiVo.id) && + Objects.equals(this.name, wireguardPeerDetailOpenApiVo.name) && + Objects.equals(this.status, wireguardPeerDetailOpenApiVo.status) && + Objects.equals(this.interfaceId, wireguardPeerDetailOpenApiVo.interfaceId) && + Objects.equals(this.interfaceName, wireguardPeerDetailOpenApiVo.interfaceName) && + Objects.equals(this.publicKey, wireguardPeerDetailOpenApiVo.publicKey) && + Objects.equals(this.endPoint, wireguardPeerDetailOpenApiVo.endPoint) && + Objects.equals(this.endPointPort, wireguardPeerDetailOpenApiVo.endPointPort) && + Objects.equals(this.allowAddress, wireguardPeerDetailOpenApiVo.allowAddress) && + Objects.equals(this.presharedKey, wireguardPeerDetailOpenApiVo.presharedKey) && + Objects.equals(this.keepAlive, wireguardPeerDetailOpenApiVo.keepAlive) && + Objects.equals(this.comment, wireguardPeerDetailOpenApiVo.comment); + } + + @Override + public int hashCode() { + return Objects.hash(id, name, status, interfaceId, interfaceName, publicKey, endPoint, endPointPort, allowAddress, presharedKey, keepAlive, comment); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeerDetailOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" interfaceId: ").append(toIndentedString(interfaceId)).append("\n"); + sb.append(" interfaceName: ").append(toIndentedString(interfaceName)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append(" endPoint: ").append(toIndentedString(endPoint)).append("\n"); + sb.append(" endPointPort: ").append(toIndentedString(endPointPort)).append("\n"); + sb.append(" allowAddress: ").append(toIndentedString(allowAddress)).append("\n"); + sb.append(" presharedKey: ").append(toIndentedString(presharedKey)).append("\n"); + sb.append(" keepAlive: ").append(toIndentedString(keepAlive)).append("\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardPeerOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardPeerOpenApiVo.java new file mode 100644 index 0000000..c0d69c1 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardPeerOpenApiVo.java @@ -0,0 +1,318 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import javax.validation.constraints.NotNull; +import javax.validation.constraints.Pattern; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * WireguardPeerOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WireguardPeerOpenApiVo { + @JsonProperty("name") + private String name; + + @JsonProperty("status") + private Boolean status; + + @JsonProperty("interfaceId") + private String interfaceId; + + @JsonProperty("publicKey") + private String publicKey; + + @JsonProperty("endPoint") + private String endPoint; + + @JsonProperty("endPointPort") + private Integer endPointPort; + + @JsonProperty("allowAddress") + @Valid + private List allowAddress = new ArrayList<>(); + + @JsonProperty("presharedKey") + private String presharedKey; + + @JsonProperty("keepAlive") + private Integer keepAlive; + + @JsonProperty("comment") + private String comment; + + public WireguardPeerOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * The name of WireGuard peer should contain 1 to 64 characters. + * @return name + */ + @ApiModelProperty(required = true, value = "The name of WireGuard peer should contain 1 to 64 characters.") + @NotNull + +@Pattern(regexp="^[^ ]$|^[^ ].{0,62}[^ ]$") + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public WireguardPeerOpenApiVo status(Boolean status) { + this.status = status; + return this; + } + + /** + * The status of WireGuard peer. Valid value is true or false. + * @return status + */ + @ApiModelProperty(required = true, value = "The status of WireGuard peer. Valid value is true or false.") + @NotNull + + + public Boolean getStatus() { + return status; + } + + public void setStatus(Boolean status) { + this.status = status; + } + + public WireguardPeerOpenApiVo interfaceId(String interfaceId) { + this.interfaceId = interfaceId; + return this; + } + + /** + * The ID of WireGuard VPN to which this WireGuard peer binds. The ID can be obtained from 'Get all wireguard's id and name info' interface. + * @return interfaceId + */ + @ApiModelProperty(required = true, value = "The ID of WireGuard VPN to which this WireGuard peer binds. The ID can be obtained from 'Get all wireguard's id and name info' interface.") + @NotNull + + + public String getInterfaceId() { + return interfaceId; + } + + public void setInterfaceId(String interfaceId) { + this.interfaceId = interfaceId; + } + + public WireguardPeerOpenApiVo publicKey(String publicKey) { + this.publicKey = publicKey; + return this; + } + + /** + * The public key of WireGuard peer must have 44 character of base64 and end with '='. + * @return publicKey + */ + @ApiModelProperty(required = true, value = "The public key of WireGuard peer must have 44 character of base64 and end with '='.") + @NotNull + +@Pattern(regexp="^[0-9a-zA-Z+/]{43}=$") + public String getPublicKey() { + return publicKey; + } + + public void setPublicKey(String publicKey) { + this.publicKey = publicKey; + } + + public WireguardPeerOpenApiVo endPoint(String endPoint) { + this.endPoint = endPoint; + return this; + } + + /** + * The end point IP of WireGuard peer. + * @return endPoint + */ + @ApiModelProperty(value = "The end point IP of WireGuard peer.") + + + public String getEndPoint() { + return endPoint; + } + + public void setEndPoint(String endPoint) { + this.endPoint = endPoint; + } + + public WireguardPeerOpenApiVo endPointPort(Integer endPointPort) { + this.endPointPort = endPointPort; + return this; + } + + /** + * The end point port of WireGuard peer should be within the range of 1-65535. + * @return endPointPort + */ + @ApiModelProperty(value = "The end point port of WireGuard peer should be within the range of 1-65535.") + + + public Integer getEndPointPort() { + return endPointPort; + } + + public void setEndPointPort(Integer endPointPort) { + this.endPointPort = endPointPort; + } + + public WireguardPeerOpenApiVo allowAddress(List allowAddress) { + this.allowAddress = allowAddress; + return this; + } + + public WireguardPeerOpenApiVo addAllowAddressItem(String allowAddressItem) { + this.allowAddress.add(allowAddressItem); + return this; + } + + /** + * IP/MASK address list of WireGuard peer allowed. + * @return allowAddress + */ + @ApiModelProperty(required = true, value = "IP/MASK address list of WireGuard peer allowed.") + @NotNull + + + public List getAllowAddress() { + return allowAddress; + } + + public void setAllowAddress(List allowAddress) { + this.allowAddress = allowAddress; + } + + public WireguardPeerOpenApiVo presharedKey(String presharedKey) { + this.presharedKey = presharedKey; + return this; + } + + /** + * The presharedKey of WireGuard peer must have 44 character of base64 and end with '='. + * @return presharedKey + */ + @ApiModelProperty(value = "The presharedKey of WireGuard peer must have 44 character of base64 and end with '='.") + +@Pattern(regexp="^[0-9a-zA-Z+/]{43}=$") + public String getPresharedKey() { + return presharedKey; + } + + public void setPresharedKey(String presharedKey) { + this.presharedKey = presharedKey; + } + + public WireguardPeerOpenApiVo keepAlive(Integer keepAlive) { + this.keepAlive = keepAlive; + return this; + } + + /** + * The keepalive second of WireGuard peer should be within the range of 0-65535. + * @return keepAlive + */ + @ApiModelProperty(required = true, value = "The keepalive second of WireGuard peer should be within the range of 0-65535.") + @NotNull + + + public Integer getKeepAlive() { + return keepAlive; + } + + public void setKeepAlive(Integer keepAlive) { + this.keepAlive = keepAlive; + } + + public WireguardPeerOpenApiVo comment(String comment) { + this.comment = comment; + return this; + } + + /** + * The comment of WireGuard peer should contain 0 to 128 characters. + * @return comment + */ + @ApiModelProperty(value = "The comment of WireGuard peer should contain 0 to 128 characters.") + +@Pattern(regexp="^$|^[^ ]$|^[^ ].{0,126}[^ ]$") + public String getComment() { + return comment; + } + + public void setComment(String comment) { + this.comment = comment; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardPeerOpenApiVo wireguardPeerOpenApiVo = (WireguardPeerOpenApiVo) o; + return Objects.equals(this.name, wireguardPeerOpenApiVo.name) && + Objects.equals(this.status, wireguardPeerOpenApiVo.status) && + Objects.equals(this.interfaceId, wireguardPeerOpenApiVo.interfaceId) && + Objects.equals(this.publicKey, wireguardPeerOpenApiVo.publicKey) && + Objects.equals(this.endPoint, wireguardPeerOpenApiVo.endPoint) && + Objects.equals(this.endPointPort, wireguardPeerOpenApiVo.endPointPort) && + Objects.equals(this.allowAddress, wireguardPeerOpenApiVo.allowAddress) && + Objects.equals(this.presharedKey, wireguardPeerOpenApiVo.presharedKey) && + Objects.equals(this.keepAlive, wireguardPeerOpenApiVo.keepAlive) && + Objects.equals(this.comment, wireguardPeerOpenApiVo.comment); + } + + @Override + public int hashCode() { + return Objects.hash(name, status, interfaceId, publicKey, endPoint, endPointPort, allowAddress, presharedKey, keepAlive, comment); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardPeerOpenApiVo {\n"); + + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" status: ").append(toIndentedString(status)).append("\n"); + sb.append(" interfaceId: ").append(toIndentedString(interfaceId)).append("\n"); + sb.append(" publicKey: ").append(toIndentedString(publicKey)).append("\n"); + sb.append(" endPoint: ").append(toIndentedString(endPoint)).append("\n"); + sb.append(" endPointPort: ").append(toIndentedString(endPointPort)).append("\n"); + sb.append(" allowAddress: ").append(toIndentedString(allowAddress)).append("\n"); + sb.append(" presharedKey: ").append(toIndentedString(presharedKey)).append("\n"); + sb.append(" keepAlive: ").append(toIndentedString(keepAlive)).append("\n"); + sb.append(" comment: ").append(toIndentedString(comment)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardSummaryOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardSummaryOpenApiVo.java new file mode 100644 index 0000000..bdb6918 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WireguardSummaryOpenApiVo.java @@ -0,0 +1,101 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * WireguardSummaryOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WireguardSummaryOpenApiVo { + @JsonProperty("id") + private String id; + + @JsonProperty("name") + private String name; + + public WireguardSummaryOpenApiVo id(String id) { + this.id = id; + return this; + } + + /** + * The ID of WireGuard VPN. + * @return id + */ + @ApiModelProperty(value = "The ID of WireGuard VPN.") + + + public String getId() { + return id; + } + + public void setId(String id) { + this.id = id; + } + + public WireguardSummaryOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * The name of WireGuard VPN. + * @return name + */ + @ApiModelProperty(value = "The name of WireGuard VPN.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WireguardSummaryOpenApiVo wireguardSummaryOpenApiVo = (WireguardSummaryOpenApiVo) o; + return Objects.equals(this.id, wireguardSummaryOpenApiVo.id) && + Objects.equals(this.name, wireguardSummaryOpenApiVo.name); + } + + @Override + public int hashCode() { + return Objects.hash(id, name); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WireguardSummaryOpenApiVo {\n"); + + sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WlanGroupOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WlanGroupOpenApiVo.java new file mode 100644 index 0000000..3a5f8e0 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WlanGroupOpenApiVo.java @@ -0,0 +1,126 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import java.util.Objects; + +/** + * WlanGroupOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WlanGroupOpenApiVo { + @JsonProperty("wlanId") + private String wlanId; + + @JsonProperty("name") + private String name; + + @JsonProperty("primary") + private Boolean primary; + + public WlanGroupOpenApiVo wlanId(String wlanId) { + this.wlanId = wlanId; + return this; + } + + /** + * WLAN group ID + * @return wlanId + */ + @ApiModelProperty(value = "WLAN group ID") + + + public String getWlanId() { + return wlanId; + } + + public void setWlanId(String wlanId) { + this.wlanId = wlanId; + } + + public WlanGroupOpenApiVo name(String name) { + this.name = name; + return this; + } + + /** + * WLAN group name should contain 1 to 128 characters. + * @return name + */ + @ApiModelProperty(value = "WLAN group name should contain 1 to 128 characters.") + + + public String getName() { + return name; + } + + public void setName(String name) { + this.name = name; + } + + public WlanGroupOpenApiVo primary(Boolean primary) { + this.primary = primary; + return this; + } + + /** + * Whether it is the default WLAN group + * @return primary + */ + @ApiModelProperty(value = "Whether it is the default WLAN group") + + + public Boolean getPrimary() { + return primary; + } + + public void setPrimary(Boolean primary) { + this.primary = primary; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WlanGroupOpenApiVo wlanGroupOpenApiVo = (WlanGroupOpenApiVo) o; + return Objects.equals(this.wlanId, wlanGroupOpenApiVo.wlanId) && + Objects.equals(this.name, wlanGroupOpenApiVo.name) && + Objects.equals(this.primary, wlanGroupOpenApiVo.primary); + } + + @Override + public int hashCode() { + return Objects.hash(wlanId, name, primary); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WlanGroupOpenApiVo {\n"); + + sb.append(" wlanId: ").append(toIndentedString(wlanId)).append("\n"); + sb.append(" name: ").append(toIndentedString(name)).append("\n"); + sb.append(" primary: ").append(toIndentedString(primary)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} + diff --git a/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WlanSimpleOpenApiVo.java b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WlanSimpleOpenApiVo.java new file mode 100644 index 0000000..47c8881 --- /dev/null +++ b/wfc-api/wfc-api-omada/src/main/java/org/wfc/omada/api/sitesetting/model/WlanSimpleOpenApiVo.java @@ -0,0 +1,139 @@ +package org.wfc.omada.api.sitesetting.model; + +import com.fasterxml.jackson.annotation.JsonProperty; +import io.swagger.annotations.ApiModelProperty; + +import javax.validation.Valid; +import java.util.ArrayList; +import java.util.List; +import java.util.Objects; + +/** + * WlanSimpleOpenApiVo + */ +@javax.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-12-04T11:32:19.054+08:00[Asia/Shanghai]") + +public class WlanSimpleOpenApiVo { + @JsonProperty("wlanId") + private String wlanId; + + @JsonProperty("wlanName") + private String wlanName; + + @JsonProperty("ssidList") + @Valid + private List ssidList = null; + + public WlanSimpleOpenApiVo wlanId(String wlanId) { + this.wlanId = wlanId; + return this; + } + + /** + * ID of WLAN + * @return wlanId + */ + @ApiModelProperty(value = "ID of WLAN") + + + public String getWlanId() { + return wlanId; + } + + public void setWlanId(String wlanId) { + this.wlanId = wlanId; + } + + public WlanSimpleOpenApiVo wlanName(String wlanName) { + this.wlanName = wlanName; + return this; + } + + /** + * Name of WLAN + * @return wlanName + */ + @ApiModelProperty(value = "Name of WLAN") + + + public String getWlanName() { + return wlanName; + } + + public void setWlanName(String wlanName) { + this.wlanName = wlanName; + } + + public WlanSimpleOpenApiVo ssidList(List ssidList) { + this.ssidList = ssidList; + return this; + } + + public WlanSimpleOpenApiVo addSsidListItem(SsidSimpleOpenApiVo ssidListItem) { + if (this.ssidList == null) { + this.ssidList = new ArrayList<>(); + } + this.ssidList.add(ssidListItem); + return this; + } + + /** + * SSID list that support MAC-Based authentication + * @return ssidList + */ + @ApiModelProperty(value = "SSID list that support MAC-Based authentication") + + @Valid + + public List getSsidList() { + return ssidList; + } + + public void setSsidList(List ssidList) { + this.ssidList = ssidList; + } + + + @Override + public boolean equals(Object o) { + if (this == o) { + return true; + } + if (o == null || getClass() != o.getClass()) { + return false; + } + WlanSimpleOpenApiVo wlanSimpleOpenApiVo = (WlanSimpleOpenApiVo) o; + return Objects.equals(this.wlanId, wlanSimpleOpenApiVo.wlanId) && + Objects.equals(this.wlanName, wlanSimpleOpenApiVo.wlanName) && + Objects.equals(this.ssidList, wlanSimpleOpenApiVo.ssidList); + } + + @Override + public int hashCode() { + return Objects.hash(wlanId, wlanName, ssidList); + } + + @Override + public String toString() { + StringBuilder sb = new StringBuilder(); + sb.append("class WlanSimpleOpenApiVo {\n"); + + sb.append(" wlanId: ").append(toIndentedString(wlanId)).append("\n"); + sb.append(" wlanName: ").append(toIndentedString(wlanName)).append("\n"); + sb.append(" ssidList: ").append(toIndentedString(ssidList)).append("\n"); + sb.append("}"); + return sb.toString(); + } + + /** + * Convert the given object to string with each line indented by 4 spaces + * (except the first line). + */ + private String toIndentedString(Object o) { + if (o == null) { + return "null"; + } + return o.toString().replace("\n", "\n "); + } +} +